From d05e3be7527f823ffa877d4b0f7f0fbf570b708f Mon Sep 17 00:00:00 2001 From: Claire Peters Date: Mon, 9 Feb 2026 15:12:34 -0800 Subject: [PATCH] add Python SDK for Slurm REST API, versions 41-44 --- .github/workflows/python.yml | 34 + .gitignore | 66 + .gitlab-ci.yml | 31 + .openapi-generator-ignore | 23 + .openapi-generator/FILES | 2504 + .openapi-generator/VERSION | 1 + .travis.yml | 17 + LICENSE | 674 - README.md | 1258 +- docker-compose.yml | 46 - docs/SlurmApi.md | 9109 +++ docs/SlurmdbApi.md | 15214 ++++ docs/UtilApi.md | 194 + docs/V0041JobAllocReq.md | 30 + docs/V0041JobDescMsg.md | 145 + docs/V0041JobDescMsgBeginTime.md | 32 + docs/V0041JobDescMsgCrontab.md | 38 + docs/V0041JobDescMsgCrontabLine.md | 30 + docs/V0041JobDescMsgDistributionPlaneSize.md | 32 + docs/V0041JobDescMsgKillWarningDelay.md | 32 + docs/V0041JobDescMsgMemoryPerCpu.md | 32 + docs/V0041JobDescMsgPriority.md | 32 + docs/V0041JobDescMsgRequiredSwitches.md | 32 + docs/V0041JobDescMsgRlimits.md | 38 + docs/V0041JobDescMsgRlimitsAs.md | 32 + docs/V0041JobDescMsgRlimitsCore.md | 32 + docs/V0041JobDescMsgRlimitsCpu.md | 32 + docs/V0041JobDescMsgRlimitsData.md | 32 + docs/V0041JobDescMsgRlimitsFsize.md | 32 + docs/V0041JobDescMsgRlimitsMemlock.md | 32 + docs/V0041JobDescMsgRlimitsNofile.md | 32 + docs/V0041JobDescMsgRlimitsNproc.md | 32 + docs/V0041JobDescMsgRlimitsRss.md | 32 + docs/V0041JobDescMsgRlimitsStack.md | 32 + docs/V0041JobDescMsgSegmentSize.md | 32 + docs/V0041JobDescMsgTimeLimit.md | 32 + docs/V0041JobDescMsgTimeMinimum.md | 32 + docs/V0041JobSubmitReq.md | 31 + docs/V0041KillJobsMsg.md | 41 + docs/V0041OpenapiAccountsAddCondResp.md | 33 + .../V0041OpenapiAccountsAddCondRespAccount.md | 31 + ...AccountsAddCondRespAssociationCondition.md | 32 + docs/V0041OpenapiAccountsAddCondRespStr.md | 32 + docs/V0041OpenapiAccountsRemovedResp.md | 32 + docs/V0041OpenapiAccountsResp.md | 32 + docs/V0041OpenapiAssocsRemovedResp.md | 32 + docs/V0041OpenapiAssocsResp.md | 32 + docs/V0041OpenapiClustersRemovedResp.md | 32 + docs/V0041OpenapiClustersResp.md | 32 + docs/V0041OpenapiDiagResp.md | 32 + docs/V0041OpenapiDiagRespStatistics.md | 83 + docs/V0041OpenapiDiagRespStatisticsBfExit.md | 35 + ...penapiDiagRespStatisticsBfWhenLastCycle.md | 32 + ...041OpenapiDiagRespStatisticsJobStatesTs.md | 32 + ...espStatisticsPendingRpcsByHostlistInner.md | 32 + ...enapiDiagRespStatisticsPendingRpcsInner.md | 32 + docs/V0041OpenapiDiagRespStatisticsReqTime.md | 32 + ...41OpenapiDiagRespStatisticsReqTimeStart.md | 32 + ...iagRespStatisticsRpcsByMessageTypeInner.md | 38 + ...isticsRpcsByMessageTypeInnerAverageTime.md | 32 + ...penapiDiagRespStatisticsRpcsByUserInner.md | 34 + ...41OpenapiDiagRespStatisticsScheduleExit.md | 35 + docs/V0041OpenapiInstancesResp.md | 32 + docs/V0041OpenapiJobAllocResp.md | 33 + docs/V0041OpenapiJobInfoResp.md | 34 + docs/V0041OpenapiJobInfoRespJobsInner.md | 158 + ...41OpenapiJobInfoRespJobsInnerAccrueTime.md | 32 + ...41OpenapiJobInfoRespJobsInnerArrayJobId.md | 32 + ...penapiJobInfoRespJobsInnerArrayMaxTasks.md | 32 + ...1OpenapiJobInfoRespJobsInnerArrayTaskId.md | 32 + ...OpenapiJobInfoRespJobsInnerBillableTres.md | 32 + ...enapiJobInfoRespJobsInnerCoresPerSocket.md | 32 + ...obInfoRespJobsInnerCpuFrequencyGovernor.md | 32 + ...JobInfoRespJobsInnerCpuFrequencyMaximum.md | 32 + ...JobInfoRespJobsInnerCpuFrequencyMinimum.md | 32 + docs/V0041OpenapiJobInfoRespJobsInnerCpus.md | 32 + ...1OpenapiJobInfoRespJobsInnerCpusPerTask.md | 32 + ...0041OpenapiJobInfoRespJobsInnerDeadline.md | 32 + ...041OpenapiJobInfoRespJobsInnerDelayBoot.md | 32 + ...napiJobInfoRespJobsInnerDerivedExitCode.md | 32 + ...oRespJobsInnerDerivedExitCodeReturnCode.md | 32 + ...bInfoRespJobsInnerDerivedExitCodeSignal.md | 30 + ...nfoRespJobsInnerDerivedExitCodeSignalId.md | 32 + ...OpenapiJobInfoRespJobsInnerEligibleTime.md | 32 + ...V0041OpenapiJobInfoRespJobsInnerEndTime.md | 32 + ...0041OpenapiJobInfoRespJobsInnerExitCode.md | 32 + ...0041OpenapiJobInfoRespJobsInnerHetJobId.md | 32 + ...OpenapiJobInfoRespJobsInnerHetJobOffset.md | 32 + ...OpenapiJobInfoRespJobsInnerJobResources.md | 33 + ...piJobInfoRespJobsInnerJobResourcesNodes.md | 33 + ...bsInnerJobResourcesNodesAllocationInner.md | 34 + ...nerJobResourcesNodesAllocationInnerCpus.md | 30 + ...rJobResourcesNodesAllocationInnerMemory.md | 30 + ...sourcesNodesAllocationInnerSocketsInner.md | 30 + ...esAllocationInnerSocketsInnerCoresInner.md | 30 + ...RespJobsInnerJobResourcesThreadsPerCore.md | 32 + ...JobInfoRespJobsInnerLastSchedEvaluation.md | 32 + ...V0041OpenapiJobInfoRespJobsInnerMaxCpus.md | 32 + ...0041OpenapiJobInfoRespJobsInnerMaxNodes.md | 32 + ...penapiJobInfoRespJobsInnerMemoryPerNode.md | 32 + ...iJobInfoRespJobsInnerMinimumCpusPerNode.md | 32 + ...bInfoRespJobsInnerMinimumTmpDiskPerNode.md | 32 + ...041OpenapiJobInfoRespJobsInnerNodeCount.md | 32 + docs/V0041OpenapiJobInfoRespJobsInnerPower.md | 29 + ...41OpenapiJobInfoRespJobsInnerPreSusTime.md | 32 + ...1OpenapiJobInfoRespJobsInnerPreemptTime.md | 32 + ...napiJobInfoRespJobsInnerPreemptableTime.md | 32 + ...41OpenapiJobInfoRespJobsInnerResizeTime.md | 32 + ...enapiJobInfoRespJobsInnerSocketsPerNode.md | 32 + ...041OpenapiJobInfoRespJobsInnerStartTime.md | 32 + ...41OpenapiJobInfoRespJobsInnerSubmitTime.md | 32 + ...1OpenapiJobInfoRespJobsInnerSuspendTime.md | 32 + docs/V0041OpenapiJobInfoRespJobsInnerTasks.md | 32 + ...penapiJobInfoRespJobsInnerTasksPerBoard.md | 32 + ...OpenapiJobInfoRespJobsInnerTasksPerCore.md | 32 + ...OpenapiJobInfoRespJobsInnerTasksPerNode.md | 32 + ...enapiJobInfoRespJobsInnerTasksPerSocket.md | 32 + ...OpenapiJobInfoRespJobsInnerTasksPerTres.md | 32 + ...enapiJobInfoRespJobsInnerThreadsPerCore.md | 32 + docs/V0041OpenapiJobInfoRespLastBackfill.md | 32 + docs/V0041OpenapiJobInfoRespLastUpdate.md | 32 + docs/V0041OpenapiJobPostResponse.md | 35 + ...V0041OpenapiJobPostResponseResultsInner.md | 33 + docs/V0041OpenapiJobSubmitResponse.md | 35 + docs/V0041OpenapiJobSubmitResponseResult.md | 34 + docs/V0041OpenapiKillJobsResp.md | 32 + docs/V0041OpenapiKillJobsRespStatusInner.md | 33 + ...0041OpenapiKillJobsRespStatusInnerError.md | 31 + ...penapiKillJobsRespStatusInnerFederation.md | 29 + ...0041OpenapiKillJobsRespStatusInnerJobId.md | 32 + docs/V0041OpenapiLicensesResp.md | 33 + docs/V0041OpenapiLicensesRespLastUpdate.md | 32 + docs/V0041OpenapiLicensesRespLicensesInner.md | 37 + docs/V0041OpenapiNodesResp.md | 33 + docs/V0041OpenapiNodesRespLastUpdate.md | 32 + docs/V0041OpenapiNodesRespNodesInner.md | 85 + ...V0041OpenapiNodesRespNodesInnerBootTime.md | 32 + docs/V0041OpenapiNodesRespNodesInnerEnergy.md | 35 + ...piNodesRespNodesInnerEnergyCurrentWatts.md | 32 + .../V0041OpenapiNodesRespNodesInnerFreeMem.md | 32 + ...V0041OpenapiNodesRespNodesInnerLastBusy.md | 32 + ...enapiNodesRespNodesInnerReasonChangedAt.md | 32 + ...41OpenapiNodesRespNodesInnerResumeAfter.md | 32 + ...enapiNodesRespNodesInnerSlurmdStartTime.md | 32 + docs/V0041OpenapiPartitionResp.md | 33 + docs/V0041OpenapiPartitionRespLastUpdate.md | 32 + ...0041OpenapiPartitionRespPartitionsInner.md | 47 + ...apiPartitionRespPartitionsInnerAccounts.md | 30 + ...OpenapiPartitionRespPartitionsInnerCpus.md | 30 + ...apiPartitionRespPartitionsInnerDefaults.md | 33 + ...tionsInnerDefaultsPartitionMemoryPerCpu.md | 32 + ...ionsInnerDefaultsPartitionMemoryPerNode.md | 32 + ...artitionRespPartitionsInnerDefaultsTime.md | 32 + ...enapiPartitionRespPartitionsInnerGroups.md | 29 + ...apiPartitionRespPartitionsInnerMaximums.md | 38 + ...nRespPartitionsInnerMaximumsCpusPerNode.md | 32 + ...espPartitionsInnerMaximumsCpusPerSocket.md | 32 + ...rtitionRespPartitionsInnerMaximumsNodes.md | 32 + ...espPartitionsInnerMaximumsOverTimeLimit.md | 32 + ...espPartitionsInnerMaximumsOversubscribe.md | 30 + ...tionsInnerMaximumsPartitionMemoryPerCpu.md | 32 + ...ionsInnerMaximumsPartitionMemoryPerNode.md | 32 + ...artitionRespPartitionsInnerMaximumsTime.md | 32 + ...apiPartitionRespPartitionsInnerMinimums.md | 29 + ...penapiPartitionRespPartitionsInnerNodes.md | 31 + ...piPartitionRespPartitionsInnerPartition.md | 29 + ...apiPartitionRespPartitionsInnerPriority.md | 30 + ...1OpenapiPartitionRespPartitionsInnerQos.md | 31 + ...PartitionRespPartitionsInnerSuspendTime.md | 32 + ...apiPartitionRespPartitionsInnerTimeouts.md | 30 + ...titionRespPartitionsInnerTimeoutsResume.md | 32 + ...itionRespPartitionsInnerTimeoutsSuspend.md | 32 + ...OpenapiPartitionRespPartitionsInnerTres.md | 30 + docs/V0041OpenapiPingArrayResp.md | 32 + docs/V0041OpenapiPingArrayRespPingsInner.md | 32 + docs/V0041OpenapiReservationResp.md | 33 + docs/V0041OpenapiReservationRespLastUpdate.md | 32 + ...OpenapiReservationRespReservationsInner.md | 47 + ...servationsInnerCoreSpecializationsInner.md | 30 + ...ReservationRespReservationsInnerEndTime.md | 32 + ...tionRespReservationsInnerPurgeCompleted.md | 29 + ...RespReservationsInnerPurgeCompletedTime.md | 32 + ...servationRespReservationsInnerStartTime.md | 32 + ...piReservationRespReservationsInnerWatts.md | 32 + docs/V0041OpenapiResp.md | 31 + docs/V0041OpenapiSharesResp.md | 32 + docs/V0041OpenapiSharesRespErrorsInner.md | 32 + docs/V0041OpenapiSharesRespMeta.md | 33 + docs/V0041OpenapiSharesRespMetaClient.md | 31 + docs/V0041OpenapiSharesRespMetaPlugin.md | 32 + docs/V0041OpenapiSharesRespMetaSlurm.md | 31 + .../V0041OpenapiSharesRespMetaSlurmVersion.md | 31 + docs/V0041OpenapiSharesRespShares.md | 31 + ...V0041OpenapiSharesRespSharesSharesInner.md | 41 + ...apiSharesRespSharesSharesInnerFairshare.md | 30 + ...penapiSharesRespSharesSharesInnerShares.md | 32 + ...esRespSharesSharesInnerSharesNormalized.md | 32 + ...1OpenapiSharesRespSharesSharesInnerTres.md | 31 + ...espSharesSharesInnerTresRunSecondsInner.md | 30 + ...aresSharesInnerTresRunSecondsInnerValue.md | 32 + ...aresRespSharesSharesInnerTresUsageInner.md | 30 + ...resRespSharesSharesInnerUsageNormalized.md | 32 + docs/V0041OpenapiSharesRespWarningsInner.md | 30 + docs/V0041OpenapiSlurmdbdConfigResp.md | 39 + ...1OpenapiSlurmdbdConfigRespAccountsInner.md | 34 + ...onfigRespAccountsInnerAssociationsInner.md | 33 + ...onfigRespAccountsInnerCoordinatorsInner.md | 30 + ...napiSlurmdbdConfigRespAssociationsInner.md | 45 + ...rmdbdConfigRespAssociationsInnerDefault.md | 29 + ...iSlurmdbdConfigRespAssociationsInnerMax.md | 31 + ...rmdbdConfigRespAssociationsInnerMaxJobs.md | 32 + ...figRespAssociationsInnerMaxJobsAccruing.md | 32 + ...onfigRespAssociationsInnerMaxJobsActive.md | 32 + ...bdConfigRespAssociationsInnerMaxJobsPer.md | 32 + ...espAssociationsInnerMaxJobsPerSubmitted.md | 32 + ...ConfigRespAssociationsInnerMaxJobsTotal.md | 32 + ...urmdbdConfigRespAssociationsInnerMaxPer.md | 29 + ...onfigRespAssociationsInnerMaxPerAccount.md | 29 + ...rmdbdConfigRespAssociationsInnerMaxTres.md | 32 + ...ConfigRespAssociationsInnerMaxTresGroup.md | 30 + ...nfigRespAssociationsInnerMaxTresMinutes.md | 30 + ...gRespAssociationsInnerMaxTresMinutesPer.md | 29 + ...bdConfigRespAssociationsInnerMaxTresPer.md | 30 + ...iSlurmdbdConfigRespAssociationsInnerMin.md | 29 + ...mdbdConfigRespAssociationsInnerPriority.md | 32 + ...1OpenapiSlurmdbdConfigRespClustersInner.md | 36 + ...mdbdConfigRespClustersInnerAssociations.md | 29 + ...ConfigRespClustersInnerAssociationsRoot.md | 34 + ...urmdbdConfigRespClustersInnerController.md | 30 + ...OpenapiSlurmdbdConfigRespInstancesInner.md | 34 + ...apiSlurmdbdConfigRespInstancesInnerTime.md | 30 + .../V0041OpenapiSlurmdbdConfigRespQosInner.md | 37 + ...OpenapiSlurmdbdConfigRespQosInnerLimits.md | 32 + ...iSlurmdbdConfigRespQosInnerLimitsFactor.md | 32 + ...napiSlurmdbdConfigRespQosInnerLimitsMax.md | 33 + ...mdbdConfigRespQosInnerLimitsMaxAccruing.md | 29 + ...dConfigRespQosInnerLimitsMaxAccruingPer.md | 30 + ...RespQosInnerLimitsMaxAccruingPerAccount.md | 32 + ...figRespQosInnerLimitsMaxAccruingPerUser.md | 32 + ...bdConfigRespQosInnerLimitsMaxActiveJobs.md | 30 + ...RespQosInnerLimitsMaxActiveJobsAccruing.md | 32 + ...figRespQosInnerLimitsMaxActiveJobsCount.md | 32 + ...SlurmdbdConfigRespQosInnerLimitsMaxJobs.md | 30 + ...nfigRespQosInnerLimitsMaxJobsActiveJobs.md | 29 + ...gRespQosInnerLimitsMaxJobsActiveJobsPer.md | 30 + ...sInnerLimitsMaxJobsActiveJobsPerAccount.md | 32 + ...pQosInnerLimitsMaxJobsActiveJobsPerUser.md | 32 + ...rmdbdConfigRespQosInnerLimitsMaxJobsPer.md | 30 + ...nfigRespQosInnerLimitsMaxJobsPerAccount.md | 32 + ...dConfigRespQosInnerLimitsMaxJobsPerUser.md | 32 + ...SlurmdbdConfigRespQosInnerLimitsMaxTres.md | 31 + ...dConfigRespQosInnerLimitsMaxTresMinutes.md | 29 + ...nfigRespQosInnerLimitsMaxTresMinutesPer.md | 32 + ...rmdbdConfigRespQosInnerLimitsMaxTresPer.md | 32 + ...dbdConfigRespQosInnerLimitsMaxWallClock.md | 29 + ...ConfigRespQosInnerLimitsMaxWallClockPer.md | 30 + ...figRespQosInnerLimitsMaxWallClockPerJob.md | 32 + ...figRespQosInnerLimitsMaxWallClockPerQos.md | 32 + ...napiSlurmdbdConfigRespQosInnerLimitsMin.md | 30 + ...gRespQosInnerLimitsMinPriorityThreshold.md | 32 + ...SlurmdbdConfigRespQosInnerLimitsMinTres.md | 29 + ...rmdbdConfigRespQosInnerLimitsMinTresPer.md | 29 + ...penapiSlurmdbdConfigRespQosInnerPreempt.md | 31 + ...mdbdConfigRespQosInnerPreemptExemptTime.md | 32 + ...enapiSlurmdbdConfigRespQosInnerPriority.md | 32 + ...piSlurmdbdConfigRespQosInnerUsageFactor.md | 32 + ...lurmdbdConfigRespQosInnerUsageThreshold.md | 32 + ...0041OpenapiSlurmdbdConfigRespUsersInner.md | 36 + ...napiSlurmdbdConfigRespUsersInnerDefault.md | 30 + ...SlurmdbdConfigRespUsersInnerWckeysInner.md | 34 + ...espUsersInnerWckeysInnerAccountingInner.md | 32 + ...nnerWckeysInnerAccountingInnerAllocated.md | 29 + ...sersInnerWckeysInnerAccountingInnerTRES.md | 33 + docs/V0041OpenapiSlurmdbdJobsResp.md | 32 + docs/V0041OpenapiSlurmdbdJobsRespJobsInner.md | 72 + ...41OpenapiSlurmdbdJobsRespJobsInnerArray.md | 32 + ...apiSlurmdbdJobsRespJobsInnerArrayLimits.md | 29 + ...SlurmdbdJobsRespJobsInnerArrayLimitsMax.md | 29 + ...dJobsRespJobsInnerArrayLimitsMaxRunning.md | 29 + ...apiSlurmdbdJobsRespJobsInnerAssociation.md | 34 + ...OpenapiSlurmdbdJobsRespJobsInnerComment.md | 31 + ...penapiSlurmdbdJobsRespJobsInnerExitCode.md | 32 + ...0041OpenapiSlurmdbdJobsRespJobsInnerHet.md | 30 + ...0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md | 29 + ...penapiSlurmdbdJobsRespJobsInnerRequired.md | 31 + ...apiSlurmdbdJobsRespJobsInnerReservation.md | 30 + ...41OpenapiSlurmdbdJobsRespJobsInnerState.md | 30 + ...napiSlurmdbdJobsRespJobsInnerStepsInner.md | 40 + ...iSlurmdbdJobsRespJobsInnerStepsInnerCPU.md | 30 + ...obsInnerStepsInnerCPURequestedFrequency.md | 30 + ...InnerStepsInnerCPURequestedFrequencyMax.md | 32 + ...InnerStepsInnerCPURequestedFrequencyMin.md | 32 + ...lurmdbdJobsRespJobsInnerStepsInnerNodes.md | 31 + ...bdJobsRespJobsInnerStepsInnerStatistics.md | 30 + ...obsRespJobsInnerStepsInnerStatisticsCPU.md | 29 + ...RespJobsInnerStepsInnerStatisticsEnergy.md | 29 + ...InnerStepsInnerStatisticsEnergyConsumed.md | 32 + ...SlurmdbdJobsRespJobsInnerStepsInnerStep.md | 30 + ...SlurmdbdJobsRespJobsInnerStepsInnerTask.md | 29 + ...lurmdbdJobsRespJobsInnerStepsInnerTasks.md | 29 + ...SlurmdbdJobsRespJobsInnerStepsInnerTime.md | 35 + ...rmdbdJobsRespJobsInnerStepsInnerTimeEnd.md | 32 + ...dbdJobsRespJobsInnerStepsInnerTimeStart.md | 32 + ...bdJobsRespJobsInnerStepsInnerTimeSystem.md | 30 + ...dbdJobsRespJobsInnerStepsInnerTimeTotal.md | 30 + ...mdbdJobsRespJobsInnerStepsInnerTimeUser.md | 30 + ...SlurmdbdJobsRespJobsInnerStepsInnerTres.md | 31 + ...JobsRespJobsInnerStepsInnerTresConsumed.md | 32 + ...obsRespJobsInnerStepsInnerTresRequested.md | 32 + ...obsInnerStepsInnerTresRequestedMaxInner.md | 32 + ...041OpenapiSlurmdbdJobsRespJobsInnerTime.md | 39 + ...apiSlurmdbdJobsRespJobsInnerTimePlanned.md | 32 + ...napiSlurmdbdJobsRespJobsInnerTimeSystem.md | 30 + ...enapiSlurmdbdJobsRespJobsInnerTimeTotal.md | 30 + ...penapiSlurmdbdJobsRespJobsInnerTimeUser.md | 30 + ...041OpenapiSlurmdbdJobsRespJobsInnerTres.md | 30 + ...41OpenapiSlurmdbdJobsRespJobsInnerWckey.md | 31 + docs/V0041OpenapiSlurmdbdQosRemovedResp.md | 32 + docs/V0041OpenapiSlurmdbdQosResp.md | 32 + docs/V0041OpenapiSlurmdbdStatsResp.md | 32 + ...V0041OpenapiSlurmdbdStatsRespStatistics.md | 33 + ...apiSlurmdbdStatsRespStatisticsRPCsInner.md | 31 + ...lurmdbdStatsRespStatisticsRPCsInnerTime.md | 30 + ...enapiSlurmdbdStatsRespStatisticsRollups.md | 32 + ...SlurmdbdStatsRespStatisticsRollupsDaily.md | 31 + ...StatsRespStatisticsRollupsDailyDuration.md | 31 + ...lurmdbdStatsRespStatisticsRollupsHourly.md | 31 + ...tatsRespStatisticsRollupsHourlyDuration.md | 31 + ...urmdbdStatsRespStatisticsRollupsMonthly.md | 31 + ...atsRespStatisticsRollupsMonthlyDuration.md | 31 + ...piSlurmdbdStatsRespStatisticsUsersInner.md | 31 + docs/V0041OpenapiTresResp.md | 32 + docs/V0041OpenapiUsersAddCondResp.md | 33 + ...apiUsersAddCondRespAssociationCondition.md | 35 + ...CondRespAssociationConditionAssociation.md | 51 + ...pAssociationConditionAssociationGrpjobs.md | 32 + ...iationConditionAssociationGrpjobsaccrue.md | 32 + ...iationConditionAssociationGrpsubmitjobs.md | 32 + ...pAssociationConditionAssociationGrpwall.md | 32 + ...pAssociationConditionAssociationMaxjobs.md | 32 + ...iationConditionAssociationMaxjobsaccrue.md | 32 + ...iationConditionAssociationMaxsubmitjobs.md | 32 + ...nditionAssociationMaxwalldurationperjob.md | 32 + ...iationConditionAssociationMinpriothresh.md | 32 + docs/V0041OpenapiUsersAddCondRespStr.md | 32 + docs/V0041OpenapiUsersAddCondRespUser.md | 32 + docs/V0041OpenapiUsersResp.md | 32 + docs/V0041OpenapiWckeyRemovedResp.md | 32 + docs/V0041OpenapiWckeyResp.md | 32 + docs/V0041UpdateNodeMsg.md | 42 + docs/V0041UpdateNodeMsgResumeAfter.md | 32 + docs/V0041UpdateNodeMsgWeight.md | 32 + docs/V0042Account.md | 34 + docs/V0042AccountShort.md | 30 + docs/V0042Accounting.md | 33 + docs/V0042AccountsAddCond.md | 31 + docs/V0042AcctGatherEnergy.md | 34 + docs/V0042Assoc.md | 45 + docs/V0042AssocMax.md | 31 + docs/V0042AssocMaxJobs.md | 32 + docs/V0042AssocMaxJobsPer.md | 32 + docs/V0042AssocMaxPer.md | 29 + docs/V0042AssocMaxPerAccount.md | 29 + docs/V0042AssocMaxTres.md | 32 + docs/V0042AssocMaxTresGroup.md | 30 + docs/V0042AssocMaxTresMinutes.md | 30 + docs/V0042AssocMaxTresPer.md | 30 + docs/V0042AssocMin.md | 29 + docs/V0042AssocRecSet.md | 50 + docs/V0042AssocSharesObjWrap.md | 41 + docs/V0042AssocSharesObjWrapFairshare.md | 30 + docs/V0042AssocSharesObjWrapTres.md | 31 + docs/V0042AssocShort.md | 33 + docs/V0042BfExitFields.md | 34 + docs/V0042ClusterRec.md | 36 + docs/V0042ClusterRecAssociations.md | 29 + docs/V0042ControllerPing.md | 34 + docs/V0042Coord.md | 30 + docs/V0042CronEntry.md | 37 + docs/V0042Float64NoValStruct.md | 31 + docs/V0042Instance.md | 34 + docs/V0042Job.md | 74 + docs/V0042JobAllocReq.md | 30 + docs/V0042JobArray.md | 32 + docs/V0042JobArrayResponseMsgEntry.md | 33 + docs/V0042JobDescMsg.md | 143 + docs/V0042JobDescMsgRlimits.md | 38 + docs/V0042JobHet.md | 30 + docs/V0042JobInfo.md | 156 + docs/V0042JobRequired.md | 31 + docs/V0042JobRes.md | 32 + docs/V0042JobResCore.md | 30 + docs/V0042JobResNode.md | 33 + docs/V0042JobResNodes.md | 33 + docs/V0042JobResSocket.md | 30 + docs/V0042JobState.md | 30 + docs/V0042JobSubmitReq.md | 31 + docs/V0042JobTime.md | 39 + docs/V0042JobTres.md | 30 + docs/V0042KillJobsMsg.md | 41 + docs/V0042KillJobsRespJob.md | 32 + docs/V0042License.md | 37 + docs/V0042Node.md | 85 + docs/V0042OpenapiAccountsAddCondResp.md | 33 + docs/V0042OpenapiAccountsAddCondRespStr.md | 32 + docs/V0042OpenapiAccountsRemovedResp.md | 32 + docs/V0042OpenapiAccountsResp.md | 32 + docs/V0042OpenapiAssocsRemovedResp.md | 32 + docs/V0042OpenapiAssocsResp.md | 32 + docs/V0042OpenapiClustersRemovedResp.md | 32 + docs/V0042OpenapiClustersResp.md | 32 + docs/V0042OpenapiDiagResp.md | 32 + docs/V0042OpenapiError.md | 32 + docs/V0042OpenapiInstancesResp.md | 32 + docs/V0042OpenapiJobAllocResp.md | 33 + docs/V0042OpenapiJobInfoResp.md | 34 + docs/V0042OpenapiJobPostResponse.md | 32 + docs/V0042OpenapiJobSubmitResponse.md | 34 + docs/V0042OpenapiKillJobResp.md | 32 + docs/V0042OpenapiKillJobsResp.md | 32 + docs/V0042OpenapiLicensesResp.md | 33 + docs/V0042OpenapiMeta.md | 32 + docs/V0042OpenapiNodesResp.md | 33 + docs/V0042OpenapiPartitionResp.md | 33 + docs/V0042OpenapiPingArrayResp.md | 32 + docs/V0042OpenapiReservationResp.md | 33 + docs/V0042OpenapiResp.md | 31 + docs/V0042OpenapiSharesResp.md | 32 + docs/V0042OpenapiSlurmdbdConfigResp.md | 39 + docs/V0042OpenapiSlurmdbdJobsResp.md | 32 + docs/V0042OpenapiSlurmdbdPingResp.md | 32 + docs/V0042OpenapiSlurmdbdQosRemovedResp.md | 32 + docs/V0042OpenapiSlurmdbdQosResp.md | 32 + docs/V0042OpenapiSlurmdbdStatsResp.md | 32 + docs/V0042OpenapiTresResp.md | 32 + docs/V0042OpenapiUsersAddCondResp.md | 33 + docs/V0042OpenapiUsersAddCondRespStr.md | 32 + docs/V0042OpenapiUsersResp.md | 32 + docs/V0042OpenapiWarning.md | 30 + docs/V0042OpenapiWckeyRemovedResp.md | 32 + docs/V0042OpenapiWckeyResp.md | 32 + docs/V0042PartPrio.md | 30 + docs/V0042PartitionInfo.md | 47 + docs/V0042PartitionInfoDefaults.md | 33 + docs/V0042PartitionInfoMaximums.md | 38 + ...V0042PartitionInfoMaximumsOversubscribe.md | 30 + docs/V0042PartitionInfoPartition.md | 29 + docs/V0042PartitionInfoTimeouts.md | 30 + docs/V0042ProcessExitCodeVerbose.md | 31 + docs/V0042ProcessExitCodeVerboseSignal.md | 30 + docs/V0042Qos.md | 37 + docs/V0042QosLimits.md | 32 + docs/V0042QosLimitsMax.md | 33 + docs/V0042QosLimitsMaxActiveJobs.md | 30 + docs/V0042QosLimitsMaxJobs.md | 31 + docs/V0042QosLimitsMaxJobsActiveJobs.md | 29 + docs/V0042QosLimitsMaxJobsActiveJobsPer.md | 30 + docs/V0042QosLimitsMaxTres.md | 31 + docs/V0042QosLimitsMaxTresMinutes.md | 30 + docs/V0042QosLimitsMaxTresMinutesPer.md | 32 + docs/V0042QosLimitsMaxTresPer.md | 32 + docs/V0042QosLimitsMaxWallClock.md | 29 + docs/V0042QosLimitsMaxWallClockPer.md | 30 + docs/V0042QosLimitsMin.md | 30 + docs/V0042QosLimitsMinTres.md | 29 + docs/V0042QosLimitsMinTresPer.md | 29 + docs/V0042QosPreempt.md | 31 + docs/V0042ReservationCoreSpec.md | 30 + docs/V0042ReservationInfo.md | 47 + docs/V0042ReservationInfoPurgeCompleted.md | 29 + docs/V0042RollupStats.md | 31 + docs/V0042ScheduleExitFields.md | 34 + docs/V0042SharesFloat128Tres.md | 30 + docs/V0042SharesRespMsg.md | 30 + docs/V0042SharesUint64Tres.md | 30 + docs/V0042SlurmdbdPing.md | 32 + docs/V0042StatsMsg.md | 82 + docs/V0042StatsMsgRpcDump.md | 31 + docs/V0042StatsMsgRpcQueue.md | 31 + docs/V0042StatsMsgRpcType.md | 37 + docs/V0042StatsMsgRpcUser.md | 33 + docs/V0042StatsRec.md | 32 + docs/V0042StatsRpc.md | 31 + docs/V0042StatsUser.md | 31 + docs/V0042Step.md | 40 + docs/V0042StepCPU.md | 30 + docs/V0042StepCPURequestedFrequency.md | 30 + docs/V0042StepNodes.md | 31 + docs/V0042StepStatistics.md | 30 + docs/V0042StepStatisticsEnergy.md | 29 + docs/V0042StepTime.md | 35 + docs/V0042StepTres.md | 31 + docs/V0042StepTresConsumed.md | 32 + docs/V0042StepTresRequested.md | 32 + docs/V0042Tres.md | 32 + docs/V0042Uint16NoValStruct.md | 31 + docs/V0042Uint32NoValStruct.md | 31 + docs/V0042Uint64NoValStruct.md | 31 + docs/V0042UpdateNodeMsg.md | 42 + docs/V0042User.md | 36 + docs/V0042UserDefault.md | 30 + docs/V0042UserShort.md | 31 + docs/V0042UsersAddCond.md | 34 + docs/V0042Wckey.md | 34 + docs/V0042WckeyTagStruct.md | 30 + docs/V0043Account.md | 34 + docs/V0043AccountShort.md | 30 + docs/V0043Accounting.md | 33 + docs/V0043AccountsAddCond.md | 31 + docs/V0043AcctGatherEnergy.md | 34 + docs/V0043Assoc.md | 45 + docs/V0043AssocMax.md | 31 + docs/V0043AssocMaxJobs.md | 32 + docs/V0043AssocMaxJobsPer.md | 32 + docs/V0043AssocMaxPer.md | 29 + docs/V0043AssocMaxPerAccount.md | 29 + docs/V0043AssocMaxTres.md | 32 + docs/V0043AssocMaxTresGroup.md | 30 + docs/V0043AssocMaxTresMinutes.md | 30 + docs/V0043AssocMaxTresPer.md | 30 + docs/V0043AssocMin.md | 29 + docs/V0043AssocRecSet.md | 50 + docs/V0043AssocSharesObjWrap.md | 41 + docs/V0043AssocSharesObjWrapFairshare.md | 30 + docs/V0043AssocSharesObjWrapTres.md | 31 + docs/V0043AssocShort.md | 33 + docs/V0043BfExitFields.md | 34 + docs/V0043ClusterRec.md | 36 + docs/V0043ClusterRecAssociations.md | 29 + docs/V0043ControllerPing.md | 34 + docs/V0043Coord.md | 30 + docs/V0043CronEntry.md | 37 + docs/V0043Float64NoValStruct.md | 31 + docs/V0043Instance.md | 34 + docs/V0043Job.md | 75 + docs/V0043JobAllocReq.md | 30 + docs/V0043JobArray.md | 32 + docs/V0043JobArrayResponseMsgEntry.md | 33 + docs/V0043JobDescMsg.md | 143 + docs/V0043JobDescMsgRlimits.md | 38 + docs/V0043JobHet.md | 30 + docs/V0043JobInfo.md | 161 + docs/V0043JobRequired.md | 31 + docs/V0043JobRes.md | 32 + docs/V0043JobResCore.md | 30 + docs/V0043JobResNode.md | 33 + docs/V0043JobResNodes.md | 33 + docs/V0043JobResSocket.md | 30 + docs/V0043JobSubmitReq.md | 31 + docs/V0043JobTime.md | 39 + docs/V0043JobTres.md | 30 + docs/V0043KillJobsMsg.md | 41 + docs/V0043KillJobsRespJob.md | 32 + docs/V0043License.md | 37 + docs/V0043Node.md | 88 + docs/V0043OpenapiAccountsAddCondResp.md | 33 + docs/V0043OpenapiAccountsAddCondRespStr.md | 32 + docs/V0043OpenapiAccountsRemovedResp.md | 32 + docs/V0043OpenapiAccountsResp.md | 32 + docs/V0043OpenapiAssocsRemovedResp.md | 32 + docs/V0043OpenapiAssocsResp.md | 32 + docs/V0043OpenapiClustersRemovedResp.md | 32 + docs/V0043OpenapiClustersResp.md | 32 + docs/V0043OpenapiDiagResp.md | 32 + docs/V0043OpenapiError.md | 32 + docs/V0043OpenapiInstancesResp.md | 32 + docs/V0043OpenapiJobAllocResp.md | 33 + docs/V0043OpenapiJobInfoResp.md | 34 + docs/V0043OpenapiJobPostResponse.md | 32 + docs/V0043OpenapiJobSubmitResponse.md | 34 + docs/V0043OpenapiKillJobResp.md | 32 + docs/V0043OpenapiKillJobsResp.md | 32 + docs/V0043OpenapiLicensesResp.md | 33 + docs/V0043OpenapiMeta.md | 32 + docs/V0043OpenapiNodesResp.md | 33 + docs/V0043OpenapiPartitionResp.md | 33 + docs/V0043OpenapiPingArrayResp.md | 32 + docs/V0043OpenapiReservationModResp.md | 32 + docs/V0043OpenapiReservationResp.md | 33 + docs/V0043OpenapiResp.md | 31 + docs/V0043OpenapiSharesResp.md | 32 + docs/V0043OpenapiSlurmdbdConfigResp.md | 39 + docs/V0043OpenapiSlurmdbdJobsResp.md | 32 + docs/V0043OpenapiSlurmdbdPingResp.md | 32 + docs/V0043OpenapiSlurmdbdQosRemovedResp.md | 32 + docs/V0043OpenapiSlurmdbdQosResp.md | 32 + docs/V0043OpenapiSlurmdbdStatsResp.md | 32 + docs/V0043OpenapiTresResp.md | 32 + docs/V0043OpenapiUsersAddCondResp.md | 33 + docs/V0043OpenapiUsersAddCondRespStr.md | 32 + docs/V0043OpenapiUsersResp.md | 32 + docs/V0043OpenapiWarning.md | 30 + docs/V0043OpenapiWckeyRemovedResp.md | 32 + docs/V0043OpenapiWckeyResp.md | 32 + docs/V0043PartPrio.md | 30 + docs/V0043PartitionInfo.md | 48 + docs/V0043PartitionInfoDefaults.md | 33 + docs/V0043PartitionInfoMaximums.md | 38 + docs/V0043PartitionInfoTimeouts.md | 30 + docs/V0043ProcessExitCodeVerbose.md | 31 + docs/V0043ProcessExitCodeVerboseSignal.md | 30 + docs/V0043Qos.md | 37 + docs/V0043QosLimits.md | 32 + docs/V0043QosLimitsMax.md | 33 + docs/V0043QosLimitsMaxActiveJobs.md | 30 + docs/V0043QosLimitsMaxJobs.md | 31 + docs/V0043QosLimitsMaxJobsActiveJobs.md | 29 + docs/V0043QosLimitsMaxJobsActiveJobsPer.md | 30 + docs/V0043QosLimitsMaxTres.md | 31 + docs/V0043QosLimitsMaxTresMinutes.md | 30 + docs/V0043QosLimitsMaxTresMinutesPer.md | 32 + docs/V0043QosLimitsMaxTresPer.md | 32 + docs/V0043QosLimitsMaxWallClock.md | 29 + docs/V0043QosLimitsMaxWallClockPer.md | 30 + docs/V0043QosLimitsMin.md | 30 + docs/V0043QosLimitsMinTres.md | 29 + docs/V0043QosLimitsMinTresPer.md | 29 + docs/V0043QosPreempt.md | 31 + docs/V0043ReservationCoreSpec.md | 30 + docs/V0043ReservationDescMsg.md | 47 + docs/V0043ReservationInfo.md | 47 + docs/V0043ReservationInfoPurgeCompleted.md | 29 + docs/V0043ReservationModReq.md | 29 + docs/V0043RollupStats.md | 31 + docs/V0043ScheduleExitFields.md | 34 + docs/V0043SharesFloat128Tres.md | 30 + docs/V0043SharesRespMsg.md | 30 + docs/V0043SharesUint64Tres.md | 30 + docs/V0043SlurmdbdPing.md | 32 + docs/V0043StatsMsg.md | 82 + docs/V0043StatsMsgRpcDump.md | 31 + docs/V0043StatsMsgRpcQueue.md | 31 + docs/V0043StatsMsgRpcType.md | 37 + docs/V0043StatsMsgRpcUser.md | 33 + docs/V0043StatsRec.md | 32 + docs/V0043StatsRpc.md | 31 + docs/V0043StatsUser.md | 31 + docs/V0043Step.md | 40 + docs/V0043StepCPU.md | 30 + docs/V0043StepCPURequestedFrequency.md | 30 + docs/V0043StepNodes.md | 31 + docs/V0043StepStatistics.md | 30 + docs/V0043StepStatisticsEnergy.md | 29 + docs/V0043StepTime.md | 36 + docs/V0043StepTres.md | 31 + docs/V0043StepTresConsumed.md | 32 + docs/V0043StepTresRequested.md | 32 + docs/V0043Tres.md | 32 + docs/V0043Uint16NoValStruct.md | 31 + docs/V0043Uint32NoValStruct.md | 31 + docs/V0043Uint64NoValStruct.md | 31 + docs/V0043UpdateNodeMsg.md | 43 + docs/V0043User.md | 36 + docs/V0043UserShort.md | 31 + docs/V0043UsersAddCond.md | 34 + docs/V0043Wckey.md | 34 + docs/V0043WckeyTagStruct.md | 30 + docs/V0044Account.md | 34 + docs/V0044AccountShort.md | 30 + docs/V0044Accounting.md | 33 + docs/V0044AccountingAllocated.md | 29 + docs/V0044AccountsAddCond.md | 31 + docs/V0044AcctGatherEnergy.md | 34 + docs/V0044Assoc.md | 45 + docs/V0044AssocMax.md | 31 + docs/V0044AssocMaxJobs.md | 32 + docs/V0044AssocMaxJobsPer.md | 32 + docs/V0044AssocMaxPer.md | 29 + docs/V0044AssocMaxPerAccount.md | 29 + docs/V0044AssocMaxTres.md | 32 + docs/V0044AssocMaxTresGroup.md | 30 + docs/V0044AssocMaxTresMinutes.md | 30 + docs/V0044AssocMaxTresPer.md | 30 + docs/V0044AssocMin.md | 29 + docs/V0044AssocRecSet.md | 50 + docs/V0044AssocSharesObjWrap.md | 41 + docs/V0044AssocSharesObjWrapFairshare.md | 30 + docs/V0044AssocSharesObjWrapTres.md | 31 + docs/V0044AssocShort.md | 33 + docs/V0044BfExitFields.md | 34 + docs/V0044ClusterRec.md | 36 + docs/V0044ClusterRecAssociations.md | 29 + docs/V0044ControllerPing.md | 34 + docs/V0044Coord.md | 30 + docs/V0044CronEntry.md | 37 + docs/V0044Float64NoValStruct.md | 31 + docs/V0044Instance.md | 34 + docs/V0044InstanceTime.md | 30 + docs/V0044Job.md | 75 + docs/V0044JobAllocReq.md | 30 + docs/V0044JobArray.md | 32 + docs/V0044JobArrayResponseMsgEntry.md | 33 + docs/V0044JobDescMsg.md | 144 + docs/V0044JobDescMsgRlimits.md | 38 + docs/V0044JobHet.md | 30 + docs/V0044JobInfo.md | 163 + docs/V0044JobModify.md | 33 + docs/V0044JobModifyTres.md | 29 + docs/V0044JobRequired.md | 31 + docs/V0044JobRes.md | 32 + docs/V0044JobResCore.md | 30 + docs/V0044JobResNode.md | 33 + docs/V0044JobResNodes.md | 33 + docs/V0044JobResSocket.md | 30 + docs/V0044JobReservation.md | 31 + docs/V0044JobState.md | 30 + docs/V0044JobSubmitReq.md | 31 + docs/V0044JobTime.md | 39 + docs/V0044JobTres.md | 30 + docs/V0044KillJobsMsg.md | 41 + docs/V0044KillJobsRespJob.md | 32 + docs/V0044License.md | 38 + docs/V0044Node.md | 88 + docs/V0044NodeGresLayout.md | 32 + docs/V0044NodeResourceLayout.md | 35 + docs/V0044OpenapiAccountsAddCondResp.md | 33 + docs/V0044OpenapiAccountsAddCondRespStr.md | 32 + docs/V0044OpenapiAccountsRemovedResp.md | 32 + docs/V0044OpenapiAccountsResp.md | 32 + docs/V0044OpenapiAssocsRemovedResp.md | 32 + docs/V0044OpenapiAssocsResp.md | 32 + docs/V0044OpenapiClustersRemovedResp.md | 32 + docs/V0044OpenapiClustersResp.md | 32 + docs/V0044OpenapiCreateNodeReq.md | 32 + docs/V0044OpenapiDiagResp.md | 32 + docs/V0044OpenapiError.md | 32 + docs/V0044OpenapiHostlistReqResp.md | 32 + docs/V0044OpenapiHostnamesReqResp.md | 32 + docs/V0044OpenapiInstancesResp.md | 32 + docs/V0044OpenapiJobAllocResp.md | 33 + docs/V0044OpenapiJobInfoResp.md | 34 + docs/V0044OpenapiJobModifyReq.md | 33 + docs/V0044OpenapiJobModifyResp.md | 32 + docs/V0044OpenapiJobPostResponse.md | 32 + docs/V0044OpenapiJobSubmitResponse.md | 34 + docs/V0044OpenapiKillJobResp.md | 32 + docs/V0044OpenapiKillJobsResp.md | 32 + docs/V0044OpenapiLicensesResp.md | 33 + docs/V0044OpenapiMeta.md | 32 + docs/V0044OpenapiNodesResp.md | 33 + docs/V0044OpenapiPartitionResp.md | 33 + docs/V0044OpenapiPingArrayResp.md | 32 + docs/V0044OpenapiReservationModResp.md | 32 + docs/V0044OpenapiReservationResp.md | 33 + docs/V0044OpenapiResourceLayoutResp.md | 32 + docs/V0044OpenapiResp.md | 31 + docs/V0044OpenapiSharesResp.md | 32 + docs/V0044OpenapiSlurmdbdConfigResp.md | 39 + docs/V0044OpenapiSlurmdbdJobsResp.md | 32 + docs/V0044OpenapiSlurmdbdPingResp.md | 32 + docs/V0044OpenapiSlurmdbdQosRemovedResp.md | 32 + docs/V0044OpenapiSlurmdbdQosResp.md | 32 + docs/V0044OpenapiSlurmdbdStatsResp.md | 32 + docs/V0044OpenapiTresResp.md | 32 + docs/V0044OpenapiUsersAddCondResp.md | 33 + docs/V0044OpenapiUsersAddCondRespStr.md | 32 + docs/V0044OpenapiUsersResp.md | 32 + docs/V0044OpenapiWarning.md | 30 + docs/V0044OpenapiWckeyRemovedResp.md | 32 + docs/V0044OpenapiWckeyResp.md | 32 + docs/V0044PartPrio.md | 30 + docs/V0044PartitionInfo.md | 48 + docs/V0044PartitionInfoAccounts.md | 30 + docs/V0044PartitionInfoCpus.md | 30 + docs/V0044PartitionInfoDefaults.md | 33 + docs/V0044PartitionInfoGroups.md | 29 + docs/V0044PartitionInfoMaximums.md | 38 + docs/V0044PartitionInfoMinimums.md | 29 + docs/V0044PartitionInfoNodes.md | 31 + docs/V0044PartitionInfoPriority.md | 30 + docs/V0044PartitionInfoQos.md | 31 + docs/V0044PartitionInfoTimeouts.md | 30 + docs/V0044PartitionInfoTres.md | 30 + docs/V0044ProcessExitCodeVerbose.md | 31 + docs/V0044ProcessExitCodeVerboseSignal.md | 30 + docs/V0044Qos.md | 37 + docs/V0044QosLimits.md | 32 + docs/V0044QosLimitsMax.md | 33 + docs/V0044QosLimitsMaxActiveJobs.md | 30 + docs/V0044QosLimitsMaxJobs.md | 31 + docs/V0044QosLimitsMaxJobsActiveJobs.md | 29 + docs/V0044QosLimitsMaxJobsActiveJobsPer.md | 30 + docs/V0044QosLimitsMaxTres.md | 31 + docs/V0044QosLimitsMaxTresMinutes.md | 30 + docs/V0044QosLimitsMaxTresMinutesPer.md | 32 + docs/V0044QosLimitsMaxTresPer.md | 32 + docs/V0044QosLimitsMaxWallClock.md | 29 + docs/V0044QosLimitsMaxWallClockPer.md | 30 + docs/V0044QosLimitsMin.md | 30 + docs/V0044QosLimitsMinTres.md | 29 + docs/V0044QosLimitsMinTresPer.md | 29 + docs/V0044QosPreempt.md | 31 + docs/V0044ReservationCoreSpec.md | 30 + docs/V0044ReservationDescMsg.md | 47 + docs/V0044ReservationInfo.md | 47 + docs/V0044ReservationInfoPurgeCompleted.md | 29 + docs/V0044ReservationModReq.md | 29 + docs/V0044RollupStats.md | 31 + docs/V0044RollupStatsDaily.md | 31 + docs/V0044RollupStatsHourly.md | 31 + docs/V0044RollupStatsMonthly.md | 31 + docs/V0044ScheduleExitFields.md | 34 + docs/V0044SharesFloat128Tres.md | 30 + docs/V0044SharesRespMsg.md | 30 + docs/V0044SharesUint64Tres.md | 30 + docs/V0044SlurmStepId.md | 32 + docs/V0044SlurmdbdPing.md | 32 + docs/V0044StatsMsg.md | 82 + docs/V0044StatsMsgRpcDump.md | 31 + docs/V0044StatsMsgRpcQueue.md | 31 + docs/V0044StatsMsgRpcType.md | 37 + docs/V0044StatsMsgRpcUser.md | 33 + docs/V0044StatsRec.md | 32 + docs/V0044StatsRpc.md | 31 + docs/V0044StatsUser.md | 31 + docs/V0044Step.md | 40 + docs/V0044StepCPU.md | 30 + docs/V0044StepCPURequestedFrequency.md | 30 + docs/V0044StepNodes.md | 31 + docs/V0044StepStatistics.md | 30 + docs/V0044StepStatisticsEnergy.md | 29 + docs/V0044StepStep.md | 36 + docs/V0044StepTime.md | 36 + docs/V0044StepTres.md | 31 + docs/V0044StepTresConsumed.md | 32 + docs/V0044StepTresRequested.md | 32 + docs/V0044Tres.md | 32 + docs/V0044Uint16NoValStruct.md | 31 + docs/V0044Uint32NoValStruct.md | 31 + docs/V0044Uint64NoValStruct.md | 31 + docs/V0044UpdateNodeMsg.md | 43 + docs/V0044User.md | 36 + docs/V0044UserDefault.md | 31 + docs/V0044UserShort.md | 32 + docs/V0044UsersAddCond.md | 34 + docs/V0044Wckey.md | 34 + docs/V0044WckeyTagStruct.md | 30 + gen.yaml | 14 + git_push.sh | 57 + openapi_specs.json | 62933 ++++++++++++++++ pyproject.toml | 98 +- requirements.txt | 4 + setup.cfg | 28 +- setup.py | 53 +- slurmrest_python/__init__.py | 1700 + slurmrest_python/api/__init__.py | 7 + slurmrest_python/api/slurm_api.py | 26987 +++++++ slurmrest_python/api/slurmdb_api.py | 52413 +++++++++++++ slurmrest_python/api/util_api.py | 591 + slurmrest_python/api_client.py | 802 + slurmrest_python/api_response.py | 21 + slurmrest_python/configuration.py | 622 + slurmrest_python/exceptions.py | 217 + slurmrest_python/models/__init__.py | 841 + .../models/v0041_job_alloc_req.py | 101 + slurmrest_python/models/v0041_job_desc_msg.py | 477 + .../models/v0041_job_desc_msg_begin_time.py | 92 + .../models/v0041_job_desc_msg_crontab.py | 119 + .../models/v0041_job_desc_msg_crontab_line.py | 90 + ...41_job_desc_msg_distribution_plane_size.py | 92 + .../v0041_job_desc_msg_kill_warning_delay.py | 92 + .../v0041_job_desc_msg_memory_per_cpu.py | 92 + .../models/v0041_job_desc_msg_priority.py | 92 + .../v0041_job_desc_msg_required_switches.py | 92 + .../models/v0041_job_desc_msg_rlimits.py | 146 + .../models/v0041_job_desc_msg_rlimits_as.py | 92 + .../models/v0041_job_desc_msg_rlimits_core.py | 92 + .../models/v0041_job_desc_msg_rlimits_cpu.py | 92 + .../models/v0041_job_desc_msg_rlimits_data.py | 92 + .../v0041_job_desc_msg_rlimits_fsize.py | 92 + .../v0041_job_desc_msg_rlimits_memlock.py | 92 + .../v0041_job_desc_msg_rlimits_nofile.py | 92 + .../v0041_job_desc_msg_rlimits_nproc.py | 92 + .../models/v0041_job_desc_msg_rlimits_rss.py | 92 + .../v0041_job_desc_msg_rlimits_stack.py | 92 + .../models/v0041_job_desc_msg_segment_size.py | 92 + .../models/v0041_job_desc_msg_time_limit.py | 92 + .../models/v0041_job_desc_msg_time_minimum.py | 92 + .../models/v0041_job_submit_req.py | 103 + .../models/v0041_kill_jobs_msg.py | 134 + .../v0041_openapi_accounts_add_cond_resp.py | 124 + ..._openapi_accounts_add_cond_resp_account.py | 90 + ...nts_add_cond_resp_association_condition.py | 96 + ...0041_openapi_accounts_add_cond_resp_str.py | 114 + .../v0041_openapi_accounts_removed_resp.py | 114 + .../models/v0041_openapi_accounts_resp.py | 122 + .../v0041_openapi_assocs_removed_resp.py | 114 + .../models/v0041_openapi_assocs_resp.py | 122 + .../v0041_openapi_clusters_removed_resp.py | 114 + .../models/v0041_openapi_clusters_resp.py | 122 + .../models/v0041_openapi_diag_resp.py | 118 + .../v0041_openapi_diag_resp_statistics.py | 250 + ...41_openapi_diag_resp_statistics_bf_exit.py | 98 + ...diag_resp_statistics_bf_when_last_cycle.py | 92 + ...napi_diag_resp_statistics_job_states_ts.py | 92 + ...atistics_pending_rpcs_by_hostlist_inner.py | 92 + ...diag_resp_statistics_pending_rpcs_inner.py | 92 + ...1_openapi_diag_resp_statistics_req_time.py | 92 + ...api_diag_resp_statistics_req_time_start.py | 92 + ...p_statistics_rpcs_by_message_type_inner.py | 108 + ...rpcs_by_message_type_inner_average_time.py | 92 + ...diag_resp_statistics_rpcs_by_user_inner.py | 100 + ...napi_diag_resp_statistics_schedule_exit.py | 98 + .../models/v0041_openapi_instances_resp.py | 122 + .../models/v0041_openapi_job_alloc_resp.py | 116 + .../models/v0041_openapi_job_info_resp.py | 134 + .../v0041_openapi_job_info_resp_jobs_inner.py | 611 + ...pi_job_info_resp_jobs_inner_accrue_time.py | 92 + ...i_job_info_resp_jobs_inner_array_job_id.py | 92 + ...ob_info_resp_jobs_inner_array_max_tasks.py | 92 + ..._job_info_resp_jobs_inner_array_task_id.py | 92 + ..._job_info_resp_jobs_inner_billable_tres.py | 92 + ...b_info_resp_jobs_inner_cores_per_socket.py | 92 + ..._resp_jobs_inner_cpu_frequency_governor.py | 92 + ...o_resp_jobs_inner_cpu_frequency_maximum.py | 92 + ...o_resp_jobs_inner_cpu_frequency_minimum.py | 92 + ...1_openapi_job_info_resp_jobs_inner_cpus.py | 92 + ..._job_info_resp_jobs_inner_cpus_per_task.py | 92 + ...enapi_job_info_resp_jobs_inner_deadline.py | 92 + ...api_job_info_resp_jobs_inner_delay_boot.py | 92 + ..._info_resp_jobs_inner_derived_exit_code.py | 111 + ...obs_inner_derived_exit_code_return_code.py | 92 + ...esp_jobs_inner_derived_exit_code_signal.py | 94 + ..._jobs_inner_derived_exit_code_signal_id.py | 92 + ..._job_info_resp_jobs_inner_eligible_time.py | 92 + ...enapi_job_info_resp_jobs_inner_end_time.py | 92 + ...napi_job_info_resp_jobs_inner_exit_code.py | 111 + ...api_job_info_resp_jobs_inner_het_job_id.py | 92 + ...job_info_resp_jobs_inner_het_job_offset.py | 92 + ..._job_info_resp_jobs_inner_job_resources.py | 110 + ...nfo_resp_jobs_inner_job_resources_nodes.py | 115 + ...er_job_resources_nodes_allocation_inner.py | 112 + ...b_resources_nodes_allocation_inner_cpus.py | 90 + ...resources_nodes_allocation_inner_memory.py | 90 + ...es_nodes_allocation_inner_sockets_inner.py | 98 + ...ocation_inner_sockets_inner_cores_inner.py | 98 + ...bs_inner_job_resources_threads_per_core.py | 92 + ...o_resp_jobs_inner_last_sched_evaluation.py | 92 + ...enapi_job_info_resp_jobs_inner_max_cpus.py | 92 + ...napi_job_info_resp_jobs_inner_max_nodes.py | 92 + ...ob_info_resp_jobs_inner_memory_per_node.py | 92 + ...o_resp_jobs_inner_minimum_cpus_per_node.py | 92 + ...sp_jobs_inner_minimum_tmp_disk_per_node.py | 92 + ...api_job_info_resp_jobs_inner_node_count.py | 92 + ..._openapi_job_info_resp_jobs_inner_power.py | 88 + ...i_job_info_resp_jobs_inner_pre_sus_time.py | 92 + ...i_job_info_resp_jobs_inner_preempt_time.py | 92 + ...b_info_resp_jobs_inner_preemptable_time.py | 92 + ...pi_job_info_resp_jobs_inner_resize_time.py | 92 + ...b_info_resp_jobs_inner_sockets_per_node.py | 92 + ...api_job_info_resp_jobs_inner_start_time.py | 92 + ...pi_job_info_resp_jobs_inner_submit_time.py | 92 + ...i_job_info_resp_jobs_inner_suspend_time.py | 92 + ..._openapi_job_info_resp_jobs_inner_tasks.py | 92 + ...ob_info_resp_jobs_inner_tasks_per_board.py | 92 + ...job_info_resp_jobs_inner_tasks_per_core.py | 92 + ...job_info_resp_jobs_inner_tasks_per_node.py | 92 + ...b_info_resp_jobs_inner_tasks_per_socket.py | 92 + ...job_info_resp_jobs_inner_tasks_per_tres.py | 92 + ...b_info_resp_jobs_inner_threads_per_core.py | 92 + ...041_openapi_job_info_resp_last_backfill.py | 92 + ...v0041_openapi_job_info_resp_last_update.py | 92 + .../models/v0041_openapi_job_post_response.py | 128 + ...openapi_job_post_response_results_inner.py | 96 + .../v0041_openapi_job_submit_response.py | 124 + ...0041_openapi_job_submit_response_result.py | 96 + .../models/v0041_openapi_kill_jobs_resp.py | 122 + ...041_openapi_kill_jobs_resp_status_inner.py | 106 + ...enapi_kill_jobs_resp_status_inner_error.py | 92 + ..._kill_jobs_resp_status_inner_federation.py | 88 + ...napi_kill_jobs_resp_status_inner_job_id.py | 92 + .../models/v0041_openapi_licenses_resp.py | 128 + ...v0041_openapi_licenses_resp_last_update.py | 92 + ...41_openapi_licenses_resp_licenses_inner.py | 104 + .../models/v0041_openapi_nodes_resp.py | 128 + .../v0041_openapi_nodes_resp_last_update.py | 92 + .../v0041_openapi_nodes_resp_nodes_inner.py | 250 + ...penapi_nodes_resp_nodes_inner_boot_time.py | 92 + ...1_openapi_nodes_resp_nodes_inner_energy.py | 102 + ...s_resp_nodes_inner_energy_current_watts.py | 92 + ...openapi_nodes_resp_nodes_inner_free_mem.py | 92 + ...penapi_nodes_resp_nodes_inner_last_busy.py | 92 + ...odes_resp_nodes_inner_reason_changed_at.py | 92 + ...api_nodes_resp_nodes_inner_resume_after.py | 92 + ...odes_resp_nodes_inner_slurmd_start_time.py | 92 + .../models/v0041_openapi_partition_resp.py | 128 + ...0041_openapi_partition_resp_last_update.py | 92 + ...openapi_partition_resp_partitions_inner.py | 187 + ...artition_resp_partitions_inner_accounts.py | 90 + ...pi_partition_resp_partitions_inner_cpus.py | 90 + ...artition_resp_partitions_inner_defaults.py | 108 + ...inner_defaults_partition_memory_per_cpu.py | 92 + ...nner_defaults_partition_memory_per_node.py | 92 + ...ion_resp_partitions_inner_defaults_time.py | 92 + ..._partition_resp_partitions_inner_groups.py | 88 + ...artition_resp_partitions_inner_maximums.py | 138 + ...partitions_inner_maximums_cpus_per_node.py | 92 + ...rtitions_inner_maximums_cpus_per_socket.py | 92 + ...on_resp_partitions_inner_maximums_nodes.py | 92 + ...rtitions_inner_maximums_over_time_limit.py | 92 + ...partitions_inner_maximums_oversubscribe.py | 101 + ...inner_maximums_partition_memory_per_cpu.py | 92 + ...nner_maximums_partition_memory_per_node.py | 92 + ...ion_resp_partitions_inner_maximums_time.py | 92 + ...artition_resp_partitions_inner_minimums.py | 88 + ...i_partition_resp_partitions_inner_nodes.py | 92 + ...rtition_resp_partitions_inner_partition.py | 99 + ...artition_resp_partitions_inner_priority.py | 90 + ...api_partition_resp_partitions_inner_qos.py | 92 + ...tion_resp_partitions_inner_suspend_time.py | 92 + ...artition_resp_partitions_inner_timeouts.py | 98 + ...n_resp_partitions_inner_timeouts_resume.py | 92 + ..._resp_partitions_inner_timeouts_suspend.py | 92 + ...pi_partition_resp_partitions_inner_tres.py | 90 + .../models/v0041_openapi_ping_array_resp.py | 122 + ...041_openapi_ping_array_resp_pings_inner.py | 94 + .../models/v0041_openapi_reservation_resp.py | 128 + ...41_openapi_reservation_resp_last_update.py | 92 + ...api_reservation_resp_reservations_inner.py | 159 + ...ations_inner_core_specializations_inner.py | 90 + ...vation_resp_reservations_inner_end_time.py | 92 + ...resp_reservations_inner_purge_completed.py | 92 + ...reservations_inner_purge_completed_time.py | 92 + ...tion_resp_reservations_inner_start_time.py | 92 + ...servation_resp_reservations_inner_watts.py | 92 + slurmrest_python/models/v0041_openapi_resp.py | 112 + .../models/v0041_openapi_shares_resp.py | 118 + .../v0041_openapi_shares_resp_errors_inner.py | 94 + .../models/v0041_openapi_shares_resp_meta.py | 106 + .../v0041_openapi_shares_resp_meta_client.py | 92 + .../v0041_openapi_shares_resp_meta_plugin.py | 94 + .../v0041_openapi_shares_resp_meta_slurm.py | 96 + ..._openapi_shares_resp_meta_slurm_version.py | 92 + .../v0041_openapi_shares_resp_shares.py | 98 + ...openapi_shares_resp_shares_shares_inner.py | 143 + ...ares_resp_shares_shares_inner_fairshare.py | 90 + ..._shares_resp_shares_shares_inner_shares.py | 92 + ...p_shares_shares_inner_shares_normalized.py | 92 + ...pi_shares_resp_shares_shares_inner_tres.py | 115 + ...res_shares_inner_tres_run_seconds_inner.py | 94 + ...ares_inner_tres_run_seconds_inner_value.py | 92 + ...sp_shares_shares_inner_tres_usage_inner.py | 90 + ...sp_shares_shares_inner_usage_normalized.py | 92 + ...0041_openapi_shares_resp_warnings_inner.py | 90 + .../v0041_openapi_slurmdbd_config_resp.py | 192 + ...api_slurmdbd_config_resp_accounts_inner.py | 125 + ..._resp_accounts_inner_associations_inner.py | 96 + ..._resp_accounts_inner_coordinators_inner.py | 90 + ...slurmdbd_config_resp_associations_inner.py | 155 + ..._config_resp_associations_inner_default.py | 88 + ...mdbd_config_resp_associations_inner_max.py | 104 + ...config_resp_associations_inner_max_jobs.py | 110 + ...sp_associations_inner_max_jobs_accruing.py | 92 + ...resp_associations_inner_max_jobs_active.py | 92 + ...ig_resp_associations_inner_max_jobs_per.py | 110 + ...sociations_inner_max_jobs_per_submitted.py | 92 + ..._resp_associations_inner_max_jobs_total.py | 92 + ..._config_resp_associations_inner_max_per.py | 92 + ...resp_associations_inner_max_per_account.py | 92 + ...config_resp_associations_inner_max_tres.py | 114 + ..._resp_associations_inner_max_tres_group.py | 105 + ...esp_associations_inner_max_tres_minutes.py | 102 + ...associations_inner_max_tres_minutes_per.py | 96 + ...ig_resp_associations_inner_max_tres_per.py | 105 + ...mdbd_config_resp_associations_inner_min.py | 92 + ...config_resp_associations_inner_priority.py | 92 + ...api_slurmdbd_config_resp_clusters_inner.py | 129 + ...config_resp_clusters_inner_associations.py | 92 + ...g_resp_clusters_inner_associations_root.py | 96 + ...d_config_resp_clusters_inner_controller.py | 90 + ...pi_slurmdbd_config_resp_instances_inner.py | 102 + ...urmdbd_config_resp_instances_inner_time.py | 90 + ..._openapi_slurmdbd_config_resp_qos_inner.py | 135 + ...i_slurmdbd_config_resp_qos_inner_limits.py | 106 + ...dbd_config_resp_qos_inner_limits_factor.py | 92 + ...urmdbd_config_resp_qos_inner_limits_max.py | 116 + ...nfig_resp_qos_inner_limits_max_accruing.py | 92 + ..._resp_qos_inner_limits_max_accruing_per.py | 98 + ...s_inner_limits_max_accruing_per_account.py | 92 + ..._qos_inner_limits_max_accruing_per_user.py | 92 + ...g_resp_qos_inner_limits_max_active_jobs.py | 98 + ...s_inner_limits_max_active_jobs_accruing.py | 92 + ..._qos_inner_limits_max_active_jobs_count.py | 92 + ...d_config_resp_qos_inner_limits_max_jobs.py | 98 + ...p_qos_inner_limits_max_jobs_active_jobs.py | 92 + ...s_inner_limits_max_jobs_active_jobs_per.py | 98 + ...limits_max_jobs_active_jobs_per_account.py | 92 + ...er_limits_max_jobs_active_jobs_per_user.py | 92 + ...nfig_resp_qos_inner_limits_max_jobs_per.py | 98 + ...p_qos_inner_limits_max_jobs_per_account.py | 92 + ...resp_qos_inner_limits_max_jobs_per_user.py | 92 + ...d_config_resp_qos_inner_limits_max_tres.py | 108 + ..._resp_qos_inner_limits_max_tres_minutes.py | 92 + ...p_qos_inner_limits_max_tres_minutes_per.py | 123 + ...nfig_resp_qos_inner_limits_max_tres_per.py | 123 + ...ig_resp_qos_inner_limits_max_wall_clock.py | 92 + ...esp_qos_inner_limits_max_wall_clock_per.py | 98 + ...qos_inner_limits_max_wall_clock_per_job.py | 92 + ...qos_inner_limits_max_wall_clock_per_qos.py | 92 + ...urmdbd_config_resp_qos_inner_limits_min.py | 98 + ...qos_inner_limits_min_priority_threshold.py | 92 + ...d_config_resp_qos_inner_limits_min_tres.py | 92 + ...nfig_resp_qos_inner_limits_min_tres_per.py | 96 + ..._slurmdbd_config_resp_qos_inner_preempt.py | 107 + ...nfig_resp_qos_inner_preempt_exempt_time.py | 92 + ...slurmdbd_config_resp_qos_inner_priority.py | 92 + ...mdbd_config_resp_qos_inner_usage_factor.py | 92 + ...d_config_resp_qos_inner_usage_threshold.py | 92 + ...penapi_slurmdbd_config_resp_users_inner.py | 152 + ...lurmdbd_config_resp_users_inner_default.py | 90 + ...bd_config_resp_users_inner_wckeys_inner.py | 117 + ...ers_inner_wckeys_inner_accounting_inner.py | 102 + ...wckeys_inner_accounting_inner_allocated.py | 88 + ...nner_wckeys_inner_accounting_inner_tres.py | 94 + .../v0041_openapi_slurmdbd_jobs_resp.py | 122 + ...1_openapi_slurmdbd_jobs_resp_jobs_inner.py | 249 + ...api_slurmdbd_jobs_resp_jobs_inner_array.py | 102 + ...rmdbd_jobs_resp_jobs_inner_array_limits.py | 92 + ...d_jobs_resp_jobs_inner_array_limits_max.py | 92 + ...esp_jobs_inner_array_limits_max_running.py | 88 + ...urmdbd_jobs_resp_jobs_inner_association.py | 96 + ...i_slurmdbd_jobs_resp_jobs_inner_comment.py | 92 + ...slurmdbd_jobs_resp_jobs_inner_exit_code.py | 111 + ...enapi_slurmdbd_jobs_resp_jobs_inner_het.py | 94 + ...enapi_slurmdbd_jobs_resp_jobs_inner_mcs.py | 88 + ..._slurmdbd_jobs_resp_jobs_inner_required.py | 100 + ...urmdbd_jobs_resp_jobs_inner_reservation.py | 90 + ...api_slurmdbd_jobs_resp_jobs_inner_state.py | 101 + ...urmdbd_jobs_resp_jobs_inner_steps_inner.py | 157 + ...bd_jobs_resp_jobs_inner_steps_inner_cpu.py | 94 + ...ner_steps_inner_cpu_requested_frequency.py | 98 + ...steps_inner_cpu_requested_frequency_max.py | 92 + ...steps_inner_cpu_requested_frequency_min.py | 92 + ..._jobs_resp_jobs_inner_steps_inner_nodes.py | 92 + ..._resp_jobs_inner_steps_inner_statistics.py | 98 + ...p_jobs_inner_steps_inner_statistics_cpu.py | 88 + ...obs_inner_steps_inner_statistics_energy.py | 92 + ..._steps_inner_statistics_energy_consumed.py | 92 + ...d_jobs_resp_jobs_inner_steps_inner_step.py | 90 + ...d_jobs_resp_jobs_inner_steps_inner_task.py | 88 + ..._jobs_resp_jobs_inner_steps_inner_tasks.py | 88 + ...d_jobs_resp_jobs_inner_steps_inner_time.py | 120 + ...bs_resp_jobs_inner_steps_inner_time_end.py | 92 + ..._resp_jobs_inner_steps_inner_time_start.py | 92 + ...resp_jobs_inner_steps_inner_time_system.py | 90 + ..._resp_jobs_inner_steps_inner_time_total.py | 90 + ...s_resp_jobs_inner_steps_inner_time_user.py | 90 + ...d_jobs_resp_jobs_inner_steps_inner_tres.py | 108 + ...sp_jobs_inner_steps_inner_tres_consumed.py | 123 + ...p_jobs_inner_steps_inner_tres_requested.py | 123 + ...er_steps_inner_tres_requested_max_inner.py | 94 + ...napi_slurmdbd_jobs_resp_jobs_inner_time.py | 128 + ...rmdbd_jobs_resp_jobs_inner_time_planned.py | 92 + ...urmdbd_jobs_resp_jobs_inner_time_system.py | 90 + ...lurmdbd_jobs_resp_jobs_inner_time_total.py | 90 + ...slurmdbd_jobs_resp_jobs_inner_time_user.py | 90 + ...napi_slurmdbd_jobs_resp_jobs_inner_tres.py | 105 + ...api_slurmdbd_jobs_resp_jobs_inner_wckey.py | 98 + ...v0041_openapi_slurmdbd_qos_removed_resp.py | 114 + .../models/v0041_openapi_slurmdbd_qos_resp.py | 122 + .../v0041_openapi_slurmdbd_stats_resp.py | 118 + ..._openapi_slurmdbd_stats_resp_statistics.py | 114 + ..._slurmdbd_stats_resp_statistics_rollups.py | 104 + ...dbd_stats_resp_statistics_rollups_daily.py | 96 + ..._resp_statistics_rollups_daily_duration.py | 92 + ...bd_stats_resp_statistics_rollups_hourly.py | 96 + ...resp_statistics_rollups_hourly_duration.py | 92 + ...d_stats_resp_statistics_rollups_monthly.py | 96 + ...esp_statistics_rollups_monthly_duration.py | 92 + ...urmdbd_stats_resp_statistics_rpcs_inner.py | 96 + ...d_stats_resp_statistics_rpcs_inner_time.py | 90 + ...rmdbd_stats_resp_statistics_users_inner.py | 96 + .../models/v0041_openapi_tres_resp.py | 122 + .../v0041_openapi_users_add_cond_resp.py | 124 + ...ers_add_cond_resp_association_condition.py | 102 + ..._resp_association_condition_association.py | 220 + ...sociation_condition_association_grpjobs.py | 92 + ...ion_condition_association_grpjobsaccrue.py | 92 + ...ion_condition_association_grpsubmitjobs.py | 92 + ...sociation_condition_association_grpwall.py | 92 + ...sociation_condition_association_maxjobs.py | 92 + ...ion_condition_association_maxjobsaccrue.py | 92 + ...ion_condition_association_maxsubmitjobs.py | 92 + ...ition_association_maxwalldurationperjob.py | 92 + ...ion_condition_association_minpriothresh.py | 92 + .../v0041_openapi_users_add_cond_resp_str.py | 114 + .../v0041_openapi_users_add_cond_resp_user.py | 103 + .../models/v0041_openapi_users_resp.py | 122 + .../v0041_openapi_wckey_removed_resp.py | 114 + .../models/v0041_openapi_wckey_resp.py | 122 + .../models/v0041_update_node_msg.py | 133 + .../v0041_update_node_msg_resume_after.py | 92 + .../models/v0041_update_node_msg_weight.py | 92 + slurmrest_python/models/v0042_account.py | 125 + .../models/v0042_account_short.py | 90 + slurmrest_python/models/v0042_accounting.py | 104 + .../models/v0042_accounts_add_cond.py | 96 + .../models/v0042_acct_gather_energy.py | 102 + slurmrest_python/models/v0042_assoc.py | 155 + slurmrest_python/models/v0042_assoc_max.py | 104 + .../models/v0042_assoc_max_jobs.py | 108 + .../models/v0042_assoc_max_jobs_per.py | 107 + .../models/v0042_assoc_max_per.py | 92 + .../models/v0042_assoc_max_per_account.py | 92 + .../models/v0042_assoc_max_tres.py | 114 + .../models/v0042_assoc_max_tres_group.py | 105 + .../models/v0042_assoc_max_tres_minutes.py | 102 + .../models/v0042_assoc_max_tres_per.py | 105 + slurmrest_python/models/v0042_assoc_min.py | 92 + .../models/v0042_assoc_rec_set.py | 211 + .../models/v0042_assoc_shares_obj_wrap.py | 145 + .../v0042_assoc_shares_obj_wrap_fairshare.py | 97 + .../v0042_assoc_shares_obj_wrap_tres.py | 115 + slurmrest_python/models/v0042_assoc_short.py | 96 + .../models/v0042_bf_exit_fields.py | 98 + slurmrest_python/models/v0042_cluster_rec.py | 129 + .../models/v0042_cluster_rec_associations.py | 92 + .../models/v0042_controller_ping.py | 98 + slurmrest_python/models/v0042_coord.py | 90 + slurmrest_python/models/v0042_cron_entry.py | 119 + .../models/v0042_float64_no_val_struct.py | 92 + slurmrest_python/models/v0042_instance.py | 102 + slurmrest_python/models/v0042_job.py | 252 + .../models/v0042_job_alloc_req.py | 101 + slurmrest_python/models/v0042_job_array.py | 102 + .../v0042_job_array_response_msg_entry.py | 96 + slurmrest_python/models/v0042_job_desc_msg.py | 456 + .../models/v0042_job_desc_msg_rlimits.py | 137 + slurmrest_python/models/v0042_job_het.py | 94 + slurmrest_python/models/v0042_job_info.py | 553 + slurmrest_python/models/v0042_job_required.py | 99 + slurmrest_python/models/v0042_job_res.py | 110 + slurmrest_python/models/v0042_job_res_core.py | 98 + slurmrest_python/models/v0042_job_res_node.py | 112 + .../models/v0042_job_res_nodes.py | 115 + .../models/v0042_job_res_socket.py | 98 + slurmrest_python/models/v0042_job_state.py | 101 + .../models/v0042_job_submit_req.py | 103 + slurmrest_python/models/v0042_job_time.py | 128 + slurmrest_python/models/v0042_job_tres.py | 105 + .../models/v0042_kill_jobs_msg.py | 134 + .../models/v0042_kill_jobs_resp_job.py | 106 + slurmrest_python/models/v0042_license.py | 104 + slurmrest_python/models/v0042_node.py | 245 + .../v0042_openapi_accounts_add_cond_resp.py | 124 + ...0042_openapi_accounts_add_cond_resp_str.py | 114 + .../v0042_openapi_accounts_removed_resp.py | 114 + .../models/v0042_openapi_accounts_resp.py | 122 + .../v0042_openapi_assocs_removed_resp.py | 114 + .../models/v0042_openapi_assocs_resp.py | 122 + .../v0042_openapi_clusters_removed_resp.py | 114 + .../models/v0042_openapi_clusters_resp.py | 122 + .../models/v0042_openapi_diag_resp.py | 118 + .../models/v0042_openapi_error.py | 94 + .../models/v0042_openapi_instances_resp.py | 122 + .../models/v0042_openapi_job_alloc_resp.py | 116 + .../models/v0042_openapi_job_info_resp.py | 133 + .../models/v0042_openapi_job_post_response.py | 122 + .../v0042_openapi_job_submit_response.py | 118 + .../models/v0042_openapi_kill_job_resp.py | 122 + .../models/v0042_openapi_kill_jobs_resp.py | 122 + .../models/v0042_openapi_licenses_resp.py | 128 + slurmrest_python/models/v0042_openapi_meta.py | 106 + .../models/v0042_openapi_nodes_resp.py | 128 + .../models/v0042_openapi_partition_resp.py | 128 + .../models/v0042_openapi_ping_array_resp.py | 122 + .../models/v0042_openapi_reservation_resp.py | 128 + slurmrest_python/models/v0042_openapi_resp.py | 112 + .../models/v0042_openapi_shares_resp.py | 118 + .../v0042_openapi_slurmdbd_config_resp.py | 192 + .../v0042_openapi_slurmdbd_jobs_resp.py | 122 + .../v0042_openapi_slurmdbd_ping_resp.py | 122 + ...v0042_openapi_slurmdbd_qos_removed_resp.py | 114 + .../models/v0042_openapi_slurmdbd_qos_resp.py | 122 + .../v0042_openapi_slurmdbd_stats_resp.py | 118 + .../models/v0042_openapi_tres_resp.py | 122 + .../v0042_openapi_users_add_cond_resp.py | 124 + .../v0042_openapi_users_add_cond_resp_str.py | 114 + .../models/v0042_openapi_users_resp.py | 122 + .../models/v0042_openapi_warning.py | 90 + .../v0042_openapi_wckey_removed_resp.py | 114 + .../models/v0042_openapi_wckey_resp.py | 122 + slurmrest_python/models/v0042_part_prio.py | 90 + .../models/v0042_partition_info.py | 187 + .../models/v0042_partition_info_defaults.py | 107 + .../models/v0042_partition_info_maximums.py | 134 + ...2_partition_info_maximums_oversubscribe.py | 101 + .../models/v0042_partition_info_partition.py | 99 + .../models/v0042_partition_info_timeouts.py | 97 + .../models/v0042_process_exit_code_verbose.py | 111 + .../v0042_process_exit_code_verbose_signal.py | 94 + slurmrest_python/models/v0042_qos.py | 134 + slurmrest_python/models/v0042_qos_limits.py | 106 + .../models/v0042_qos_limits_max.py | 116 + .../v0042_qos_limits_max_active_jobs.py | 97 + .../models/v0042_qos_limits_max_jobs.py | 104 + .../v0042_qos_limits_max_jobs_active_jobs.py | 92 + ...042_qos_limits_max_jobs_active_jobs_per.py | 97 + .../models/v0042_qos_limits_max_tres.py | 108 + .../v0042_qos_limits_max_tres_minutes.py | 102 + .../v0042_qos_limits_max_tres_minutes_per.py | 123 + .../models/v0042_qos_limits_max_tres_per.py | 123 + .../models/v0042_qos_limits_max_wall_clock.py | 92 + .../v0042_qos_limits_max_wall_clock_per.py | 97 + .../models/v0042_qos_limits_min.py | 98 + .../models/v0042_qos_limits_min_tres.py | 92 + .../models/v0042_qos_limits_min_tres_per.py | 96 + slurmrest_python/models/v0042_qos_preempt.py | 107 + .../models/v0042_reservation_core_spec.py | 90 + .../models/v0042_reservation_info.py | 158 + .../v0042_reservation_info_purge_completed.py | 92 + slurmrest_python/models/v0042_rollup_stats.py | 104 + .../models/v0042_schedule_exit_fields.py | 98 + .../models/v0042_shares_float128_tres.py | 90 + .../models/v0042_shares_resp_msg.py | 98 + .../models/v0042_shares_uint64_tres.py | 94 + .../models/v0042_slurmdbd_ping.py | 94 + slurmrest_python/models/v0042_stats_msg.py | 247 + .../models/v0042_stats_msg_rpc_dump.py | 92 + .../models/v0042_stats_msg_rpc_queue.py | 92 + .../models/v0042_stats_msg_rpc_type.py | 108 + .../models/v0042_stats_msg_rpc_user.py | 100 + slurmrest_python/models/v0042_stats_rec.py | 114 + slurmrest_python/models/v0042_stats_rpc.py | 96 + slurmrest_python/models/v0042_stats_user.py | 96 + slurmrest_python/models/v0042_step.py | 157 + slurmrest_python/models/v0042_step_cpu.py | 94 + .../v0042_step_cpu_requested_frequency.py | 97 + slurmrest_python/models/v0042_step_nodes.py | 92 + .../models/v0042_step_statistics.py | 98 + .../models/v0042_step_statistics_energy.py | 92 + slurmrest_python/models/v0042_step_time.py | 119 + slurmrest_python/models/v0042_step_tres.py | 108 + .../models/v0042_step_tres_consumed.py | 123 + .../models/v0042_step_tres_requested.py | 123 + slurmrest_python/models/v0042_tres.py | 94 + .../models/v0042_uint16_no_val_struct.py | 92 + .../models/v0042_uint32_no_val_struct.py | 92 + .../models/v0042_uint64_no_val_struct.py | 92 + .../models/v0042_update_node_msg.py | 132 + slurmrest_python/models/v0042_user.py | 152 + slurmrest_python/models/v0042_user_default.py | 90 + slurmrest_python/models/v0042_user_short.py | 103 + .../models/v0042_users_add_cond.py | 102 + slurmrest_python/models/v0042_wckey.py | 117 + .../models/v0042_wckey_tag_struct.py | 98 + slurmrest_python/models/v0043_account.py | 125 + .../models/v0043_account_short.py | 90 + slurmrest_python/models/v0043_accounting.py | 104 + .../models/v0043_accounts_add_cond.py | 96 + .../models/v0043_acct_gather_energy.py | 102 + slurmrest_python/models/v0043_assoc.py | 155 + slurmrest_python/models/v0043_assoc_max.py | 104 + .../models/v0043_assoc_max_jobs.py | 108 + .../models/v0043_assoc_max_jobs_per.py | 107 + .../models/v0043_assoc_max_per.py | 92 + .../models/v0043_assoc_max_per_account.py | 92 + .../models/v0043_assoc_max_tres.py | 114 + .../models/v0043_assoc_max_tres_group.py | 105 + .../models/v0043_assoc_max_tres_minutes.py | 102 + .../models/v0043_assoc_max_tres_per.py | 105 + slurmrest_python/models/v0043_assoc_min.py | 92 + .../models/v0043_assoc_rec_set.py | 211 + .../models/v0043_assoc_shares_obj_wrap.py | 145 + .../v0043_assoc_shares_obj_wrap_fairshare.py | 97 + .../v0043_assoc_shares_obj_wrap_tres.py | 115 + slurmrest_python/models/v0043_assoc_short.py | 96 + .../models/v0043_bf_exit_fields.py | 98 + slurmrest_python/models/v0043_cluster_rec.py | 129 + .../models/v0043_cluster_rec_associations.py | 92 + .../models/v0043_controller_ping.py | 98 + slurmrest_python/models/v0043_coord.py | 90 + slurmrest_python/models/v0043_cron_entry.py | 119 + .../models/v0043_float64_no_val_struct.py | 92 + slurmrest_python/models/v0043_instance.py | 102 + slurmrest_python/models/v0043_job.py | 254 + .../models/v0043_job_alloc_req.py | 101 + slurmrest_python/models/v0043_job_array.py | 102 + .../v0043_job_array_response_msg_entry.py | 96 + slurmrest_python/models/v0043_job_desc_msg.py | 456 + .../models/v0043_job_desc_msg_rlimits.py | 137 + slurmrest_python/models/v0043_job_het.py | 94 + slurmrest_python/models/v0043_job_info.py | 563 + slurmrest_python/models/v0043_job_required.py | 99 + slurmrest_python/models/v0043_job_res.py | 110 + slurmrest_python/models/v0043_job_res_core.py | 98 + slurmrest_python/models/v0043_job_res_node.py | 112 + .../models/v0043_job_res_nodes.py | 115 + .../models/v0043_job_res_socket.py | 98 + .../models/v0043_job_submit_req.py | 103 + slurmrest_python/models/v0043_job_time.py | 128 + slurmrest_python/models/v0043_job_tres.py | 105 + .../models/v0043_kill_jobs_msg.py | 134 + .../models/v0043_kill_jobs_resp_job.py | 106 + slurmrest_python/models/v0043_license.py | 104 + slurmrest_python/models/v0043_node.py | 265 + .../v0043_openapi_accounts_add_cond_resp.py | 124 + ...0043_openapi_accounts_add_cond_resp_str.py | 114 + .../v0043_openapi_accounts_removed_resp.py | 114 + .../models/v0043_openapi_accounts_resp.py | 122 + .../v0043_openapi_assocs_removed_resp.py | 114 + .../models/v0043_openapi_assocs_resp.py | 122 + .../v0043_openapi_clusters_removed_resp.py | 114 + .../models/v0043_openapi_clusters_resp.py | 122 + .../models/v0043_openapi_diag_resp.py | 118 + .../models/v0043_openapi_error.py | 94 + .../models/v0043_openapi_instances_resp.py | 122 + .../models/v0043_openapi_job_alloc_resp.py | 116 + .../models/v0043_openapi_job_info_resp.py | 133 + .../models/v0043_openapi_job_post_response.py | 122 + .../v0043_openapi_job_submit_response.py | 118 + .../models/v0043_openapi_kill_job_resp.py | 122 + .../models/v0043_openapi_kill_jobs_resp.py | 122 + .../models/v0043_openapi_licenses_resp.py | 128 + slurmrest_python/models/v0043_openapi_meta.py | 106 + .../models/v0043_openapi_nodes_resp.py | 128 + .../models/v0043_openapi_partition_resp.py | 128 + .../models/v0043_openapi_ping_array_resp.py | 122 + .../v0043_openapi_reservation_mod_resp.py | 122 + .../models/v0043_openapi_reservation_resp.py | 128 + slurmrest_python/models/v0043_openapi_resp.py | 112 + .../models/v0043_openapi_shares_resp.py | 118 + .../v0043_openapi_slurmdbd_config_resp.py | 192 + .../v0043_openapi_slurmdbd_jobs_resp.py | 122 + .../v0043_openapi_slurmdbd_ping_resp.py | 122 + ...v0043_openapi_slurmdbd_qos_removed_resp.py | 114 + .../models/v0043_openapi_slurmdbd_qos_resp.py | 122 + .../v0043_openapi_slurmdbd_stats_resp.py | 118 + .../models/v0043_openapi_tres_resp.py | 122 + .../v0043_openapi_users_add_cond_resp.py | 124 + .../v0043_openapi_users_add_cond_resp_str.py | 114 + .../models/v0043_openapi_users_resp.py | 122 + .../models/v0043_openapi_warning.py | 90 + .../v0043_openapi_wckey_removed_resp.py | 114 + .../models/v0043_openapi_wckey_resp.py | 122 + slurmrest_python/models/v0043_part_prio.py | 90 + .../models/v0043_partition_info.py | 189 + .../models/v0043_partition_info_defaults.py | 107 + .../models/v0043_partition_info_maximums.py | 134 + .../models/v0043_partition_info_timeouts.py | 97 + .../models/v0043_process_exit_code_verbose.py | 111 + .../v0043_process_exit_code_verbose_signal.py | 94 + slurmrest_python/models/v0043_qos.py | 134 + slurmrest_python/models/v0043_qos_limits.py | 106 + .../models/v0043_qos_limits_max.py | 116 + .../v0043_qos_limits_max_active_jobs.py | 97 + .../models/v0043_qos_limits_max_jobs.py | 104 + .../v0043_qos_limits_max_jobs_active_jobs.py | 92 + ...043_qos_limits_max_jobs_active_jobs_per.py | 97 + .../models/v0043_qos_limits_max_tres.py | 108 + .../v0043_qos_limits_max_tres_minutes.py | 102 + .../v0043_qos_limits_max_tres_minutes_per.py | 123 + .../models/v0043_qos_limits_max_tres_per.py | 123 + .../models/v0043_qos_limits_max_wall_clock.py | 92 + .../v0043_qos_limits_max_wall_clock_per.py | 97 + .../models/v0043_qos_limits_min.py | 98 + .../models/v0043_qos_limits_min_tres.py | 92 + .../models/v0043_qos_limits_min_tres_per.py | 96 + slurmrest_python/models/v0043_qos_preempt.py | 107 + .../models/v0043_reservation_core_spec.py | 90 + .../models/v0043_reservation_desc_msg.py | 167 + .../models/v0043_reservation_info.py | 158 + .../v0043_reservation_info_purge_completed.py | 92 + .../models/v0043_reservation_mod_req.py | 96 + slurmrest_python/models/v0043_rollup_stats.py | 104 + .../models/v0043_schedule_exit_fields.py | 98 + .../models/v0043_shares_float128_tres.py | 90 + .../models/v0043_shares_resp_msg.py | 98 + .../models/v0043_shares_uint64_tres.py | 94 + .../models/v0043_slurmdbd_ping.py | 94 + slurmrest_python/models/v0043_stats_msg.py | 247 + .../models/v0043_stats_msg_rpc_dump.py | 92 + .../models/v0043_stats_msg_rpc_queue.py | 92 + .../models/v0043_stats_msg_rpc_type.py | 108 + .../models/v0043_stats_msg_rpc_user.py | 100 + slurmrest_python/models/v0043_stats_rec.py | 114 + slurmrest_python/models/v0043_stats_rpc.py | 96 + slurmrest_python/models/v0043_stats_user.py | 96 + slurmrest_python/models/v0043_step.py | 157 + slurmrest_python/models/v0043_step_cpu.py | 94 + .../v0043_step_cpu_requested_frequency.py | 97 + slurmrest_python/models/v0043_step_nodes.py | 92 + .../models/v0043_step_statistics.py | 98 + .../models/v0043_step_statistics_energy.py | 92 + slurmrest_python/models/v0043_step_time.py | 125 + slurmrest_python/models/v0043_step_tres.py | 108 + .../models/v0043_step_tres_consumed.py | 123 + .../models/v0043_step_tres_requested.py | 123 + slurmrest_python/models/v0043_tres.py | 94 + .../models/v0043_uint16_no_val_struct.py | 92 + .../models/v0043_uint32_no_val_struct.py | 92 + .../models/v0043_uint64_no_val_struct.py | 92 + .../models/v0043_update_node_msg.py | 134 + slurmrest_python/models/v0043_user.py | 152 + slurmrest_python/models/v0043_user_short.py | 103 + .../models/v0043_users_add_cond.py | 102 + slurmrest_python/models/v0043_wckey.py | 117 + .../models/v0043_wckey_tag_struct.py | 98 + slurmrest_python/models/v0044_account.py | 125 + .../models/v0044_account_short.py | 90 + slurmrest_python/models/v0044_accounting.py | 104 + .../models/v0044_accounting_allocated.py | 88 + .../models/v0044_accounts_add_cond.py | 96 + .../models/v0044_acct_gather_energy.py | 102 + slurmrest_python/models/v0044_assoc.py | 155 + slurmrest_python/models/v0044_assoc_max.py | 104 + .../models/v0044_assoc_max_jobs.py | 108 + .../models/v0044_assoc_max_jobs_per.py | 107 + .../models/v0044_assoc_max_per.py | 92 + .../models/v0044_assoc_max_per_account.py | 92 + .../models/v0044_assoc_max_tres.py | 114 + .../models/v0044_assoc_max_tres_group.py | 105 + .../models/v0044_assoc_max_tres_minutes.py | 102 + .../models/v0044_assoc_max_tres_per.py | 105 + slurmrest_python/models/v0044_assoc_min.py | 92 + .../models/v0044_assoc_rec_set.py | 211 + .../models/v0044_assoc_shares_obj_wrap.py | 145 + .../v0044_assoc_shares_obj_wrap_fairshare.py | 97 + .../v0044_assoc_shares_obj_wrap_tres.py | 115 + slurmrest_python/models/v0044_assoc_short.py | 96 + .../models/v0044_bf_exit_fields.py | 98 + slurmrest_python/models/v0044_cluster_rec.py | 129 + .../models/v0044_cluster_rec_associations.py | 92 + .../models/v0044_controller_ping.py | 98 + slurmrest_python/models/v0044_coord.py | 90 + slurmrest_python/models/v0044_cron_entry.py | 119 + .../models/v0044_float64_no_val_struct.py | 92 + slurmrest_python/models/v0044_instance.py | 102 + .../models/v0044_instance_time.py | 90 + slurmrest_python/models/v0044_job.py | 254 + .../models/v0044_job_alloc_req.py | 101 + slurmrest_python/models/v0044_job_array.py | 102 + .../v0044_job_array_response_msg_entry.py | 96 + slurmrest_python/models/v0044_job_desc_msg.py | 462 + .../models/v0044_job_desc_msg_rlimits.py | 137 + slurmrest_python/models/v0044_job_het.py | 94 + slurmrest_python/models/v0044_job_info.py | 571 + slurmrest_python/models/v0044_job_modify.py | 108 + .../models/v0044_job_modify_tres.py | 96 + slurmrest_python/models/v0044_job_required.py | 99 + slurmrest_python/models/v0044_job_res.py | 110 + slurmrest_python/models/v0044_job_res_core.py | 98 + slurmrest_python/models/v0044_job_res_node.py | 112 + .../models/v0044_job_res_nodes.py | 115 + .../models/v0044_job_res_socket.py | 98 + .../models/v0044_job_reservation.py | 92 + slurmrest_python/models/v0044_job_state.py | 101 + .../models/v0044_job_submit_req.py | 103 + slurmrest_python/models/v0044_job_time.py | 128 + slurmrest_python/models/v0044_job_tres.py | 105 + .../models/v0044_kill_jobs_msg.py | 134 + .../models/v0044_kill_jobs_resp_job.py | 106 + slurmrest_python/models/v0044_license.py | 106 + slurmrest_python/models/v0044_node.py | 265 + .../models/v0044_node_gres_layout.py | 94 + .../models/v0044_node_resource_layout.py | 112 + .../v0044_openapi_accounts_add_cond_resp.py | 124 + ...0044_openapi_accounts_add_cond_resp_str.py | 114 + .../v0044_openapi_accounts_removed_resp.py | 114 + .../models/v0044_openapi_accounts_resp.py | 122 + .../v0044_openapi_assocs_removed_resp.py | 114 + .../models/v0044_openapi_assocs_resp.py | 122 + .../v0044_openapi_clusters_removed_resp.py | 114 + .../models/v0044_openapi_clusters_resp.py | 122 + .../models/v0044_openapi_create_node_req.py | 114 + .../models/v0044_openapi_diag_resp.py | 118 + .../models/v0044_openapi_error.py | 94 + .../models/v0044_openapi_hostlist_req_resp.py | 114 + .../v0044_openapi_hostnames_req_resp.py | 114 + .../models/v0044_openapi_instances_resp.py | 122 + .../models/v0044_openapi_job_alloc_resp.py | 116 + .../models/v0044_openapi_job_info_resp.py | 133 + .../models/v0044_openapi_job_modify_req.py | 120 + .../models/v0044_openapi_job_modify_resp.py | 114 + .../models/v0044_openapi_job_post_response.py | 122 + .../v0044_openapi_job_submit_response.py | 118 + .../models/v0044_openapi_kill_job_resp.py | 122 + .../models/v0044_openapi_kill_jobs_resp.py | 122 + .../models/v0044_openapi_licenses_resp.py | 128 + slurmrest_python/models/v0044_openapi_meta.py | 106 + .../models/v0044_openapi_nodes_resp.py | 128 + .../models/v0044_openapi_partition_resp.py | 128 + .../models/v0044_openapi_ping_array_resp.py | 122 + .../v0044_openapi_reservation_mod_resp.py | 122 + .../models/v0044_openapi_reservation_resp.py | 128 + .../v0044_openapi_resource_layout_resp.py | 122 + slurmrest_python/models/v0044_openapi_resp.py | 112 + .../models/v0044_openapi_shares_resp.py | 118 + .../v0044_openapi_slurmdbd_config_resp.py | 192 + .../v0044_openapi_slurmdbd_jobs_resp.py | 122 + .../v0044_openapi_slurmdbd_ping_resp.py | 122 + ...v0044_openapi_slurmdbd_qos_removed_resp.py | 114 + .../models/v0044_openapi_slurmdbd_qos_resp.py | 122 + .../v0044_openapi_slurmdbd_stats_resp.py | 118 + .../models/v0044_openapi_tres_resp.py | 122 + .../v0044_openapi_users_add_cond_resp.py | 124 + .../v0044_openapi_users_add_cond_resp_str.py | 114 + .../models/v0044_openapi_users_resp.py | 122 + .../models/v0044_openapi_warning.py | 90 + .../v0044_openapi_wckey_removed_resp.py | 114 + .../models/v0044_openapi_wckey_resp.py | 122 + slurmrest_python/models/v0044_part_prio.py | 90 + .../models/v0044_partition_info.py | 189 + .../models/v0044_partition_info_accounts.py | 90 + .../models/v0044_partition_info_cpus.py | 90 + .../models/v0044_partition_info_defaults.py | 107 + .../models/v0044_partition_info_groups.py | 88 + .../models/v0044_partition_info_maximums.py | 134 + .../models/v0044_partition_info_minimums.py | 88 + .../models/v0044_partition_info_nodes.py | 92 + .../models/v0044_partition_info_priority.py | 90 + .../models/v0044_partition_info_qos.py | 92 + .../models/v0044_partition_info_timeouts.py | 97 + .../models/v0044_partition_info_tres.py | 90 + .../models/v0044_process_exit_code_verbose.py | 111 + .../v0044_process_exit_code_verbose_signal.py | 94 + slurmrest_python/models/v0044_qos.py | 134 + slurmrest_python/models/v0044_qos_limits.py | 106 + .../models/v0044_qos_limits_max.py | 116 + .../v0044_qos_limits_max_active_jobs.py | 97 + .../models/v0044_qos_limits_max_jobs.py | 104 + .../v0044_qos_limits_max_jobs_active_jobs.py | 92 + ...044_qos_limits_max_jobs_active_jobs_per.py | 97 + .../models/v0044_qos_limits_max_tres.py | 108 + .../v0044_qos_limits_max_tres_minutes.py | 102 + .../v0044_qos_limits_max_tres_minutes_per.py | 123 + .../models/v0044_qos_limits_max_tres_per.py | 123 + .../models/v0044_qos_limits_max_wall_clock.py | 92 + .../v0044_qos_limits_max_wall_clock_per.py | 97 + .../models/v0044_qos_limits_min.py | 98 + .../models/v0044_qos_limits_min_tres.py | 92 + .../models/v0044_qos_limits_min_tres_per.py | 96 + slurmrest_python/models/v0044_qos_preempt.py | 107 + .../models/v0044_reservation_core_spec.py | 90 + .../models/v0044_reservation_desc_msg.py | 167 + .../models/v0044_reservation_info.py | 158 + .../v0044_reservation_info_purge_completed.py | 92 + .../models/v0044_reservation_mod_req.py | 96 + slurmrest_python/models/v0044_rollup_stats.py | 104 + .../models/v0044_rollup_stats_daily.py | 96 + .../models/v0044_rollup_stats_hourly.py | 96 + .../models/v0044_rollup_stats_monthly.py | 96 + .../models/v0044_schedule_exit_fields.py | 98 + .../models/v0044_shares_float128_tres.py | 90 + .../models/v0044_shares_resp_msg.py | 98 + .../models/v0044_shares_uint64_tres.py | 94 + .../models/v0044_slurm_step_id.py | 101 + .../models/v0044_slurmdbd_ping.py | 94 + slurmrest_python/models/v0044_stats_msg.py | 247 + .../models/v0044_stats_msg_rpc_dump.py | 92 + .../models/v0044_stats_msg_rpc_queue.py | 92 + .../models/v0044_stats_msg_rpc_type.py | 108 + .../models/v0044_stats_msg_rpc_user.py | 100 + slurmrest_python/models/v0044_stats_rec.py | 114 + slurmrest_python/models/v0044_stats_rpc.py | 96 + slurmrest_python/models/v0044_stats_user.py | 96 + slurmrest_python/models/v0044_step.py | 157 + slurmrest_python/models/v0044_step_cpu.py | 94 + .../v0044_step_cpu_requested_frequency.py | 97 + slurmrest_python/models/v0044_step_nodes.py | 92 + .../models/v0044_step_statistics.py | 98 + .../models/v0044_step_statistics_energy.py | 92 + slurmrest_python/models/v0044_step_step.py | 102 + slurmrest_python/models/v0044_step_time.py | 125 + slurmrest_python/models/v0044_step_tres.py | 108 + .../models/v0044_step_tres_consumed.py | 123 + .../models/v0044_step_tres_requested.py | 123 + slurmrest_python/models/v0044_tres.py | 94 + .../models/v0044_uint16_no_val_struct.py | 92 + .../models/v0044_uint32_no_val_struct.py | 92 + .../models/v0044_uint64_no_val_struct.py | 92 + .../models/v0044_update_node_msg.py | 134 + slurmrest_python/models/v0044_user.py | 152 + slurmrest_python/models/v0044_user_default.py | 92 + slurmrest_python/models/v0044_user_short.py | 105 + .../models/v0044_users_add_cond.py | 102 + slurmrest_python/models/v0044_wckey.py | 117 + .../models/v0044_wckey_tag_struct.py | 98 + slurmrest_python/py.typed | 0 slurmrest_python/rest.py | 259 + src/coldfront_plugin_slurmrest/__init__.py | 5 - src/coldfront_plugin_slurmrest/apps.py | 9 - src/coldfront_plugin_slurmrest/config.py | 45 - .../management/__init__.py | 3 - .../management/commands/__init__.py | 3 - .../management/commands/slurm_check.py | 164 - .../tests/integration.py | 9 - src/coldfront_plugin_slurmrest/utils.py | 222 - test-requirements.txt | 6 + test/__init__.py | 0 test/test_slurm_api.py | 718 + test/test_slurmdb_api.py | 1075 + test/test_util_api.py | 46 + test/test_v0041_job_alloc_req.py | 513 + test/test_v0041_job_desc_msg.py | 283 + test/test_v0041_job_desc_msg_begin_time.py | 54 + test/test_v0041_job_desc_msg_crontab.py | 64 + test/test_v0041_job_desc_msg_crontab_line.py | 53 + ...41_job_desc_msg_distribution_plane_size.py | 54 + ...t_v0041_job_desc_msg_kill_warning_delay.py | 54 + .../test_v0041_job_desc_msg_memory_per_cpu.py | 54 + test/test_v0041_job_desc_msg_priority.py | 54 + ...st_v0041_job_desc_msg_required_switches.py | 54 + test/test_v0041_job_desc_msg_rlimits.py | 91 + test/test_v0041_job_desc_msg_rlimits_as.py | 54 + test/test_v0041_job_desc_msg_rlimits_core.py | 54 + test/test_v0041_job_desc_msg_rlimits_cpu.py | 54 + test/test_v0041_job_desc_msg_rlimits_data.py | 54 + test/test_v0041_job_desc_msg_rlimits_fsize.py | 54 + ...test_v0041_job_desc_msg_rlimits_memlock.py | 54 + .../test_v0041_job_desc_msg_rlimits_nofile.py | 54 + test/test_v0041_job_desc_msg_rlimits_nproc.py | 54 + test/test_v0041_job_desc_msg_rlimits_rss.py | 54 + test/test_v0041_job_desc_msg_rlimits_stack.py | 54 + test/test_v0041_job_desc_msg_segment_size.py | 54 + test/test_v0041_job_desc_msg_time_limit.py | 54 + test/test_v0041_job_desc_msg_time_minimum.py | 54 + test/test_v0041_job_submit_req.py | 514 + test/test_v0041_kill_jobs_msg.py | 72 + ...st_v0041_openapi_accounts_add_cond_resp.py | 170 + ..._openapi_accounts_add_cond_resp_account.py | 53 + ...nts_add_cond_resp_association_condition.py | 137 + ...0041_openapi_accounts_add_cond_resp_str.py | 85 + ...est_v0041_openapi_accounts_removed_resp.py | 89 + test/test_v0041_openapi_accounts_resp.py | 127 + .../test_v0041_openapi_assocs_removed_resp.py | 89 + test/test_v0041_openapi_assocs_resp.py | 251 + ...est_v0041_openapi_clusters_removed_resp.py | 89 + test/test_v0041_openapi_clusters_resp.py | 137 + test/test_v0041_openapi_diag_resp.py | 313 + ...test_v0041_openapi_diag_resp_statistics.py | 165 + ...41_openapi_diag_resp_statistics_bf_exit.py | 57 + ...diag_resp_statistics_bf_when_last_cycle.py | 54 + ...napi_diag_resp_statistics_job_states_ts.py | 54 + ...atistics_pending_rpcs_by_hostlist_inner.py | 61 + ...diag_resp_statistics_pending_rpcs_inner.py | 57 + ...1_openapi_diag_resp_statistics_req_time.py | 54 + ...api_diag_resp_statistics_req_time_start.py | 54 + ...p_statistics_rpcs_by_message_type_inner.py | 75 + ...rpcs_by_message_type_inner_average_time.py | 54 + ...diag_resp_statistics_rpcs_by_user_inner.py | 67 + ...napi_diag_resp_statistics_schedule_exit.py | 57 + test/test_v0041_openapi_instances_resp.py | 105 + test/test_v0041_openapi_job_alloc_resp.py | 85 + test/test_v0041_openapi_job_info_resp.py | 753 + ..._v0041_openapi_job_info_resp_jobs_inner.py | 391 + ...pi_job_info_resp_jobs_inner_accrue_time.py | 54 + ...i_job_info_resp_jobs_inner_array_job_id.py | 54 + ...ob_info_resp_jobs_inner_array_max_tasks.py | 54 + ..._job_info_resp_jobs_inner_array_task_id.py | 54 + ..._job_info_resp_jobs_inner_billable_tres.py | 54 + ...b_info_resp_jobs_inner_cores_per_socket.py | 54 + ..._resp_jobs_inner_cpu_frequency_governor.py | 54 + ...o_resp_jobs_inner_cpu_frequency_maximum.py | 54 + ...o_resp_jobs_inner_cpu_frequency_minimum.py | 54 + ...1_openapi_job_info_resp_jobs_inner_cpus.py | 54 + ..._job_info_resp_jobs_inner_cpus_per_task.py | 54 + ...enapi_job_info_resp_jobs_inner_deadline.py | 54 + ...api_job_info_resp_jobs_inner_delay_boot.py | 54 + ..._info_resp_jobs_inner_derived_exit_code.py | 64 + ...obs_inner_derived_exit_code_return_code.py | 54 + ...esp_jobs_inner_derived_exit_code_signal.py | 56 + ..._jobs_inner_derived_exit_code_signal_id.py | 54 + ..._job_info_resp_jobs_inner_eligible_time.py | 54 + ...enapi_job_info_resp_jobs_inner_end_time.py | 54 + ...napi_job_info_resp_jobs_inner_exit_code.py | 64 + ...api_job_info_resp_jobs_inner_het_job_id.py | 54 + ...job_info_resp_jobs_inner_het_job_offset.py | 54 + ..._job_info_resp_jobs_inner_job_resources.py | 96 + ...nfo_resp_jobs_inner_job_resources_nodes.py | 79 + ...er_job_resources_nodes_allocation_inner.py | 83 + ...b_resources_nodes_allocation_inner_cpus.py | 53 + ...resources_nodes_allocation_inner_memory.py | 53 + ...es_nodes_allocation_inner_sockets_inner.py | 67 + ...ocation_inner_sockets_inner_cores_inner.py | 59 + ...bs_inner_job_resources_threads_per_core.py | 54 + ...o_resp_jobs_inner_last_sched_evaluation.py | 54 + ...enapi_job_info_resp_jobs_inner_max_cpus.py | 54 + ...napi_job_info_resp_jobs_inner_max_nodes.py | 54 + ...ob_info_resp_jobs_inner_memory_per_node.py | 54 + ...o_resp_jobs_inner_minimum_cpus_per_node.py | 54 + ...sp_jobs_inner_minimum_tmp_disk_per_node.py | 54 + ...api_job_info_resp_jobs_inner_node_count.py | 54 + ..._openapi_job_info_resp_jobs_inner_power.py | 54 + ...i_job_info_resp_jobs_inner_pre_sus_time.py | 54 + ...i_job_info_resp_jobs_inner_preempt_time.py | 54 + ...b_info_resp_jobs_inner_preemptable_time.py | 54 + ...pi_job_info_resp_jobs_inner_resize_time.py | 54 + ...b_info_resp_jobs_inner_sockets_per_node.py | 54 + ...api_job_info_resp_jobs_inner_start_time.py | 54 + ...pi_job_info_resp_jobs_inner_submit_time.py | 54 + ...i_job_info_resp_jobs_inner_suspend_time.py | 54 + ..._openapi_job_info_resp_jobs_inner_tasks.py | 54 + ...ob_info_resp_jobs_inner_tasks_per_board.py | 54 + ...job_info_resp_jobs_inner_tasks_per_core.py | 54 + ...job_info_resp_jobs_inner_tasks_per_node.py | 54 + ...b_info_resp_jobs_inner_tasks_per_socket.py | 54 + ...job_info_resp_jobs_inner_tasks_per_tres.py | 54 + ...b_info_resp_jobs_inner_threads_per_core.py | 54 + ...041_openapi_job_info_resp_last_backfill.py | 54 + ...v0041_openapi_job_info_resp_last_update.py | 54 + test/test_v0041_openapi_job_post_response.py | 94 + ...openapi_job_post_response_results_inner.py | 56 + .../test_v0041_openapi_job_submit_response.py | 92 + ...0041_openapi_job_submit_response_result.py | 56 + test/test_v0041_openapi_kill_jobs_resp.py | 111 + ...041_openapi_kill_jobs_resp_status_inner.py | 67 + ...enapi_kill_jobs_resp_status_inner_error.py | 54 + ..._kill_jobs_resp_status_inner_federation.py | 52 + ...napi_kill_jobs_resp_status_inner_job_id.py | 54 + test/test_v0041_openapi_licenses_resp.py | 115 + ...v0041_openapi_licenses_resp_last_update.py | 54 + ...41_openapi_licenses_resp_licenses_inner.py | 60 + test/test_v0041_openapi_nodes_resp.py | 285 + ...st_v0041_openapi_nodes_resp_last_update.py | 54 + ...st_v0041_openapi_nodes_resp_nodes_inner.py | 145 + ...penapi_nodes_resp_nodes_inner_boot_time.py | 54 + ...1_openapi_nodes_resp_nodes_inner_energy.py | 60 + ...s_resp_nodes_inner_energy_current_watts.py | 54 + ...openapi_nodes_resp_nodes_inner_free_mem.py | 54 + ...penapi_nodes_resp_nodes_inner_last_busy.py | 54 + ...odes_resp_nodes_inner_reason_changed_at.py | 54 + ...api_nodes_resp_nodes_inner_resume_after.py | 54 + ...odes_resp_nodes_inner_slurmd_start_time.py | 54 + test/test_v0041_openapi_partition_resp.py | 263 + ...0041_openapi_partition_resp_last_update.py | 54 + ...openapi_partition_resp_partitions_inner.py | 151 + ...artition_resp_partitions_inner_accounts.py | 53 + ...pi_partition_resp_partitions_inner_cpus.py | 53 + ...artition_resp_partitions_inner_defaults.py | 65 + ...inner_defaults_partition_memory_per_cpu.py | 54 + ...nner_defaults_partition_memory_per_node.py | 54 + ...ion_resp_partitions_inner_defaults_time.py | 54 + ..._partition_resp_partitions_inner_groups.py | 52 + ...artition_resp_partitions_inner_maximums.py | 86 + ...partitions_inner_maximums_cpus_per_node.py | 54 + ...rtitions_inner_maximums_cpus_per_socket.py | 54 + ...on_resp_partitions_inner_maximums_nodes.py | 54 + ...rtitions_inner_maximums_over_time_limit.py | 54 + ...partitions_inner_maximums_oversubscribe.py | 55 + ...inner_maximums_partition_memory_per_cpu.py | 54 + ...nner_maximums_partition_memory_per_node.py | 54 + ...ion_resp_partitions_inner_maximums_time.py | 54 + ...artition_resp_partitions_inner_minimums.py | 52 + ...i_partition_resp_partitions_inner_nodes.py | 54 + ...rtition_resp_partitions_inner_partition.py | 54 + ...artition_resp_partitions_inner_priority.py | 53 + ...api_partition_resp_partitions_inner_qos.py | 54 + ...tion_resp_partitions_inner_suspend_time.py | 54 + ...artition_resp_partitions_inner_timeouts.py | 59 + ...n_resp_partitions_inner_timeouts_resume.py | 54 + ..._resp_partitions_inner_timeouts_suspend.py | 54 + ...pi_partition_resp_partitions_inner_tres.py | 53 + test/test_v0041_openapi_ping_array_resp.py | 97 + ...041_openapi_ping_array_resp_pings_inner.py | 55 + test/test_v0041_openapi_reservation_resp.py | 173 + ...41_openapi_reservation_resp_last_update.py | 54 + ...api_reservation_resp_reservations_inner.py | 89 + ...ations_inner_core_specializations_inner.py | 53 + ...vation_resp_reservations_inner_end_time.py | 54 + ...resp_reservations_inner_purge_completed.py | 55 + ...reservations_inner_purge_completed_time.py | 54 + ...tion_resp_reservations_inner_start_time.py | 54 + ...servation_resp_reservations_inner_watts.py | 54 + test/test_v0041_openapi_resp.py | 83 + test/test_v0041_openapi_shares_resp.py | 169 + ..._v0041_openapi_shares_resp_errors_inner.py | 55 + test/test_v0041_openapi_shares_resp_meta.py | 70 + ...t_v0041_openapi_shares_resp_meta_client.py | 54 + ...t_v0041_openapi_shares_resp_meta_plugin.py | 55 + ...st_v0041_openapi_shares_resp_meta_slurm.py | 57 + ..._openapi_shares_resp_meta_slurm_version.py | 54 + test/test_v0041_openapi_shares_resp_shares.py | 93 + ...openapi_shares_resp_shares_shares_inner.py | 93 + ...ares_resp_shares_shares_inner_fairshare.py | 53 + ..._shares_resp_shares_shares_inner_shares.py | 54 + ...p_shares_shares_inner_shares_normalized.py | 54 + ...pi_shares_resp_shares_shares_inner_tres.py | 72 + ...res_shares_inner_tres_run_seconds_inner.py | 56 + ...ares_inner_tres_run_seconds_inner_value.py | 54 + ...sp_shares_shares_inner_tres_usage_inner.py | 53 + ...sp_shares_shares_inner_usage_normalized.py | 54 + ...0041_openapi_shares_resp_warnings_inner.py | 53 + ...test_v0041_openapi_slurmdbd_config_resp.py | 386 + ...api_slurmdbd_config_resp_accounts_inner.py | 73 + ..._resp_accounts_inner_associations_inner.py | 57 + ..._resp_accounts_inner_coordinators_inner.py | 54 + ...slurmdbd_config_resp_associations_inner.py | 133 + ..._config_resp_associations_inner_default.py | 52 + ...mdbd_config_resp_associations_inner_max.py | 115 + ...config_resp_associations_inner_max_jobs.py | 80 + ...sp_associations_inner_max_jobs_accruing.py | 54 + ...resp_associations_inner_max_jobs_active.py | 54 + ...ig_resp_associations_inner_max_jobs_per.py | 67 + ...sociations_inner_max_jobs_per_submitted.py | 54 + ..._resp_associations_inner_max_jobs_total.py | 54 + ..._config_resp_associations_inner_max_per.py | 56 + ...resp_associations_inner_max_per_account.py | 55 + ...config_resp_associations_inner_max_tres.py | 104 + ..._resp_associations_inner_max_tres_group.py | 65 + ...esp_associations_inner_max_tres_minutes.py | 66 + ...associations_inner_max_tres_minutes_per.py | 58 + ...ig_resp_associations_inner_max_tres_per.py | 65 + ...mdbd_config_resp_associations_inner_min.py | 55 + ...config_resp_associations_inner_priority.py | 54 + ...api_slurmdbd_config_resp_clusters_inner.py | 75 + ...config_resp_clusters_inner_associations.py | 57 + ...g_resp_clusters_inner_associations_root.py | 57 + ...d_config_resp_clusters_inner_controller.py | 53 + ...pi_slurmdbd_config_resp_instances_inner.py | 59 + ...urmdbd_config_resp_instances_inner_time.py | 53 + ..._openapi_slurmdbd_config_resp_qos_inner.py | 132 + ...i_slurmdbd_config_resp_qos_inner_limits.py | 111 + ...dbd_config_resp_qos_inner_limits_factor.py | 54 + ...urmdbd_config_resp_qos_inner_limits_max.py | 122 + ...nfig_resp_qos_inner_limits_max_accruing.py | 60 + ..._resp_qos_inner_limits_max_accruing_per.py | 59 + ...s_inner_limits_max_accruing_per_account.py | 54 + ..._qos_inner_limits_max_accruing_per_user.py | 54 + ...g_resp_qos_inner_limits_max_active_jobs.py | 59 + ...s_inner_limits_max_active_jobs_accruing.py | 54 + ..._qos_inner_limits_max_active_jobs_count.py | 54 + ...d_config_resp_qos_inner_limits_max_jobs.py | 70 + ...p_qos_inner_limits_max_jobs_active_jobs.py | 60 + ...s_inner_limits_max_jobs_active_jobs_per.py | 59 + ...limits_max_jobs_active_jobs_per_account.py | 54 + ...er_limits_max_jobs_active_jobs_per_user.py | 54 + ...nfig_resp_qos_inner_limits_max_jobs_per.py | 59 + ...p_qos_inner_limits_max_jobs_per_account.py | 54 + ...resp_qos_inner_limits_max_jobs_per_user.py | 54 + ...d_config_resp_qos_inner_limits_max_tres.py | 101 + ..._resp_qos_inner_limits_max_tres_minutes.py | 72 + ...p_qos_inner_limits_max_tres_minutes_per.py | 79 + ...nfig_resp_qos_inner_limits_max_tres_per.py | 79 + ...ig_resp_qos_inner_limits_max_wall_clock.py | 60 + ...esp_qos_inner_limits_max_wall_clock_per.py | 59 + ...qos_inner_limits_max_wall_clock_per_job.py | 54 + ...qos_inner_limits_max_wall_clock_per_qos.py | 54 + ...urmdbd_config_resp_qos_inner_limits_min.py | 64 + ...qos_inner_limits_min_priority_threshold.py | 54 + ...d_config_resp_qos_inner_limits_min_tres.py | 59 + ...nfig_resp_qos_inner_limits_min_tres_per.py | 58 + ..._slurmdbd_config_resp_qos_inner_preempt.py | 61 + ...nfig_resp_qos_inner_preempt_exempt_time.py | 54 + ...slurmdbd_config_resp_qos_inner_priority.py | 54 + ...mdbd_config_resp_qos_inner_usage_factor.py | 54 + ...d_config_resp_qos_inner_usage_threshold.py | 54 + ...penapi_slurmdbd_config_resp_users_inner.py | 98 + ...lurmdbd_config_resp_users_inner_default.py | 53 + ...bd_config_resp_users_inner_wckeys_inner.py | 73 + ...ers_inner_wckeys_inner_accounting_inner.py | 60 + ...wckeys_inner_accounting_inner_allocated.py | 52 + ...nner_wckeys_inner_accounting_inner_tres.py | 56 + test/test_v0041_openapi_slurmdbd_jobs_resp.py | 429 + ...1_openapi_slurmdbd_jobs_resp_jobs_inner.py | 290 + ...api_slurmdbd_jobs_resp_jobs_inner_array.py | 61 + ...rmdbd_jobs_resp_jobs_inner_array_limits.py | 54 + ...d_jobs_resp_jobs_inner_array_limits_max.py | 53 + ...esp_jobs_inner_array_limits_max_running.py | 52 + ...urmdbd_jobs_resp_jobs_inner_association.py | 57 + ...i_slurmdbd_jobs_resp_jobs_inner_comment.py | 54 + ...slurmdbd_jobs_resp_jobs_inner_exit_code.py | 64 + ...enapi_slurmdbd_jobs_resp_jobs_inner_het.py | 56 + ...enapi_slurmdbd_jobs_resp_jobs_inner_mcs.py | 52 + ..._slurmdbd_jobs_resp_jobs_inner_required.py | 60 + ...urmdbd_jobs_resp_jobs_inner_reservation.py | 53 + ...api_slurmdbd_jobs_resp_jobs_inner_state.py | 55 + ...urmdbd_jobs_resp_jobs_inner_steps_inner.py | 148 + ...bd_jobs_resp_jobs_inner_steps_inner_cpu.py | 61 + ...ner_steps_inner_cpu_requested_frequency.py | 59 + ...steps_inner_cpu_requested_frequency_max.py | 54 + ...steps_inner_cpu_requested_frequency_min.py | 54 + ..._jobs_resp_jobs_inner_steps_inner_nodes.py | 56 + ..._resp_jobs_inner_steps_inner_statistics.py | 58 + ...p_jobs_inner_steps_inner_statistics_cpu.py | 52 + ...obs_inner_steps_inner_statistics_energy.py | 55 + ..._steps_inner_statistics_energy_consumed.py | 54 + ...d_jobs_resp_jobs_inner_steps_inner_step.py | 53 + ...d_jobs_resp_jobs_inner_steps_inner_task.py | 52 + ..._jobs_resp_jobs_inner_steps_inner_tasks.py | 52 + ...d_jobs_resp_jobs_inner_steps_inner_time.py | 70 + ...bs_resp_jobs_inner_steps_inner_time_end.py | 54 + ..._resp_jobs_inner_steps_inner_time_start.py | 54 + ...resp_jobs_inner_steps_inner_time_system.py | 53 + ..._resp_jobs_inner_steps_inner_time_total.py | 53 + ...s_resp_jobs_inner_steps_inner_time_user.py | 53 + ...d_jobs_resp_jobs_inner_steps_inner_tres.py | 100 + ...sp_jobs_inner_steps_inner_tres_consumed.py | 79 + ...p_jobs_inner_steps_inner_tres_requested.py | 79 + ...er_steps_inner_tres_requested_max_inner.py | 56 + ...napi_slurmdbd_jobs_resp_jobs_inner_time.py | 74 + ...rmdbd_jobs_resp_jobs_inner_time_planned.py | 54 + ...urmdbd_jobs_resp_jobs_inner_time_system.py | 53 + ...lurmdbd_jobs_resp_jobs_inner_time_total.py | 53 + ...slurmdbd_jobs_resp_jobs_inner_time_user.py | 53 + ...napi_slurmdbd_jobs_resp_jobs_inner_tres.py | 65 + ...api_slurmdbd_jobs_resp_jobs_inner_wckey.py | 59 + ...v0041_openapi_slurmdbd_qos_removed_resp.py | 89 + test/test_v0041_openapi_slurmdbd_qos_resp.py | 251 + .../test_v0041_openapi_slurmdbd_stats_resp.py | 141 + ..._openapi_slurmdbd_stats_resp_statistics.py | 82 + ..._slurmdbd_stats_resp_statistics_rollups.py | 72 + ...dbd_stats_resp_statistics_rollups_daily.py | 57 + ..._resp_statistics_rollups_daily_duration.py | 54 + ...bd_stats_resp_statistics_rollups_hourly.py | 57 + ...resp_statistics_rollups_hourly_duration.py | 54 + ...d_stats_resp_statistics_rollups_monthly.py | 57 + ...esp_statistics_rollups_monthly_duration.py | 54 + ...urmdbd_stats_resp_statistics_rpcs_inner.py | 56 + ...d_stats_resp_statistics_rpcs_inner_time.py | 53 + ...rmdbd_stats_resp_statistics_users_inner.py | 56 + test/test_v0041_openapi_tres_resp.py | 97 + .../test_v0041_openapi_users_add_cond_resp.py | 281 + ...ers_add_cond_resp_association_condition.py | 146 + ..._resp_association_condition_association.py | 147 + ...sociation_condition_association_grpjobs.py | 54 + ...ion_condition_association_grpjobsaccrue.py | 54 + ...ion_condition_association_grpsubmitjobs.py | 54 + ...sociation_condition_association_grpwall.py | 54 + ...sociation_condition_association_maxjobs.py | 54 + ...ion_condition_association_maxjobsaccrue.py | 54 + ...ion_condition_association_maxsubmitjobs.py | 54 + ...ition_association_maxwalldurationperjob.py | 54 + ...ion_condition_association_minpriothresh.py | 54 + ...t_v0041_openapi_users_add_cond_resp_str.py | 85 + ..._v0041_openapi_users_add_cond_resp_user.py | 56 + test/test_v0041_openapi_users_resp.py | 175 + test/test_v0041_openapi_wckey_removed_resp.py | 89 + test/test_v0041_openapi_wckey_resp.py | 127 + test/test_v0041_update_node_msg.py | 83 + ...test_v0041_update_node_msg_resume_after.py | 54 + test/test_v0041_update_node_msg_weight.py | 54 + test/test_v0042_account.py | 73 + test/test_v0042_account_short.py | 53 + test/test_v0042_accounting.py | 61 + test/test_v0042_accounts_add_cond.py | 103 + test/test_v0042_acct_gather_energy.py | 60 + test/test_v0042_assoc.py | 119 + test/test_v0042_assoc_max.py | 96 + test/test_v0042_assoc_max_jobs.py | 74 + test/test_v0042_assoc_max_jobs_per.py | 67 + test/test_v0042_assoc_max_per.py | 56 + test/test_v0042_assoc_max_per_account.py | 55 + test/test_v0042_assoc_max_tres.py | 104 + test/test_v0042_assoc_max_tres_group.py | 65 + test/test_v0042_assoc_max_tres_minutes.py | 66 + test/test_v0042_assoc_max_tres_per.py | 65 + test/test_v0042_assoc_min.py | 55 + test/test_v0042_assoc_rec_set.py | 147 + test/test_v0042_assoc_shares_obj_wrap.py | 102 + ...t_v0042_assoc_shares_obj_wrap_fairshare.py | 59 + test/test_v0042_assoc_shares_obj_wrap_tres.py | 72 + test/test_v0042_assoc_short.py | 57 + test/test_v0042_bf_exit_fields.py | 57 + test/test_v0042_cluster_rec.py | 75 + test/test_v0042_cluster_rec_associations.py | 57 + test/test_v0042_controller_ping.py | 59 + test/test_v0042_coord.py | 54 + test/test_v0042_cron_entry.py | 64 + test/test_v0042_float64_no_val_struct.py | 54 + test/test_v0042_instance.py | 59 + test/test_v0042_job.py | 286 + test/test_v0042_job_alloc_req.py | 420 + test/test_v0042_job_array.py | 61 + ...test_v0042_job_array_response_msg_entry.py | 56 + test/test_v0042_job_desc_msg.py | 255 + test/test_v0042_job_desc_msg_rlimits.py | 91 + test/test_v0042_job_het.py | 56 + test/test_v0042_job_info.py | 389 + test/test_v0042_job_required.py | 60 + test/test_v0042_job_res.py | 96 + test/test_v0042_job_res_core.py | 59 + test/test_v0042_job_res_node.py | 83 + test/test_v0042_job_res_nodes.py | 79 + test/test_v0042_job_res_socket.py | 67 + test/test_v0042_job_state.py | 55 + test/test_v0042_job_submit_req.py | 418 + test/test_v0042_job_time.py | 74 + test/test_v0042_job_tres.py | 65 + test/test_v0042_kill_jobs_msg.py | 72 + test/test_v0042_kill_jobs_resp_job.py | 67 + test/test_v0042_license.py | 60 + test/test_v0042_node.py | 145 + ...st_v0042_openapi_accounts_add_cond_resp.py | 136 + ...0042_openapi_accounts_add_cond_resp_str.py | 85 + ...est_v0042_openapi_accounts_removed_resp.py | 89 + test/test_v0042_openapi_accounts_resp.py | 127 + .../test_v0042_openapi_assocs_removed_resp.py | 89 + test/test_v0042_openapi_assocs_resp.py | 211 + ...est_v0042_openapi_clusters_removed_resp.py | 89 + test/test_v0042_openapi_clusters_resp.py | 137 + test/test_v0042_openapi_diag_resp.py | 289 + test/test_v0042_openapi_error.py | 55 + test/test_v0042_openapi_instances_resp.py | 105 + test/test_v0042_openapi_job_alloc_resp.py | 85 + test/test_v0042_openapi_job_info_resp.py | 513 + test/test_v0042_openapi_job_post_response.py | 91 + .../test_v0042_openapi_job_submit_response.py | 86 + test/test_v0042_openapi_kill_job_resp.py | 111 + test/test_v0042_openapi_kill_jobs_resp.py | 111 + test/test_v0042_openapi_licenses_resp.py | 115 + test/test_v0042_openapi_meta.py | 70 + test/test_v0042_openapi_nodes_resp.py | 257 + test/test_v0042_openapi_partition_resp.py | 245 + test/test_v0042_openapi_ping_array_resp.py | 101 + test/test_v0042_openapi_reservation_resp.py | 173 + test/test_v0042_openapi_resp.py | 83 + test/test_v0042_openapi_shares_resp.py | 169 + ...test_v0042_openapi_slurmdbd_config_resp.py | 339 + test/test_v0042_openapi_slurmdbd_jobs_resp.py | 403 + test/test_v0042_openapi_slurmdbd_ping_resp.py | 97 + ...v0042_openapi_slurmdbd_qos_removed_resp.py | 89 + test/test_v0042_openapi_slurmdbd_qos_resp.py | 193 + .../test_v0042_openapi_slurmdbd_stats_resp.py | 141 + test/test_v0042_openapi_tres_resp.py | 97 + .../test_v0042_openapi_users_add_cond_resp.py | 201 + ...t_v0042_openapi_users_add_cond_resp_str.py | 85 + test/test_v0042_openapi_users_resp.py | 183 + test/test_v0042_openapi_warning.py | 53 + test/test_v0042_openapi_wckey_removed_resp.py | 89 + test/test_v0042_openapi_wckey_resp.py | 129 + test/test_v0042_part_prio.py | 53 + test/test_v0042_partition_info.py | 145 + test/test_v0042_partition_info_defaults.py | 65 + test/test_v0042_partition_info_maximums.py | 86 + ...2_partition_info_maximums_oversubscribe.py | 55 + test/test_v0042_partition_info_partition.py | 54 + test/test_v0042_partition_info_timeouts.py | 59 + test/test_v0042_process_exit_code_verbose.py | 64 + ..._v0042_process_exit_code_verbose_signal.py | 56 + test/test_v0042_qos.py | 112 + test/test_v0042_qos_limits.py | 100 + test/test_v0042_qos_limits_max.py | 119 + test/test_v0042_qos_limits_max_active_jobs.py | 59 + test/test_v0042_qos_limits_max_jobs.py | 74 + ...t_v0042_qos_limits_max_jobs_active_jobs.py | 60 + ...042_qos_limits_max_jobs_active_jobs_per.py | 59 + test/test_v0042_qos_limits_max_tres.py | 94 + .../test_v0042_qos_limits_max_tres_minutes.py | 75 + ...t_v0042_qos_limits_max_tres_minutes_per.py | 79 + test/test_v0042_qos_limits_max_tres_per.py | 79 + test/test_v0042_qos_limits_max_wall_clock.py | 60 + ...est_v0042_qos_limits_max_wall_clock_per.py | 59 + test/test_v0042_qos_limits_min.py | 64 + test/test_v0042_qos_limits_min_tres.py | 59 + test/test_v0042_qos_limits_min_tres_per.py | 58 + test/test_v0042_qos_preempt.py | 61 + test/test_v0042_reservation_core_spec.py | 53 + test/test_v0042_reservation_info.py | 89 + ..._v0042_reservation_info_purge_completed.py | 55 + test/test_v0042_rollup_stats.py | 72 + test/test_v0042_schedule_exit_fields.py | 57 + test/test_v0042_shares_float128_tres.py | 53 + test/test_v0042_shares_resp_msg.py | 97 + test/test_v0042_shares_uint64_tres.py | 56 + test/test_v0042_slurmdbd_ping.py | 59 + test/test_v0042_stats_msg.py | 165 + test/test_v0042_stats_msg_rpc_dump.py | 61 + test/test_v0042_stats_msg_rpc_queue.py | 57 + test/test_v0042_stats_msg_rpc_type.py | 75 + test/test_v0042_stats_msg_rpc_user.py | 67 + test/test_v0042_stats_rec.py | 82 + test/test_v0042_stats_rpc.py | 56 + test/test_v0042_stats_user.py | 56 + test/test_v0042_step.py | 146 + test/test_v0042_step_cpu.py | 61 + ...test_v0042_step_cpu_requested_frequency.py | 59 + test/test_v0042_step_nodes.py | 56 + test/test_v0042_step_statistics.py | 58 + test/test_v0042_step_statistics_energy.py | 55 + test/test_v0042_step_time.py | 70 + test/test_v0042_step_tres.py | 100 + test/test_v0042_step_tres_consumed.py | 79 + test/test_v0042_step_tres_requested.py | 79 + test/test_v0042_tres.py | 56 + test/test_v0042_uint16_no_val_struct.py | 54 + test/test_v0042_uint32_no_val_struct.py | 54 + test/test_v0042_uint64_no_val_struct.py | 54 + test/test_v0042_update_node_msg.py | 83 + test/test_v0042_user.py | 99 + test/test_v0042_user_default.py | 53 + test/test_v0042_user_short.py | 56 + test/test_v0042_users_add_cond.py | 112 + test/test_v0042_wckey.py | 74 + test/test_v0042_wckey_tag_struct.py | 59 + test/test_v0043_account.py | 73 + test/test_v0043_account_short.py | 53 + test/test_v0043_accounting.py | 61 + test/test_v0043_accounts_add_cond.py | 103 + test/test_v0043_acct_gather_energy.py | 60 + test/test_v0043_assoc.py | 119 + test/test_v0043_assoc_max.py | 96 + test/test_v0043_assoc_max_jobs.py | 74 + test/test_v0043_assoc_max_jobs_per.py | 67 + test/test_v0043_assoc_max_per.py | 56 + test/test_v0043_assoc_max_per_account.py | 55 + test/test_v0043_assoc_max_tres.py | 104 + test/test_v0043_assoc_max_tres_group.py | 65 + test/test_v0043_assoc_max_tres_minutes.py | 66 + test/test_v0043_assoc_max_tres_per.py | 65 + test/test_v0043_assoc_min.py | 55 + test/test_v0043_assoc_rec_set.py | 147 + test/test_v0043_assoc_shares_obj_wrap.py | 102 + ...t_v0043_assoc_shares_obj_wrap_fairshare.py | 59 + test/test_v0043_assoc_shares_obj_wrap_tres.py | 72 + test/test_v0043_assoc_short.py | 57 + test/test_v0043_bf_exit_fields.py | 57 + test/test_v0043_cluster_rec.py | 75 + test/test_v0043_cluster_rec_associations.py | 57 + test/test_v0043_controller_ping.py | 59 + test/test_v0043_coord.py | 54 + test/test_v0043_cron_entry.py | 64 + test/test_v0043_float64_no_val_struct.py | 54 + test/test_v0043_instance.py | 59 + test/test_v0043_job.py | 295 + test/test_v0043_job_alloc_req.py | 417 + test/test_v0043_job_array.py | 61 + ...test_v0043_job_array_response_msg_entry.py | 56 + test/test_v0043_job_desc_msg.py | 255 + test/test_v0043_job_desc_msg_rlimits.py | 91 + test/test_v0043_job_het.py | 56 + test/test_v0043_job_info.py | 394 + test/test_v0043_job_required.py | 60 + test/test_v0043_job_res.py | 96 + test/test_v0043_job_res_core.py | 59 + test/test_v0043_job_res_node.py | 83 + test/test_v0043_job_res_nodes.py | 79 + test/test_v0043_job_res_socket.py | 67 + test/test_v0043_job_submit_req.py | 418 + test/test_v0043_job_time.py | 74 + test/test_v0043_job_tres.py | 65 + test/test_v0043_kill_jobs_msg.py | 72 + test/test_v0043_kill_jobs_resp_job.py | 67 + test/test_v0043_license.py | 60 + test/test_v0043_node.py | 153 + ...st_v0043_openapi_accounts_add_cond_resp.py | 136 + ...0043_openapi_accounts_add_cond_resp_str.py | 85 + ...est_v0043_openapi_accounts_removed_resp.py | 89 + test/test_v0043_openapi_accounts_resp.py | 127 + .../test_v0043_openapi_assocs_removed_resp.py | 89 + test/test_v0043_openapi_assocs_resp.py | 211 + ...est_v0043_openapi_clusters_removed_resp.py | 89 + test/test_v0043_openapi_clusters_resp.py | 137 + test/test_v0043_openapi_diag_resp.py | 289 + test/test_v0043_openapi_error.py | 55 + test/test_v0043_openapi_instances_resp.py | 105 + test/test_v0043_openapi_job_alloc_resp.py | 85 + test/test_v0043_openapi_job_info_resp.py | 523 + test/test_v0043_openapi_job_post_response.py | 91 + .../test_v0043_openapi_job_submit_response.py | 86 + test/test_v0043_openapi_kill_job_resp.py | 111 + test/test_v0043_openapi_kill_jobs_resp.py | 111 + test/test_v0043_openapi_licenses_resp.py | 115 + test/test_v0043_openapi_meta.py | 70 + test/test_v0043_openapi_nodes_resp.py | 267 + test/test_v0043_openapi_partition_resp.py | 247 + test/test_v0043_openapi_ping_array_resp.py | 101 + ...test_v0043_openapi_reservation_mod_resp.py | 181 + test/test_v0043_openapi_reservation_resp.py | 173 + test/test_v0043_openapi_resp.py | 83 + test/test_v0043_openapi_shares_resp.py | 169 + ...test_v0043_openapi_slurmdbd_config_resp.py | 339 + test/test_v0043_openapi_slurmdbd_jobs_resp.py | 413 + test/test_v0043_openapi_slurmdbd_ping_resp.py | 97 + ...v0043_openapi_slurmdbd_qos_removed_resp.py | 89 + test/test_v0043_openapi_slurmdbd_qos_resp.py | 193 + .../test_v0043_openapi_slurmdbd_stats_resp.py | 141 + test/test_v0043_openapi_tres_resp.py | 97 + .../test_v0043_openapi_users_add_cond_resp.py | 201 + ...t_v0043_openapi_users_add_cond_resp_str.py | 85 + test/test_v0043_openapi_users_resp.py | 177 + test/test_v0043_openapi_warning.py | 53 + test/test_v0043_openapi_wckey_removed_resp.py | 89 + test/test_v0043_openapi_wckey_resp.py | 129 + test/test_v0043_part_prio.py | 53 + test/test_v0043_partition_info.py | 146 + test/test_v0043_partition_info_defaults.py | 65 + test/test_v0043_partition_info_maximums.py | 86 + test/test_v0043_partition_info_timeouts.py | 59 + test/test_v0043_process_exit_code_verbose.py | 64 + ..._v0043_process_exit_code_verbose_signal.py | 56 + test/test_v0043_qos.py | 112 + test/test_v0043_qos_limits.py | 100 + test/test_v0043_qos_limits_max.py | 119 + test/test_v0043_qos_limits_max_active_jobs.py | 59 + test/test_v0043_qos_limits_max_jobs.py | 74 + ...t_v0043_qos_limits_max_jobs_active_jobs.py | 60 + ...043_qos_limits_max_jobs_active_jobs_per.py | 59 + test/test_v0043_qos_limits_max_tres.py | 94 + .../test_v0043_qos_limits_max_tres_minutes.py | 75 + ...t_v0043_qos_limits_max_tres_minutes_per.py | 79 + test/test_v0043_qos_limits_max_tres_per.py | 79 + test/test_v0043_qos_limits_max_wall_clock.py | 60 + ...est_v0043_qos_limits_max_wall_clock_per.py | 59 + test/test_v0043_qos_limits_min.py | 64 + test/test_v0043_qos_limits_min_tres.py | 59 + test/test_v0043_qos_limits_min_tres_per.py | 58 + test/test_v0043_qos_preempt.py | 61 + test/test_v0043_reservation_core_spec.py | 53 + test/test_v0043_reservation_desc_msg.py | 110 + test/test_v0043_reservation_info.py | 89 + ..._v0043_reservation_info_purge_completed.py | 55 + test/test_v0043_reservation_mod_req.py | 100 + test/test_v0043_rollup_stats.py | 72 + test/test_v0043_schedule_exit_fields.py | 57 + test/test_v0043_shares_float128_tres.py | 53 + test/test_v0043_shares_resp_msg.py | 97 + test/test_v0043_shares_uint64_tres.py | 56 + test/test_v0043_slurmdbd_ping.py | 59 + test/test_v0043_stats_msg.py | 165 + test/test_v0043_stats_msg_rpc_dump.py | 61 + test/test_v0043_stats_msg_rpc_queue.py | 57 + test/test_v0043_stats_msg_rpc_type.py | 75 + test/test_v0043_stats_msg_rpc_user.py | 67 + test/test_v0043_stats_rec.py | 82 + test/test_v0043_stats_rpc.py | 56 + test/test_v0043_stats_user.py | 56 + test/test_v0043_step.py | 156 + test/test_v0043_step_cpu.py | 61 + ...test_v0043_step_cpu_requested_frequency.py | 59 + test/test_v0043_step_nodes.py | 56 + test/test_v0043_step_statistics.py | 58 + test/test_v0043_step_statistics_energy.py | 55 + test/test_v0043_step_time.py | 74 + test/test_v0043_step_tres.py | 100 + test/test_v0043_step_tres_consumed.py | 79 + test/test_v0043_step_tres_requested.py | 79 + test/test_v0043_tres.py | 56 + test/test_v0043_uint16_no_val_struct.py | 54 + test/test_v0043_uint32_no_val_struct.py | 54 + test/test_v0043_uint64_no_val_struct.py | 54 + test/test_v0043_update_node_msg.py | 84 + test/test_v0043_user.py | 99 + test/test_v0043_user_short.py | 56 + test/test_v0043_users_add_cond.py | 112 + test/test_v0043_wckey.py | 74 + test/test_v0043_wckey_tag_struct.py | 59 + test/test_v0044_account.py | 73 + test/test_v0044_account_short.py | 53 + test/test_v0044_accounting.py | 61 + test/test_v0044_accounting_allocated.py | 52 + test/test_v0044_accounts_add_cond.py | 103 + test/test_v0044_acct_gather_energy.py | 60 + test/test_v0044_assoc.py | 119 + test/test_v0044_assoc_max.py | 96 + test/test_v0044_assoc_max_jobs.py | 74 + test/test_v0044_assoc_max_jobs_per.py | 67 + test/test_v0044_assoc_max_per.py | 56 + test/test_v0044_assoc_max_per_account.py | 55 + test/test_v0044_assoc_max_tres.py | 104 + test/test_v0044_assoc_max_tres_group.py | 65 + test/test_v0044_assoc_max_tres_minutes.py | 66 + test/test_v0044_assoc_max_tres_per.py | 65 + test/test_v0044_assoc_min.py | 55 + test/test_v0044_assoc_rec_set.py | 147 + test/test_v0044_assoc_shares_obj_wrap.py | 102 + ...t_v0044_assoc_shares_obj_wrap_fairshare.py | 59 + test/test_v0044_assoc_shares_obj_wrap_tres.py | 72 + test/test_v0044_assoc_short.py | 57 + test/test_v0044_bf_exit_fields.py | 57 + test/test_v0044_cluster_rec.py | 75 + test/test_v0044_cluster_rec_associations.py | 57 + test/test_v0044_controller_ping.py | 59 + test/test_v0044_coord.py | 54 + test/test_v0044_cron_entry.py | 64 + test/test_v0044_float64_no_val_struct.py | 54 + test/test_v0044_instance.py | 59 + test/test_v0044_instance_time.py | 53 + test/test_v0044_job.py | 295 + test/test_v0044_job_alloc_req.py | 425 + test/test_v0044_job_array.py | 61 + ...test_v0044_job_array_response_msg_entry.py | 56 + test/test_v0044_job_desc_msg.py | 265 + test/test_v0044_job_desc_msg_rlimits.py | 91 + test/test_v0044_job_het.py | 56 + test/test_v0044_job_info.py | 405 + test/test_v0044_job_modify.py | 79 + test/test_v0044_job_modify_tres.py | 58 + test/test_v0044_job_required.py | 60 + test/test_v0044_job_res.py | 96 + test/test_v0044_job_res_core.py | 59 + test/test_v0044_job_res_node.py | 83 + test/test_v0044_job_res_nodes.py | 79 + test/test_v0044_job_res_socket.py | 67 + test/test_v0044_job_reservation.py | 54 + test/test_v0044_job_state.py | 55 + test/test_v0044_job_submit_req.py | 426 + test/test_v0044_job_time.py | 74 + test/test_v0044_job_tres.py | 65 + test/test_v0044_kill_jobs_msg.py | 72 + test/test_v0044_kill_jobs_resp_job.py | 67 + test/test_v0044_license.py | 61 + test/test_v0044_node.py | 153 + test/test_v0044_node_gres_layout.py | 56 + test/test_v0044_node_resource_layout.py | 68 + ...st_v0044_openapi_accounts_add_cond_resp.py | 186 + ...0044_openapi_accounts_add_cond_resp_str.py | 85 + ...est_v0044_openapi_accounts_removed_resp.py | 89 + test/test_v0044_openapi_accounts_resp.py | 127 + .../test_v0044_openapi_assocs_removed_resp.py | 89 + test/test_v0044_openapi_assocs_resp.py | 211 + ...est_v0044_openapi_clusters_removed_resp.py | 89 + test/test_v0044_openapi_clusters_resp.py | 137 + test/test_v0044_openapi_create_node_req.py | 85 + test/test_v0044_openapi_diag_resp.py | 289 + test/test_v0044_openapi_error.py | 55 + test/test_v0044_openapi_hostlist_req_resp.py | 85 + test/test_v0044_openapi_hostnames_req_resp.py | 89 + test/test_v0044_openapi_instances_resp.py | 105 + test/test_v0044_openapi_job_alloc_resp.py | 85 + test/test_v0044_openapi_job_info_resp.py | 533 + test/test_v0044_openapi_job_modify_req.py | 114 + test/test_v0044_openapi_job_modify_resp.py | 89 + test/test_v0044_openapi_job_post_response.py | 91 + .../test_v0044_openapi_job_submit_response.py | 86 + test/test_v0044_openapi_kill_job_resp.py | 111 + test/test_v0044_openapi_kill_jobs_resp.py | 111 + test/test_v0044_openapi_licenses_resp.py | 117 + test/test_v0044_openapi_meta.py | 70 + test/test_v0044_openapi_nodes_resp.py | 267 + test/test_v0044_openapi_partition_resp.py | 247 + test/test_v0044_openapi_ping_array_resp.py | 101 + ...test_v0044_openapi_reservation_mod_resp.py | 181 + test/test_v0044_openapi_reservation_resp.py | 173 + ...test_v0044_openapi_resource_layout_resp.py | 121 + test/test_v0044_openapi_resp.py | 83 + test/test_v0044_openapi_shares_resp.py | 169 + ...test_v0044_openapi_slurmdbd_config_resp.py | 340 + test/test_v0044_openapi_slurmdbd_jobs_resp.py | 413 + test/test_v0044_openapi_slurmdbd_ping_resp.py | 97 + ...v0044_openapi_slurmdbd_qos_removed_resp.py | 89 + test/test_v0044_openapi_slurmdbd_qos_resp.py | 193 + .../test_v0044_openapi_slurmdbd_stats_resp.py | 141 + test/test_v0044_openapi_tres_resp.py | 97 + .../test_v0044_openapi_users_add_cond_resp.py | 203 + ...t_v0044_openapi_users_add_cond_resp_str.py | 85 + test/test_v0044_openapi_users_resp.py | 179 + test/test_v0044_openapi_warning.py | 53 + test/test_v0044_openapi_wckey_removed_resp.py | 89 + test/test_v0044_openapi_wckey_resp.py | 129 + test/test_v0044_part_prio.py | 53 + test/test_v0044_partition_info.py | 146 + test/test_v0044_partition_info_accounts.py | 53 + test/test_v0044_partition_info_cpus.py | 53 + test/test_v0044_partition_info_defaults.py | 65 + test/test_v0044_partition_info_groups.py | 52 + test/test_v0044_partition_info_maximums.py | 86 + test/test_v0044_partition_info_minimums.py | 52 + test/test_v0044_partition_info_nodes.py | 54 + test/test_v0044_partition_info_priority.py | 53 + test/test_v0044_partition_info_qos.py | 54 + test/test_v0044_partition_info_timeouts.py | 59 + test/test_v0044_partition_info_tres.py | 53 + test/test_v0044_process_exit_code_verbose.py | 64 + ..._v0044_process_exit_code_verbose_signal.py | 56 + test/test_v0044_qos.py | 112 + test/test_v0044_qos_limits.py | 100 + test/test_v0044_qos_limits_max.py | 119 + test/test_v0044_qos_limits_max_active_jobs.py | 59 + test/test_v0044_qos_limits_max_jobs.py | 74 + ...t_v0044_qos_limits_max_jobs_active_jobs.py | 60 + ...044_qos_limits_max_jobs_active_jobs_per.py | 59 + test/test_v0044_qos_limits_max_tres.py | 94 + .../test_v0044_qos_limits_max_tres_minutes.py | 75 + ...t_v0044_qos_limits_max_tres_minutes_per.py | 79 + test/test_v0044_qos_limits_max_tres_per.py | 79 + test/test_v0044_qos_limits_max_wall_clock.py | 60 + ...est_v0044_qos_limits_max_wall_clock_per.py | 59 + test/test_v0044_qos_limits_min.py | 64 + test/test_v0044_qos_limits_min_tres.py | 59 + test/test_v0044_qos_limits_min_tres_per.py | 58 + test/test_v0044_qos_preempt.py | 61 + test/test_v0044_reservation_core_spec.py | 53 + test/test_v0044_reservation_desc_msg.py | 110 + test/test_v0044_reservation_info.py | 89 + ..._v0044_reservation_info_purge_completed.py | 55 + test/test_v0044_reservation_mod_req.py | 100 + test/test_v0044_rollup_stats.py | 72 + test/test_v0044_rollup_stats_daily.py | 57 + test/test_v0044_rollup_stats_hourly.py | 57 + test/test_v0044_rollup_stats_monthly.py | 57 + test/test_v0044_schedule_exit_fields.py | 57 + test/test_v0044_shares_float128_tres.py | 53 + test/test_v0044_shares_resp_msg.py | 97 + test/test_v0044_shares_uint64_tres.py | 56 + test/test_v0044_slurm_step_id.py | 61 + test/test_v0044_slurmdbd_ping.py | 59 + test/test_v0044_stats_msg.py | 165 + test/test_v0044_stats_msg_rpc_dump.py | 61 + test/test_v0044_stats_msg_rpc_queue.py | 57 + test/test_v0044_stats_msg_rpc_type.py | 75 + test/test_v0044_stats_msg_rpc_user.py | 67 + test/test_v0044_stats_rec.py | 82 + test/test_v0044_stats_rpc.py | 56 + test/test_v0044_stats_user.py | 56 + test/test_v0044_step.py | 156 + test/test_v0044_step_cpu.py | 61 + ...test_v0044_step_cpu_requested_frequency.py | 59 + test/test_v0044_step_nodes.py | 56 + test/test_v0044_step_statistics.py | 58 + test/test_v0044_step_statistics_energy.py | 55 + test/test_v0044_step_step.py | 59 + test/test_v0044_step_time.py | 74 + test/test_v0044_step_tres.py | 100 + test/test_v0044_step_tres_consumed.py | 79 + test/test_v0044_step_tres_requested.py | 79 + test/test_v0044_tres.py | 56 + test/test_v0044_uint16_no_val_struct.py | 54 + test/test_v0044_uint32_no_val_struct.py | 54 + test/test_v0044_uint64_no_val_struct.py | 54 + test/test_v0044_update_node_msg.py | 84 + test/test_v0044_user.py | 100 + test/test_v0044_user_default.py | 54 + test/test_v0044_user_short.py | 57 + test/test_v0044_users_add_cond.py | 112 + test/test_v0044_wckey.py | 74 + test/test_v0044_wckey_tag_struct.py | 59 + tox.ini | 9 + 2518 files changed, 373758 insertions(+), 1272 deletions(-) create mode 100644 .github/workflows/python.yml create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 .openapi-generator-ignore create mode 100644 .openapi-generator/FILES create mode 100644 .openapi-generator/VERSION create mode 100644 .travis.yml delete mode 100644 LICENSE delete mode 100644 docker-compose.yml create mode 100644 docs/SlurmApi.md create mode 100644 docs/SlurmdbApi.md create mode 100644 docs/UtilApi.md create mode 100644 docs/V0041JobAllocReq.md create mode 100644 docs/V0041JobDescMsg.md create mode 100644 docs/V0041JobDescMsgBeginTime.md create mode 100644 docs/V0041JobDescMsgCrontab.md create mode 100644 docs/V0041JobDescMsgCrontabLine.md create mode 100644 docs/V0041JobDescMsgDistributionPlaneSize.md create mode 100644 docs/V0041JobDescMsgKillWarningDelay.md create mode 100644 docs/V0041JobDescMsgMemoryPerCpu.md create mode 100644 docs/V0041JobDescMsgPriority.md create mode 100644 docs/V0041JobDescMsgRequiredSwitches.md create mode 100644 docs/V0041JobDescMsgRlimits.md create mode 100644 docs/V0041JobDescMsgRlimitsAs.md create mode 100644 docs/V0041JobDescMsgRlimitsCore.md create mode 100644 docs/V0041JobDescMsgRlimitsCpu.md create mode 100644 docs/V0041JobDescMsgRlimitsData.md create mode 100644 docs/V0041JobDescMsgRlimitsFsize.md create mode 100644 docs/V0041JobDescMsgRlimitsMemlock.md create mode 100644 docs/V0041JobDescMsgRlimitsNofile.md create mode 100644 docs/V0041JobDescMsgRlimitsNproc.md create mode 100644 docs/V0041JobDescMsgRlimitsRss.md create mode 100644 docs/V0041JobDescMsgRlimitsStack.md create mode 100644 docs/V0041JobDescMsgSegmentSize.md create mode 100644 docs/V0041JobDescMsgTimeLimit.md create mode 100644 docs/V0041JobDescMsgTimeMinimum.md create mode 100644 docs/V0041JobSubmitReq.md create mode 100644 docs/V0041KillJobsMsg.md create mode 100644 docs/V0041OpenapiAccountsAddCondResp.md create mode 100644 docs/V0041OpenapiAccountsAddCondRespAccount.md create mode 100644 docs/V0041OpenapiAccountsAddCondRespAssociationCondition.md create mode 100644 docs/V0041OpenapiAccountsAddCondRespStr.md create mode 100644 docs/V0041OpenapiAccountsRemovedResp.md create mode 100644 docs/V0041OpenapiAccountsResp.md create mode 100644 docs/V0041OpenapiAssocsRemovedResp.md create mode 100644 docs/V0041OpenapiAssocsResp.md create mode 100644 docs/V0041OpenapiClustersRemovedResp.md create mode 100644 docs/V0041OpenapiClustersResp.md create mode 100644 docs/V0041OpenapiDiagResp.md create mode 100644 docs/V0041OpenapiDiagRespStatistics.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsBfExit.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsBfWhenLastCycle.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsJobStatesTs.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsPendingRpcsInner.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsReqTime.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsReqTimeStart.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsRpcsByUserInner.md create mode 100644 docs/V0041OpenapiDiagRespStatisticsScheduleExit.md create mode 100644 docs/V0041OpenapiInstancesResp.md create mode 100644 docs/V0041OpenapiJobAllocResp.md create mode 100644 docs/V0041OpenapiJobInfoResp.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInner.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerAccrueTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerArrayJobId.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerBillableTres.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerCpus.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerCpusPerTask.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerDeadline.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerDelayBoot.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerEligibleTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerEndTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerExitCode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerHetJobId.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResources.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerMaxCpus.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerMaxNodes.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerNodeCount.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerPower.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerPreSusTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerPreemptTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerPreemptableTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerResizeTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerStartTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerSubmitTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerSuspendTime.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerTasks.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerTasksPerCore.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerTasksPerNode.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerTasksPerTres.md create mode 100644 docs/V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.md create mode 100644 docs/V0041OpenapiJobInfoRespLastBackfill.md create mode 100644 docs/V0041OpenapiJobInfoRespLastUpdate.md create mode 100644 docs/V0041OpenapiJobPostResponse.md create mode 100644 docs/V0041OpenapiJobPostResponseResultsInner.md create mode 100644 docs/V0041OpenapiJobSubmitResponse.md create mode 100644 docs/V0041OpenapiJobSubmitResponseResult.md create mode 100644 docs/V0041OpenapiKillJobsResp.md create mode 100644 docs/V0041OpenapiKillJobsRespStatusInner.md create mode 100644 docs/V0041OpenapiKillJobsRespStatusInnerError.md create mode 100644 docs/V0041OpenapiKillJobsRespStatusInnerFederation.md create mode 100644 docs/V0041OpenapiKillJobsRespStatusInnerJobId.md create mode 100644 docs/V0041OpenapiLicensesResp.md create mode 100644 docs/V0041OpenapiLicensesRespLastUpdate.md create mode 100644 docs/V0041OpenapiLicensesRespLicensesInner.md create mode 100644 docs/V0041OpenapiNodesResp.md create mode 100644 docs/V0041OpenapiNodesRespLastUpdate.md create mode 100644 docs/V0041OpenapiNodesRespNodesInner.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerBootTime.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerEnergy.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerFreeMem.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerLastBusy.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerReasonChangedAt.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerResumeAfter.md create mode 100644 docs/V0041OpenapiNodesRespNodesInnerSlurmdStartTime.md create mode 100644 docs/V0041OpenapiPartitionResp.md create mode 100644 docs/V0041OpenapiPartitionRespLastUpdate.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInner.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerAccounts.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerCpus.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerDefaults.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerGroups.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximums.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerMinimums.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerNodes.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerPartition.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerPriority.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerQos.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerSuspendTime.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerTimeouts.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.md create mode 100644 docs/V0041OpenapiPartitionRespPartitionsInnerTres.md create mode 100644 docs/V0041OpenapiPingArrayResp.md create mode 100644 docs/V0041OpenapiPingArrayRespPingsInner.md create mode 100644 docs/V0041OpenapiReservationResp.md create mode 100644 docs/V0041OpenapiReservationRespLastUpdate.md create mode 100644 docs/V0041OpenapiReservationRespReservationsInner.md create mode 100644 docs/V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.md create mode 100644 docs/V0041OpenapiReservationRespReservationsInnerEndTime.md create mode 100644 docs/V0041OpenapiReservationRespReservationsInnerPurgeCompleted.md create mode 100644 docs/V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.md create mode 100644 docs/V0041OpenapiReservationRespReservationsInnerStartTime.md create mode 100644 docs/V0041OpenapiReservationRespReservationsInnerWatts.md create mode 100644 docs/V0041OpenapiResp.md create mode 100644 docs/V0041OpenapiSharesResp.md create mode 100644 docs/V0041OpenapiSharesRespErrorsInner.md create mode 100644 docs/V0041OpenapiSharesRespMeta.md create mode 100644 docs/V0041OpenapiSharesRespMetaClient.md create mode 100644 docs/V0041OpenapiSharesRespMetaPlugin.md create mode 100644 docs/V0041OpenapiSharesRespMetaSlurm.md create mode 100644 docs/V0041OpenapiSharesRespMetaSlurmVersion.md create mode 100644 docs/V0041OpenapiSharesRespShares.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInner.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerFairshare.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerShares.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerTres.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.md create mode 100644 docs/V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.md create mode 100644 docs/V0041OpenapiSharesRespWarningsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigResp.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAccountsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespClustersInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespClustersInnerController.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespInstancesInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimits.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerPriority.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespUsersInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.md create mode 100644 docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsResp.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArray.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerHet.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerState.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTime.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTres.md create mode 100644 docs/V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.md create mode 100644 docs/V0041OpenapiSlurmdbdQosRemovedResp.md create mode 100644 docs/V0041OpenapiSlurmdbdQosResp.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsResp.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatistics.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollups.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md create mode 100644 docs/V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.md create mode 100644 docs/V0041OpenapiTresResp.md create mode 100644 docs/V0041OpenapiUsersAddCondResp.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationCondition.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.md create mode 100644 docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.md create mode 100644 docs/V0041OpenapiUsersAddCondRespStr.md create mode 100644 docs/V0041OpenapiUsersAddCondRespUser.md create mode 100644 docs/V0041OpenapiUsersResp.md create mode 100644 docs/V0041OpenapiWckeyRemovedResp.md create mode 100644 docs/V0041OpenapiWckeyResp.md create mode 100644 docs/V0041UpdateNodeMsg.md create mode 100644 docs/V0041UpdateNodeMsgResumeAfter.md create mode 100644 docs/V0041UpdateNodeMsgWeight.md create mode 100644 docs/V0042Account.md create mode 100644 docs/V0042AccountShort.md create mode 100644 docs/V0042Accounting.md create mode 100644 docs/V0042AccountsAddCond.md create mode 100644 docs/V0042AcctGatherEnergy.md create mode 100644 docs/V0042Assoc.md create mode 100644 docs/V0042AssocMax.md create mode 100644 docs/V0042AssocMaxJobs.md create mode 100644 docs/V0042AssocMaxJobsPer.md create mode 100644 docs/V0042AssocMaxPer.md create mode 100644 docs/V0042AssocMaxPerAccount.md create mode 100644 docs/V0042AssocMaxTres.md create mode 100644 docs/V0042AssocMaxTresGroup.md create mode 100644 docs/V0042AssocMaxTresMinutes.md create mode 100644 docs/V0042AssocMaxTresPer.md create mode 100644 docs/V0042AssocMin.md create mode 100644 docs/V0042AssocRecSet.md create mode 100644 docs/V0042AssocSharesObjWrap.md create mode 100644 docs/V0042AssocSharesObjWrapFairshare.md create mode 100644 docs/V0042AssocSharesObjWrapTres.md create mode 100644 docs/V0042AssocShort.md create mode 100644 docs/V0042BfExitFields.md create mode 100644 docs/V0042ClusterRec.md create mode 100644 docs/V0042ClusterRecAssociations.md create mode 100644 docs/V0042ControllerPing.md create mode 100644 docs/V0042Coord.md create mode 100644 docs/V0042CronEntry.md create mode 100644 docs/V0042Float64NoValStruct.md create mode 100644 docs/V0042Instance.md create mode 100644 docs/V0042Job.md create mode 100644 docs/V0042JobAllocReq.md create mode 100644 docs/V0042JobArray.md create mode 100644 docs/V0042JobArrayResponseMsgEntry.md create mode 100644 docs/V0042JobDescMsg.md create mode 100644 docs/V0042JobDescMsgRlimits.md create mode 100644 docs/V0042JobHet.md create mode 100644 docs/V0042JobInfo.md create mode 100644 docs/V0042JobRequired.md create mode 100644 docs/V0042JobRes.md create mode 100644 docs/V0042JobResCore.md create mode 100644 docs/V0042JobResNode.md create mode 100644 docs/V0042JobResNodes.md create mode 100644 docs/V0042JobResSocket.md create mode 100644 docs/V0042JobState.md create mode 100644 docs/V0042JobSubmitReq.md create mode 100644 docs/V0042JobTime.md create mode 100644 docs/V0042JobTres.md create mode 100644 docs/V0042KillJobsMsg.md create mode 100644 docs/V0042KillJobsRespJob.md create mode 100644 docs/V0042License.md create mode 100644 docs/V0042Node.md create mode 100644 docs/V0042OpenapiAccountsAddCondResp.md create mode 100644 docs/V0042OpenapiAccountsAddCondRespStr.md create mode 100644 docs/V0042OpenapiAccountsRemovedResp.md create mode 100644 docs/V0042OpenapiAccountsResp.md create mode 100644 docs/V0042OpenapiAssocsRemovedResp.md create mode 100644 docs/V0042OpenapiAssocsResp.md create mode 100644 docs/V0042OpenapiClustersRemovedResp.md create mode 100644 docs/V0042OpenapiClustersResp.md create mode 100644 docs/V0042OpenapiDiagResp.md create mode 100644 docs/V0042OpenapiError.md create mode 100644 docs/V0042OpenapiInstancesResp.md create mode 100644 docs/V0042OpenapiJobAllocResp.md create mode 100644 docs/V0042OpenapiJobInfoResp.md create mode 100644 docs/V0042OpenapiJobPostResponse.md create mode 100644 docs/V0042OpenapiJobSubmitResponse.md create mode 100644 docs/V0042OpenapiKillJobResp.md create mode 100644 docs/V0042OpenapiKillJobsResp.md create mode 100644 docs/V0042OpenapiLicensesResp.md create mode 100644 docs/V0042OpenapiMeta.md create mode 100644 docs/V0042OpenapiNodesResp.md create mode 100644 docs/V0042OpenapiPartitionResp.md create mode 100644 docs/V0042OpenapiPingArrayResp.md create mode 100644 docs/V0042OpenapiReservationResp.md create mode 100644 docs/V0042OpenapiResp.md create mode 100644 docs/V0042OpenapiSharesResp.md create mode 100644 docs/V0042OpenapiSlurmdbdConfigResp.md create mode 100644 docs/V0042OpenapiSlurmdbdJobsResp.md create mode 100644 docs/V0042OpenapiSlurmdbdPingResp.md create mode 100644 docs/V0042OpenapiSlurmdbdQosRemovedResp.md create mode 100644 docs/V0042OpenapiSlurmdbdQosResp.md create mode 100644 docs/V0042OpenapiSlurmdbdStatsResp.md create mode 100644 docs/V0042OpenapiTresResp.md create mode 100644 docs/V0042OpenapiUsersAddCondResp.md create mode 100644 docs/V0042OpenapiUsersAddCondRespStr.md create mode 100644 docs/V0042OpenapiUsersResp.md create mode 100644 docs/V0042OpenapiWarning.md create mode 100644 docs/V0042OpenapiWckeyRemovedResp.md create mode 100644 docs/V0042OpenapiWckeyResp.md create mode 100644 docs/V0042PartPrio.md create mode 100644 docs/V0042PartitionInfo.md create mode 100644 docs/V0042PartitionInfoDefaults.md create mode 100644 docs/V0042PartitionInfoMaximums.md create mode 100644 docs/V0042PartitionInfoMaximumsOversubscribe.md create mode 100644 docs/V0042PartitionInfoPartition.md create mode 100644 docs/V0042PartitionInfoTimeouts.md create mode 100644 docs/V0042ProcessExitCodeVerbose.md create mode 100644 docs/V0042ProcessExitCodeVerboseSignal.md create mode 100644 docs/V0042Qos.md create mode 100644 docs/V0042QosLimits.md create mode 100644 docs/V0042QosLimitsMax.md create mode 100644 docs/V0042QosLimitsMaxActiveJobs.md create mode 100644 docs/V0042QosLimitsMaxJobs.md create mode 100644 docs/V0042QosLimitsMaxJobsActiveJobs.md create mode 100644 docs/V0042QosLimitsMaxJobsActiveJobsPer.md create mode 100644 docs/V0042QosLimitsMaxTres.md create mode 100644 docs/V0042QosLimitsMaxTresMinutes.md create mode 100644 docs/V0042QosLimitsMaxTresMinutesPer.md create mode 100644 docs/V0042QosLimitsMaxTresPer.md create mode 100644 docs/V0042QosLimitsMaxWallClock.md create mode 100644 docs/V0042QosLimitsMaxWallClockPer.md create mode 100644 docs/V0042QosLimitsMin.md create mode 100644 docs/V0042QosLimitsMinTres.md create mode 100644 docs/V0042QosLimitsMinTresPer.md create mode 100644 docs/V0042QosPreempt.md create mode 100644 docs/V0042ReservationCoreSpec.md create mode 100644 docs/V0042ReservationInfo.md create mode 100644 docs/V0042ReservationInfoPurgeCompleted.md create mode 100644 docs/V0042RollupStats.md create mode 100644 docs/V0042ScheduleExitFields.md create mode 100644 docs/V0042SharesFloat128Tres.md create mode 100644 docs/V0042SharesRespMsg.md create mode 100644 docs/V0042SharesUint64Tres.md create mode 100644 docs/V0042SlurmdbdPing.md create mode 100644 docs/V0042StatsMsg.md create mode 100644 docs/V0042StatsMsgRpcDump.md create mode 100644 docs/V0042StatsMsgRpcQueue.md create mode 100644 docs/V0042StatsMsgRpcType.md create mode 100644 docs/V0042StatsMsgRpcUser.md create mode 100644 docs/V0042StatsRec.md create mode 100644 docs/V0042StatsRpc.md create mode 100644 docs/V0042StatsUser.md create mode 100644 docs/V0042Step.md create mode 100644 docs/V0042StepCPU.md create mode 100644 docs/V0042StepCPURequestedFrequency.md create mode 100644 docs/V0042StepNodes.md create mode 100644 docs/V0042StepStatistics.md create mode 100644 docs/V0042StepStatisticsEnergy.md create mode 100644 docs/V0042StepTime.md create mode 100644 docs/V0042StepTres.md create mode 100644 docs/V0042StepTresConsumed.md create mode 100644 docs/V0042StepTresRequested.md create mode 100644 docs/V0042Tres.md create mode 100644 docs/V0042Uint16NoValStruct.md create mode 100644 docs/V0042Uint32NoValStruct.md create mode 100644 docs/V0042Uint64NoValStruct.md create mode 100644 docs/V0042UpdateNodeMsg.md create mode 100644 docs/V0042User.md create mode 100644 docs/V0042UserDefault.md create mode 100644 docs/V0042UserShort.md create mode 100644 docs/V0042UsersAddCond.md create mode 100644 docs/V0042Wckey.md create mode 100644 docs/V0042WckeyTagStruct.md create mode 100644 docs/V0043Account.md create mode 100644 docs/V0043AccountShort.md create mode 100644 docs/V0043Accounting.md create mode 100644 docs/V0043AccountsAddCond.md create mode 100644 docs/V0043AcctGatherEnergy.md create mode 100644 docs/V0043Assoc.md create mode 100644 docs/V0043AssocMax.md create mode 100644 docs/V0043AssocMaxJobs.md create mode 100644 docs/V0043AssocMaxJobsPer.md create mode 100644 docs/V0043AssocMaxPer.md create mode 100644 docs/V0043AssocMaxPerAccount.md create mode 100644 docs/V0043AssocMaxTres.md create mode 100644 docs/V0043AssocMaxTresGroup.md create mode 100644 docs/V0043AssocMaxTresMinutes.md create mode 100644 docs/V0043AssocMaxTresPer.md create mode 100644 docs/V0043AssocMin.md create mode 100644 docs/V0043AssocRecSet.md create mode 100644 docs/V0043AssocSharesObjWrap.md create mode 100644 docs/V0043AssocSharesObjWrapFairshare.md create mode 100644 docs/V0043AssocSharesObjWrapTres.md create mode 100644 docs/V0043AssocShort.md create mode 100644 docs/V0043BfExitFields.md create mode 100644 docs/V0043ClusterRec.md create mode 100644 docs/V0043ClusterRecAssociations.md create mode 100644 docs/V0043ControllerPing.md create mode 100644 docs/V0043Coord.md create mode 100644 docs/V0043CronEntry.md create mode 100644 docs/V0043Float64NoValStruct.md create mode 100644 docs/V0043Instance.md create mode 100644 docs/V0043Job.md create mode 100644 docs/V0043JobAllocReq.md create mode 100644 docs/V0043JobArray.md create mode 100644 docs/V0043JobArrayResponseMsgEntry.md create mode 100644 docs/V0043JobDescMsg.md create mode 100644 docs/V0043JobDescMsgRlimits.md create mode 100644 docs/V0043JobHet.md create mode 100644 docs/V0043JobInfo.md create mode 100644 docs/V0043JobRequired.md create mode 100644 docs/V0043JobRes.md create mode 100644 docs/V0043JobResCore.md create mode 100644 docs/V0043JobResNode.md create mode 100644 docs/V0043JobResNodes.md create mode 100644 docs/V0043JobResSocket.md create mode 100644 docs/V0043JobSubmitReq.md create mode 100644 docs/V0043JobTime.md create mode 100644 docs/V0043JobTres.md create mode 100644 docs/V0043KillJobsMsg.md create mode 100644 docs/V0043KillJobsRespJob.md create mode 100644 docs/V0043License.md create mode 100644 docs/V0043Node.md create mode 100644 docs/V0043OpenapiAccountsAddCondResp.md create mode 100644 docs/V0043OpenapiAccountsAddCondRespStr.md create mode 100644 docs/V0043OpenapiAccountsRemovedResp.md create mode 100644 docs/V0043OpenapiAccountsResp.md create mode 100644 docs/V0043OpenapiAssocsRemovedResp.md create mode 100644 docs/V0043OpenapiAssocsResp.md create mode 100644 docs/V0043OpenapiClustersRemovedResp.md create mode 100644 docs/V0043OpenapiClustersResp.md create mode 100644 docs/V0043OpenapiDiagResp.md create mode 100644 docs/V0043OpenapiError.md create mode 100644 docs/V0043OpenapiInstancesResp.md create mode 100644 docs/V0043OpenapiJobAllocResp.md create mode 100644 docs/V0043OpenapiJobInfoResp.md create mode 100644 docs/V0043OpenapiJobPostResponse.md create mode 100644 docs/V0043OpenapiJobSubmitResponse.md create mode 100644 docs/V0043OpenapiKillJobResp.md create mode 100644 docs/V0043OpenapiKillJobsResp.md create mode 100644 docs/V0043OpenapiLicensesResp.md create mode 100644 docs/V0043OpenapiMeta.md create mode 100644 docs/V0043OpenapiNodesResp.md create mode 100644 docs/V0043OpenapiPartitionResp.md create mode 100644 docs/V0043OpenapiPingArrayResp.md create mode 100644 docs/V0043OpenapiReservationModResp.md create mode 100644 docs/V0043OpenapiReservationResp.md create mode 100644 docs/V0043OpenapiResp.md create mode 100644 docs/V0043OpenapiSharesResp.md create mode 100644 docs/V0043OpenapiSlurmdbdConfigResp.md create mode 100644 docs/V0043OpenapiSlurmdbdJobsResp.md create mode 100644 docs/V0043OpenapiSlurmdbdPingResp.md create mode 100644 docs/V0043OpenapiSlurmdbdQosRemovedResp.md create mode 100644 docs/V0043OpenapiSlurmdbdQosResp.md create mode 100644 docs/V0043OpenapiSlurmdbdStatsResp.md create mode 100644 docs/V0043OpenapiTresResp.md create mode 100644 docs/V0043OpenapiUsersAddCondResp.md create mode 100644 docs/V0043OpenapiUsersAddCondRespStr.md create mode 100644 docs/V0043OpenapiUsersResp.md create mode 100644 docs/V0043OpenapiWarning.md create mode 100644 docs/V0043OpenapiWckeyRemovedResp.md create mode 100644 docs/V0043OpenapiWckeyResp.md create mode 100644 docs/V0043PartPrio.md create mode 100644 docs/V0043PartitionInfo.md create mode 100644 docs/V0043PartitionInfoDefaults.md create mode 100644 docs/V0043PartitionInfoMaximums.md create mode 100644 docs/V0043PartitionInfoTimeouts.md create mode 100644 docs/V0043ProcessExitCodeVerbose.md create mode 100644 docs/V0043ProcessExitCodeVerboseSignal.md create mode 100644 docs/V0043Qos.md create mode 100644 docs/V0043QosLimits.md create mode 100644 docs/V0043QosLimitsMax.md create mode 100644 docs/V0043QosLimitsMaxActiveJobs.md create mode 100644 docs/V0043QosLimitsMaxJobs.md create mode 100644 docs/V0043QosLimitsMaxJobsActiveJobs.md create mode 100644 docs/V0043QosLimitsMaxJobsActiveJobsPer.md create mode 100644 docs/V0043QosLimitsMaxTres.md create mode 100644 docs/V0043QosLimitsMaxTresMinutes.md create mode 100644 docs/V0043QosLimitsMaxTresMinutesPer.md create mode 100644 docs/V0043QosLimitsMaxTresPer.md create mode 100644 docs/V0043QosLimitsMaxWallClock.md create mode 100644 docs/V0043QosLimitsMaxWallClockPer.md create mode 100644 docs/V0043QosLimitsMin.md create mode 100644 docs/V0043QosLimitsMinTres.md create mode 100644 docs/V0043QosLimitsMinTresPer.md create mode 100644 docs/V0043QosPreempt.md create mode 100644 docs/V0043ReservationCoreSpec.md create mode 100644 docs/V0043ReservationDescMsg.md create mode 100644 docs/V0043ReservationInfo.md create mode 100644 docs/V0043ReservationInfoPurgeCompleted.md create mode 100644 docs/V0043ReservationModReq.md create mode 100644 docs/V0043RollupStats.md create mode 100644 docs/V0043ScheduleExitFields.md create mode 100644 docs/V0043SharesFloat128Tres.md create mode 100644 docs/V0043SharesRespMsg.md create mode 100644 docs/V0043SharesUint64Tres.md create mode 100644 docs/V0043SlurmdbdPing.md create mode 100644 docs/V0043StatsMsg.md create mode 100644 docs/V0043StatsMsgRpcDump.md create mode 100644 docs/V0043StatsMsgRpcQueue.md create mode 100644 docs/V0043StatsMsgRpcType.md create mode 100644 docs/V0043StatsMsgRpcUser.md create mode 100644 docs/V0043StatsRec.md create mode 100644 docs/V0043StatsRpc.md create mode 100644 docs/V0043StatsUser.md create mode 100644 docs/V0043Step.md create mode 100644 docs/V0043StepCPU.md create mode 100644 docs/V0043StepCPURequestedFrequency.md create mode 100644 docs/V0043StepNodes.md create mode 100644 docs/V0043StepStatistics.md create mode 100644 docs/V0043StepStatisticsEnergy.md create mode 100644 docs/V0043StepTime.md create mode 100644 docs/V0043StepTres.md create mode 100644 docs/V0043StepTresConsumed.md create mode 100644 docs/V0043StepTresRequested.md create mode 100644 docs/V0043Tres.md create mode 100644 docs/V0043Uint16NoValStruct.md create mode 100644 docs/V0043Uint32NoValStruct.md create mode 100644 docs/V0043Uint64NoValStruct.md create mode 100644 docs/V0043UpdateNodeMsg.md create mode 100644 docs/V0043User.md create mode 100644 docs/V0043UserShort.md create mode 100644 docs/V0043UsersAddCond.md create mode 100644 docs/V0043Wckey.md create mode 100644 docs/V0043WckeyTagStruct.md create mode 100644 docs/V0044Account.md create mode 100644 docs/V0044AccountShort.md create mode 100644 docs/V0044Accounting.md create mode 100644 docs/V0044AccountingAllocated.md create mode 100644 docs/V0044AccountsAddCond.md create mode 100644 docs/V0044AcctGatherEnergy.md create mode 100644 docs/V0044Assoc.md create mode 100644 docs/V0044AssocMax.md create mode 100644 docs/V0044AssocMaxJobs.md create mode 100644 docs/V0044AssocMaxJobsPer.md create mode 100644 docs/V0044AssocMaxPer.md create mode 100644 docs/V0044AssocMaxPerAccount.md create mode 100644 docs/V0044AssocMaxTres.md create mode 100644 docs/V0044AssocMaxTresGroup.md create mode 100644 docs/V0044AssocMaxTresMinutes.md create mode 100644 docs/V0044AssocMaxTresPer.md create mode 100644 docs/V0044AssocMin.md create mode 100644 docs/V0044AssocRecSet.md create mode 100644 docs/V0044AssocSharesObjWrap.md create mode 100644 docs/V0044AssocSharesObjWrapFairshare.md create mode 100644 docs/V0044AssocSharesObjWrapTres.md create mode 100644 docs/V0044AssocShort.md create mode 100644 docs/V0044BfExitFields.md create mode 100644 docs/V0044ClusterRec.md create mode 100644 docs/V0044ClusterRecAssociations.md create mode 100644 docs/V0044ControllerPing.md create mode 100644 docs/V0044Coord.md create mode 100644 docs/V0044CronEntry.md create mode 100644 docs/V0044Float64NoValStruct.md create mode 100644 docs/V0044Instance.md create mode 100644 docs/V0044InstanceTime.md create mode 100644 docs/V0044Job.md create mode 100644 docs/V0044JobAllocReq.md create mode 100644 docs/V0044JobArray.md create mode 100644 docs/V0044JobArrayResponseMsgEntry.md create mode 100644 docs/V0044JobDescMsg.md create mode 100644 docs/V0044JobDescMsgRlimits.md create mode 100644 docs/V0044JobHet.md create mode 100644 docs/V0044JobInfo.md create mode 100644 docs/V0044JobModify.md create mode 100644 docs/V0044JobModifyTres.md create mode 100644 docs/V0044JobRequired.md create mode 100644 docs/V0044JobRes.md create mode 100644 docs/V0044JobResCore.md create mode 100644 docs/V0044JobResNode.md create mode 100644 docs/V0044JobResNodes.md create mode 100644 docs/V0044JobResSocket.md create mode 100644 docs/V0044JobReservation.md create mode 100644 docs/V0044JobState.md create mode 100644 docs/V0044JobSubmitReq.md create mode 100644 docs/V0044JobTime.md create mode 100644 docs/V0044JobTres.md create mode 100644 docs/V0044KillJobsMsg.md create mode 100644 docs/V0044KillJobsRespJob.md create mode 100644 docs/V0044License.md create mode 100644 docs/V0044Node.md create mode 100644 docs/V0044NodeGresLayout.md create mode 100644 docs/V0044NodeResourceLayout.md create mode 100644 docs/V0044OpenapiAccountsAddCondResp.md create mode 100644 docs/V0044OpenapiAccountsAddCondRespStr.md create mode 100644 docs/V0044OpenapiAccountsRemovedResp.md create mode 100644 docs/V0044OpenapiAccountsResp.md create mode 100644 docs/V0044OpenapiAssocsRemovedResp.md create mode 100644 docs/V0044OpenapiAssocsResp.md create mode 100644 docs/V0044OpenapiClustersRemovedResp.md create mode 100644 docs/V0044OpenapiClustersResp.md create mode 100644 docs/V0044OpenapiCreateNodeReq.md create mode 100644 docs/V0044OpenapiDiagResp.md create mode 100644 docs/V0044OpenapiError.md create mode 100644 docs/V0044OpenapiHostlistReqResp.md create mode 100644 docs/V0044OpenapiHostnamesReqResp.md create mode 100644 docs/V0044OpenapiInstancesResp.md create mode 100644 docs/V0044OpenapiJobAllocResp.md create mode 100644 docs/V0044OpenapiJobInfoResp.md create mode 100644 docs/V0044OpenapiJobModifyReq.md create mode 100644 docs/V0044OpenapiJobModifyResp.md create mode 100644 docs/V0044OpenapiJobPostResponse.md create mode 100644 docs/V0044OpenapiJobSubmitResponse.md create mode 100644 docs/V0044OpenapiKillJobResp.md create mode 100644 docs/V0044OpenapiKillJobsResp.md create mode 100644 docs/V0044OpenapiLicensesResp.md create mode 100644 docs/V0044OpenapiMeta.md create mode 100644 docs/V0044OpenapiNodesResp.md create mode 100644 docs/V0044OpenapiPartitionResp.md create mode 100644 docs/V0044OpenapiPingArrayResp.md create mode 100644 docs/V0044OpenapiReservationModResp.md create mode 100644 docs/V0044OpenapiReservationResp.md create mode 100644 docs/V0044OpenapiResourceLayoutResp.md create mode 100644 docs/V0044OpenapiResp.md create mode 100644 docs/V0044OpenapiSharesResp.md create mode 100644 docs/V0044OpenapiSlurmdbdConfigResp.md create mode 100644 docs/V0044OpenapiSlurmdbdJobsResp.md create mode 100644 docs/V0044OpenapiSlurmdbdPingResp.md create mode 100644 docs/V0044OpenapiSlurmdbdQosRemovedResp.md create mode 100644 docs/V0044OpenapiSlurmdbdQosResp.md create mode 100644 docs/V0044OpenapiSlurmdbdStatsResp.md create mode 100644 docs/V0044OpenapiTresResp.md create mode 100644 docs/V0044OpenapiUsersAddCondResp.md create mode 100644 docs/V0044OpenapiUsersAddCondRespStr.md create mode 100644 docs/V0044OpenapiUsersResp.md create mode 100644 docs/V0044OpenapiWarning.md create mode 100644 docs/V0044OpenapiWckeyRemovedResp.md create mode 100644 docs/V0044OpenapiWckeyResp.md create mode 100644 docs/V0044PartPrio.md create mode 100644 docs/V0044PartitionInfo.md create mode 100644 docs/V0044PartitionInfoAccounts.md create mode 100644 docs/V0044PartitionInfoCpus.md create mode 100644 docs/V0044PartitionInfoDefaults.md create mode 100644 docs/V0044PartitionInfoGroups.md create mode 100644 docs/V0044PartitionInfoMaximums.md create mode 100644 docs/V0044PartitionInfoMinimums.md create mode 100644 docs/V0044PartitionInfoNodes.md create mode 100644 docs/V0044PartitionInfoPriority.md create mode 100644 docs/V0044PartitionInfoQos.md create mode 100644 docs/V0044PartitionInfoTimeouts.md create mode 100644 docs/V0044PartitionInfoTres.md create mode 100644 docs/V0044ProcessExitCodeVerbose.md create mode 100644 docs/V0044ProcessExitCodeVerboseSignal.md create mode 100644 docs/V0044Qos.md create mode 100644 docs/V0044QosLimits.md create mode 100644 docs/V0044QosLimitsMax.md create mode 100644 docs/V0044QosLimitsMaxActiveJobs.md create mode 100644 docs/V0044QosLimitsMaxJobs.md create mode 100644 docs/V0044QosLimitsMaxJobsActiveJobs.md create mode 100644 docs/V0044QosLimitsMaxJobsActiveJobsPer.md create mode 100644 docs/V0044QosLimitsMaxTres.md create mode 100644 docs/V0044QosLimitsMaxTresMinutes.md create mode 100644 docs/V0044QosLimitsMaxTresMinutesPer.md create mode 100644 docs/V0044QosLimitsMaxTresPer.md create mode 100644 docs/V0044QosLimitsMaxWallClock.md create mode 100644 docs/V0044QosLimitsMaxWallClockPer.md create mode 100644 docs/V0044QosLimitsMin.md create mode 100644 docs/V0044QosLimitsMinTres.md create mode 100644 docs/V0044QosLimitsMinTresPer.md create mode 100644 docs/V0044QosPreempt.md create mode 100644 docs/V0044ReservationCoreSpec.md create mode 100644 docs/V0044ReservationDescMsg.md create mode 100644 docs/V0044ReservationInfo.md create mode 100644 docs/V0044ReservationInfoPurgeCompleted.md create mode 100644 docs/V0044ReservationModReq.md create mode 100644 docs/V0044RollupStats.md create mode 100644 docs/V0044RollupStatsDaily.md create mode 100644 docs/V0044RollupStatsHourly.md create mode 100644 docs/V0044RollupStatsMonthly.md create mode 100644 docs/V0044ScheduleExitFields.md create mode 100644 docs/V0044SharesFloat128Tres.md create mode 100644 docs/V0044SharesRespMsg.md create mode 100644 docs/V0044SharesUint64Tres.md create mode 100644 docs/V0044SlurmStepId.md create mode 100644 docs/V0044SlurmdbdPing.md create mode 100644 docs/V0044StatsMsg.md create mode 100644 docs/V0044StatsMsgRpcDump.md create mode 100644 docs/V0044StatsMsgRpcQueue.md create mode 100644 docs/V0044StatsMsgRpcType.md create mode 100644 docs/V0044StatsMsgRpcUser.md create mode 100644 docs/V0044StatsRec.md create mode 100644 docs/V0044StatsRpc.md create mode 100644 docs/V0044StatsUser.md create mode 100644 docs/V0044Step.md create mode 100644 docs/V0044StepCPU.md create mode 100644 docs/V0044StepCPURequestedFrequency.md create mode 100644 docs/V0044StepNodes.md create mode 100644 docs/V0044StepStatistics.md create mode 100644 docs/V0044StepStatisticsEnergy.md create mode 100644 docs/V0044StepStep.md create mode 100644 docs/V0044StepTime.md create mode 100644 docs/V0044StepTres.md create mode 100644 docs/V0044StepTresConsumed.md create mode 100644 docs/V0044StepTresRequested.md create mode 100644 docs/V0044Tres.md create mode 100644 docs/V0044Uint16NoValStruct.md create mode 100644 docs/V0044Uint32NoValStruct.md create mode 100644 docs/V0044Uint64NoValStruct.md create mode 100644 docs/V0044UpdateNodeMsg.md create mode 100644 docs/V0044User.md create mode 100644 docs/V0044UserDefault.md create mode 100644 docs/V0044UserShort.md create mode 100644 docs/V0044UsersAddCond.md create mode 100644 docs/V0044Wckey.md create mode 100644 docs/V0044WckeyTagStruct.md create mode 100644 gen.yaml create mode 100644 git_push.sh create mode 100644 openapi_specs.json create mode 100644 requirements.txt create mode 100644 slurmrest_python/__init__.py create mode 100644 slurmrest_python/api/__init__.py create mode 100644 slurmrest_python/api/slurm_api.py create mode 100644 slurmrest_python/api/slurmdb_api.py create mode 100644 slurmrest_python/api/util_api.py create mode 100644 slurmrest_python/api_client.py create mode 100644 slurmrest_python/api_response.py create mode 100644 slurmrest_python/configuration.py create mode 100644 slurmrest_python/exceptions.py create mode 100644 slurmrest_python/models/__init__.py create mode 100644 slurmrest_python/models/v0041_job_alloc_req.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_begin_time.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_crontab.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_crontab_line.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_distribution_plane_size.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_kill_warning_delay.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_memory_per_cpu.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_priority.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_required_switches.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_as.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_core.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_cpu.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_data.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_fsize.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_memlock.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_nofile.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_nproc.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_rss.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_rlimits_stack.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_segment_size.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_time_limit.py create mode 100644 slurmrest_python/models/v0041_job_desc_msg_time_minimum.py create mode 100644 slurmrest_python/models/v0041_job_submit_req.py create mode 100644 slurmrest_python/models/v0041_kill_jobs_msg.py create mode 100644 slurmrest_python/models/v0041_openapi_accounts_add_cond_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_account.py create mode 100644 slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_association_condition.py create mode 100644 slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0041_openapi_accounts_removed_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_accounts_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_assocs_removed_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_assocs_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_clusters_removed_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_clusters_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_exit.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_job_states_ts.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time_start.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_diag_resp_statistics_schedule_exit.py create mode 100644 slurmrest_python/models/v0041_openapi_instances_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_job_alloc_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_accrue_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_job_id.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_task_id.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_billable_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_deadline.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_delay_boot.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_eligible_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_end_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_exit_code.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_id.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_cpus.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_nodes.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_node_count.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_power.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preempt_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_resize_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_start_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_submit_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_suspend_time.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_last_backfill.py create mode 100644 slurmrest_python/models/v0041_openapi_job_info_resp_last_update.py create mode 100644 slurmrest_python/models/v0041_openapi_job_post_response.py create mode 100644 slurmrest_python/models/v0041_openapi_job_post_response_results_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_job_submit_response.py create mode 100644 slurmrest_python/models/v0041_openapi_job_submit_response_result.py create mode 100644 slurmrest_python/models/v0041_openapi_kill_jobs_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_error.py create mode 100644 slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_federation.py create mode 100644 slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_job_id.py create mode 100644 slurmrest_python/models/v0041_openapi_licenses_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_licenses_resp_last_update.py create mode 100644 slurmrest_python/models/v0041_openapi_licenses_resp_licenses_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_last_update.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_boot_time.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_free_mem.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_last_busy.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_resume_after.py create mode 100644 slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_last_update.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_accounts.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_cpus.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_time.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_groups.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_time.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_minimums.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_nodes.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_partition.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_priority.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_qos.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_suspend_time.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py create mode 100644 slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_ping_array_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_ping_array_resp_pings_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_last_update.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_end_time.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_start_time.py create mode 100644 slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_watts.py create mode 100644 slurmrest_python/models/v0041_openapi_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_errors_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_meta.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_meta_client.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_meta_plugin.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm_version.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_fairshare.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py create mode 100644 slurmrest_python/models/v0041_openapi_shares_resp_warnings_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_default.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_min.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner_time.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_default.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_qos_removed_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_qos_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py create mode 100644 slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py create mode 100644 slurmrest_python/models/v0041_openapi_tres_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0041_openapi_users_add_cond_resp_user.py create mode 100644 slurmrest_python/models/v0041_openapi_users_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_wckey_removed_resp.py create mode 100644 slurmrest_python/models/v0041_openapi_wckey_resp.py create mode 100644 slurmrest_python/models/v0041_update_node_msg.py create mode 100644 slurmrest_python/models/v0041_update_node_msg_resume_after.py create mode 100644 slurmrest_python/models/v0041_update_node_msg_weight.py create mode 100644 slurmrest_python/models/v0042_account.py create mode 100644 slurmrest_python/models/v0042_account_short.py create mode 100644 slurmrest_python/models/v0042_accounting.py create mode 100644 slurmrest_python/models/v0042_accounts_add_cond.py create mode 100644 slurmrest_python/models/v0042_acct_gather_energy.py create mode 100644 slurmrest_python/models/v0042_assoc.py create mode 100644 slurmrest_python/models/v0042_assoc_max.py create mode 100644 slurmrest_python/models/v0042_assoc_max_jobs.py create mode 100644 slurmrest_python/models/v0042_assoc_max_jobs_per.py create mode 100644 slurmrest_python/models/v0042_assoc_max_per.py create mode 100644 slurmrest_python/models/v0042_assoc_max_per_account.py create mode 100644 slurmrest_python/models/v0042_assoc_max_tres.py create mode 100644 slurmrest_python/models/v0042_assoc_max_tres_group.py create mode 100644 slurmrest_python/models/v0042_assoc_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0042_assoc_max_tres_per.py create mode 100644 slurmrest_python/models/v0042_assoc_min.py create mode 100644 slurmrest_python/models/v0042_assoc_rec_set.py create mode 100644 slurmrest_python/models/v0042_assoc_shares_obj_wrap.py create mode 100644 slurmrest_python/models/v0042_assoc_shares_obj_wrap_fairshare.py create mode 100644 slurmrest_python/models/v0042_assoc_shares_obj_wrap_tres.py create mode 100644 slurmrest_python/models/v0042_assoc_short.py create mode 100644 slurmrest_python/models/v0042_bf_exit_fields.py create mode 100644 slurmrest_python/models/v0042_cluster_rec.py create mode 100644 slurmrest_python/models/v0042_cluster_rec_associations.py create mode 100644 slurmrest_python/models/v0042_controller_ping.py create mode 100644 slurmrest_python/models/v0042_coord.py create mode 100644 slurmrest_python/models/v0042_cron_entry.py create mode 100644 slurmrest_python/models/v0042_float64_no_val_struct.py create mode 100644 slurmrest_python/models/v0042_instance.py create mode 100644 slurmrest_python/models/v0042_job.py create mode 100644 slurmrest_python/models/v0042_job_alloc_req.py create mode 100644 slurmrest_python/models/v0042_job_array.py create mode 100644 slurmrest_python/models/v0042_job_array_response_msg_entry.py create mode 100644 slurmrest_python/models/v0042_job_desc_msg.py create mode 100644 slurmrest_python/models/v0042_job_desc_msg_rlimits.py create mode 100644 slurmrest_python/models/v0042_job_het.py create mode 100644 slurmrest_python/models/v0042_job_info.py create mode 100644 slurmrest_python/models/v0042_job_required.py create mode 100644 slurmrest_python/models/v0042_job_res.py create mode 100644 slurmrest_python/models/v0042_job_res_core.py create mode 100644 slurmrest_python/models/v0042_job_res_node.py create mode 100644 slurmrest_python/models/v0042_job_res_nodes.py create mode 100644 slurmrest_python/models/v0042_job_res_socket.py create mode 100644 slurmrest_python/models/v0042_job_state.py create mode 100644 slurmrest_python/models/v0042_job_submit_req.py create mode 100644 slurmrest_python/models/v0042_job_time.py create mode 100644 slurmrest_python/models/v0042_job_tres.py create mode 100644 slurmrest_python/models/v0042_kill_jobs_msg.py create mode 100644 slurmrest_python/models/v0042_kill_jobs_resp_job.py create mode 100644 slurmrest_python/models/v0042_license.py create mode 100644 slurmrest_python/models/v0042_node.py create mode 100644 slurmrest_python/models/v0042_openapi_accounts_add_cond_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_accounts_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0042_openapi_accounts_removed_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_accounts_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_assocs_removed_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_assocs_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_clusters_removed_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_clusters_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_diag_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_error.py create mode 100644 slurmrest_python/models/v0042_openapi_instances_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_job_alloc_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_job_info_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_job_post_response.py create mode 100644 slurmrest_python/models/v0042_openapi_job_submit_response.py create mode 100644 slurmrest_python/models/v0042_openapi_kill_job_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_kill_jobs_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_licenses_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_meta.py create mode 100644 slurmrest_python/models/v0042_openapi_nodes_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_partition_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_ping_array_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_reservation_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_shares_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_slurmdbd_config_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_slurmdbd_jobs_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_slurmdbd_ping_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_slurmdbd_qos_removed_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_slurmdbd_qos_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_slurmdbd_stats_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_tres_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_users_add_cond_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_users_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0042_openapi_users_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_warning.py create mode 100644 slurmrest_python/models/v0042_openapi_wckey_removed_resp.py create mode 100644 slurmrest_python/models/v0042_openapi_wckey_resp.py create mode 100644 slurmrest_python/models/v0042_part_prio.py create mode 100644 slurmrest_python/models/v0042_partition_info.py create mode 100644 slurmrest_python/models/v0042_partition_info_defaults.py create mode 100644 slurmrest_python/models/v0042_partition_info_maximums.py create mode 100644 slurmrest_python/models/v0042_partition_info_maximums_oversubscribe.py create mode 100644 slurmrest_python/models/v0042_partition_info_partition.py create mode 100644 slurmrest_python/models/v0042_partition_info_timeouts.py create mode 100644 slurmrest_python/models/v0042_process_exit_code_verbose.py create mode 100644 slurmrest_python/models/v0042_process_exit_code_verbose_signal.py create mode 100644 slurmrest_python/models/v0042_qos.py create mode 100644 slurmrest_python/models/v0042_qos_limits.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_active_jobs.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_jobs.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs_per.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_tres.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_tres_minutes_per.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_tres_per.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_wall_clock.py create mode 100644 slurmrest_python/models/v0042_qos_limits_max_wall_clock_per.py create mode 100644 slurmrest_python/models/v0042_qos_limits_min.py create mode 100644 slurmrest_python/models/v0042_qos_limits_min_tres.py create mode 100644 slurmrest_python/models/v0042_qos_limits_min_tres_per.py create mode 100644 slurmrest_python/models/v0042_qos_preempt.py create mode 100644 slurmrest_python/models/v0042_reservation_core_spec.py create mode 100644 slurmrest_python/models/v0042_reservation_info.py create mode 100644 slurmrest_python/models/v0042_reservation_info_purge_completed.py create mode 100644 slurmrest_python/models/v0042_rollup_stats.py create mode 100644 slurmrest_python/models/v0042_schedule_exit_fields.py create mode 100644 slurmrest_python/models/v0042_shares_float128_tres.py create mode 100644 slurmrest_python/models/v0042_shares_resp_msg.py create mode 100644 slurmrest_python/models/v0042_shares_uint64_tres.py create mode 100644 slurmrest_python/models/v0042_slurmdbd_ping.py create mode 100644 slurmrest_python/models/v0042_stats_msg.py create mode 100644 slurmrest_python/models/v0042_stats_msg_rpc_dump.py create mode 100644 slurmrest_python/models/v0042_stats_msg_rpc_queue.py create mode 100644 slurmrest_python/models/v0042_stats_msg_rpc_type.py create mode 100644 slurmrest_python/models/v0042_stats_msg_rpc_user.py create mode 100644 slurmrest_python/models/v0042_stats_rec.py create mode 100644 slurmrest_python/models/v0042_stats_rpc.py create mode 100644 slurmrest_python/models/v0042_stats_user.py create mode 100644 slurmrest_python/models/v0042_step.py create mode 100644 slurmrest_python/models/v0042_step_cpu.py create mode 100644 slurmrest_python/models/v0042_step_cpu_requested_frequency.py create mode 100644 slurmrest_python/models/v0042_step_nodes.py create mode 100644 slurmrest_python/models/v0042_step_statistics.py create mode 100644 slurmrest_python/models/v0042_step_statistics_energy.py create mode 100644 slurmrest_python/models/v0042_step_time.py create mode 100644 slurmrest_python/models/v0042_step_tres.py create mode 100644 slurmrest_python/models/v0042_step_tres_consumed.py create mode 100644 slurmrest_python/models/v0042_step_tres_requested.py create mode 100644 slurmrest_python/models/v0042_tres.py create mode 100644 slurmrest_python/models/v0042_uint16_no_val_struct.py create mode 100644 slurmrest_python/models/v0042_uint32_no_val_struct.py create mode 100644 slurmrest_python/models/v0042_uint64_no_val_struct.py create mode 100644 slurmrest_python/models/v0042_update_node_msg.py create mode 100644 slurmrest_python/models/v0042_user.py create mode 100644 slurmrest_python/models/v0042_user_default.py create mode 100644 slurmrest_python/models/v0042_user_short.py create mode 100644 slurmrest_python/models/v0042_users_add_cond.py create mode 100644 slurmrest_python/models/v0042_wckey.py create mode 100644 slurmrest_python/models/v0042_wckey_tag_struct.py create mode 100644 slurmrest_python/models/v0043_account.py create mode 100644 slurmrest_python/models/v0043_account_short.py create mode 100644 slurmrest_python/models/v0043_accounting.py create mode 100644 slurmrest_python/models/v0043_accounts_add_cond.py create mode 100644 slurmrest_python/models/v0043_acct_gather_energy.py create mode 100644 slurmrest_python/models/v0043_assoc.py create mode 100644 slurmrest_python/models/v0043_assoc_max.py create mode 100644 slurmrest_python/models/v0043_assoc_max_jobs.py create mode 100644 slurmrest_python/models/v0043_assoc_max_jobs_per.py create mode 100644 slurmrest_python/models/v0043_assoc_max_per.py create mode 100644 slurmrest_python/models/v0043_assoc_max_per_account.py create mode 100644 slurmrest_python/models/v0043_assoc_max_tres.py create mode 100644 slurmrest_python/models/v0043_assoc_max_tres_group.py create mode 100644 slurmrest_python/models/v0043_assoc_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0043_assoc_max_tres_per.py create mode 100644 slurmrest_python/models/v0043_assoc_min.py create mode 100644 slurmrest_python/models/v0043_assoc_rec_set.py create mode 100644 slurmrest_python/models/v0043_assoc_shares_obj_wrap.py create mode 100644 slurmrest_python/models/v0043_assoc_shares_obj_wrap_fairshare.py create mode 100644 slurmrest_python/models/v0043_assoc_shares_obj_wrap_tres.py create mode 100644 slurmrest_python/models/v0043_assoc_short.py create mode 100644 slurmrest_python/models/v0043_bf_exit_fields.py create mode 100644 slurmrest_python/models/v0043_cluster_rec.py create mode 100644 slurmrest_python/models/v0043_cluster_rec_associations.py create mode 100644 slurmrest_python/models/v0043_controller_ping.py create mode 100644 slurmrest_python/models/v0043_coord.py create mode 100644 slurmrest_python/models/v0043_cron_entry.py create mode 100644 slurmrest_python/models/v0043_float64_no_val_struct.py create mode 100644 slurmrest_python/models/v0043_instance.py create mode 100644 slurmrest_python/models/v0043_job.py create mode 100644 slurmrest_python/models/v0043_job_alloc_req.py create mode 100644 slurmrest_python/models/v0043_job_array.py create mode 100644 slurmrest_python/models/v0043_job_array_response_msg_entry.py create mode 100644 slurmrest_python/models/v0043_job_desc_msg.py create mode 100644 slurmrest_python/models/v0043_job_desc_msg_rlimits.py create mode 100644 slurmrest_python/models/v0043_job_het.py create mode 100644 slurmrest_python/models/v0043_job_info.py create mode 100644 slurmrest_python/models/v0043_job_required.py create mode 100644 slurmrest_python/models/v0043_job_res.py create mode 100644 slurmrest_python/models/v0043_job_res_core.py create mode 100644 slurmrest_python/models/v0043_job_res_node.py create mode 100644 slurmrest_python/models/v0043_job_res_nodes.py create mode 100644 slurmrest_python/models/v0043_job_res_socket.py create mode 100644 slurmrest_python/models/v0043_job_submit_req.py create mode 100644 slurmrest_python/models/v0043_job_time.py create mode 100644 slurmrest_python/models/v0043_job_tres.py create mode 100644 slurmrest_python/models/v0043_kill_jobs_msg.py create mode 100644 slurmrest_python/models/v0043_kill_jobs_resp_job.py create mode 100644 slurmrest_python/models/v0043_license.py create mode 100644 slurmrest_python/models/v0043_node.py create mode 100644 slurmrest_python/models/v0043_openapi_accounts_add_cond_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_accounts_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0043_openapi_accounts_removed_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_accounts_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_assocs_removed_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_assocs_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_clusters_removed_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_clusters_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_diag_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_error.py create mode 100644 slurmrest_python/models/v0043_openapi_instances_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_job_alloc_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_job_info_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_job_post_response.py create mode 100644 slurmrest_python/models/v0043_openapi_job_submit_response.py create mode 100644 slurmrest_python/models/v0043_openapi_kill_job_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_kill_jobs_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_licenses_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_meta.py create mode 100644 slurmrest_python/models/v0043_openapi_nodes_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_partition_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_ping_array_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_reservation_mod_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_reservation_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_shares_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_slurmdbd_config_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_slurmdbd_jobs_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_slurmdbd_ping_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_slurmdbd_qos_removed_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_slurmdbd_qos_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_slurmdbd_stats_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_tres_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_users_add_cond_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_users_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0043_openapi_users_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_warning.py create mode 100644 slurmrest_python/models/v0043_openapi_wckey_removed_resp.py create mode 100644 slurmrest_python/models/v0043_openapi_wckey_resp.py create mode 100644 slurmrest_python/models/v0043_part_prio.py create mode 100644 slurmrest_python/models/v0043_partition_info.py create mode 100644 slurmrest_python/models/v0043_partition_info_defaults.py create mode 100644 slurmrest_python/models/v0043_partition_info_maximums.py create mode 100644 slurmrest_python/models/v0043_partition_info_timeouts.py create mode 100644 slurmrest_python/models/v0043_process_exit_code_verbose.py create mode 100644 slurmrest_python/models/v0043_process_exit_code_verbose_signal.py create mode 100644 slurmrest_python/models/v0043_qos.py create mode 100644 slurmrest_python/models/v0043_qos_limits.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_active_jobs.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_jobs.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs_per.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_tres.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_tres_minutes_per.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_tres_per.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_wall_clock.py create mode 100644 slurmrest_python/models/v0043_qos_limits_max_wall_clock_per.py create mode 100644 slurmrest_python/models/v0043_qos_limits_min.py create mode 100644 slurmrest_python/models/v0043_qos_limits_min_tres.py create mode 100644 slurmrest_python/models/v0043_qos_limits_min_tres_per.py create mode 100644 slurmrest_python/models/v0043_qos_preempt.py create mode 100644 slurmrest_python/models/v0043_reservation_core_spec.py create mode 100644 slurmrest_python/models/v0043_reservation_desc_msg.py create mode 100644 slurmrest_python/models/v0043_reservation_info.py create mode 100644 slurmrest_python/models/v0043_reservation_info_purge_completed.py create mode 100644 slurmrest_python/models/v0043_reservation_mod_req.py create mode 100644 slurmrest_python/models/v0043_rollup_stats.py create mode 100644 slurmrest_python/models/v0043_schedule_exit_fields.py create mode 100644 slurmrest_python/models/v0043_shares_float128_tres.py create mode 100644 slurmrest_python/models/v0043_shares_resp_msg.py create mode 100644 slurmrest_python/models/v0043_shares_uint64_tres.py create mode 100644 slurmrest_python/models/v0043_slurmdbd_ping.py create mode 100644 slurmrest_python/models/v0043_stats_msg.py create mode 100644 slurmrest_python/models/v0043_stats_msg_rpc_dump.py create mode 100644 slurmrest_python/models/v0043_stats_msg_rpc_queue.py create mode 100644 slurmrest_python/models/v0043_stats_msg_rpc_type.py create mode 100644 slurmrest_python/models/v0043_stats_msg_rpc_user.py create mode 100644 slurmrest_python/models/v0043_stats_rec.py create mode 100644 slurmrest_python/models/v0043_stats_rpc.py create mode 100644 slurmrest_python/models/v0043_stats_user.py create mode 100644 slurmrest_python/models/v0043_step.py create mode 100644 slurmrest_python/models/v0043_step_cpu.py create mode 100644 slurmrest_python/models/v0043_step_cpu_requested_frequency.py create mode 100644 slurmrest_python/models/v0043_step_nodes.py create mode 100644 slurmrest_python/models/v0043_step_statistics.py create mode 100644 slurmrest_python/models/v0043_step_statistics_energy.py create mode 100644 slurmrest_python/models/v0043_step_time.py create mode 100644 slurmrest_python/models/v0043_step_tres.py create mode 100644 slurmrest_python/models/v0043_step_tres_consumed.py create mode 100644 slurmrest_python/models/v0043_step_tres_requested.py create mode 100644 slurmrest_python/models/v0043_tres.py create mode 100644 slurmrest_python/models/v0043_uint16_no_val_struct.py create mode 100644 slurmrest_python/models/v0043_uint32_no_val_struct.py create mode 100644 slurmrest_python/models/v0043_uint64_no_val_struct.py create mode 100644 slurmrest_python/models/v0043_update_node_msg.py create mode 100644 slurmrest_python/models/v0043_user.py create mode 100644 slurmrest_python/models/v0043_user_short.py create mode 100644 slurmrest_python/models/v0043_users_add_cond.py create mode 100644 slurmrest_python/models/v0043_wckey.py create mode 100644 slurmrest_python/models/v0043_wckey_tag_struct.py create mode 100644 slurmrest_python/models/v0044_account.py create mode 100644 slurmrest_python/models/v0044_account_short.py create mode 100644 slurmrest_python/models/v0044_accounting.py create mode 100644 slurmrest_python/models/v0044_accounting_allocated.py create mode 100644 slurmrest_python/models/v0044_accounts_add_cond.py create mode 100644 slurmrest_python/models/v0044_acct_gather_energy.py create mode 100644 slurmrest_python/models/v0044_assoc.py create mode 100644 slurmrest_python/models/v0044_assoc_max.py create mode 100644 slurmrest_python/models/v0044_assoc_max_jobs.py create mode 100644 slurmrest_python/models/v0044_assoc_max_jobs_per.py create mode 100644 slurmrest_python/models/v0044_assoc_max_per.py create mode 100644 slurmrest_python/models/v0044_assoc_max_per_account.py create mode 100644 slurmrest_python/models/v0044_assoc_max_tres.py create mode 100644 slurmrest_python/models/v0044_assoc_max_tres_group.py create mode 100644 slurmrest_python/models/v0044_assoc_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0044_assoc_max_tres_per.py create mode 100644 slurmrest_python/models/v0044_assoc_min.py create mode 100644 slurmrest_python/models/v0044_assoc_rec_set.py create mode 100644 slurmrest_python/models/v0044_assoc_shares_obj_wrap.py create mode 100644 slurmrest_python/models/v0044_assoc_shares_obj_wrap_fairshare.py create mode 100644 slurmrest_python/models/v0044_assoc_shares_obj_wrap_tres.py create mode 100644 slurmrest_python/models/v0044_assoc_short.py create mode 100644 slurmrest_python/models/v0044_bf_exit_fields.py create mode 100644 slurmrest_python/models/v0044_cluster_rec.py create mode 100644 slurmrest_python/models/v0044_cluster_rec_associations.py create mode 100644 slurmrest_python/models/v0044_controller_ping.py create mode 100644 slurmrest_python/models/v0044_coord.py create mode 100644 slurmrest_python/models/v0044_cron_entry.py create mode 100644 slurmrest_python/models/v0044_float64_no_val_struct.py create mode 100644 slurmrest_python/models/v0044_instance.py create mode 100644 slurmrest_python/models/v0044_instance_time.py create mode 100644 slurmrest_python/models/v0044_job.py create mode 100644 slurmrest_python/models/v0044_job_alloc_req.py create mode 100644 slurmrest_python/models/v0044_job_array.py create mode 100644 slurmrest_python/models/v0044_job_array_response_msg_entry.py create mode 100644 slurmrest_python/models/v0044_job_desc_msg.py create mode 100644 slurmrest_python/models/v0044_job_desc_msg_rlimits.py create mode 100644 slurmrest_python/models/v0044_job_het.py create mode 100644 slurmrest_python/models/v0044_job_info.py create mode 100644 slurmrest_python/models/v0044_job_modify.py create mode 100644 slurmrest_python/models/v0044_job_modify_tres.py create mode 100644 slurmrest_python/models/v0044_job_required.py create mode 100644 slurmrest_python/models/v0044_job_res.py create mode 100644 slurmrest_python/models/v0044_job_res_core.py create mode 100644 slurmrest_python/models/v0044_job_res_node.py create mode 100644 slurmrest_python/models/v0044_job_res_nodes.py create mode 100644 slurmrest_python/models/v0044_job_res_socket.py create mode 100644 slurmrest_python/models/v0044_job_reservation.py create mode 100644 slurmrest_python/models/v0044_job_state.py create mode 100644 slurmrest_python/models/v0044_job_submit_req.py create mode 100644 slurmrest_python/models/v0044_job_time.py create mode 100644 slurmrest_python/models/v0044_job_tres.py create mode 100644 slurmrest_python/models/v0044_kill_jobs_msg.py create mode 100644 slurmrest_python/models/v0044_kill_jobs_resp_job.py create mode 100644 slurmrest_python/models/v0044_license.py create mode 100644 slurmrest_python/models/v0044_node.py create mode 100644 slurmrest_python/models/v0044_node_gres_layout.py create mode 100644 slurmrest_python/models/v0044_node_resource_layout.py create mode 100644 slurmrest_python/models/v0044_openapi_accounts_add_cond_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_accounts_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0044_openapi_accounts_removed_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_accounts_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_assocs_removed_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_assocs_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_clusters_removed_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_clusters_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_create_node_req.py create mode 100644 slurmrest_python/models/v0044_openapi_diag_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_error.py create mode 100644 slurmrest_python/models/v0044_openapi_hostlist_req_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_hostnames_req_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_instances_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_job_alloc_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_job_info_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_job_modify_req.py create mode 100644 slurmrest_python/models/v0044_openapi_job_modify_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_job_post_response.py create mode 100644 slurmrest_python/models/v0044_openapi_job_submit_response.py create mode 100644 slurmrest_python/models/v0044_openapi_kill_job_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_kill_jobs_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_licenses_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_meta.py create mode 100644 slurmrest_python/models/v0044_openapi_nodes_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_partition_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_ping_array_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_reservation_mod_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_reservation_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_resource_layout_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_shares_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_slurmdbd_config_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_slurmdbd_jobs_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_slurmdbd_ping_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_slurmdbd_qos_removed_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_slurmdbd_qos_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_slurmdbd_stats_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_tres_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_users_add_cond_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_users_add_cond_resp_str.py create mode 100644 slurmrest_python/models/v0044_openapi_users_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_warning.py create mode 100644 slurmrest_python/models/v0044_openapi_wckey_removed_resp.py create mode 100644 slurmrest_python/models/v0044_openapi_wckey_resp.py create mode 100644 slurmrest_python/models/v0044_part_prio.py create mode 100644 slurmrest_python/models/v0044_partition_info.py create mode 100644 slurmrest_python/models/v0044_partition_info_accounts.py create mode 100644 slurmrest_python/models/v0044_partition_info_cpus.py create mode 100644 slurmrest_python/models/v0044_partition_info_defaults.py create mode 100644 slurmrest_python/models/v0044_partition_info_groups.py create mode 100644 slurmrest_python/models/v0044_partition_info_maximums.py create mode 100644 slurmrest_python/models/v0044_partition_info_minimums.py create mode 100644 slurmrest_python/models/v0044_partition_info_nodes.py create mode 100644 slurmrest_python/models/v0044_partition_info_priority.py create mode 100644 slurmrest_python/models/v0044_partition_info_qos.py create mode 100644 slurmrest_python/models/v0044_partition_info_timeouts.py create mode 100644 slurmrest_python/models/v0044_partition_info_tres.py create mode 100644 slurmrest_python/models/v0044_process_exit_code_verbose.py create mode 100644 slurmrest_python/models/v0044_process_exit_code_verbose_signal.py create mode 100644 slurmrest_python/models/v0044_qos.py create mode 100644 slurmrest_python/models/v0044_qos_limits.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_active_jobs.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_jobs.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs_per.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_tres.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_tres_minutes.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_tres_minutes_per.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_tres_per.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_wall_clock.py create mode 100644 slurmrest_python/models/v0044_qos_limits_max_wall_clock_per.py create mode 100644 slurmrest_python/models/v0044_qos_limits_min.py create mode 100644 slurmrest_python/models/v0044_qos_limits_min_tres.py create mode 100644 slurmrest_python/models/v0044_qos_limits_min_tres_per.py create mode 100644 slurmrest_python/models/v0044_qos_preempt.py create mode 100644 slurmrest_python/models/v0044_reservation_core_spec.py create mode 100644 slurmrest_python/models/v0044_reservation_desc_msg.py create mode 100644 slurmrest_python/models/v0044_reservation_info.py create mode 100644 slurmrest_python/models/v0044_reservation_info_purge_completed.py create mode 100644 slurmrest_python/models/v0044_reservation_mod_req.py create mode 100644 slurmrest_python/models/v0044_rollup_stats.py create mode 100644 slurmrest_python/models/v0044_rollup_stats_daily.py create mode 100644 slurmrest_python/models/v0044_rollup_stats_hourly.py create mode 100644 slurmrest_python/models/v0044_rollup_stats_monthly.py create mode 100644 slurmrest_python/models/v0044_schedule_exit_fields.py create mode 100644 slurmrest_python/models/v0044_shares_float128_tres.py create mode 100644 slurmrest_python/models/v0044_shares_resp_msg.py create mode 100644 slurmrest_python/models/v0044_shares_uint64_tres.py create mode 100644 slurmrest_python/models/v0044_slurm_step_id.py create mode 100644 slurmrest_python/models/v0044_slurmdbd_ping.py create mode 100644 slurmrest_python/models/v0044_stats_msg.py create mode 100644 slurmrest_python/models/v0044_stats_msg_rpc_dump.py create mode 100644 slurmrest_python/models/v0044_stats_msg_rpc_queue.py create mode 100644 slurmrest_python/models/v0044_stats_msg_rpc_type.py create mode 100644 slurmrest_python/models/v0044_stats_msg_rpc_user.py create mode 100644 slurmrest_python/models/v0044_stats_rec.py create mode 100644 slurmrest_python/models/v0044_stats_rpc.py create mode 100644 slurmrest_python/models/v0044_stats_user.py create mode 100644 slurmrest_python/models/v0044_step.py create mode 100644 slurmrest_python/models/v0044_step_cpu.py create mode 100644 slurmrest_python/models/v0044_step_cpu_requested_frequency.py create mode 100644 slurmrest_python/models/v0044_step_nodes.py create mode 100644 slurmrest_python/models/v0044_step_statistics.py create mode 100644 slurmrest_python/models/v0044_step_statistics_energy.py create mode 100644 slurmrest_python/models/v0044_step_step.py create mode 100644 slurmrest_python/models/v0044_step_time.py create mode 100644 slurmrest_python/models/v0044_step_tres.py create mode 100644 slurmrest_python/models/v0044_step_tres_consumed.py create mode 100644 slurmrest_python/models/v0044_step_tres_requested.py create mode 100644 slurmrest_python/models/v0044_tres.py create mode 100644 slurmrest_python/models/v0044_uint16_no_val_struct.py create mode 100644 slurmrest_python/models/v0044_uint32_no_val_struct.py create mode 100644 slurmrest_python/models/v0044_uint64_no_val_struct.py create mode 100644 slurmrest_python/models/v0044_update_node_msg.py create mode 100644 slurmrest_python/models/v0044_user.py create mode 100644 slurmrest_python/models/v0044_user_default.py create mode 100644 slurmrest_python/models/v0044_user_short.py create mode 100644 slurmrest_python/models/v0044_users_add_cond.py create mode 100644 slurmrest_python/models/v0044_wckey.py create mode 100644 slurmrest_python/models/v0044_wckey_tag_struct.py create mode 100644 slurmrest_python/py.typed create mode 100644 slurmrest_python/rest.py delete mode 100644 src/coldfront_plugin_slurmrest/__init__.py delete mode 100644 src/coldfront_plugin_slurmrest/apps.py delete mode 100644 src/coldfront_plugin_slurmrest/config.py delete mode 100644 src/coldfront_plugin_slurmrest/management/__init__.py delete mode 100644 src/coldfront_plugin_slurmrest/management/commands/__init__.py delete mode 100644 src/coldfront_plugin_slurmrest/management/commands/slurm_check.py delete mode 100644 src/coldfront_plugin_slurmrest/tests/integration.py delete mode 100644 src/coldfront_plugin_slurmrest/utils.py create mode 100644 test-requirements.txt create mode 100644 test/__init__.py create mode 100644 test/test_slurm_api.py create mode 100644 test/test_slurmdb_api.py create mode 100644 test/test_util_api.py create mode 100644 test/test_v0041_job_alloc_req.py create mode 100644 test/test_v0041_job_desc_msg.py create mode 100644 test/test_v0041_job_desc_msg_begin_time.py create mode 100644 test/test_v0041_job_desc_msg_crontab.py create mode 100644 test/test_v0041_job_desc_msg_crontab_line.py create mode 100644 test/test_v0041_job_desc_msg_distribution_plane_size.py create mode 100644 test/test_v0041_job_desc_msg_kill_warning_delay.py create mode 100644 test/test_v0041_job_desc_msg_memory_per_cpu.py create mode 100644 test/test_v0041_job_desc_msg_priority.py create mode 100644 test/test_v0041_job_desc_msg_required_switches.py create mode 100644 test/test_v0041_job_desc_msg_rlimits.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_as.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_core.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_cpu.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_data.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_fsize.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_memlock.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_nofile.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_nproc.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_rss.py create mode 100644 test/test_v0041_job_desc_msg_rlimits_stack.py create mode 100644 test/test_v0041_job_desc_msg_segment_size.py create mode 100644 test/test_v0041_job_desc_msg_time_limit.py create mode 100644 test/test_v0041_job_desc_msg_time_minimum.py create mode 100644 test/test_v0041_job_submit_req.py create mode 100644 test/test_v0041_kill_jobs_msg.py create mode 100644 test/test_v0041_openapi_accounts_add_cond_resp.py create mode 100644 test/test_v0041_openapi_accounts_add_cond_resp_account.py create mode 100644 test/test_v0041_openapi_accounts_add_cond_resp_association_condition.py create mode 100644 test/test_v0041_openapi_accounts_add_cond_resp_str.py create mode 100644 test/test_v0041_openapi_accounts_removed_resp.py create mode 100644 test/test_v0041_openapi_accounts_resp.py create mode 100644 test/test_v0041_openapi_assocs_removed_resp.py create mode 100644 test/test_v0041_openapi_assocs_resp.py create mode 100644 test/test_v0041_openapi_clusters_removed_resp.py create mode 100644 test/test_v0041_openapi_clusters_resp.py create mode 100644 test/test_v0041_openapi_diag_resp.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_bf_exit.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_job_states_ts.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_req_time.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_req_time_start.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py create mode 100644 test/test_v0041_openapi_diag_resp_statistics_schedule_exit.py create mode 100644 test/test_v0041_openapi_instances_resp.py create mode 100644 test/test_v0041_openapi_job_alloc_resp.py create mode 100644 test/test_v0041_openapi_job_info_resp.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_accrue_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_array_job_id.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_array_task_id.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_billable_tres.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_cpus.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_deadline.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_delay_boot.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_eligible_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_end_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_exit_code.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_id.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_max_cpus.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_max_nodes.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_node_count.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_power.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_preempt_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_resize_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_start_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_submit_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_suspend_time.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_tasks.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py create mode 100644 test/test_v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py create mode 100644 test/test_v0041_openapi_job_info_resp_last_backfill.py create mode 100644 test/test_v0041_openapi_job_info_resp_last_update.py create mode 100644 test/test_v0041_openapi_job_post_response.py create mode 100644 test/test_v0041_openapi_job_post_response_results_inner.py create mode 100644 test/test_v0041_openapi_job_submit_response.py create mode 100644 test/test_v0041_openapi_job_submit_response_result.py create mode 100644 test/test_v0041_openapi_kill_jobs_resp.py create mode 100644 test/test_v0041_openapi_kill_jobs_resp_status_inner.py create mode 100644 test/test_v0041_openapi_kill_jobs_resp_status_inner_error.py create mode 100644 test/test_v0041_openapi_kill_jobs_resp_status_inner_federation.py create mode 100644 test/test_v0041_openapi_kill_jobs_resp_status_inner_job_id.py create mode 100644 test/test_v0041_openapi_licenses_resp.py create mode 100644 test/test_v0041_openapi_licenses_resp_last_update.py create mode 100644 test/test_v0041_openapi_licenses_resp_licenses_inner.py create mode 100644 test/test_v0041_openapi_nodes_resp.py create mode 100644 test/test_v0041_openapi_nodes_resp_last_update.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_boot_time.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_energy.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_free_mem.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_last_busy.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_resume_after.py create mode 100644 test/test_v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py create mode 100644 test/test_v0041_openapi_partition_resp.py create mode 100644 test/test_v0041_openapi_partition_resp_last_update.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_accounts.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_cpus.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_defaults.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_defaults_time.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_groups.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_maximums_time.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_minimums.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_nodes.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_partition.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_priority.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_qos.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_suspend_time.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_timeouts.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py create mode 100644 test/test_v0041_openapi_partition_resp_partitions_inner_tres.py create mode 100644 test/test_v0041_openapi_ping_array_resp.py create mode 100644 test/test_v0041_openapi_ping_array_resp_pings_inner.py create mode 100644 test/test_v0041_openapi_reservation_resp.py create mode 100644 test/test_v0041_openapi_reservation_resp_last_update.py create mode 100644 test/test_v0041_openapi_reservation_resp_reservations_inner.py create mode 100644 test/test_v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py create mode 100644 test/test_v0041_openapi_reservation_resp_reservations_inner_end_time.py create mode 100644 test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed.py create mode 100644 test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py create mode 100644 test/test_v0041_openapi_reservation_resp_reservations_inner_start_time.py create mode 100644 test/test_v0041_openapi_reservation_resp_reservations_inner_watts.py create mode 100644 test/test_v0041_openapi_resp.py create mode 100644 test/test_v0041_openapi_shares_resp.py create mode 100644 test/test_v0041_openapi_shares_resp_errors_inner.py create mode 100644 test/test_v0041_openapi_shares_resp_meta.py create mode 100644 test/test_v0041_openapi_shares_resp_meta_client.py create mode 100644 test/test_v0041_openapi_shares_resp_meta_plugin.py create mode 100644 test/test_v0041_openapi_shares_resp_meta_slurm.py create mode 100644 test/test_v0041_openapi_shares_resp_meta_slurm_version.py create mode 100644 test/test_v0041_openapi_shares_resp_shares.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_fairshare.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_shares.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_tres.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py create mode 100644 test/test_v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py create mode 100644 test/test_v0041_openapi_shares_resp_warnings_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_default.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_min.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_instances_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_instances_inner_time.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_users_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_users_inner_default.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py create mode 100644 test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py create mode 100644 test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py create mode 100644 test/test_v0041_openapi_slurmdbd_qos_removed_resp.py create mode 100644 test/test_v0041_openapi_slurmdbd_qos_resp.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py create mode 100644 test/test_v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py create mode 100644 test/test_v0041_openapi_tres_resp.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_str.py create mode 100644 test/test_v0041_openapi_users_add_cond_resp_user.py create mode 100644 test/test_v0041_openapi_users_resp.py create mode 100644 test/test_v0041_openapi_wckey_removed_resp.py create mode 100644 test/test_v0041_openapi_wckey_resp.py create mode 100644 test/test_v0041_update_node_msg.py create mode 100644 test/test_v0041_update_node_msg_resume_after.py create mode 100644 test/test_v0041_update_node_msg_weight.py create mode 100644 test/test_v0042_account.py create mode 100644 test/test_v0042_account_short.py create mode 100644 test/test_v0042_accounting.py create mode 100644 test/test_v0042_accounts_add_cond.py create mode 100644 test/test_v0042_acct_gather_energy.py create mode 100644 test/test_v0042_assoc.py create mode 100644 test/test_v0042_assoc_max.py create mode 100644 test/test_v0042_assoc_max_jobs.py create mode 100644 test/test_v0042_assoc_max_jobs_per.py create mode 100644 test/test_v0042_assoc_max_per.py create mode 100644 test/test_v0042_assoc_max_per_account.py create mode 100644 test/test_v0042_assoc_max_tres.py create mode 100644 test/test_v0042_assoc_max_tres_group.py create mode 100644 test/test_v0042_assoc_max_tres_minutes.py create mode 100644 test/test_v0042_assoc_max_tres_per.py create mode 100644 test/test_v0042_assoc_min.py create mode 100644 test/test_v0042_assoc_rec_set.py create mode 100644 test/test_v0042_assoc_shares_obj_wrap.py create mode 100644 test/test_v0042_assoc_shares_obj_wrap_fairshare.py create mode 100644 test/test_v0042_assoc_shares_obj_wrap_tres.py create mode 100644 test/test_v0042_assoc_short.py create mode 100644 test/test_v0042_bf_exit_fields.py create mode 100644 test/test_v0042_cluster_rec.py create mode 100644 test/test_v0042_cluster_rec_associations.py create mode 100644 test/test_v0042_controller_ping.py create mode 100644 test/test_v0042_coord.py create mode 100644 test/test_v0042_cron_entry.py create mode 100644 test/test_v0042_float64_no_val_struct.py create mode 100644 test/test_v0042_instance.py create mode 100644 test/test_v0042_job.py create mode 100644 test/test_v0042_job_alloc_req.py create mode 100644 test/test_v0042_job_array.py create mode 100644 test/test_v0042_job_array_response_msg_entry.py create mode 100644 test/test_v0042_job_desc_msg.py create mode 100644 test/test_v0042_job_desc_msg_rlimits.py create mode 100644 test/test_v0042_job_het.py create mode 100644 test/test_v0042_job_info.py create mode 100644 test/test_v0042_job_required.py create mode 100644 test/test_v0042_job_res.py create mode 100644 test/test_v0042_job_res_core.py create mode 100644 test/test_v0042_job_res_node.py create mode 100644 test/test_v0042_job_res_nodes.py create mode 100644 test/test_v0042_job_res_socket.py create mode 100644 test/test_v0042_job_state.py create mode 100644 test/test_v0042_job_submit_req.py create mode 100644 test/test_v0042_job_time.py create mode 100644 test/test_v0042_job_tres.py create mode 100644 test/test_v0042_kill_jobs_msg.py create mode 100644 test/test_v0042_kill_jobs_resp_job.py create mode 100644 test/test_v0042_license.py create mode 100644 test/test_v0042_node.py create mode 100644 test/test_v0042_openapi_accounts_add_cond_resp.py create mode 100644 test/test_v0042_openapi_accounts_add_cond_resp_str.py create mode 100644 test/test_v0042_openapi_accounts_removed_resp.py create mode 100644 test/test_v0042_openapi_accounts_resp.py create mode 100644 test/test_v0042_openapi_assocs_removed_resp.py create mode 100644 test/test_v0042_openapi_assocs_resp.py create mode 100644 test/test_v0042_openapi_clusters_removed_resp.py create mode 100644 test/test_v0042_openapi_clusters_resp.py create mode 100644 test/test_v0042_openapi_diag_resp.py create mode 100644 test/test_v0042_openapi_error.py create mode 100644 test/test_v0042_openapi_instances_resp.py create mode 100644 test/test_v0042_openapi_job_alloc_resp.py create mode 100644 test/test_v0042_openapi_job_info_resp.py create mode 100644 test/test_v0042_openapi_job_post_response.py create mode 100644 test/test_v0042_openapi_job_submit_response.py create mode 100644 test/test_v0042_openapi_kill_job_resp.py create mode 100644 test/test_v0042_openapi_kill_jobs_resp.py create mode 100644 test/test_v0042_openapi_licenses_resp.py create mode 100644 test/test_v0042_openapi_meta.py create mode 100644 test/test_v0042_openapi_nodes_resp.py create mode 100644 test/test_v0042_openapi_partition_resp.py create mode 100644 test/test_v0042_openapi_ping_array_resp.py create mode 100644 test/test_v0042_openapi_reservation_resp.py create mode 100644 test/test_v0042_openapi_resp.py create mode 100644 test/test_v0042_openapi_shares_resp.py create mode 100644 test/test_v0042_openapi_slurmdbd_config_resp.py create mode 100644 test/test_v0042_openapi_slurmdbd_jobs_resp.py create mode 100644 test/test_v0042_openapi_slurmdbd_ping_resp.py create mode 100644 test/test_v0042_openapi_slurmdbd_qos_removed_resp.py create mode 100644 test/test_v0042_openapi_slurmdbd_qos_resp.py create mode 100644 test/test_v0042_openapi_slurmdbd_stats_resp.py create mode 100644 test/test_v0042_openapi_tres_resp.py create mode 100644 test/test_v0042_openapi_users_add_cond_resp.py create mode 100644 test/test_v0042_openapi_users_add_cond_resp_str.py create mode 100644 test/test_v0042_openapi_users_resp.py create mode 100644 test/test_v0042_openapi_warning.py create mode 100644 test/test_v0042_openapi_wckey_removed_resp.py create mode 100644 test/test_v0042_openapi_wckey_resp.py create mode 100644 test/test_v0042_part_prio.py create mode 100644 test/test_v0042_partition_info.py create mode 100644 test/test_v0042_partition_info_defaults.py create mode 100644 test/test_v0042_partition_info_maximums.py create mode 100644 test/test_v0042_partition_info_maximums_oversubscribe.py create mode 100644 test/test_v0042_partition_info_partition.py create mode 100644 test/test_v0042_partition_info_timeouts.py create mode 100644 test/test_v0042_process_exit_code_verbose.py create mode 100644 test/test_v0042_process_exit_code_verbose_signal.py create mode 100644 test/test_v0042_qos.py create mode 100644 test/test_v0042_qos_limits.py create mode 100644 test/test_v0042_qos_limits_max.py create mode 100644 test/test_v0042_qos_limits_max_active_jobs.py create mode 100644 test/test_v0042_qos_limits_max_jobs.py create mode 100644 test/test_v0042_qos_limits_max_jobs_active_jobs.py create mode 100644 test/test_v0042_qos_limits_max_jobs_active_jobs_per.py create mode 100644 test/test_v0042_qos_limits_max_tres.py create mode 100644 test/test_v0042_qos_limits_max_tres_minutes.py create mode 100644 test/test_v0042_qos_limits_max_tres_minutes_per.py create mode 100644 test/test_v0042_qos_limits_max_tres_per.py create mode 100644 test/test_v0042_qos_limits_max_wall_clock.py create mode 100644 test/test_v0042_qos_limits_max_wall_clock_per.py create mode 100644 test/test_v0042_qos_limits_min.py create mode 100644 test/test_v0042_qos_limits_min_tres.py create mode 100644 test/test_v0042_qos_limits_min_tres_per.py create mode 100644 test/test_v0042_qos_preempt.py create mode 100644 test/test_v0042_reservation_core_spec.py create mode 100644 test/test_v0042_reservation_info.py create mode 100644 test/test_v0042_reservation_info_purge_completed.py create mode 100644 test/test_v0042_rollup_stats.py create mode 100644 test/test_v0042_schedule_exit_fields.py create mode 100644 test/test_v0042_shares_float128_tres.py create mode 100644 test/test_v0042_shares_resp_msg.py create mode 100644 test/test_v0042_shares_uint64_tres.py create mode 100644 test/test_v0042_slurmdbd_ping.py create mode 100644 test/test_v0042_stats_msg.py create mode 100644 test/test_v0042_stats_msg_rpc_dump.py create mode 100644 test/test_v0042_stats_msg_rpc_queue.py create mode 100644 test/test_v0042_stats_msg_rpc_type.py create mode 100644 test/test_v0042_stats_msg_rpc_user.py create mode 100644 test/test_v0042_stats_rec.py create mode 100644 test/test_v0042_stats_rpc.py create mode 100644 test/test_v0042_stats_user.py create mode 100644 test/test_v0042_step.py create mode 100644 test/test_v0042_step_cpu.py create mode 100644 test/test_v0042_step_cpu_requested_frequency.py create mode 100644 test/test_v0042_step_nodes.py create mode 100644 test/test_v0042_step_statistics.py create mode 100644 test/test_v0042_step_statistics_energy.py create mode 100644 test/test_v0042_step_time.py create mode 100644 test/test_v0042_step_tres.py create mode 100644 test/test_v0042_step_tres_consumed.py create mode 100644 test/test_v0042_step_tres_requested.py create mode 100644 test/test_v0042_tres.py create mode 100644 test/test_v0042_uint16_no_val_struct.py create mode 100644 test/test_v0042_uint32_no_val_struct.py create mode 100644 test/test_v0042_uint64_no_val_struct.py create mode 100644 test/test_v0042_update_node_msg.py create mode 100644 test/test_v0042_user.py create mode 100644 test/test_v0042_user_default.py create mode 100644 test/test_v0042_user_short.py create mode 100644 test/test_v0042_users_add_cond.py create mode 100644 test/test_v0042_wckey.py create mode 100644 test/test_v0042_wckey_tag_struct.py create mode 100644 test/test_v0043_account.py create mode 100644 test/test_v0043_account_short.py create mode 100644 test/test_v0043_accounting.py create mode 100644 test/test_v0043_accounts_add_cond.py create mode 100644 test/test_v0043_acct_gather_energy.py create mode 100644 test/test_v0043_assoc.py create mode 100644 test/test_v0043_assoc_max.py create mode 100644 test/test_v0043_assoc_max_jobs.py create mode 100644 test/test_v0043_assoc_max_jobs_per.py create mode 100644 test/test_v0043_assoc_max_per.py create mode 100644 test/test_v0043_assoc_max_per_account.py create mode 100644 test/test_v0043_assoc_max_tres.py create mode 100644 test/test_v0043_assoc_max_tres_group.py create mode 100644 test/test_v0043_assoc_max_tres_minutes.py create mode 100644 test/test_v0043_assoc_max_tres_per.py create mode 100644 test/test_v0043_assoc_min.py create mode 100644 test/test_v0043_assoc_rec_set.py create mode 100644 test/test_v0043_assoc_shares_obj_wrap.py create mode 100644 test/test_v0043_assoc_shares_obj_wrap_fairshare.py create mode 100644 test/test_v0043_assoc_shares_obj_wrap_tres.py create mode 100644 test/test_v0043_assoc_short.py create mode 100644 test/test_v0043_bf_exit_fields.py create mode 100644 test/test_v0043_cluster_rec.py create mode 100644 test/test_v0043_cluster_rec_associations.py create mode 100644 test/test_v0043_controller_ping.py create mode 100644 test/test_v0043_coord.py create mode 100644 test/test_v0043_cron_entry.py create mode 100644 test/test_v0043_float64_no_val_struct.py create mode 100644 test/test_v0043_instance.py create mode 100644 test/test_v0043_job.py create mode 100644 test/test_v0043_job_alloc_req.py create mode 100644 test/test_v0043_job_array.py create mode 100644 test/test_v0043_job_array_response_msg_entry.py create mode 100644 test/test_v0043_job_desc_msg.py create mode 100644 test/test_v0043_job_desc_msg_rlimits.py create mode 100644 test/test_v0043_job_het.py create mode 100644 test/test_v0043_job_info.py create mode 100644 test/test_v0043_job_required.py create mode 100644 test/test_v0043_job_res.py create mode 100644 test/test_v0043_job_res_core.py create mode 100644 test/test_v0043_job_res_node.py create mode 100644 test/test_v0043_job_res_nodes.py create mode 100644 test/test_v0043_job_res_socket.py create mode 100644 test/test_v0043_job_submit_req.py create mode 100644 test/test_v0043_job_time.py create mode 100644 test/test_v0043_job_tres.py create mode 100644 test/test_v0043_kill_jobs_msg.py create mode 100644 test/test_v0043_kill_jobs_resp_job.py create mode 100644 test/test_v0043_license.py create mode 100644 test/test_v0043_node.py create mode 100644 test/test_v0043_openapi_accounts_add_cond_resp.py create mode 100644 test/test_v0043_openapi_accounts_add_cond_resp_str.py create mode 100644 test/test_v0043_openapi_accounts_removed_resp.py create mode 100644 test/test_v0043_openapi_accounts_resp.py create mode 100644 test/test_v0043_openapi_assocs_removed_resp.py create mode 100644 test/test_v0043_openapi_assocs_resp.py create mode 100644 test/test_v0043_openapi_clusters_removed_resp.py create mode 100644 test/test_v0043_openapi_clusters_resp.py create mode 100644 test/test_v0043_openapi_diag_resp.py create mode 100644 test/test_v0043_openapi_error.py create mode 100644 test/test_v0043_openapi_instances_resp.py create mode 100644 test/test_v0043_openapi_job_alloc_resp.py create mode 100644 test/test_v0043_openapi_job_info_resp.py create mode 100644 test/test_v0043_openapi_job_post_response.py create mode 100644 test/test_v0043_openapi_job_submit_response.py create mode 100644 test/test_v0043_openapi_kill_job_resp.py create mode 100644 test/test_v0043_openapi_kill_jobs_resp.py create mode 100644 test/test_v0043_openapi_licenses_resp.py create mode 100644 test/test_v0043_openapi_meta.py create mode 100644 test/test_v0043_openapi_nodes_resp.py create mode 100644 test/test_v0043_openapi_partition_resp.py create mode 100644 test/test_v0043_openapi_ping_array_resp.py create mode 100644 test/test_v0043_openapi_reservation_mod_resp.py create mode 100644 test/test_v0043_openapi_reservation_resp.py create mode 100644 test/test_v0043_openapi_resp.py create mode 100644 test/test_v0043_openapi_shares_resp.py create mode 100644 test/test_v0043_openapi_slurmdbd_config_resp.py create mode 100644 test/test_v0043_openapi_slurmdbd_jobs_resp.py create mode 100644 test/test_v0043_openapi_slurmdbd_ping_resp.py create mode 100644 test/test_v0043_openapi_slurmdbd_qos_removed_resp.py create mode 100644 test/test_v0043_openapi_slurmdbd_qos_resp.py create mode 100644 test/test_v0043_openapi_slurmdbd_stats_resp.py create mode 100644 test/test_v0043_openapi_tres_resp.py create mode 100644 test/test_v0043_openapi_users_add_cond_resp.py create mode 100644 test/test_v0043_openapi_users_add_cond_resp_str.py create mode 100644 test/test_v0043_openapi_users_resp.py create mode 100644 test/test_v0043_openapi_warning.py create mode 100644 test/test_v0043_openapi_wckey_removed_resp.py create mode 100644 test/test_v0043_openapi_wckey_resp.py create mode 100644 test/test_v0043_part_prio.py create mode 100644 test/test_v0043_partition_info.py create mode 100644 test/test_v0043_partition_info_defaults.py create mode 100644 test/test_v0043_partition_info_maximums.py create mode 100644 test/test_v0043_partition_info_timeouts.py create mode 100644 test/test_v0043_process_exit_code_verbose.py create mode 100644 test/test_v0043_process_exit_code_verbose_signal.py create mode 100644 test/test_v0043_qos.py create mode 100644 test/test_v0043_qos_limits.py create mode 100644 test/test_v0043_qos_limits_max.py create mode 100644 test/test_v0043_qos_limits_max_active_jobs.py create mode 100644 test/test_v0043_qos_limits_max_jobs.py create mode 100644 test/test_v0043_qos_limits_max_jobs_active_jobs.py create mode 100644 test/test_v0043_qos_limits_max_jobs_active_jobs_per.py create mode 100644 test/test_v0043_qos_limits_max_tres.py create mode 100644 test/test_v0043_qos_limits_max_tres_minutes.py create mode 100644 test/test_v0043_qos_limits_max_tres_minutes_per.py create mode 100644 test/test_v0043_qos_limits_max_tres_per.py create mode 100644 test/test_v0043_qos_limits_max_wall_clock.py create mode 100644 test/test_v0043_qos_limits_max_wall_clock_per.py create mode 100644 test/test_v0043_qos_limits_min.py create mode 100644 test/test_v0043_qos_limits_min_tres.py create mode 100644 test/test_v0043_qos_limits_min_tres_per.py create mode 100644 test/test_v0043_qos_preempt.py create mode 100644 test/test_v0043_reservation_core_spec.py create mode 100644 test/test_v0043_reservation_desc_msg.py create mode 100644 test/test_v0043_reservation_info.py create mode 100644 test/test_v0043_reservation_info_purge_completed.py create mode 100644 test/test_v0043_reservation_mod_req.py create mode 100644 test/test_v0043_rollup_stats.py create mode 100644 test/test_v0043_schedule_exit_fields.py create mode 100644 test/test_v0043_shares_float128_tres.py create mode 100644 test/test_v0043_shares_resp_msg.py create mode 100644 test/test_v0043_shares_uint64_tres.py create mode 100644 test/test_v0043_slurmdbd_ping.py create mode 100644 test/test_v0043_stats_msg.py create mode 100644 test/test_v0043_stats_msg_rpc_dump.py create mode 100644 test/test_v0043_stats_msg_rpc_queue.py create mode 100644 test/test_v0043_stats_msg_rpc_type.py create mode 100644 test/test_v0043_stats_msg_rpc_user.py create mode 100644 test/test_v0043_stats_rec.py create mode 100644 test/test_v0043_stats_rpc.py create mode 100644 test/test_v0043_stats_user.py create mode 100644 test/test_v0043_step.py create mode 100644 test/test_v0043_step_cpu.py create mode 100644 test/test_v0043_step_cpu_requested_frequency.py create mode 100644 test/test_v0043_step_nodes.py create mode 100644 test/test_v0043_step_statistics.py create mode 100644 test/test_v0043_step_statistics_energy.py create mode 100644 test/test_v0043_step_time.py create mode 100644 test/test_v0043_step_tres.py create mode 100644 test/test_v0043_step_tres_consumed.py create mode 100644 test/test_v0043_step_tres_requested.py create mode 100644 test/test_v0043_tres.py create mode 100644 test/test_v0043_uint16_no_val_struct.py create mode 100644 test/test_v0043_uint32_no_val_struct.py create mode 100644 test/test_v0043_uint64_no_val_struct.py create mode 100644 test/test_v0043_update_node_msg.py create mode 100644 test/test_v0043_user.py create mode 100644 test/test_v0043_user_short.py create mode 100644 test/test_v0043_users_add_cond.py create mode 100644 test/test_v0043_wckey.py create mode 100644 test/test_v0043_wckey_tag_struct.py create mode 100644 test/test_v0044_account.py create mode 100644 test/test_v0044_account_short.py create mode 100644 test/test_v0044_accounting.py create mode 100644 test/test_v0044_accounting_allocated.py create mode 100644 test/test_v0044_accounts_add_cond.py create mode 100644 test/test_v0044_acct_gather_energy.py create mode 100644 test/test_v0044_assoc.py create mode 100644 test/test_v0044_assoc_max.py create mode 100644 test/test_v0044_assoc_max_jobs.py create mode 100644 test/test_v0044_assoc_max_jobs_per.py create mode 100644 test/test_v0044_assoc_max_per.py create mode 100644 test/test_v0044_assoc_max_per_account.py create mode 100644 test/test_v0044_assoc_max_tres.py create mode 100644 test/test_v0044_assoc_max_tres_group.py create mode 100644 test/test_v0044_assoc_max_tres_minutes.py create mode 100644 test/test_v0044_assoc_max_tres_per.py create mode 100644 test/test_v0044_assoc_min.py create mode 100644 test/test_v0044_assoc_rec_set.py create mode 100644 test/test_v0044_assoc_shares_obj_wrap.py create mode 100644 test/test_v0044_assoc_shares_obj_wrap_fairshare.py create mode 100644 test/test_v0044_assoc_shares_obj_wrap_tres.py create mode 100644 test/test_v0044_assoc_short.py create mode 100644 test/test_v0044_bf_exit_fields.py create mode 100644 test/test_v0044_cluster_rec.py create mode 100644 test/test_v0044_cluster_rec_associations.py create mode 100644 test/test_v0044_controller_ping.py create mode 100644 test/test_v0044_coord.py create mode 100644 test/test_v0044_cron_entry.py create mode 100644 test/test_v0044_float64_no_val_struct.py create mode 100644 test/test_v0044_instance.py create mode 100644 test/test_v0044_instance_time.py create mode 100644 test/test_v0044_job.py create mode 100644 test/test_v0044_job_alloc_req.py create mode 100644 test/test_v0044_job_array.py create mode 100644 test/test_v0044_job_array_response_msg_entry.py create mode 100644 test/test_v0044_job_desc_msg.py create mode 100644 test/test_v0044_job_desc_msg_rlimits.py create mode 100644 test/test_v0044_job_het.py create mode 100644 test/test_v0044_job_info.py create mode 100644 test/test_v0044_job_modify.py create mode 100644 test/test_v0044_job_modify_tres.py create mode 100644 test/test_v0044_job_required.py create mode 100644 test/test_v0044_job_res.py create mode 100644 test/test_v0044_job_res_core.py create mode 100644 test/test_v0044_job_res_node.py create mode 100644 test/test_v0044_job_res_nodes.py create mode 100644 test/test_v0044_job_res_socket.py create mode 100644 test/test_v0044_job_reservation.py create mode 100644 test/test_v0044_job_state.py create mode 100644 test/test_v0044_job_submit_req.py create mode 100644 test/test_v0044_job_time.py create mode 100644 test/test_v0044_job_tres.py create mode 100644 test/test_v0044_kill_jobs_msg.py create mode 100644 test/test_v0044_kill_jobs_resp_job.py create mode 100644 test/test_v0044_license.py create mode 100644 test/test_v0044_node.py create mode 100644 test/test_v0044_node_gres_layout.py create mode 100644 test/test_v0044_node_resource_layout.py create mode 100644 test/test_v0044_openapi_accounts_add_cond_resp.py create mode 100644 test/test_v0044_openapi_accounts_add_cond_resp_str.py create mode 100644 test/test_v0044_openapi_accounts_removed_resp.py create mode 100644 test/test_v0044_openapi_accounts_resp.py create mode 100644 test/test_v0044_openapi_assocs_removed_resp.py create mode 100644 test/test_v0044_openapi_assocs_resp.py create mode 100644 test/test_v0044_openapi_clusters_removed_resp.py create mode 100644 test/test_v0044_openapi_clusters_resp.py create mode 100644 test/test_v0044_openapi_create_node_req.py create mode 100644 test/test_v0044_openapi_diag_resp.py create mode 100644 test/test_v0044_openapi_error.py create mode 100644 test/test_v0044_openapi_hostlist_req_resp.py create mode 100644 test/test_v0044_openapi_hostnames_req_resp.py create mode 100644 test/test_v0044_openapi_instances_resp.py create mode 100644 test/test_v0044_openapi_job_alloc_resp.py create mode 100644 test/test_v0044_openapi_job_info_resp.py create mode 100644 test/test_v0044_openapi_job_modify_req.py create mode 100644 test/test_v0044_openapi_job_modify_resp.py create mode 100644 test/test_v0044_openapi_job_post_response.py create mode 100644 test/test_v0044_openapi_job_submit_response.py create mode 100644 test/test_v0044_openapi_kill_job_resp.py create mode 100644 test/test_v0044_openapi_kill_jobs_resp.py create mode 100644 test/test_v0044_openapi_licenses_resp.py create mode 100644 test/test_v0044_openapi_meta.py create mode 100644 test/test_v0044_openapi_nodes_resp.py create mode 100644 test/test_v0044_openapi_partition_resp.py create mode 100644 test/test_v0044_openapi_ping_array_resp.py create mode 100644 test/test_v0044_openapi_reservation_mod_resp.py create mode 100644 test/test_v0044_openapi_reservation_resp.py create mode 100644 test/test_v0044_openapi_resource_layout_resp.py create mode 100644 test/test_v0044_openapi_resp.py create mode 100644 test/test_v0044_openapi_shares_resp.py create mode 100644 test/test_v0044_openapi_slurmdbd_config_resp.py create mode 100644 test/test_v0044_openapi_slurmdbd_jobs_resp.py create mode 100644 test/test_v0044_openapi_slurmdbd_ping_resp.py create mode 100644 test/test_v0044_openapi_slurmdbd_qos_removed_resp.py create mode 100644 test/test_v0044_openapi_slurmdbd_qos_resp.py create mode 100644 test/test_v0044_openapi_slurmdbd_stats_resp.py create mode 100644 test/test_v0044_openapi_tres_resp.py create mode 100644 test/test_v0044_openapi_users_add_cond_resp.py create mode 100644 test/test_v0044_openapi_users_add_cond_resp_str.py create mode 100644 test/test_v0044_openapi_users_resp.py create mode 100644 test/test_v0044_openapi_warning.py create mode 100644 test/test_v0044_openapi_wckey_removed_resp.py create mode 100644 test/test_v0044_openapi_wckey_resp.py create mode 100644 test/test_v0044_part_prio.py create mode 100644 test/test_v0044_partition_info.py create mode 100644 test/test_v0044_partition_info_accounts.py create mode 100644 test/test_v0044_partition_info_cpus.py create mode 100644 test/test_v0044_partition_info_defaults.py create mode 100644 test/test_v0044_partition_info_groups.py create mode 100644 test/test_v0044_partition_info_maximums.py create mode 100644 test/test_v0044_partition_info_minimums.py create mode 100644 test/test_v0044_partition_info_nodes.py create mode 100644 test/test_v0044_partition_info_priority.py create mode 100644 test/test_v0044_partition_info_qos.py create mode 100644 test/test_v0044_partition_info_timeouts.py create mode 100644 test/test_v0044_partition_info_tres.py create mode 100644 test/test_v0044_process_exit_code_verbose.py create mode 100644 test/test_v0044_process_exit_code_verbose_signal.py create mode 100644 test/test_v0044_qos.py create mode 100644 test/test_v0044_qos_limits.py create mode 100644 test/test_v0044_qos_limits_max.py create mode 100644 test/test_v0044_qos_limits_max_active_jobs.py create mode 100644 test/test_v0044_qos_limits_max_jobs.py create mode 100644 test/test_v0044_qos_limits_max_jobs_active_jobs.py create mode 100644 test/test_v0044_qos_limits_max_jobs_active_jobs_per.py create mode 100644 test/test_v0044_qos_limits_max_tres.py create mode 100644 test/test_v0044_qos_limits_max_tres_minutes.py create mode 100644 test/test_v0044_qos_limits_max_tres_minutes_per.py create mode 100644 test/test_v0044_qos_limits_max_tres_per.py create mode 100644 test/test_v0044_qos_limits_max_wall_clock.py create mode 100644 test/test_v0044_qos_limits_max_wall_clock_per.py create mode 100644 test/test_v0044_qos_limits_min.py create mode 100644 test/test_v0044_qos_limits_min_tres.py create mode 100644 test/test_v0044_qos_limits_min_tres_per.py create mode 100644 test/test_v0044_qos_preempt.py create mode 100644 test/test_v0044_reservation_core_spec.py create mode 100644 test/test_v0044_reservation_desc_msg.py create mode 100644 test/test_v0044_reservation_info.py create mode 100644 test/test_v0044_reservation_info_purge_completed.py create mode 100644 test/test_v0044_reservation_mod_req.py create mode 100644 test/test_v0044_rollup_stats.py create mode 100644 test/test_v0044_rollup_stats_daily.py create mode 100644 test/test_v0044_rollup_stats_hourly.py create mode 100644 test/test_v0044_rollup_stats_monthly.py create mode 100644 test/test_v0044_schedule_exit_fields.py create mode 100644 test/test_v0044_shares_float128_tres.py create mode 100644 test/test_v0044_shares_resp_msg.py create mode 100644 test/test_v0044_shares_uint64_tres.py create mode 100644 test/test_v0044_slurm_step_id.py create mode 100644 test/test_v0044_slurmdbd_ping.py create mode 100644 test/test_v0044_stats_msg.py create mode 100644 test/test_v0044_stats_msg_rpc_dump.py create mode 100644 test/test_v0044_stats_msg_rpc_queue.py create mode 100644 test/test_v0044_stats_msg_rpc_type.py create mode 100644 test/test_v0044_stats_msg_rpc_user.py create mode 100644 test/test_v0044_stats_rec.py create mode 100644 test/test_v0044_stats_rpc.py create mode 100644 test/test_v0044_stats_user.py create mode 100644 test/test_v0044_step.py create mode 100644 test/test_v0044_step_cpu.py create mode 100644 test/test_v0044_step_cpu_requested_frequency.py create mode 100644 test/test_v0044_step_nodes.py create mode 100644 test/test_v0044_step_statistics.py create mode 100644 test/test_v0044_step_statistics_energy.py create mode 100644 test/test_v0044_step_step.py create mode 100644 test/test_v0044_step_time.py create mode 100644 test/test_v0044_step_tres.py create mode 100644 test/test_v0044_step_tres_consumed.py create mode 100644 test/test_v0044_step_tres_requested.py create mode 100644 test/test_v0044_tres.py create mode 100644 test/test_v0044_uint16_no_val_struct.py create mode 100644 test/test_v0044_uint32_no_val_struct.py create mode 100644 test/test_v0044_uint64_no_val_struct.py create mode 100644 test/test_v0044_update_node_msg.py create mode 100644 test/test_v0044_user.py create mode 100644 test/test_v0044_user_default.py create mode 100644 test/test_v0044_user_short.py create mode 100644 test/test_v0044_users_add_cond.py create mode 100644 test/test_v0044_wckey.py create mode 100644 test/test_v0044_wckey_tag_struct.py create mode 100644 tox.ini diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..f12119f --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,34 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: slurmrest_python Python package + +on: [push, pull_request] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r test-requirements.txt + - name: Test with pytest + run: | + pytest --cov=slurmrest_python diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43995bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,66 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.venv/ +.python-version +.pytest_cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..021897b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.gitlab.com/ee/ci/README.html +# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml + +stages: + - test + +.pytest: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=slurmrest_python + +pytest-3.9: + extends: .pytest + image: python:3.9-alpine +pytest-3.10: + extends: .pytest + image: python:3.10-alpine +pytest-3.11: + extends: .pytest + image: python:3.11-alpine +pytest-3.12: + extends: .pytest + image: python:3.12-alpine +pytest-3.13: + extends: .pytest + image: python:3.13-alpine diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 0000000..f7fc545 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,2504 @@ +.github/workflows/python.yml +.gitignore +.gitlab-ci.yml +.openapi-generator-ignore +.travis.yml +README.md +docs/SlurmApi.md +docs/SlurmdbApi.md +docs/UtilApi.md +docs/V0041JobAllocReq.md +docs/V0041JobDescMsg.md +docs/V0041JobDescMsgBeginTime.md +docs/V0041JobDescMsgCrontab.md +docs/V0041JobDescMsgCrontabLine.md +docs/V0041JobDescMsgDistributionPlaneSize.md +docs/V0041JobDescMsgKillWarningDelay.md +docs/V0041JobDescMsgMemoryPerCpu.md +docs/V0041JobDescMsgPriority.md +docs/V0041JobDescMsgRequiredSwitches.md +docs/V0041JobDescMsgRlimits.md +docs/V0041JobDescMsgRlimitsAs.md +docs/V0041JobDescMsgRlimitsCore.md +docs/V0041JobDescMsgRlimitsCpu.md +docs/V0041JobDescMsgRlimitsData.md +docs/V0041JobDescMsgRlimitsFsize.md +docs/V0041JobDescMsgRlimitsMemlock.md +docs/V0041JobDescMsgRlimitsNofile.md +docs/V0041JobDescMsgRlimitsNproc.md +docs/V0041JobDescMsgRlimitsRss.md +docs/V0041JobDescMsgRlimitsStack.md +docs/V0041JobDescMsgSegmentSize.md +docs/V0041JobDescMsgTimeLimit.md +docs/V0041JobDescMsgTimeMinimum.md +docs/V0041JobSubmitReq.md +docs/V0041KillJobsMsg.md +docs/V0041OpenapiAccountsAddCondResp.md +docs/V0041OpenapiAccountsAddCondRespAccount.md +docs/V0041OpenapiAccountsAddCondRespAssociationCondition.md +docs/V0041OpenapiAccountsAddCondRespStr.md +docs/V0041OpenapiAccountsRemovedResp.md +docs/V0041OpenapiAccountsResp.md +docs/V0041OpenapiAssocsRemovedResp.md +docs/V0041OpenapiAssocsResp.md +docs/V0041OpenapiClustersRemovedResp.md +docs/V0041OpenapiClustersResp.md +docs/V0041OpenapiDiagResp.md +docs/V0041OpenapiDiagRespStatistics.md +docs/V0041OpenapiDiagRespStatisticsBfExit.md +docs/V0041OpenapiDiagRespStatisticsBfWhenLastCycle.md +docs/V0041OpenapiDiagRespStatisticsJobStatesTs.md +docs/V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.md +docs/V0041OpenapiDiagRespStatisticsPendingRpcsInner.md +docs/V0041OpenapiDiagRespStatisticsReqTime.md +docs/V0041OpenapiDiagRespStatisticsReqTimeStart.md +docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.md +docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md +docs/V0041OpenapiDiagRespStatisticsRpcsByUserInner.md +docs/V0041OpenapiDiagRespStatisticsScheduleExit.md +docs/V0041OpenapiInstancesResp.md +docs/V0041OpenapiJobAllocResp.md +docs/V0041OpenapiJobInfoResp.md +docs/V0041OpenapiJobInfoRespJobsInner.md +docs/V0041OpenapiJobInfoRespJobsInnerAccrueTime.md +docs/V0041OpenapiJobInfoRespJobsInnerArrayJobId.md +docs/V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.md +docs/V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md +docs/V0041OpenapiJobInfoRespJobsInnerBillableTres.md +docs/V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.md +docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.md +docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.md +docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.md +docs/V0041OpenapiJobInfoRespJobsInnerCpus.md +docs/V0041OpenapiJobInfoRespJobsInnerCpusPerTask.md +docs/V0041OpenapiJobInfoRespJobsInnerDeadline.md +docs/V0041OpenapiJobInfoRespJobsInnerDelayBoot.md +docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md +docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md +docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md +docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.md +docs/V0041OpenapiJobInfoRespJobsInnerEligibleTime.md +docs/V0041OpenapiJobInfoRespJobsInnerEndTime.md +docs/V0041OpenapiJobInfoRespJobsInnerExitCode.md +docs/V0041OpenapiJobInfoRespJobsInnerHetJobId.md +docs/V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResources.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.md +docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.md +docs/V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.md +docs/V0041OpenapiJobInfoRespJobsInnerMaxCpus.md +docs/V0041OpenapiJobInfoRespJobsInnerMaxNodes.md +docs/V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md +docs/V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.md +docs/V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.md +docs/V0041OpenapiJobInfoRespJobsInnerNodeCount.md +docs/V0041OpenapiJobInfoRespJobsInnerPower.md +docs/V0041OpenapiJobInfoRespJobsInnerPreSusTime.md +docs/V0041OpenapiJobInfoRespJobsInnerPreemptTime.md +docs/V0041OpenapiJobInfoRespJobsInnerPreemptableTime.md +docs/V0041OpenapiJobInfoRespJobsInnerResizeTime.md +docs/V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.md +docs/V0041OpenapiJobInfoRespJobsInnerStartTime.md +docs/V0041OpenapiJobInfoRespJobsInnerSubmitTime.md +docs/V0041OpenapiJobInfoRespJobsInnerSuspendTime.md +docs/V0041OpenapiJobInfoRespJobsInnerTasks.md +docs/V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.md +docs/V0041OpenapiJobInfoRespJobsInnerTasksPerCore.md +docs/V0041OpenapiJobInfoRespJobsInnerTasksPerNode.md +docs/V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.md +docs/V0041OpenapiJobInfoRespJobsInnerTasksPerTres.md +docs/V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.md +docs/V0041OpenapiJobInfoRespLastBackfill.md +docs/V0041OpenapiJobInfoRespLastUpdate.md +docs/V0041OpenapiJobPostResponse.md +docs/V0041OpenapiJobPostResponseResultsInner.md +docs/V0041OpenapiJobSubmitResponse.md +docs/V0041OpenapiJobSubmitResponseResult.md +docs/V0041OpenapiKillJobsResp.md +docs/V0041OpenapiKillJobsRespStatusInner.md +docs/V0041OpenapiKillJobsRespStatusInnerError.md +docs/V0041OpenapiKillJobsRespStatusInnerFederation.md +docs/V0041OpenapiKillJobsRespStatusInnerJobId.md +docs/V0041OpenapiLicensesResp.md +docs/V0041OpenapiLicensesRespLastUpdate.md +docs/V0041OpenapiLicensesRespLicensesInner.md +docs/V0041OpenapiNodesResp.md +docs/V0041OpenapiNodesRespLastUpdate.md +docs/V0041OpenapiNodesRespNodesInner.md +docs/V0041OpenapiNodesRespNodesInnerBootTime.md +docs/V0041OpenapiNodesRespNodesInnerEnergy.md +docs/V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.md +docs/V0041OpenapiNodesRespNodesInnerFreeMem.md +docs/V0041OpenapiNodesRespNodesInnerLastBusy.md +docs/V0041OpenapiNodesRespNodesInnerReasonChangedAt.md +docs/V0041OpenapiNodesRespNodesInnerResumeAfter.md +docs/V0041OpenapiNodesRespNodesInnerSlurmdStartTime.md +docs/V0041OpenapiPartitionResp.md +docs/V0041OpenapiPartitionRespLastUpdate.md +docs/V0041OpenapiPartitionRespPartitionsInner.md +docs/V0041OpenapiPartitionRespPartitionsInnerAccounts.md +docs/V0041OpenapiPartitionRespPartitionsInnerCpus.md +docs/V0041OpenapiPartitionRespPartitionsInnerDefaults.md +docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.md +docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.md +docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.md +docs/V0041OpenapiPartitionRespPartitionsInnerGroups.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximums.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.md +docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.md +docs/V0041OpenapiPartitionRespPartitionsInnerMinimums.md +docs/V0041OpenapiPartitionRespPartitionsInnerNodes.md +docs/V0041OpenapiPartitionRespPartitionsInnerPartition.md +docs/V0041OpenapiPartitionRespPartitionsInnerPriority.md +docs/V0041OpenapiPartitionRespPartitionsInnerQos.md +docs/V0041OpenapiPartitionRespPartitionsInnerSuspendTime.md +docs/V0041OpenapiPartitionRespPartitionsInnerTimeouts.md +docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.md +docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.md +docs/V0041OpenapiPartitionRespPartitionsInnerTres.md +docs/V0041OpenapiPingArrayResp.md +docs/V0041OpenapiPingArrayRespPingsInner.md +docs/V0041OpenapiReservationResp.md +docs/V0041OpenapiReservationRespLastUpdate.md +docs/V0041OpenapiReservationRespReservationsInner.md +docs/V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.md +docs/V0041OpenapiReservationRespReservationsInnerEndTime.md +docs/V0041OpenapiReservationRespReservationsInnerPurgeCompleted.md +docs/V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.md +docs/V0041OpenapiReservationRespReservationsInnerStartTime.md +docs/V0041OpenapiReservationRespReservationsInnerWatts.md +docs/V0041OpenapiResp.md +docs/V0041OpenapiSharesResp.md +docs/V0041OpenapiSharesRespErrorsInner.md +docs/V0041OpenapiSharesRespMeta.md +docs/V0041OpenapiSharesRespMetaClient.md +docs/V0041OpenapiSharesRespMetaPlugin.md +docs/V0041OpenapiSharesRespMetaSlurm.md +docs/V0041OpenapiSharesRespMetaSlurmVersion.md +docs/V0041OpenapiSharesRespShares.md +docs/V0041OpenapiSharesRespSharesSharesInner.md +docs/V0041OpenapiSharesRespSharesSharesInnerFairshare.md +docs/V0041OpenapiSharesRespSharesSharesInnerShares.md +docs/V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.md +docs/V0041OpenapiSharesRespSharesSharesInnerTres.md +docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md +docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.md +docs/V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.md +docs/V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.md +docs/V0041OpenapiSharesRespWarningsInner.md +docs/V0041OpenapiSlurmdbdConfigResp.md +docs/V0041OpenapiSlurmdbdConfigRespAccountsInner.md +docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md +docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInner.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.md +docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md +docs/V0041OpenapiSlurmdbdConfigRespClustersInner.md +docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.md +docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.md +docs/V0041OpenapiSlurmdbdConfigRespClustersInnerController.md +docs/V0041OpenapiSlurmdbdConfigRespInstancesInner.md +docs/V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md +docs/V0041OpenapiSlurmdbdConfigRespQosInner.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimits.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerPriority.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.md +docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.md +docs/V0041OpenapiSlurmdbdConfigRespUsersInner.md +docs/V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.md +docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md +docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md +docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.md +docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.md +docs/V0041OpenapiSlurmdbdJobsResp.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInner.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArray.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerHet.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerState.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTime.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTres.md +docs/V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.md +docs/V0041OpenapiSlurmdbdQosRemovedResp.md +docs/V0041OpenapiSlurmdbdQosResp.md +docs/V0041OpenapiSlurmdbdStatsResp.md +docs/V0041OpenapiSlurmdbdStatsRespStatistics.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollups.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md +docs/V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.md +docs/V0041OpenapiTresResp.md +docs/V0041OpenapiUsersAddCondResp.md +docs/V0041OpenapiUsersAddCondRespAssociationCondition.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.md +docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.md +docs/V0041OpenapiUsersAddCondRespStr.md +docs/V0041OpenapiUsersAddCondRespUser.md +docs/V0041OpenapiUsersResp.md +docs/V0041OpenapiWckeyRemovedResp.md +docs/V0041OpenapiWckeyResp.md +docs/V0041UpdateNodeMsg.md +docs/V0041UpdateNodeMsgResumeAfter.md +docs/V0041UpdateNodeMsgWeight.md +docs/V0042Account.md +docs/V0042AccountShort.md +docs/V0042Accounting.md +docs/V0042AccountsAddCond.md +docs/V0042AcctGatherEnergy.md +docs/V0042Assoc.md +docs/V0042AssocMax.md +docs/V0042AssocMaxJobs.md +docs/V0042AssocMaxJobsPer.md +docs/V0042AssocMaxPer.md +docs/V0042AssocMaxPerAccount.md +docs/V0042AssocMaxTres.md +docs/V0042AssocMaxTresGroup.md +docs/V0042AssocMaxTresMinutes.md +docs/V0042AssocMaxTresPer.md +docs/V0042AssocMin.md +docs/V0042AssocRecSet.md +docs/V0042AssocSharesObjWrap.md +docs/V0042AssocSharesObjWrapFairshare.md +docs/V0042AssocSharesObjWrapTres.md +docs/V0042AssocShort.md +docs/V0042BfExitFields.md +docs/V0042ClusterRec.md +docs/V0042ClusterRecAssociations.md +docs/V0042ControllerPing.md +docs/V0042Coord.md +docs/V0042CronEntry.md +docs/V0042Float64NoValStruct.md +docs/V0042Instance.md +docs/V0042Job.md +docs/V0042JobAllocReq.md +docs/V0042JobArray.md +docs/V0042JobArrayResponseMsgEntry.md +docs/V0042JobDescMsg.md +docs/V0042JobDescMsgRlimits.md +docs/V0042JobHet.md +docs/V0042JobInfo.md +docs/V0042JobRequired.md +docs/V0042JobRes.md +docs/V0042JobResCore.md +docs/V0042JobResNode.md +docs/V0042JobResNodes.md +docs/V0042JobResSocket.md +docs/V0042JobState.md +docs/V0042JobSubmitReq.md +docs/V0042JobTime.md +docs/V0042JobTres.md +docs/V0042KillJobsMsg.md +docs/V0042KillJobsRespJob.md +docs/V0042License.md +docs/V0042Node.md +docs/V0042OpenapiAccountsAddCondResp.md +docs/V0042OpenapiAccountsAddCondRespStr.md +docs/V0042OpenapiAccountsRemovedResp.md +docs/V0042OpenapiAccountsResp.md +docs/V0042OpenapiAssocsRemovedResp.md +docs/V0042OpenapiAssocsResp.md +docs/V0042OpenapiClustersRemovedResp.md +docs/V0042OpenapiClustersResp.md +docs/V0042OpenapiDiagResp.md +docs/V0042OpenapiError.md +docs/V0042OpenapiInstancesResp.md +docs/V0042OpenapiJobAllocResp.md +docs/V0042OpenapiJobInfoResp.md +docs/V0042OpenapiJobPostResponse.md +docs/V0042OpenapiJobSubmitResponse.md +docs/V0042OpenapiKillJobResp.md +docs/V0042OpenapiKillJobsResp.md +docs/V0042OpenapiLicensesResp.md +docs/V0042OpenapiMeta.md +docs/V0042OpenapiNodesResp.md +docs/V0042OpenapiPartitionResp.md +docs/V0042OpenapiPingArrayResp.md +docs/V0042OpenapiReservationResp.md +docs/V0042OpenapiResp.md +docs/V0042OpenapiSharesResp.md +docs/V0042OpenapiSlurmdbdConfigResp.md +docs/V0042OpenapiSlurmdbdJobsResp.md +docs/V0042OpenapiSlurmdbdPingResp.md +docs/V0042OpenapiSlurmdbdQosRemovedResp.md +docs/V0042OpenapiSlurmdbdQosResp.md +docs/V0042OpenapiSlurmdbdStatsResp.md +docs/V0042OpenapiTresResp.md +docs/V0042OpenapiUsersAddCondResp.md +docs/V0042OpenapiUsersAddCondRespStr.md +docs/V0042OpenapiUsersResp.md +docs/V0042OpenapiWarning.md +docs/V0042OpenapiWckeyRemovedResp.md +docs/V0042OpenapiWckeyResp.md +docs/V0042PartPrio.md +docs/V0042PartitionInfo.md +docs/V0042PartitionInfoDefaults.md +docs/V0042PartitionInfoMaximums.md +docs/V0042PartitionInfoMaximumsOversubscribe.md +docs/V0042PartitionInfoPartition.md +docs/V0042PartitionInfoTimeouts.md +docs/V0042ProcessExitCodeVerbose.md +docs/V0042ProcessExitCodeVerboseSignal.md +docs/V0042Qos.md +docs/V0042QosLimits.md +docs/V0042QosLimitsMax.md +docs/V0042QosLimitsMaxActiveJobs.md +docs/V0042QosLimitsMaxJobs.md +docs/V0042QosLimitsMaxJobsActiveJobs.md +docs/V0042QosLimitsMaxJobsActiveJobsPer.md +docs/V0042QosLimitsMaxTres.md +docs/V0042QosLimitsMaxTresMinutes.md +docs/V0042QosLimitsMaxTresMinutesPer.md +docs/V0042QosLimitsMaxTresPer.md +docs/V0042QosLimitsMaxWallClock.md +docs/V0042QosLimitsMaxWallClockPer.md +docs/V0042QosLimitsMin.md +docs/V0042QosLimitsMinTres.md +docs/V0042QosLimitsMinTresPer.md +docs/V0042QosPreempt.md +docs/V0042ReservationCoreSpec.md +docs/V0042ReservationInfo.md +docs/V0042ReservationInfoPurgeCompleted.md +docs/V0042RollupStats.md +docs/V0042ScheduleExitFields.md +docs/V0042SharesFloat128Tres.md +docs/V0042SharesRespMsg.md +docs/V0042SharesUint64Tres.md +docs/V0042SlurmdbdPing.md +docs/V0042StatsMsg.md +docs/V0042StatsMsgRpcDump.md +docs/V0042StatsMsgRpcQueue.md +docs/V0042StatsMsgRpcType.md +docs/V0042StatsMsgRpcUser.md +docs/V0042StatsRec.md +docs/V0042StatsRpc.md +docs/V0042StatsUser.md +docs/V0042Step.md +docs/V0042StepCPU.md +docs/V0042StepCPURequestedFrequency.md +docs/V0042StepNodes.md +docs/V0042StepStatistics.md +docs/V0042StepStatisticsEnergy.md +docs/V0042StepTime.md +docs/V0042StepTres.md +docs/V0042StepTresConsumed.md +docs/V0042StepTresRequested.md +docs/V0042Tres.md +docs/V0042Uint16NoValStruct.md +docs/V0042Uint32NoValStruct.md +docs/V0042Uint64NoValStruct.md +docs/V0042UpdateNodeMsg.md +docs/V0042User.md +docs/V0042UserDefault.md +docs/V0042UserShort.md +docs/V0042UsersAddCond.md +docs/V0042Wckey.md +docs/V0042WckeyTagStruct.md +docs/V0043Account.md +docs/V0043AccountShort.md +docs/V0043Accounting.md +docs/V0043AccountsAddCond.md +docs/V0043AcctGatherEnergy.md +docs/V0043Assoc.md +docs/V0043AssocMax.md +docs/V0043AssocMaxJobs.md +docs/V0043AssocMaxJobsPer.md +docs/V0043AssocMaxPer.md +docs/V0043AssocMaxPerAccount.md +docs/V0043AssocMaxTres.md +docs/V0043AssocMaxTresGroup.md +docs/V0043AssocMaxTresMinutes.md +docs/V0043AssocMaxTresPer.md +docs/V0043AssocMin.md +docs/V0043AssocRecSet.md +docs/V0043AssocSharesObjWrap.md +docs/V0043AssocSharesObjWrapFairshare.md +docs/V0043AssocSharesObjWrapTres.md +docs/V0043AssocShort.md +docs/V0043BfExitFields.md +docs/V0043ClusterRec.md +docs/V0043ClusterRecAssociations.md +docs/V0043ControllerPing.md +docs/V0043Coord.md +docs/V0043CronEntry.md +docs/V0043Float64NoValStruct.md +docs/V0043Instance.md +docs/V0043Job.md +docs/V0043JobAllocReq.md +docs/V0043JobArray.md +docs/V0043JobArrayResponseMsgEntry.md +docs/V0043JobDescMsg.md +docs/V0043JobDescMsgRlimits.md +docs/V0043JobHet.md +docs/V0043JobInfo.md +docs/V0043JobRequired.md +docs/V0043JobRes.md +docs/V0043JobResCore.md +docs/V0043JobResNode.md +docs/V0043JobResNodes.md +docs/V0043JobResSocket.md +docs/V0043JobSubmitReq.md +docs/V0043JobTime.md +docs/V0043JobTres.md +docs/V0043KillJobsMsg.md +docs/V0043KillJobsRespJob.md +docs/V0043License.md +docs/V0043Node.md +docs/V0043OpenapiAccountsAddCondResp.md +docs/V0043OpenapiAccountsAddCondRespStr.md +docs/V0043OpenapiAccountsRemovedResp.md +docs/V0043OpenapiAccountsResp.md +docs/V0043OpenapiAssocsRemovedResp.md +docs/V0043OpenapiAssocsResp.md +docs/V0043OpenapiClustersRemovedResp.md +docs/V0043OpenapiClustersResp.md +docs/V0043OpenapiDiagResp.md +docs/V0043OpenapiError.md +docs/V0043OpenapiInstancesResp.md +docs/V0043OpenapiJobAllocResp.md +docs/V0043OpenapiJobInfoResp.md +docs/V0043OpenapiJobPostResponse.md +docs/V0043OpenapiJobSubmitResponse.md +docs/V0043OpenapiKillJobResp.md +docs/V0043OpenapiKillJobsResp.md +docs/V0043OpenapiLicensesResp.md +docs/V0043OpenapiMeta.md +docs/V0043OpenapiNodesResp.md +docs/V0043OpenapiPartitionResp.md +docs/V0043OpenapiPingArrayResp.md +docs/V0043OpenapiReservationModResp.md +docs/V0043OpenapiReservationResp.md +docs/V0043OpenapiResp.md +docs/V0043OpenapiSharesResp.md +docs/V0043OpenapiSlurmdbdConfigResp.md +docs/V0043OpenapiSlurmdbdJobsResp.md +docs/V0043OpenapiSlurmdbdPingResp.md +docs/V0043OpenapiSlurmdbdQosRemovedResp.md +docs/V0043OpenapiSlurmdbdQosResp.md +docs/V0043OpenapiSlurmdbdStatsResp.md +docs/V0043OpenapiTresResp.md +docs/V0043OpenapiUsersAddCondResp.md +docs/V0043OpenapiUsersAddCondRespStr.md +docs/V0043OpenapiUsersResp.md +docs/V0043OpenapiWarning.md +docs/V0043OpenapiWckeyRemovedResp.md +docs/V0043OpenapiWckeyResp.md +docs/V0043PartPrio.md +docs/V0043PartitionInfo.md +docs/V0043PartitionInfoDefaults.md +docs/V0043PartitionInfoMaximums.md +docs/V0043PartitionInfoTimeouts.md +docs/V0043ProcessExitCodeVerbose.md +docs/V0043ProcessExitCodeVerboseSignal.md +docs/V0043Qos.md +docs/V0043QosLimits.md +docs/V0043QosLimitsMax.md +docs/V0043QosLimitsMaxActiveJobs.md +docs/V0043QosLimitsMaxJobs.md +docs/V0043QosLimitsMaxJobsActiveJobs.md +docs/V0043QosLimitsMaxJobsActiveJobsPer.md +docs/V0043QosLimitsMaxTres.md +docs/V0043QosLimitsMaxTresMinutes.md +docs/V0043QosLimitsMaxTresMinutesPer.md +docs/V0043QosLimitsMaxTresPer.md +docs/V0043QosLimitsMaxWallClock.md +docs/V0043QosLimitsMaxWallClockPer.md +docs/V0043QosLimitsMin.md +docs/V0043QosLimitsMinTres.md +docs/V0043QosLimitsMinTresPer.md +docs/V0043QosPreempt.md +docs/V0043ReservationCoreSpec.md +docs/V0043ReservationDescMsg.md +docs/V0043ReservationInfo.md +docs/V0043ReservationInfoPurgeCompleted.md +docs/V0043ReservationModReq.md +docs/V0043RollupStats.md +docs/V0043ScheduleExitFields.md +docs/V0043SharesFloat128Tres.md +docs/V0043SharesRespMsg.md +docs/V0043SharesUint64Tres.md +docs/V0043SlurmdbdPing.md +docs/V0043StatsMsg.md +docs/V0043StatsMsgRpcDump.md +docs/V0043StatsMsgRpcQueue.md +docs/V0043StatsMsgRpcType.md +docs/V0043StatsMsgRpcUser.md +docs/V0043StatsRec.md +docs/V0043StatsRpc.md +docs/V0043StatsUser.md +docs/V0043Step.md +docs/V0043StepCPU.md +docs/V0043StepCPURequestedFrequency.md +docs/V0043StepNodes.md +docs/V0043StepStatistics.md +docs/V0043StepStatisticsEnergy.md +docs/V0043StepTime.md +docs/V0043StepTres.md +docs/V0043StepTresConsumed.md +docs/V0043StepTresRequested.md +docs/V0043Tres.md +docs/V0043Uint16NoValStruct.md +docs/V0043Uint32NoValStruct.md +docs/V0043Uint64NoValStruct.md +docs/V0043UpdateNodeMsg.md +docs/V0043User.md +docs/V0043UserShort.md +docs/V0043UsersAddCond.md +docs/V0043Wckey.md +docs/V0043WckeyTagStruct.md +docs/V0044Account.md +docs/V0044AccountShort.md +docs/V0044Accounting.md +docs/V0044AccountingAllocated.md +docs/V0044AccountsAddCond.md +docs/V0044AcctGatherEnergy.md +docs/V0044Assoc.md +docs/V0044AssocMax.md +docs/V0044AssocMaxJobs.md +docs/V0044AssocMaxJobsPer.md +docs/V0044AssocMaxPer.md +docs/V0044AssocMaxPerAccount.md +docs/V0044AssocMaxTres.md +docs/V0044AssocMaxTresGroup.md +docs/V0044AssocMaxTresMinutes.md +docs/V0044AssocMaxTresPer.md +docs/V0044AssocMin.md +docs/V0044AssocRecSet.md +docs/V0044AssocSharesObjWrap.md +docs/V0044AssocSharesObjWrapFairshare.md +docs/V0044AssocSharesObjWrapTres.md +docs/V0044AssocShort.md +docs/V0044BfExitFields.md +docs/V0044ClusterRec.md +docs/V0044ClusterRecAssociations.md +docs/V0044ControllerPing.md +docs/V0044Coord.md +docs/V0044CronEntry.md +docs/V0044Float64NoValStruct.md +docs/V0044Instance.md +docs/V0044InstanceTime.md +docs/V0044Job.md +docs/V0044JobAllocReq.md +docs/V0044JobArray.md +docs/V0044JobArrayResponseMsgEntry.md +docs/V0044JobDescMsg.md +docs/V0044JobDescMsgRlimits.md +docs/V0044JobHet.md +docs/V0044JobInfo.md +docs/V0044JobModify.md +docs/V0044JobModifyTres.md +docs/V0044JobRequired.md +docs/V0044JobRes.md +docs/V0044JobResCore.md +docs/V0044JobResNode.md +docs/V0044JobResNodes.md +docs/V0044JobResSocket.md +docs/V0044JobReservation.md +docs/V0044JobState.md +docs/V0044JobSubmitReq.md +docs/V0044JobTime.md +docs/V0044JobTres.md +docs/V0044KillJobsMsg.md +docs/V0044KillJobsRespJob.md +docs/V0044License.md +docs/V0044Node.md +docs/V0044NodeGresLayout.md +docs/V0044NodeResourceLayout.md +docs/V0044OpenapiAccountsAddCondResp.md +docs/V0044OpenapiAccountsAddCondRespStr.md +docs/V0044OpenapiAccountsRemovedResp.md +docs/V0044OpenapiAccountsResp.md +docs/V0044OpenapiAssocsRemovedResp.md +docs/V0044OpenapiAssocsResp.md +docs/V0044OpenapiClustersRemovedResp.md +docs/V0044OpenapiClustersResp.md +docs/V0044OpenapiCreateNodeReq.md +docs/V0044OpenapiDiagResp.md +docs/V0044OpenapiError.md +docs/V0044OpenapiHostlistReqResp.md +docs/V0044OpenapiHostnamesReqResp.md +docs/V0044OpenapiInstancesResp.md +docs/V0044OpenapiJobAllocResp.md +docs/V0044OpenapiJobInfoResp.md +docs/V0044OpenapiJobModifyReq.md +docs/V0044OpenapiJobModifyResp.md +docs/V0044OpenapiJobPostResponse.md +docs/V0044OpenapiJobSubmitResponse.md +docs/V0044OpenapiKillJobResp.md +docs/V0044OpenapiKillJobsResp.md +docs/V0044OpenapiLicensesResp.md +docs/V0044OpenapiMeta.md +docs/V0044OpenapiNodesResp.md +docs/V0044OpenapiPartitionResp.md +docs/V0044OpenapiPingArrayResp.md +docs/V0044OpenapiReservationModResp.md +docs/V0044OpenapiReservationResp.md +docs/V0044OpenapiResourceLayoutResp.md +docs/V0044OpenapiResp.md +docs/V0044OpenapiSharesResp.md +docs/V0044OpenapiSlurmdbdConfigResp.md +docs/V0044OpenapiSlurmdbdJobsResp.md +docs/V0044OpenapiSlurmdbdPingResp.md +docs/V0044OpenapiSlurmdbdQosRemovedResp.md +docs/V0044OpenapiSlurmdbdQosResp.md +docs/V0044OpenapiSlurmdbdStatsResp.md +docs/V0044OpenapiTresResp.md +docs/V0044OpenapiUsersAddCondResp.md +docs/V0044OpenapiUsersAddCondRespStr.md +docs/V0044OpenapiUsersResp.md +docs/V0044OpenapiWarning.md +docs/V0044OpenapiWckeyRemovedResp.md +docs/V0044OpenapiWckeyResp.md +docs/V0044PartPrio.md +docs/V0044PartitionInfo.md +docs/V0044PartitionInfoAccounts.md +docs/V0044PartitionInfoCpus.md +docs/V0044PartitionInfoDefaults.md +docs/V0044PartitionInfoGroups.md +docs/V0044PartitionInfoMaximums.md +docs/V0044PartitionInfoMinimums.md +docs/V0044PartitionInfoNodes.md +docs/V0044PartitionInfoPriority.md +docs/V0044PartitionInfoQos.md +docs/V0044PartitionInfoTimeouts.md +docs/V0044PartitionInfoTres.md +docs/V0044ProcessExitCodeVerbose.md +docs/V0044ProcessExitCodeVerboseSignal.md +docs/V0044Qos.md +docs/V0044QosLimits.md +docs/V0044QosLimitsMax.md +docs/V0044QosLimitsMaxActiveJobs.md +docs/V0044QosLimitsMaxJobs.md +docs/V0044QosLimitsMaxJobsActiveJobs.md +docs/V0044QosLimitsMaxJobsActiveJobsPer.md +docs/V0044QosLimitsMaxTres.md +docs/V0044QosLimitsMaxTresMinutes.md +docs/V0044QosLimitsMaxTresMinutesPer.md +docs/V0044QosLimitsMaxTresPer.md +docs/V0044QosLimitsMaxWallClock.md +docs/V0044QosLimitsMaxWallClockPer.md +docs/V0044QosLimitsMin.md +docs/V0044QosLimitsMinTres.md +docs/V0044QosLimitsMinTresPer.md +docs/V0044QosPreempt.md +docs/V0044ReservationCoreSpec.md +docs/V0044ReservationDescMsg.md +docs/V0044ReservationInfo.md +docs/V0044ReservationInfoPurgeCompleted.md +docs/V0044ReservationModReq.md +docs/V0044RollupStats.md +docs/V0044RollupStatsDaily.md +docs/V0044RollupStatsHourly.md +docs/V0044RollupStatsMonthly.md +docs/V0044ScheduleExitFields.md +docs/V0044SharesFloat128Tres.md +docs/V0044SharesRespMsg.md +docs/V0044SharesUint64Tres.md +docs/V0044SlurmStepId.md +docs/V0044SlurmdbdPing.md +docs/V0044StatsMsg.md +docs/V0044StatsMsgRpcDump.md +docs/V0044StatsMsgRpcQueue.md +docs/V0044StatsMsgRpcType.md +docs/V0044StatsMsgRpcUser.md +docs/V0044StatsRec.md +docs/V0044StatsRpc.md +docs/V0044StatsUser.md +docs/V0044Step.md +docs/V0044StepCPU.md +docs/V0044StepCPURequestedFrequency.md +docs/V0044StepNodes.md +docs/V0044StepStatistics.md +docs/V0044StepStatisticsEnergy.md +docs/V0044StepStep.md +docs/V0044StepTime.md +docs/V0044StepTres.md +docs/V0044StepTresConsumed.md +docs/V0044StepTresRequested.md +docs/V0044Tres.md +docs/V0044Uint16NoValStruct.md +docs/V0044Uint32NoValStruct.md +docs/V0044Uint64NoValStruct.md +docs/V0044UpdateNodeMsg.md +docs/V0044User.md +docs/V0044UserDefault.md +docs/V0044UserShort.md +docs/V0044UsersAddCond.md +docs/V0044Wckey.md +docs/V0044WckeyTagStruct.md +git_push.sh +pyproject.toml +requirements.txt +setup.cfg +setup.py +slurmrest_python/__init__.py +slurmrest_python/api/__init__.py +slurmrest_python/api/slurm_api.py +slurmrest_python/api/slurmdb_api.py +slurmrest_python/api/util_api.py +slurmrest_python/api_client.py +slurmrest_python/api_response.py +slurmrest_python/configuration.py +slurmrest_python/exceptions.py +slurmrest_python/models/__init__.py +slurmrest_python/models/v0041_job_alloc_req.py +slurmrest_python/models/v0041_job_desc_msg.py +slurmrest_python/models/v0041_job_desc_msg_begin_time.py +slurmrest_python/models/v0041_job_desc_msg_crontab.py +slurmrest_python/models/v0041_job_desc_msg_crontab_line.py +slurmrest_python/models/v0041_job_desc_msg_distribution_plane_size.py +slurmrest_python/models/v0041_job_desc_msg_kill_warning_delay.py +slurmrest_python/models/v0041_job_desc_msg_memory_per_cpu.py +slurmrest_python/models/v0041_job_desc_msg_priority.py +slurmrest_python/models/v0041_job_desc_msg_required_switches.py +slurmrest_python/models/v0041_job_desc_msg_rlimits.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_as.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_core.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_cpu.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_data.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_fsize.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_memlock.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_nofile.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_nproc.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_rss.py +slurmrest_python/models/v0041_job_desc_msg_rlimits_stack.py +slurmrest_python/models/v0041_job_desc_msg_segment_size.py +slurmrest_python/models/v0041_job_desc_msg_time_limit.py +slurmrest_python/models/v0041_job_desc_msg_time_minimum.py +slurmrest_python/models/v0041_job_submit_req.py +slurmrest_python/models/v0041_kill_jobs_msg.py +slurmrest_python/models/v0041_openapi_accounts_add_cond_resp.py +slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_account.py +slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_association_condition.py +slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_str.py +slurmrest_python/models/v0041_openapi_accounts_removed_resp.py +slurmrest_python/models/v0041_openapi_accounts_resp.py +slurmrest_python/models/v0041_openapi_assocs_removed_resp.py +slurmrest_python/models/v0041_openapi_assocs_resp.py +slurmrest_python/models/v0041_openapi_clusters_removed_resp.py +slurmrest_python/models/v0041_openapi_clusters_resp.py +slurmrest_python/models/v0041_openapi_diag_resp.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_exit.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_job_states_ts.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time_start.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py +slurmrest_python/models/v0041_openapi_diag_resp_statistics_schedule_exit.py +slurmrest_python/models/v0041_openapi_instances_resp.py +slurmrest_python/models/v0041_openapi_job_alloc_resp.py +slurmrest_python/models/v0041_openapi_job_info_resp.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_accrue_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_job_id.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_task_id.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_billable_tres.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_deadline.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_delay_boot.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_eligible_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_end_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_exit_code.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_id.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_cpus.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_nodes.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_node_count.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_power.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preempt_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_resize_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_start_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_submit_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_suspend_time.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py +slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py +slurmrest_python/models/v0041_openapi_job_info_resp_last_backfill.py +slurmrest_python/models/v0041_openapi_job_info_resp_last_update.py +slurmrest_python/models/v0041_openapi_job_post_response.py +slurmrest_python/models/v0041_openapi_job_post_response_results_inner.py +slurmrest_python/models/v0041_openapi_job_submit_response.py +slurmrest_python/models/v0041_openapi_job_submit_response_result.py +slurmrest_python/models/v0041_openapi_kill_jobs_resp.py +slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner.py +slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_error.py +slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_federation.py +slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_job_id.py +slurmrest_python/models/v0041_openapi_licenses_resp.py +slurmrest_python/models/v0041_openapi_licenses_resp_last_update.py +slurmrest_python/models/v0041_openapi_licenses_resp_licenses_inner.py +slurmrest_python/models/v0041_openapi_nodes_resp.py +slurmrest_python/models/v0041_openapi_nodes_resp_last_update.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_boot_time.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_free_mem.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_last_busy.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_resume_after.py +slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py +slurmrest_python/models/v0041_openapi_partition_resp.py +slurmrest_python/models/v0041_openapi_partition_resp_last_update.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_accounts.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_cpus.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_time.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_groups.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_time.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_minimums.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_nodes.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_partition.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_priority.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_qos.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_suspend_time.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py +slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_tres.py +slurmrest_python/models/v0041_openapi_ping_array_resp.py +slurmrest_python/models/v0041_openapi_ping_array_resp_pings_inner.py +slurmrest_python/models/v0041_openapi_reservation_resp.py +slurmrest_python/models/v0041_openapi_reservation_resp_last_update.py +slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner.py +slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py +slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_end_time.py +slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed.py +slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py +slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_start_time.py +slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_watts.py +slurmrest_python/models/v0041_openapi_resp.py +slurmrest_python/models/v0041_openapi_shares_resp.py +slurmrest_python/models/v0041_openapi_shares_resp_errors_inner.py +slurmrest_python/models/v0041_openapi_shares_resp_meta.py +slurmrest_python/models/v0041_openapi_shares_resp_meta_client.py +slurmrest_python/models/v0041_openapi_shares_resp_meta_plugin.py +slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm.py +slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm_version.py +slurmrest_python/models/v0041_openapi_shares_resp_shares.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_fairshare.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py +slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py +slurmrest_python/models/v0041_openapi_shares_resp_warnings_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_default.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_min.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner_time.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_default.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py +slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py +slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py +slurmrest_python/models/v0041_openapi_slurmdbd_qos_removed_resp.py +slurmrest_python/models/v0041_openapi_slurmdbd_qos_resp.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py +slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py +slurmrest_python/models/v0041_openapi_tres_resp.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_str.py +slurmrest_python/models/v0041_openapi_users_add_cond_resp_user.py +slurmrest_python/models/v0041_openapi_users_resp.py +slurmrest_python/models/v0041_openapi_wckey_removed_resp.py +slurmrest_python/models/v0041_openapi_wckey_resp.py +slurmrest_python/models/v0041_update_node_msg.py +slurmrest_python/models/v0041_update_node_msg_resume_after.py +slurmrest_python/models/v0041_update_node_msg_weight.py +slurmrest_python/models/v0042_account.py +slurmrest_python/models/v0042_account_short.py +slurmrest_python/models/v0042_accounting.py +slurmrest_python/models/v0042_accounts_add_cond.py +slurmrest_python/models/v0042_acct_gather_energy.py +slurmrest_python/models/v0042_assoc.py +slurmrest_python/models/v0042_assoc_max.py +slurmrest_python/models/v0042_assoc_max_jobs.py +slurmrest_python/models/v0042_assoc_max_jobs_per.py +slurmrest_python/models/v0042_assoc_max_per.py +slurmrest_python/models/v0042_assoc_max_per_account.py +slurmrest_python/models/v0042_assoc_max_tres.py +slurmrest_python/models/v0042_assoc_max_tres_group.py +slurmrest_python/models/v0042_assoc_max_tres_minutes.py +slurmrest_python/models/v0042_assoc_max_tres_per.py +slurmrest_python/models/v0042_assoc_min.py +slurmrest_python/models/v0042_assoc_rec_set.py +slurmrest_python/models/v0042_assoc_shares_obj_wrap.py +slurmrest_python/models/v0042_assoc_shares_obj_wrap_fairshare.py +slurmrest_python/models/v0042_assoc_shares_obj_wrap_tres.py +slurmrest_python/models/v0042_assoc_short.py +slurmrest_python/models/v0042_bf_exit_fields.py +slurmrest_python/models/v0042_cluster_rec.py +slurmrest_python/models/v0042_cluster_rec_associations.py +slurmrest_python/models/v0042_controller_ping.py +slurmrest_python/models/v0042_coord.py +slurmrest_python/models/v0042_cron_entry.py +slurmrest_python/models/v0042_float64_no_val_struct.py +slurmrest_python/models/v0042_instance.py +slurmrest_python/models/v0042_job.py +slurmrest_python/models/v0042_job_alloc_req.py +slurmrest_python/models/v0042_job_array.py +slurmrest_python/models/v0042_job_array_response_msg_entry.py +slurmrest_python/models/v0042_job_desc_msg.py +slurmrest_python/models/v0042_job_desc_msg_rlimits.py +slurmrest_python/models/v0042_job_het.py +slurmrest_python/models/v0042_job_info.py +slurmrest_python/models/v0042_job_required.py +slurmrest_python/models/v0042_job_res.py +slurmrest_python/models/v0042_job_res_core.py +slurmrest_python/models/v0042_job_res_node.py +slurmrest_python/models/v0042_job_res_nodes.py +slurmrest_python/models/v0042_job_res_socket.py +slurmrest_python/models/v0042_job_state.py +slurmrest_python/models/v0042_job_submit_req.py +slurmrest_python/models/v0042_job_time.py +slurmrest_python/models/v0042_job_tres.py +slurmrest_python/models/v0042_kill_jobs_msg.py +slurmrest_python/models/v0042_kill_jobs_resp_job.py +slurmrest_python/models/v0042_license.py +slurmrest_python/models/v0042_node.py +slurmrest_python/models/v0042_openapi_accounts_add_cond_resp.py +slurmrest_python/models/v0042_openapi_accounts_add_cond_resp_str.py +slurmrest_python/models/v0042_openapi_accounts_removed_resp.py +slurmrest_python/models/v0042_openapi_accounts_resp.py +slurmrest_python/models/v0042_openapi_assocs_removed_resp.py +slurmrest_python/models/v0042_openapi_assocs_resp.py +slurmrest_python/models/v0042_openapi_clusters_removed_resp.py +slurmrest_python/models/v0042_openapi_clusters_resp.py +slurmrest_python/models/v0042_openapi_diag_resp.py +slurmrest_python/models/v0042_openapi_error.py +slurmrest_python/models/v0042_openapi_instances_resp.py +slurmrest_python/models/v0042_openapi_job_alloc_resp.py +slurmrest_python/models/v0042_openapi_job_info_resp.py +slurmrest_python/models/v0042_openapi_job_post_response.py +slurmrest_python/models/v0042_openapi_job_submit_response.py +slurmrest_python/models/v0042_openapi_kill_job_resp.py +slurmrest_python/models/v0042_openapi_kill_jobs_resp.py +slurmrest_python/models/v0042_openapi_licenses_resp.py +slurmrest_python/models/v0042_openapi_meta.py +slurmrest_python/models/v0042_openapi_nodes_resp.py +slurmrest_python/models/v0042_openapi_partition_resp.py +slurmrest_python/models/v0042_openapi_ping_array_resp.py +slurmrest_python/models/v0042_openapi_reservation_resp.py +slurmrest_python/models/v0042_openapi_resp.py +slurmrest_python/models/v0042_openapi_shares_resp.py +slurmrest_python/models/v0042_openapi_slurmdbd_config_resp.py +slurmrest_python/models/v0042_openapi_slurmdbd_jobs_resp.py +slurmrest_python/models/v0042_openapi_slurmdbd_ping_resp.py +slurmrest_python/models/v0042_openapi_slurmdbd_qos_removed_resp.py +slurmrest_python/models/v0042_openapi_slurmdbd_qos_resp.py +slurmrest_python/models/v0042_openapi_slurmdbd_stats_resp.py +slurmrest_python/models/v0042_openapi_tres_resp.py +slurmrest_python/models/v0042_openapi_users_add_cond_resp.py +slurmrest_python/models/v0042_openapi_users_add_cond_resp_str.py +slurmrest_python/models/v0042_openapi_users_resp.py +slurmrest_python/models/v0042_openapi_warning.py +slurmrest_python/models/v0042_openapi_wckey_removed_resp.py +slurmrest_python/models/v0042_openapi_wckey_resp.py +slurmrest_python/models/v0042_part_prio.py +slurmrest_python/models/v0042_partition_info.py +slurmrest_python/models/v0042_partition_info_defaults.py +slurmrest_python/models/v0042_partition_info_maximums.py +slurmrest_python/models/v0042_partition_info_maximums_oversubscribe.py +slurmrest_python/models/v0042_partition_info_partition.py +slurmrest_python/models/v0042_partition_info_timeouts.py +slurmrest_python/models/v0042_process_exit_code_verbose.py +slurmrest_python/models/v0042_process_exit_code_verbose_signal.py +slurmrest_python/models/v0042_qos.py +slurmrest_python/models/v0042_qos_limits.py +slurmrest_python/models/v0042_qos_limits_max.py +slurmrest_python/models/v0042_qos_limits_max_active_jobs.py +slurmrest_python/models/v0042_qos_limits_max_jobs.py +slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs.py +slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs_per.py +slurmrest_python/models/v0042_qos_limits_max_tres.py +slurmrest_python/models/v0042_qos_limits_max_tres_minutes.py +slurmrest_python/models/v0042_qos_limits_max_tres_minutes_per.py +slurmrest_python/models/v0042_qos_limits_max_tres_per.py +slurmrest_python/models/v0042_qos_limits_max_wall_clock.py +slurmrest_python/models/v0042_qos_limits_max_wall_clock_per.py +slurmrest_python/models/v0042_qos_limits_min.py +slurmrest_python/models/v0042_qos_limits_min_tres.py +slurmrest_python/models/v0042_qos_limits_min_tres_per.py +slurmrest_python/models/v0042_qos_preempt.py +slurmrest_python/models/v0042_reservation_core_spec.py +slurmrest_python/models/v0042_reservation_info.py +slurmrest_python/models/v0042_reservation_info_purge_completed.py +slurmrest_python/models/v0042_rollup_stats.py +slurmrest_python/models/v0042_schedule_exit_fields.py +slurmrest_python/models/v0042_shares_float128_tres.py +slurmrest_python/models/v0042_shares_resp_msg.py +slurmrest_python/models/v0042_shares_uint64_tres.py +slurmrest_python/models/v0042_slurmdbd_ping.py +slurmrest_python/models/v0042_stats_msg.py +slurmrest_python/models/v0042_stats_msg_rpc_dump.py +slurmrest_python/models/v0042_stats_msg_rpc_queue.py +slurmrest_python/models/v0042_stats_msg_rpc_type.py +slurmrest_python/models/v0042_stats_msg_rpc_user.py +slurmrest_python/models/v0042_stats_rec.py +slurmrest_python/models/v0042_stats_rpc.py +slurmrest_python/models/v0042_stats_user.py +slurmrest_python/models/v0042_step.py +slurmrest_python/models/v0042_step_cpu.py +slurmrest_python/models/v0042_step_cpu_requested_frequency.py +slurmrest_python/models/v0042_step_nodes.py +slurmrest_python/models/v0042_step_statistics.py +slurmrest_python/models/v0042_step_statistics_energy.py +slurmrest_python/models/v0042_step_time.py +slurmrest_python/models/v0042_step_tres.py +slurmrest_python/models/v0042_step_tres_consumed.py +slurmrest_python/models/v0042_step_tres_requested.py +slurmrest_python/models/v0042_tres.py +slurmrest_python/models/v0042_uint16_no_val_struct.py +slurmrest_python/models/v0042_uint32_no_val_struct.py +slurmrest_python/models/v0042_uint64_no_val_struct.py +slurmrest_python/models/v0042_update_node_msg.py +slurmrest_python/models/v0042_user.py +slurmrest_python/models/v0042_user_default.py +slurmrest_python/models/v0042_user_short.py +slurmrest_python/models/v0042_users_add_cond.py +slurmrest_python/models/v0042_wckey.py +slurmrest_python/models/v0042_wckey_tag_struct.py +slurmrest_python/models/v0043_account.py +slurmrest_python/models/v0043_account_short.py +slurmrest_python/models/v0043_accounting.py +slurmrest_python/models/v0043_accounts_add_cond.py +slurmrest_python/models/v0043_acct_gather_energy.py +slurmrest_python/models/v0043_assoc.py +slurmrest_python/models/v0043_assoc_max.py +slurmrest_python/models/v0043_assoc_max_jobs.py +slurmrest_python/models/v0043_assoc_max_jobs_per.py +slurmrest_python/models/v0043_assoc_max_per.py +slurmrest_python/models/v0043_assoc_max_per_account.py +slurmrest_python/models/v0043_assoc_max_tres.py +slurmrest_python/models/v0043_assoc_max_tres_group.py +slurmrest_python/models/v0043_assoc_max_tres_minutes.py +slurmrest_python/models/v0043_assoc_max_tres_per.py +slurmrest_python/models/v0043_assoc_min.py +slurmrest_python/models/v0043_assoc_rec_set.py +slurmrest_python/models/v0043_assoc_shares_obj_wrap.py +slurmrest_python/models/v0043_assoc_shares_obj_wrap_fairshare.py +slurmrest_python/models/v0043_assoc_shares_obj_wrap_tres.py +slurmrest_python/models/v0043_assoc_short.py +slurmrest_python/models/v0043_bf_exit_fields.py +slurmrest_python/models/v0043_cluster_rec.py +slurmrest_python/models/v0043_cluster_rec_associations.py +slurmrest_python/models/v0043_controller_ping.py +slurmrest_python/models/v0043_coord.py +slurmrest_python/models/v0043_cron_entry.py +slurmrest_python/models/v0043_float64_no_val_struct.py +slurmrest_python/models/v0043_instance.py +slurmrest_python/models/v0043_job.py +slurmrest_python/models/v0043_job_alloc_req.py +slurmrest_python/models/v0043_job_array.py +slurmrest_python/models/v0043_job_array_response_msg_entry.py +slurmrest_python/models/v0043_job_desc_msg.py +slurmrest_python/models/v0043_job_desc_msg_rlimits.py +slurmrest_python/models/v0043_job_het.py +slurmrest_python/models/v0043_job_info.py +slurmrest_python/models/v0043_job_required.py +slurmrest_python/models/v0043_job_res.py +slurmrest_python/models/v0043_job_res_core.py +slurmrest_python/models/v0043_job_res_node.py +slurmrest_python/models/v0043_job_res_nodes.py +slurmrest_python/models/v0043_job_res_socket.py +slurmrest_python/models/v0043_job_submit_req.py +slurmrest_python/models/v0043_job_time.py +slurmrest_python/models/v0043_job_tres.py +slurmrest_python/models/v0043_kill_jobs_msg.py +slurmrest_python/models/v0043_kill_jobs_resp_job.py +slurmrest_python/models/v0043_license.py +slurmrest_python/models/v0043_node.py +slurmrest_python/models/v0043_openapi_accounts_add_cond_resp.py +slurmrest_python/models/v0043_openapi_accounts_add_cond_resp_str.py +slurmrest_python/models/v0043_openapi_accounts_removed_resp.py +slurmrest_python/models/v0043_openapi_accounts_resp.py +slurmrest_python/models/v0043_openapi_assocs_removed_resp.py +slurmrest_python/models/v0043_openapi_assocs_resp.py +slurmrest_python/models/v0043_openapi_clusters_removed_resp.py +slurmrest_python/models/v0043_openapi_clusters_resp.py +slurmrest_python/models/v0043_openapi_diag_resp.py +slurmrest_python/models/v0043_openapi_error.py +slurmrest_python/models/v0043_openapi_instances_resp.py +slurmrest_python/models/v0043_openapi_job_alloc_resp.py +slurmrest_python/models/v0043_openapi_job_info_resp.py +slurmrest_python/models/v0043_openapi_job_post_response.py +slurmrest_python/models/v0043_openapi_job_submit_response.py +slurmrest_python/models/v0043_openapi_kill_job_resp.py +slurmrest_python/models/v0043_openapi_kill_jobs_resp.py +slurmrest_python/models/v0043_openapi_licenses_resp.py +slurmrest_python/models/v0043_openapi_meta.py +slurmrest_python/models/v0043_openapi_nodes_resp.py +slurmrest_python/models/v0043_openapi_partition_resp.py +slurmrest_python/models/v0043_openapi_ping_array_resp.py +slurmrest_python/models/v0043_openapi_reservation_mod_resp.py +slurmrest_python/models/v0043_openapi_reservation_resp.py +slurmrest_python/models/v0043_openapi_resp.py +slurmrest_python/models/v0043_openapi_shares_resp.py +slurmrest_python/models/v0043_openapi_slurmdbd_config_resp.py +slurmrest_python/models/v0043_openapi_slurmdbd_jobs_resp.py +slurmrest_python/models/v0043_openapi_slurmdbd_ping_resp.py +slurmrest_python/models/v0043_openapi_slurmdbd_qos_removed_resp.py +slurmrest_python/models/v0043_openapi_slurmdbd_qos_resp.py +slurmrest_python/models/v0043_openapi_slurmdbd_stats_resp.py +slurmrest_python/models/v0043_openapi_tres_resp.py +slurmrest_python/models/v0043_openapi_users_add_cond_resp.py +slurmrest_python/models/v0043_openapi_users_add_cond_resp_str.py +slurmrest_python/models/v0043_openapi_users_resp.py +slurmrest_python/models/v0043_openapi_warning.py +slurmrest_python/models/v0043_openapi_wckey_removed_resp.py +slurmrest_python/models/v0043_openapi_wckey_resp.py +slurmrest_python/models/v0043_part_prio.py +slurmrest_python/models/v0043_partition_info.py +slurmrest_python/models/v0043_partition_info_defaults.py +slurmrest_python/models/v0043_partition_info_maximums.py +slurmrest_python/models/v0043_partition_info_timeouts.py +slurmrest_python/models/v0043_process_exit_code_verbose.py +slurmrest_python/models/v0043_process_exit_code_verbose_signal.py +slurmrest_python/models/v0043_qos.py +slurmrest_python/models/v0043_qos_limits.py +slurmrest_python/models/v0043_qos_limits_max.py +slurmrest_python/models/v0043_qos_limits_max_active_jobs.py +slurmrest_python/models/v0043_qos_limits_max_jobs.py +slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs.py +slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs_per.py +slurmrest_python/models/v0043_qos_limits_max_tres.py +slurmrest_python/models/v0043_qos_limits_max_tres_minutes.py +slurmrest_python/models/v0043_qos_limits_max_tres_minutes_per.py +slurmrest_python/models/v0043_qos_limits_max_tres_per.py +slurmrest_python/models/v0043_qos_limits_max_wall_clock.py +slurmrest_python/models/v0043_qos_limits_max_wall_clock_per.py +slurmrest_python/models/v0043_qos_limits_min.py +slurmrest_python/models/v0043_qos_limits_min_tres.py +slurmrest_python/models/v0043_qos_limits_min_tres_per.py +slurmrest_python/models/v0043_qos_preempt.py +slurmrest_python/models/v0043_reservation_core_spec.py +slurmrest_python/models/v0043_reservation_desc_msg.py +slurmrest_python/models/v0043_reservation_info.py +slurmrest_python/models/v0043_reservation_info_purge_completed.py +slurmrest_python/models/v0043_reservation_mod_req.py +slurmrest_python/models/v0043_rollup_stats.py +slurmrest_python/models/v0043_schedule_exit_fields.py +slurmrest_python/models/v0043_shares_float128_tres.py +slurmrest_python/models/v0043_shares_resp_msg.py +slurmrest_python/models/v0043_shares_uint64_tres.py +slurmrest_python/models/v0043_slurmdbd_ping.py +slurmrest_python/models/v0043_stats_msg.py +slurmrest_python/models/v0043_stats_msg_rpc_dump.py +slurmrest_python/models/v0043_stats_msg_rpc_queue.py +slurmrest_python/models/v0043_stats_msg_rpc_type.py +slurmrest_python/models/v0043_stats_msg_rpc_user.py +slurmrest_python/models/v0043_stats_rec.py +slurmrest_python/models/v0043_stats_rpc.py +slurmrest_python/models/v0043_stats_user.py +slurmrest_python/models/v0043_step.py +slurmrest_python/models/v0043_step_cpu.py +slurmrest_python/models/v0043_step_cpu_requested_frequency.py +slurmrest_python/models/v0043_step_nodes.py +slurmrest_python/models/v0043_step_statistics.py +slurmrest_python/models/v0043_step_statistics_energy.py +slurmrest_python/models/v0043_step_time.py +slurmrest_python/models/v0043_step_tres.py +slurmrest_python/models/v0043_step_tres_consumed.py +slurmrest_python/models/v0043_step_tres_requested.py +slurmrest_python/models/v0043_tres.py +slurmrest_python/models/v0043_uint16_no_val_struct.py +slurmrest_python/models/v0043_uint32_no_val_struct.py +slurmrest_python/models/v0043_uint64_no_val_struct.py +slurmrest_python/models/v0043_update_node_msg.py +slurmrest_python/models/v0043_user.py +slurmrest_python/models/v0043_user_short.py +slurmrest_python/models/v0043_users_add_cond.py +slurmrest_python/models/v0043_wckey.py +slurmrest_python/models/v0043_wckey_tag_struct.py +slurmrest_python/models/v0044_account.py +slurmrest_python/models/v0044_account_short.py +slurmrest_python/models/v0044_accounting.py +slurmrest_python/models/v0044_accounting_allocated.py +slurmrest_python/models/v0044_accounts_add_cond.py +slurmrest_python/models/v0044_acct_gather_energy.py +slurmrest_python/models/v0044_assoc.py +slurmrest_python/models/v0044_assoc_max.py +slurmrest_python/models/v0044_assoc_max_jobs.py +slurmrest_python/models/v0044_assoc_max_jobs_per.py +slurmrest_python/models/v0044_assoc_max_per.py +slurmrest_python/models/v0044_assoc_max_per_account.py +slurmrest_python/models/v0044_assoc_max_tres.py +slurmrest_python/models/v0044_assoc_max_tres_group.py +slurmrest_python/models/v0044_assoc_max_tres_minutes.py +slurmrest_python/models/v0044_assoc_max_tres_per.py +slurmrest_python/models/v0044_assoc_min.py +slurmrest_python/models/v0044_assoc_rec_set.py +slurmrest_python/models/v0044_assoc_shares_obj_wrap.py +slurmrest_python/models/v0044_assoc_shares_obj_wrap_fairshare.py +slurmrest_python/models/v0044_assoc_shares_obj_wrap_tres.py +slurmrest_python/models/v0044_assoc_short.py +slurmrest_python/models/v0044_bf_exit_fields.py +slurmrest_python/models/v0044_cluster_rec.py +slurmrest_python/models/v0044_cluster_rec_associations.py +slurmrest_python/models/v0044_controller_ping.py +slurmrest_python/models/v0044_coord.py +slurmrest_python/models/v0044_cron_entry.py +slurmrest_python/models/v0044_float64_no_val_struct.py +slurmrest_python/models/v0044_instance.py +slurmrest_python/models/v0044_instance_time.py +slurmrest_python/models/v0044_job.py +slurmrest_python/models/v0044_job_alloc_req.py +slurmrest_python/models/v0044_job_array.py +slurmrest_python/models/v0044_job_array_response_msg_entry.py +slurmrest_python/models/v0044_job_desc_msg.py +slurmrest_python/models/v0044_job_desc_msg_rlimits.py +slurmrest_python/models/v0044_job_het.py +slurmrest_python/models/v0044_job_info.py +slurmrest_python/models/v0044_job_modify.py +slurmrest_python/models/v0044_job_modify_tres.py +slurmrest_python/models/v0044_job_required.py +slurmrest_python/models/v0044_job_res.py +slurmrest_python/models/v0044_job_res_core.py +slurmrest_python/models/v0044_job_res_node.py +slurmrest_python/models/v0044_job_res_nodes.py +slurmrest_python/models/v0044_job_res_socket.py +slurmrest_python/models/v0044_job_reservation.py +slurmrest_python/models/v0044_job_state.py +slurmrest_python/models/v0044_job_submit_req.py +slurmrest_python/models/v0044_job_time.py +slurmrest_python/models/v0044_job_tres.py +slurmrest_python/models/v0044_kill_jobs_msg.py +slurmrest_python/models/v0044_kill_jobs_resp_job.py +slurmrest_python/models/v0044_license.py +slurmrest_python/models/v0044_node.py +slurmrest_python/models/v0044_node_gres_layout.py +slurmrest_python/models/v0044_node_resource_layout.py +slurmrest_python/models/v0044_openapi_accounts_add_cond_resp.py +slurmrest_python/models/v0044_openapi_accounts_add_cond_resp_str.py +slurmrest_python/models/v0044_openapi_accounts_removed_resp.py +slurmrest_python/models/v0044_openapi_accounts_resp.py +slurmrest_python/models/v0044_openapi_assocs_removed_resp.py +slurmrest_python/models/v0044_openapi_assocs_resp.py +slurmrest_python/models/v0044_openapi_clusters_removed_resp.py +slurmrest_python/models/v0044_openapi_clusters_resp.py +slurmrest_python/models/v0044_openapi_create_node_req.py +slurmrest_python/models/v0044_openapi_diag_resp.py +slurmrest_python/models/v0044_openapi_error.py +slurmrest_python/models/v0044_openapi_hostlist_req_resp.py +slurmrest_python/models/v0044_openapi_hostnames_req_resp.py +slurmrest_python/models/v0044_openapi_instances_resp.py +slurmrest_python/models/v0044_openapi_job_alloc_resp.py +slurmrest_python/models/v0044_openapi_job_info_resp.py +slurmrest_python/models/v0044_openapi_job_modify_req.py +slurmrest_python/models/v0044_openapi_job_modify_resp.py +slurmrest_python/models/v0044_openapi_job_post_response.py +slurmrest_python/models/v0044_openapi_job_submit_response.py +slurmrest_python/models/v0044_openapi_kill_job_resp.py +slurmrest_python/models/v0044_openapi_kill_jobs_resp.py +slurmrest_python/models/v0044_openapi_licenses_resp.py +slurmrest_python/models/v0044_openapi_meta.py +slurmrest_python/models/v0044_openapi_nodes_resp.py +slurmrest_python/models/v0044_openapi_partition_resp.py +slurmrest_python/models/v0044_openapi_ping_array_resp.py +slurmrest_python/models/v0044_openapi_reservation_mod_resp.py +slurmrest_python/models/v0044_openapi_reservation_resp.py +slurmrest_python/models/v0044_openapi_resource_layout_resp.py +slurmrest_python/models/v0044_openapi_resp.py +slurmrest_python/models/v0044_openapi_shares_resp.py +slurmrest_python/models/v0044_openapi_slurmdbd_config_resp.py +slurmrest_python/models/v0044_openapi_slurmdbd_jobs_resp.py +slurmrest_python/models/v0044_openapi_slurmdbd_ping_resp.py +slurmrest_python/models/v0044_openapi_slurmdbd_qos_removed_resp.py +slurmrest_python/models/v0044_openapi_slurmdbd_qos_resp.py +slurmrest_python/models/v0044_openapi_slurmdbd_stats_resp.py +slurmrest_python/models/v0044_openapi_tres_resp.py +slurmrest_python/models/v0044_openapi_users_add_cond_resp.py +slurmrest_python/models/v0044_openapi_users_add_cond_resp_str.py +slurmrest_python/models/v0044_openapi_users_resp.py +slurmrest_python/models/v0044_openapi_warning.py +slurmrest_python/models/v0044_openapi_wckey_removed_resp.py +slurmrest_python/models/v0044_openapi_wckey_resp.py +slurmrest_python/models/v0044_part_prio.py +slurmrest_python/models/v0044_partition_info.py +slurmrest_python/models/v0044_partition_info_accounts.py +slurmrest_python/models/v0044_partition_info_cpus.py +slurmrest_python/models/v0044_partition_info_defaults.py +slurmrest_python/models/v0044_partition_info_groups.py +slurmrest_python/models/v0044_partition_info_maximums.py +slurmrest_python/models/v0044_partition_info_minimums.py +slurmrest_python/models/v0044_partition_info_nodes.py +slurmrest_python/models/v0044_partition_info_priority.py +slurmrest_python/models/v0044_partition_info_qos.py +slurmrest_python/models/v0044_partition_info_timeouts.py +slurmrest_python/models/v0044_partition_info_tres.py +slurmrest_python/models/v0044_process_exit_code_verbose.py +slurmrest_python/models/v0044_process_exit_code_verbose_signal.py +slurmrest_python/models/v0044_qos.py +slurmrest_python/models/v0044_qos_limits.py +slurmrest_python/models/v0044_qos_limits_max.py +slurmrest_python/models/v0044_qos_limits_max_active_jobs.py +slurmrest_python/models/v0044_qos_limits_max_jobs.py +slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs.py +slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs_per.py +slurmrest_python/models/v0044_qos_limits_max_tres.py +slurmrest_python/models/v0044_qos_limits_max_tres_minutes.py +slurmrest_python/models/v0044_qos_limits_max_tres_minutes_per.py +slurmrest_python/models/v0044_qos_limits_max_tres_per.py +slurmrest_python/models/v0044_qos_limits_max_wall_clock.py +slurmrest_python/models/v0044_qos_limits_max_wall_clock_per.py +slurmrest_python/models/v0044_qos_limits_min.py +slurmrest_python/models/v0044_qos_limits_min_tres.py +slurmrest_python/models/v0044_qos_limits_min_tres_per.py +slurmrest_python/models/v0044_qos_preempt.py +slurmrest_python/models/v0044_reservation_core_spec.py +slurmrest_python/models/v0044_reservation_desc_msg.py +slurmrest_python/models/v0044_reservation_info.py +slurmrest_python/models/v0044_reservation_info_purge_completed.py +slurmrest_python/models/v0044_reservation_mod_req.py +slurmrest_python/models/v0044_rollup_stats.py +slurmrest_python/models/v0044_rollup_stats_daily.py +slurmrest_python/models/v0044_rollup_stats_hourly.py +slurmrest_python/models/v0044_rollup_stats_monthly.py +slurmrest_python/models/v0044_schedule_exit_fields.py +slurmrest_python/models/v0044_shares_float128_tres.py +slurmrest_python/models/v0044_shares_resp_msg.py +slurmrest_python/models/v0044_shares_uint64_tres.py +slurmrest_python/models/v0044_slurm_step_id.py +slurmrest_python/models/v0044_slurmdbd_ping.py +slurmrest_python/models/v0044_stats_msg.py +slurmrest_python/models/v0044_stats_msg_rpc_dump.py +slurmrest_python/models/v0044_stats_msg_rpc_queue.py +slurmrest_python/models/v0044_stats_msg_rpc_type.py +slurmrest_python/models/v0044_stats_msg_rpc_user.py +slurmrest_python/models/v0044_stats_rec.py +slurmrest_python/models/v0044_stats_rpc.py +slurmrest_python/models/v0044_stats_user.py +slurmrest_python/models/v0044_step.py +slurmrest_python/models/v0044_step_cpu.py +slurmrest_python/models/v0044_step_cpu_requested_frequency.py +slurmrest_python/models/v0044_step_nodes.py +slurmrest_python/models/v0044_step_statistics.py +slurmrest_python/models/v0044_step_statistics_energy.py +slurmrest_python/models/v0044_step_step.py +slurmrest_python/models/v0044_step_time.py +slurmrest_python/models/v0044_step_tres.py +slurmrest_python/models/v0044_step_tres_consumed.py +slurmrest_python/models/v0044_step_tres_requested.py +slurmrest_python/models/v0044_tres.py +slurmrest_python/models/v0044_uint16_no_val_struct.py +slurmrest_python/models/v0044_uint32_no_val_struct.py +slurmrest_python/models/v0044_uint64_no_val_struct.py +slurmrest_python/models/v0044_update_node_msg.py +slurmrest_python/models/v0044_user.py +slurmrest_python/models/v0044_user_default.py +slurmrest_python/models/v0044_user_short.py +slurmrest_python/models/v0044_users_add_cond.py +slurmrest_python/models/v0044_wckey.py +slurmrest_python/models/v0044_wckey_tag_struct.py +slurmrest_python/py.typed +slurmrest_python/rest.py +test-requirements.txt +test/__init__.py +test/test_slurm_api.py +test/test_slurmdb_api.py +test/test_util_api.py +test/test_v0041_job_alloc_req.py +test/test_v0041_job_desc_msg.py +test/test_v0041_job_desc_msg_begin_time.py +test/test_v0041_job_desc_msg_crontab.py +test/test_v0041_job_desc_msg_crontab_line.py +test/test_v0041_job_desc_msg_distribution_plane_size.py +test/test_v0041_job_desc_msg_kill_warning_delay.py +test/test_v0041_job_desc_msg_memory_per_cpu.py +test/test_v0041_job_desc_msg_priority.py +test/test_v0041_job_desc_msg_required_switches.py +test/test_v0041_job_desc_msg_rlimits.py +test/test_v0041_job_desc_msg_rlimits_as.py +test/test_v0041_job_desc_msg_rlimits_core.py +test/test_v0041_job_desc_msg_rlimits_cpu.py +test/test_v0041_job_desc_msg_rlimits_data.py +test/test_v0041_job_desc_msg_rlimits_fsize.py +test/test_v0041_job_desc_msg_rlimits_memlock.py +test/test_v0041_job_desc_msg_rlimits_nofile.py +test/test_v0041_job_desc_msg_rlimits_nproc.py +test/test_v0041_job_desc_msg_rlimits_rss.py +test/test_v0041_job_desc_msg_rlimits_stack.py +test/test_v0041_job_desc_msg_segment_size.py +test/test_v0041_job_desc_msg_time_limit.py +test/test_v0041_job_desc_msg_time_minimum.py +test/test_v0041_job_submit_req.py +test/test_v0041_kill_jobs_msg.py +test/test_v0041_openapi_accounts_add_cond_resp.py +test/test_v0041_openapi_accounts_add_cond_resp_account.py +test/test_v0041_openapi_accounts_add_cond_resp_association_condition.py +test/test_v0041_openapi_accounts_add_cond_resp_str.py +test/test_v0041_openapi_accounts_removed_resp.py +test/test_v0041_openapi_accounts_resp.py +test/test_v0041_openapi_assocs_removed_resp.py +test/test_v0041_openapi_assocs_resp.py +test/test_v0041_openapi_clusters_removed_resp.py +test/test_v0041_openapi_clusters_resp.py +test/test_v0041_openapi_diag_resp.py +test/test_v0041_openapi_diag_resp_statistics.py +test/test_v0041_openapi_diag_resp_statistics_bf_exit.py +test/test_v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py +test/test_v0041_openapi_diag_resp_statistics_job_states_ts.py +test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py +test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py +test/test_v0041_openapi_diag_resp_statistics_req_time.py +test/test_v0041_openapi_diag_resp_statistics_req_time_start.py +test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py +test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py +test/test_v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py +test/test_v0041_openapi_diag_resp_statistics_schedule_exit.py +test/test_v0041_openapi_instances_resp.py +test/test_v0041_openapi_job_alloc_resp.py +test/test_v0041_openapi_job_info_resp.py +test/test_v0041_openapi_job_info_resp_jobs_inner.py +test/test_v0041_openapi_job_info_resp_jobs_inner_accrue_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_array_job_id.py +test/test_v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py +test/test_v0041_openapi_job_info_resp_jobs_inner_array_task_id.py +test/test_v0041_openapi_job_info_resp_jobs_inner_billable_tres.py +test/test_v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py +test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py +test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py +test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py +test/test_v0041_openapi_job_info_resp_jobs_inner_cpus.py +test/test_v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py +test/test_v0041_openapi_job_info_resp_jobs_inner_deadline.py +test/test_v0041_openapi_job_info_resp_jobs_inner_delay_boot.py +test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py +test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py +test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py +test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py +test/test_v0041_openapi_job_info_resp_jobs_inner_eligible_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_end_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_exit_code.py +test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_id.py +test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py +test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py +test/test_v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py +test/test_v0041_openapi_job_info_resp_jobs_inner_max_cpus.py +test/test_v0041_openapi_job_info_resp_jobs_inner_max_nodes.py +test/test_v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py +test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py +test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py +test/test_v0041_openapi_job_info_resp_jobs_inner_node_count.py +test/test_v0041_openapi_job_info_resp_jobs_inner_power.py +test/test_v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_preempt_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_resize_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py +test/test_v0041_openapi_job_info_resp_jobs_inner_start_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_submit_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_suspend_time.py +test/test_v0041_openapi_job_info_resp_jobs_inner_tasks.py +test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py +test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py +test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py +test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py +test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py +test/test_v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py +test/test_v0041_openapi_job_info_resp_last_backfill.py +test/test_v0041_openapi_job_info_resp_last_update.py +test/test_v0041_openapi_job_post_response.py +test/test_v0041_openapi_job_post_response_results_inner.py +test/test_v0041_openapi_job_submit_response.py +test/test_v0041_openapi_job_submit_response_result.py +test/test_v0041_openapi_kill_jobs_resp.py +test/test_v0041_openapi_kill_jobs_resp_status_inner.py +test/test_v0041_openapi_kill_jobs_resp_status_inner_error.py +test/test_v0041_openapi_kill_jobs_resp_status_inner_federation.py +test/test_v0041_openapi_kill_jobs_resp_status_inner_job_id.py +test/test_v0041_openapi_licenses_resp.py +test/test_v0041_openapi_licenses_resp_last_update.py +test/test_v0041_openapi_licenses_resp_licenses_inner.py +test/test_v0041_openapi_nodes_resp.py +test/test_v0041_openapi_nodes_resp_last_update.py +test/test_v0041_openapi_nodes_resp_nodes_inner.py +test/test_v0041_openapi_nodes_resp_nodes_inner_boot_time.py +test/test_v0041_openapi_nodes_resp_nodes_inner_energy.py +test/test_v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py +test/test_v0041_openapi_nodes_resp_nodes_inner_free_mem.py +test/test_v0041_openapi_nodes_resp_nodes_inner_last_busy.py +test/test_v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py +test/test_v0041_openapi_nodes_resp_nodes_inner_resume_after.py +test/test_v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py +test/test_v0041_openapi_partition_resp.py +test/test_v0041_openapi_partition_resp_last_update.py +test/test_v0041_openapi_partition_resp_partitions_inner.py +test/test_v0041_openapi_partition_resp_partitions_inner_accounts.py +test/test_v0041_openapi_partition_resp_partitions_inner_cpus.py +test/test_v0041_openapi_partition_resp_partitions_inner_defaults.py +test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py +test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py +test/test_v0041_openapi_partition_resp_partitions_inner_defaults_time.py +test/test_v0041_openapi_partition_resp_partitions_inner_groups.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py +test/test_v0041_openapi_partition_resp_partitions_inner_maximums_time.py +test/test_v0041_openapi_partition_resp_partitions_inner_minimums.py +test/test_v0041_openapi_partition_resp_partitions_inner_nodes.py +test/test_v0041_openapi_partition_resp_partitions_inner_partition.py +test/test_v0041_openapi_partition_resp_partitions_inner_priority.py +test/test_v0041_openapi_partition_resp_partitions_inner_qos.py +test/test_v0041_openapi_partition_resp_partitions_inner_suspend_time.py +test/test_v0041_openapi_partition_resp_partitions_inner_timeouts.py +test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py +test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py +test/test_v0041_openapi_partition_resp_partitions_inner_tres.py +test/test_v0041_openapi_ping_array_resp.py +test/test_v0041_openapi_ping_array_resp_pings_inner.py +test/test_v0041_openapi_reservation_resp.py +test/test_v0041_openapi_reservation_resp_last_update.py +test/test_v0041_openapi_reservation_resp_reservations_inner.py +test/test_v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py +test/test_v0041_openapi_reservation_resp_reservations_inner_end_time.py +test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed.py +test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py +test/test_v0041_openapi_reservation_resp_reservations_inner_start_time.py +test/test_v0041_openapi_reservation_resp_reservations_inner_watts.py +test/test_v0041_openapi_resp.py +test/test_v0041_openapi_shares_resp.py +test/test_v0041_openapi_shares_resp_errors_inner.py +test/test_v0041_openapi_shares_resp_meta.py +test/test_v0041_openapi_shares_resp_meta_client.py +test/test_v0041_openapi_shares_resp_meta_plugin.py +test/test_v0041_openapi_shares_resp_meta_slurm.py +test/test_v0041_openapi_shares_resp_meta_slurm_version.py +test/test_v0041_openapi_shares_resp_shares.py +test/test_v0041_openapi_shares_resp_shares_shares_inner.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_fairshare.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_shares.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_tres.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py +test/test_v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py +test/test_v0041_openapi_shares_resp_warnings_inner.py +test/test_v0041_openapi_slurmdbd_config_resp.py +test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_default.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_min.py +test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py +test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py +test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py +test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py +test/test_v0041_openapi_slurmdbd_config_resp_instances_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_instances_inner_time.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py +test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py +test/test_v0041_openapi_slurmdbd_config_resp_users_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_users_inner_default.py +test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py +test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py +test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py +test/test_v0041_openapi_slurmdbd_jobs_resp.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py +test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py +test/test_v0041_openapi_slurmdbd_qos_removed_resp.py +test/test_v0041_openapi_slurmdbd_qos_resp.py +test/test_v0041_openapi_slurmdbd_stats_resp.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py +test/test_v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py +test/test_v0041_openapi_tres_resp.py +test/test_v0041_openapi_users_add_cond_resp.py +test/test_v0041_openapi_users_add_cond_resp_association_condition.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py +test/test_v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py +test/test_v0041_openapi_users_add_cond_resp_str.py +test/test_v0041_openapi_users_add_cond_resp_user.py +test/test_v0041_openapi_users_resp.py +test/test_v0041_openapi_wckey_removed_resp.py +test/test_v0041_openapi_wckey_resp.py +test/test_v0041_update_node_msg.py +test/test_v0041_update_node_msg_resume_after.py +test/test_v0041_update_node_msg_weight.py +test/test_v0042_account.py +test/test_v0042_account_short.py +test/test_v0042_accounting.py +test/test_v0042_accounts_add_cond.py +test/test_v0042_acct_gather_energy.py +test/test_v0042_assoc.py +test/test_v0042_assoc_max.py +test/test_v0042_assoc_max_jobs.py +test/test_v0042_assoc_max_jobs_per.py +test/test_v0042_assoc_max_per.py +test/test_v0042_assoc_max_per_account.py +test/test_v0042_assoc_max_tres.py +test/test_v0042_assoc_max_tres_group.py +test/test_v0042_assoc_max_tres_minutes.py +test/test_v0042_assoc_max_tres_per.py +test/test_v0042_assoc_min.py +test/test_v0042_assoc_rec_set.py +test/test_v0042_assoc_shares_obj_wrap.py +test/test_v0042_assoc_shares_obj_wrap_fairshare.py +test/test_v0042_assoc_shares_obj_wrap_tres.py +test/test_v0042_assoc_short.py +test/test_v0042_bf_exit_fields.py +test/test_v0042_cluster_rec.py +test/test_v0042_cluster_rec_associations.py +test/test_v0042_controller_ping.py +test/test_v0042_coord.py +test/test_v0042_cron_entry.py +test/test_v0042_float64_no_val_struct.py +test/test_v0042_instance.py +test/test_v0042_job.py +test/test_v0042_job_alloc_req.py +test/test_v0042_job_array.py +test/test_v0042_job_array_response_msg_entry.py +test/test_v0042_job_desc_msg.py +test/test_v0042_job_desc_msg_rlimits.py +test/test_v0042_job_het.py +test/test_v0042_job_info.py +test/test_v0042_job_required.py +test/test_v0042_job_res.py +test/test_v0042_job_res_core.py +test/test_v0042_job_res_node.py +test/test_v0042_job_res_nodes.py +test/test_v0042_job_res_socket.py +test/test_v0042_job_state.py +test/test_v0042_job_submit_req.py +test/test_v0042_job_time.py +test/test_v0042_job_tres.py +test/test_v0042_kill_jobs_msg.py +test/test_v0042_kill_jobs_resp_job.py +test/test_v0042_license.py +test/test_v0042_node.py +test/test_v0042_openapi_accounts_add_cond_resp.py +test/test_v0042_openapi_accounts_add_cond_resp_str.py +test/test_v0042_openapi_accounts_removed_resp.py +test/test_v0042_openapi_accounts_resp.py +test/test_v0042_openapi_assocs_removed_resp.py +test/test_v0042_openapi_assocs_resp.py +test/test_v0042_openapi_clusters_removed_resp.py +test/test_v0042_openapi_clusters_resp.py +test/test_v0042_openapi_diag_resp.py +test/test_v0042_openapi_error.py +test/test_v0042_openapi_instances_resp.py +test/test_v0042_openapi_job_alloc_resp.py +test/test_v0042_openapi_job_info_resp.py +test/test_v0042_openapi_job_post_response.py +test/test_v0042_openapi_job_submit_response.py +test/test_v0042_openapi_kill_job_resp.py +test/test_v0042_openapi_kill_jobs_resp.py +test/test_v0042_openapi_licenses_resp.py +test/test_v0042_openapi_meta.py +test/test_v0042_openapi_nodes_resp.py +test/test_v0042_openapi_partition_resp.py +test/test_v0042_openapi_ping_array_resp.py +test/test_v0042_openapi_reservation_resp.py +test/test_v0042_openapi_resp.py +test/test_v0042_openapi_shares_resp.py +test/test_v0042_openapi_slurmdbd_config_resp.py +test/test_v0042_openapi_slurmdbd_jobs_resp.py +test/test_v0042_openapi_slurmdbd_ping_resp.py +test/test_v0042_openapi_slurmdbd_qos_removed_resp.py +test/test_v0042_openapi_slurmdbd_qos_resp.py +test/test_v0042_openapi_slurmdbd_stats_resp.py +test/test_v0042_openapi_tres_resp.py +test/test_v0042_openapi_users_add_cond_resp.py +test/test_v0042_openapi_users_add_cond_resp_str.py +test/test_v0042_openapi_users_resp.py +test/test_v0042_openapi_warning.py +test/test_v0042_openapi_wckey_removed_resp.py +test/test_v0042_openapi_wckey_resp.py +test/test_v0042_part_prio.py +test/test_v0042_partition_info.py +test/test_v0042_partition_info_defaults.py +test/test_v0042_partition_info_maximums.py +test/test_v0042_partition_info_maximums_oversubscribe.py +test/test_v0042_partition_info_partition.py +test/test_v0042_partition_info_timeouts.py +test/test_v0042_process_exit_code_verbose.py +test/test_v0042_process_exit_code_verbose_signal.py +test/test_v0042_qos.py +test/test_v0042_qos_limits.py +test/test_v0042_qos_limits_max.py +test/test_v0042_qos_limits_max_active_jobs.py +test/test_v0042_qos_limits_max_jobs.py +test/test_v0042_qos_limits_max_jobs_active_jobs.py +test/test_v0042_qos_limits_max_jobs_active_jobs_per.py +test/test_v0042_qos_limits_max_tres.py +test/test_v0042_qos_limits_max_tres_minutes.py +test/test_v0042_qos_limits_max_tres_minutes_per.py +test/test_v0042_qos_limits_max_tres_per.py +test/test_v0042_qos_limits_max_wall_clock.py +test/test_v0042_qos_limits_max_wall_clock_per.py +test/test_v0042_qos_limits_min.py +test/test_v0042_qos_limits_min_tres.py +test/test_v0042_qos_limits_min_tres_per.py +test/test_v0042_qos_preempt.py +test/test_v0042_reservation_core_spec.py +test/test_v0042_reservation_info.py +test/test_v0042_reservation_info_purge_completed.py +test/test_v0042_rollup_stats.py +test/test_v0042_schedule_exit_fields.py +test/test_v0042_shares_float128_tres.py +test/test_v0042_shares_resp_msg.py +test/test_v0042_shares_uint64_tres.py +test/test_v0042_slurmdbd_ping.py +test/test_v0042_stats_msg.py +test/test_v0042_stats_msg_rpc_dump.py +test/test_v0042_stats_msg_rpc_queue.py +test/test_v0042_stats_msg_rpc_type.py +test/test_v0042_stats_msg_rpc_user.py +test/test_v0042_stats_rec.py +test/test_v0042_stats_rpc.py +test/test_v0042_stats_user.py +test/test_v0042_step.py +test/test_v0042_step_cpu.py +test/test_v0042_step_cpu_requested_frequency.py +test/test_v0042_step_nodes.py +test/test_v0042_step_statistics.py +test/test_v0042_step_statistics_energy.py +test/test_v0042_step_time.py +test/test_v0042_step_tres.py +test/test_v0042_step_tres_consumed.py +test/test_v0042_step_tres_requested.py +test/test_v0042_tres.py +test/test_v0042_uint16_no_val_struct.py +test/test_v0042_uint32_no_val_struct.py +test/test_v0042_uint64_no_val_struct.py +test/test_v0042_update_node_msg.py +test/test_v0042_user.py +test/test_v0042_user_default.py +test/test_v0042_user_short.py +test/test_v0042_users_add_cond.py +test/test_v0042_wckey.py +test/test_v0042_wckey_tag_struct.py +test/test_v0043_account.py +test/test_v0043_account_short.py +test/test_v0043_accounting.py +test/test_v0043_accounts_add_cond.py +test/test_v0043_acct_gather_energy.py +test/test_v0043_assoc.py +test/test_v0043_assoc_max.py +test/test_v0043_assoc_max_jobs.py +test/test_v0043_assoc_max_jobs_per.py +test/test_v0043_assoc_max_per.py +test/test_v0043_assoc_max_per_account.py +test/test_v0043_assoc_max_tres.py +test/test_v0043_assoc_max_tres_group.py +test/test_v0043_assoc_max_tres_minutes.py +test/test_v0043_assoc_max_tres_per.py +test/test_v0043_assoc_min.py +test/test_v0043_assoc_rec_set.py +test/test_v0043_assoc_shares_obj_wrap.py +test/test_v0043_assoc_shares_obj_wrap_fairshare.py +test/test_v0043_assoc_shares_obj_wrap_tres.py +test/test_v0043_assoc_short.py +test/test_v0043_bf_exit_fields.py +test/test_v0043_cluster_rec.py +test/test_v0043_cluster_rec_associations.py +test/test_v0043_controller_ping.py +test/test_v0043_coord.py +test/test_v0043_cron_entry.py +test/test_v0043_float64_no_val_struct.py +test/test_v0043_instance.py +test/test_v0043_job.py +test/test_v0043_job_alloc_req.py +test/test_v0043_job_array.py +test/test_v0043_job_array_response_msg_entry.py +test/test_v0043_job_desc_msg.py +test/test_v0043_job_desc_msg_rlimits.py +test/test_v0043_job_het.py +test/test_v0043_job_info.py +test/test_v0043_job_required.py +test/test_v0043_job_res.py +test/test_v0043_job_res_core.py +test/test_v0043_job_res_node.py +test/test_v0043_job_res_nodes.py +test/test_v0043_job_res_socket.py +test/test_v0043_job_submit_req.py +test/test_v0043_job_time.py +test/test_v0043_job_tres.py +test/test_v0043_kill_jobs_msg.py +test/test_v0043_kill_jobs_resp_job.py +test/test_v0043_license.py +test/test_v0043_node.py +test/test_v0043_openapi_accounts_add_cond_resp.py +test/test_v0043_openapi_accounts_add_cond_resp_str.py +test/test_v0043_openapi_accounts_removed_resp.py +test/test_v0043_openapi_accounts_resp.py +test/test_v0043_openapi_assocs_removed_resp.py +test/test_v0043_openapi_assocs_resp.py +test/test_v0043_openapi_clusters_removed_resp.py +test/test_v0043_openapi_clusters_resp.py +test/test_v0043_openapi_diag_resp.py +test/test_v0043_openapi_error.py +test/test_v0043_openapi_instances_resp.py +test/test_v0043_openapi_job_alloc_resp.py +test/test_v0043_openapi_job_info_resp.py +test/test_v0043_openapi_job_post_response.py +test/test_v0043_openapi_job_submit_response.py +test/test_v0043_openapi_kill_job_resp.py +test/test_v0043_openapi_kill_jobs_resp.py +test/test_v0043_openapi_licenses_resp.py +test/test_v0043_openapi_meta.py +test/test_v0043_openapi_nodes_resp.py +test/test_v0043_openapi_partition_resp.py +test/test_v0043_openapi_ping_array_resp.py +test/test_v0043_openapi_reservation_mod_resp.py +test/test_v0043_openapi_reservation_resp.py +test/test_v0043_openapi_resp.py +test/test_v0043_openapi_shares_resp.py +test/test_v0043_openapi_slurmdbd_config_resp.py +test/test_v0043_openapi_slurmdbd_jobs_resp.py +test/test_v0043_openapi_slurmdbd_ping_resp.py +test/test_v0043_openapi_slurmdbd_qos_removed_resp.py +test/test_v0043_openapi_slurmdbd_qos_resp.py +test/test_v0043_openapi_slurmdbd_stats_resp.py +test/test_v0043_openapi_tres_resp.py +test/test_v0043_openapi_users_add_cond_resp.py +test/test_v0043_openapi_users_add_cond_resp_str.py +test/test_v0043_openapi_users_resp.py +test/test_v0043_openapi_warning.py +test/test_v0043_openapi_wckey_removed_resp.py +test/test_v0043_openapi_wckey_resp.py +test/test_v0043_part_prio.py +test/test_v0043_partition_info.py +test/test_v0043_partition_info_defaults.py +test/test_v0043_partition_info_maximums.py +test/test_v0043_partition_info_timeouts.py +test/test_v0043_process_exit_code_verbose.py +test/test_v0043_process_exit_code_verbose_signal.py +test/test_v0043_qos.py +test/test_v0043_qos_limits.py +test/test_v0043_qos_limits_max.py +test/test_v0043_qos_limits_max_active_jobs.py +test/test_v0043_qos_limits_max_jobs.py +test/test_v0043_qos_limits_max_jobs_active_jobs.py +test/test_v0043_qos_limits_max_jobs_active_jobs_per.py +test/test_v0043_qos_limits_max_tres.py +test/test_v0043_qos_limits_max_tres_minutes.py +test/test_v0043_qos_limits_max_tres_minutes_per.py +test/test_v0043_qos_limits_max_tres_per.py +test/test_v0043_qos_limits_max_wall_clock.py +test/test_v0043_qos_limits_max_wall_clock_per.py +test/test_v0043_qos_limits_min.py +test/test_v0043_qos_limits_min_tres.py +test/test_v0043_qos_limits_min_tres_per.py +test/test_v0043_qos_preempt.py +test/test_v0043_reservation_core_spec.py +test/test_v0043_reservation_desc_msg.py +test/test_v0043_reservation_info.py +test/test_v0043_reservation_info_purge_completed.py +test/test_v0043_reservation_mod_req.py +test/test_v0043_rollup_stats.py +test/test_v0043_schedule_exit_fields.py +test/test_v0043_shares_float128_tres.py +test/test_v0043_shares_resp_msg.py +test/test_v0043_shares_uint64_tres.py +test/test_v0043_slurmdbd_ping.py +test/test_v0043_stats_msg.py +test/test_v0043_stats_msg_rpc_dump.py +test/test_v0043_stats_msg_rpc_queue.py +test/test_v0043_stats_msg_rpc_type.py +test/test_v0043_stats_msg_rpc_user.py +test/test_v0043_stats_rec.py +test/test_v0043_stats_rpc.py +test/test_v0043_stats_user.py +test/test_v0043_step.py +test/test_v0043_step_cpu.py +test/test_v0043_step_cpu_requested_frequency.py +test/test_v0043_step_nodes.py +test/test_v0043_step_statistics.py +test/test_v0043_step_statistics_energy.py +test/test_v0043_step_time.py +test/test_v0043_step_tres.py +test/test_v0043_step_tres_consumed.py +test/test_v0043_step_tres_requested.py +test/test_v0043_tres.py +test/test_v0043_uint16_no_val_struct.py +test/test_v0043_uint32_no_val_struct.py +test/test_v0043_uint64_no_val_struct.py +test/test_v0043_update_node_msg.py +test/test_v0043_user.py +test/test_v0043_user_short.py +test/test_v0043_users_add_cond.py +test/test_v0043_wckey.py +test/test_v0043_wckey_tag_struct.py +test/test_v0044_account.py +test/test_v0044_account_short.py +test/test_v0044_accounting.py +test/test_v0044_accounting_allocated.py +test/test_v0044_accounts_add_cond.py +test/test_v0044_acct_gather_energy.py +test/test_v0044_assoc.py +test/test_v0044_assoc_max.py +test/test_v0044_assoc_max_jobs.py +test/test_v0044_assoc_max_jobs_per.py +test/test_v0044_assoc_max_per.py +test/test_v0044_assoc_max_per_account.py +test/test_v0044_assoc_max_tres.py +test/test_v0044_assoc_max_tres_group.py +test/test_v0044_assoc_max_tres_minutes.py +test/test_v0044_assoc_max_tres_per.py +test/test_v0044_assoc_min.py +test/test_v0044_assoc_rec_set.py +test/test_v0044_assoc_shares_obj_wrap.py +test/test_v0044_assoc_shares_obj_wrap_fairshare.py +test/test_v0044_assoc_shares_obj_wrap_tres.py +test/test_v0044_assoc_short.py +test/test_v0044_bf_exit_fields.py +test/test_v0044_cluster_rec.py +test/test_v0044_cluster_rec_associations.py +test/test_v0044_controller_ping.py +test/test_v0044_coord.py +test/test_v0044_cron_entry.py +test/test_v0044_float64_no_val_struct.py +test/test_v0044_instance.py +test/test_v0044_instance_time.py +test/test_v0044_job.py +test/test_v0044_job_alloc_req.py +test/test_v0044_job_array.py +test/test_v0044_job_array_response_msg_entry.py +test/test_v0044_job_desc_msg.py +test/test_v0044_job_desc_msg_rlimits.py +test/test_v0044_job_het.py +test/test_v0044_job_info.py +test/test_v0044_job_modify.py +test/test_v0044_job_modify_tres.py +test/test_v0044_job_required.py +test/test_v0044_job_res.py +test/test_v0044_job_res_core.py +test/test_v0044_job_res_node.py +test/test_v0044_job_res_nodes.py +test/test_v0044_job_res_socket.py +test/test_v0044_job_reservation.py +test/test_v0044_job_state.py +test/test_v0044_job_submit_req.py +test/test_v0044_job_time.py +test/test_v0044_job_tres.py +test/test_v0044_kill_jobs_msg.py +test/test_v0044_kill_jobs_resp_job.py +test/test_v0044_license.py +test/test_v0044_node.py +test/test_v0044_node_gres_layout.py +test/test_v0044_node_resource_layout.py +test/test_v0044_openapi_accounts_add_cond_resp.py +test/test_v0044_openapi_accounts_add_cond_resp_str.py +test/test_v0044_openapi_accounts_removed_resp.py +test/test_v0044_openapi_accounts_resp.py +test/test_v0044_openapi_assocs_removed_resp.py +test/test_v0044_openapi_assocs_resp.py +test/test_v0044_openapi_clusters_removed_resp.py +test/test_v0044_openapi_clusters_resp.py +test/test_v0044_openapi_create_node_req.py +test/test_v0044_openapi_diag_resp.py +test/test_v0044_openapi_error.py +test/test_v0044_openapi_hostlist_req_resp.py +test/test_v0044_openapi_hostnames_req_resp.py +test/test_v0044_openapi_instances_resp.py +test/test_v0044_openapi_job_alloc_resp.py +test/test_v0044_openapi_job_info_resp.py +test/test_v0044_openapi_job_modify_req.py +test/test_v0044_openapi_job_modify_resp.py +test/test_v0044_openapi_job_post_response.py +test/test_v0044_openapi_job_submit_response.py +test/test_v0044_openapi_kill_job_resp.py +test/test_v0044_openapi_kill_jobs_resp.py +test/test_v0044_openapi_licenses_resp.py +test/test_v0044_openapi_meta.py +test/test_v0044_openapi_nodes_resp.py +test/test_v0044_openapi_partition_resp.py +test/test_v0044_openapi_ping_array_resp.py +test/test_v0044_openapi_reservation_mod_resp.py +test/test_v0044_openapi_reservation_resp.py +test/test_v0044_openapi_resource_layout_resp.py +test/test_v0044_openapi_resp.py +test/test_v0044_openapi_shares_resp.py +test/test_v0044_openapi_slurmdbd_config_resp.py +test/test_v0044_openapi_slurmdbd_jobs_resp.py +test/test_v0044_openapi_slurmdbd_ping_resp.py +test/test_v0044_openapi_slurmdbd_qos_removed_resp.py +test/test_v0044_openapi_slurmdbd_qos_resp.py +test/test_v0044_openapi_slurmdbd_stats_resp.py +test/test_v0044_openapi_tres_resp.py +test/test_v0044_openapi_users_add_cond_resp.py +test/test_v0044_openapi_users_add_cond_resp_str.py +test/test_v0044_openapi_users_resp.py +test/test_v0044_openapi_warning.py +test/test_v0044_openapi_wckey_removed_resp.py +test/test_v0044_openapi_wckey_resp.py +test/test_v0044_part_prio.py +test/test_v0044_partition_info.py +test/test_v0044_partition_info_accounts.py +test/test_v0044_partition_info_cpus.py +test/test_v0044_partition_info_defaults.py +test/test_v0044_partition_info_groups.py +test/test_v0044_partition_info_maximums.py +test/test_v0044_partition_info_minimums.py +test/test_v0044_partition_info_nodes.py +test/test_v0044_partition_info_priority.py +test/test_v0044_partition_info_qos.py +test/test_v0044_partition_info_timeouts.py +test/test_v0044_partition_info_tres.py +test/test_v0044_process_exit_code_verbose.py +test/test_v0044_process_exit_code_verbose_signal.py +test/test_v0044_qos.py +test/test_v0044_qos_limits.py +test/test_v0044_qos_limits_max.py +test/test_v0044_qos_limits_max_active_jobs.py +test/test_v0044_qos_limits_max_jobs.py +test/test_v0044_qos_limits_max_jobs_active_jobs.py +test/test_v0044_qos_limits_max_jobs_active_jobs_per.py +test/test_v0044_qos_limits_max_tres.py +test/test_v0044_qos_limits_max_tres_minutes.py +test/test_v0044_qos_limits_max_tres_minutes_per.py +test/test_v0044_qos_limits_max_tres_per.py +test/test_v0044_qos_limits_max_wall_clock.py +test/test_v0044_qos_limits_max_wall_clock_per.py +test/test_v0044_qos_limits_min.py +test/test_v0044_qos_limits_min_tres.py +test/test_v0044_qos_limits_min_tres_per.py +test/test_v0044_qos_preempt.py +test/test_v0044_reservation_core_spec.py +test/test_v0044_reservation_desc_msg.py +test/test_v0044_reservation_info.py +test/test_v0044_reservation_info_purge_completed.py +test/test_v0044_reservation_mod_req.py +test/test_v0044_rollup_stats.py +test/test_v0044_rollup_stats_daily.py +test/test_v0044_rollup_stats_hourly.py +test/test_v0044_rollup_stats_monthly.py +test/test_v0044_schedule_exit_fields.py +test/test_v0044_shares_float128_tres.py +test/test_v0044_shares_resp_msg.py +test/test_v0044_shares_uint64_tres.py +test/test_v0044_slurm_step_id.py +test/test_v0044_slurmdbd_ping.py +test/test_v0044_stats_msg.py +test/test_v0044_stats_msg_rpc_dump.py +test/test_v0044_stats_msg_rpc_queue.py +test/test_v0044_stats_msg_rpc_type.py +test/test_v0044_stats_msg_rpc_user.py +test/test_v0044_stats_rec.py +test/test_v0044_stats_rpc.py +test/test_v0044_stats_user.py +test/test_v0044_step.py +test/test_v0044_step_cpu.py +test/test_v0044_step_cpu_requested_frequency.py +test/test_v0044_step_nodes.py +test/test_v0044_step_statistics.py +test/test_v0044_step_statistics_energy.py +test/test_v0044_step_step.py +test/test_v0044_step_time.py +test/test_v0044_step_tres.py +test/test_v0044_step_tres_consumed.py +test/test_v0044_step_tres_requested.py +test/test_v0044_tres.py +test/test_v0044_uint16_no_val_struct.py +test/test_v0044_uint32_no_val_struct.py +test/test_v0044_uint64_no_val_struct.py +test/test_v0044_update_node_msg.py +test/test_v0044_user.py +test/test_v0044_user_default.py +test/test_v0044_user_short.py +test/test_v0044_users_add_cond.py +test/test_v0044_wckey.py +test/test_v0044_wckey_tag_struct.py +tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..e465da4 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.14.0 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3b2ed66 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + # uncomment the following if needed + #- "3.13-dev" # 3.13 development branch + #- "nightly" # nightly build +# command to install dependencies +install: + - "pip install -r requirements.txt" + - "pip install -r test-requirements.txt" +# command to run tests +script: pytest --cov=slurmrest_python diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f288702..0000000 --- a/LICENSE +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/README.md b/README.md index 285b33d..c12b330 100644 --- a/README.md +++ b/README.md @@ -1,76 +1,1220 @@ -# Slurm integration for ColdFront +# slurmrest_python +API to access and control Slurm -ColdFront django plugin providing Slurm REST API integration for ColdFront. +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -A command line tool is also provided with this app that allows an administrator -to check the consistency between ColdFront and Slurm and optionally remove any -associations that should not be in Slurm according to ColdFront. +- API version: Slurm-25.11.2 +- Package version: 0.0.1 +- Generator version: 7.14.0 +- Build package: org.openapitools.codegen.languages.PythonClientCodegen +For more information, please visit [https://www.schedmd.com/](https://www.schedmd.com/) -## Design +## Requirements. -Resources in ColdFront map to Clusters (or partitions within a cluster) in -Slurm. The name of the Slurm cluster is taken from a resource attribute in -ColdFront named "slurm\_cluster". You can optionally provide Slurm -specifications for a cluster using a resource attribute named "slurm\_specs". -The value of this attribute must conform to the Slurm specification format and -are colon separated. +Python 3.9+ -Allocations in ColdFront map to Accounts in Slurm. The name of the Slurm -account is taken from a allocation attribute in ColdFront named -"slurm\_account\_name" . You can optionally provide Slurm specifications for -the account using a allocation attribute named "slurm\_specs". The value of -this attribute must conform to the Slurm specification format and are colon -separated. +## Installation & Usage +### pip install -Allocation users in ColdFront map to Users in Slurm. You can optionally -provide Slurm specifications for each user in a allocation using a -allocation attribute named "slurm\_user\_specs". The value of this attribute -must conform to the Slurm specification format and are colon separated. Setting -specifications on an individual user basis is not currently supported. +If the python package is hosted on a repository, you can install directly using: -## Usage +```sh +pip install git+https://github.com/coldfront/slurm-python-sdk.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/coldfront/slurm-python-sdk.git`) + +Then import the package: +```python +import slurmrest_python +``` -To enable this plugin set the following environment variables: +### Setuptools +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user ``` -PLUGIN_SLURMREST=True -SLURMREST_CLUSTERS=production # add the names of the resources that correspond to the Slurm Clusters to use, separated by commas -# For each cluster listed in slurm_clusters: -# Set SLURM_{clustername}_ENDPOINT to the IP or URL, e.g.: -SLURM_PRODUCTION_ENDPOINT=http://production_cluster_url.com -# Set SLURM_{clustername}_TOKEN to the JWT token used for authentication -SLURM_PRODUCTION_TOKEN=$SLURMTEST_TOKEN +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import slurmrest_python ``` +### Tests -## Special cases +Execute `pytest` to run the tests. -Resources in ColdFront can optionally be organized into parent/child -relationships. This is useful in the context of Slurm for example if you have a -single Slurm controller with multiple partitions. Each partition represents a -separate resource in ColdFront that users can subscribe to. In this case you -would create a parent resource that represents your Slurm cluster (or -controller) with a resource type of "Cluster". Each Slurm partition would be a -separate resource in ColdFront with a resource type of "Partition" and have -their parent resource set to the Slurm cluster. Users wouldn't subscribe to the -parent Slurm cluster resource but only subscribe to the partition resources. Here -you would only set the "slurm\_cluster" resource attribute on the Slurm cluster -resource and not on the partitions. Also, "slurm\_specs" resource attribute on -partitions are merged with the allocation "slurm\_specs" and set on the Slurm -account association instead of the cluster. +## Getting Started -## CLI Usage +Please follow the [installation procedure](#installation--usage) and then run the following: -To check the consistency between ColdFront and Slurm run the following command: +```python + +import slurmrest_python +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + signal = 'signal_example' # str | Signal to send to Job (optional) + flags = 'flags_example' # str | Signalling flags (optional) + + try: + # cancel or signal job + api_response = api_instance.slurm_v0041_delete_job(job_id, signal=signal, flags=flags) + print("The response of SlurmApi->slurm_v0041_delete_job:\n") + pprint(api_response) + except ApiException as e: + print("Exception when calling SlurmApi->slurm_v0041_delete_job: %s\n" % e) ``` - $ sacctmgr dump file=/output_dir/tux.cfg - $ coldfront slurm_check -i /output_dir/tux.cfg -``` -This will compare active allocations in ColdFront to Slurm accounts and -associations. Any differences in the Slurm association and ColdFront user lists -will be reported. You can optionally provide the '--slurm-sync' flag to -automatically add and remove Slurm associations to match the allocationuser lists -in ColdFront, or the '--coldfront-sync' flag to automatically match the -allocationuser lists to Slurm's associations. +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*SlurmApi* | [**slurm_v0041_delete_job**](docs/SlurmApi.md#slurm_v0041_delete_job) | **DELETE** /slurm/v0.0.41/job/{job_id} | cancel or signal job +*SlurmApi* | [**slurm_v0041_delete_jobs**](docs/SlurmApi.md#slurm_v0041_delete_jobs) | **DELETE** /slurm/v0.0.41/jobs/ | send signal to list of jobs +*SlurmApi* | [**slurm_v0041_delete_node**](docs/SlurmApi.md#slurm_v0041_delete_node) | **DELETE** /slurm/v0.0.41/node/{node_name} | delete node +*SlurmApi* | [**slurm_v0041_delete_reservation**](docs/SlurmApi.md#slurm_v0041_delete_reservation) | **DELETE** /slurm/v0.0.41/reservation/{reservation_name} | delete a reservation +*SlurmApi* | [**slurm_v0041_get_diag**](docs/SlurmApi.md#slurm_v0041_get_diag) | **GET** /slurm/v0.0.41/diag/ | get diagnostics +*SlurmApi* | [**slurm_v0041_get_job**](docs/SlurmApi.md#slurm_v0041_get_job) | **GET** /slurm/v0.0.41/job/{job_id} | get job info +*SlurmApi* | [**slurm_v0041_get_jobs**](docs/SlurmApi.md#slurm_v0041_get_jobs) | **GET** /slurm/v0.0.41/jobs/ | get list of jobs +*SlurmApi* | [**slurm_v0041_get_jobs_state**](docs/SlurmApi.md#slurm_v0041_get_jobs_state) | **GET** /slurm/v0.0.41/jobs/state/ | get list of job states +*SlurmApi* | [**slurm_v0041_get_licenses**](docs/SlurmApi.md#slurm_v0041_get_licenses) | **GET** /slurm/v0.0.41/licenses/ | get all Slurm tracked license info +*SlurmApi* | [**slurm_v0041_get_node**](docs/SlurmApi.md#slurm_v0041_get_node) | **GET** /slurm/v0.0.41/node/{node_name} | get node info +*SlurmApi* | [**slurm_v0041_get_nodes**](docs/SlurmApi.md#slurm_v0041_get_nodes) | **GET** /slurm/v0.0.41/nodes/ | get node(s) info +*SlurmApi* | [**slurm_v0041_get_partition**](docs/SlurmApi.md#slurm_v0041_get_partition) | **GET** /slurm/v0.0.41/partition/{partition_name} | get partition info +*SlurmApi* | [**slurm_v0041_get_partitions**](docs/SlurmApi.md#slurm_v0041_get_partitions) | **GET** /slurm/v0.0.41/partitions/ | get all partition info +*SlurmApi* | [**slurm_v0041_get_ping**](docs/SlurmApi.md#slurm_v0041_get_ping) | **GET** /slurm/v0.0.41/ping/ | ping test +*SlurmApi* | [**slurm_v0041_get_reconfigure**](docs/SlurmApi.md#slurm_v0041_get_reconfigure) | **GET** /slurm/v0.0.41/reconfigure/ | request slurmctld reconfigure +*SlurmApi* | [**slurm_v0041_get_reservation**](docs/SlurmApi.md#slurm_v0041_get_reservation) | **GET** /slurm/v0.0.41/reservation/{reservation_name} | get reservation info +*SlurmApi* | [**slurm_v0041_get_reservations**](docs/SlurmApi.md#slurm_v0041_get_reservations) | **GET** /slurm/v0.0.41/reservations/ | get all reservation info +*SlurmApi* | [**slurm_v0041_get_shares**](docs/SlurmApi.md#slurm_v0041_get_shares) | **GET** /slurm/v0.0.41/shares | get fairshare info +*SlurmApi* | [**slurm_v0041_post_job**](docs/SlurmApi.md#slurm_v0041_post_job) | **POST** /slurm/v0.0.41/job/{job_id} | update job +*SlurmApi* | [**slurm_v0041_post_job_allocate**](docs/SlurmApi.md#slurm_v0041_post_job_allocate) | **POST** /slurm/v0.0.41/job/allocate | submit new job allocation without any steps that must be signaled to stop +*SlurmApi* | [**slurm_v0041_post_job_submit**](docs/SlurmApi.md#slurm_v0041_post_job_submit) | **POST** /slurm/v0.0.41/job/submit | submit new job +*SlurmApi* | [**slurm_v0041_post_node**](docs/SlurmApi.md#slurm_v0041_post_node) | **POST** /slurm/v0.0.41/node/{node_name} | update node properties +*SlurmApi* | [**slurm_v0041_post_nodes**](docs/SlurmApi.md#slurm_v0041_post_nodes) | **POST** /slurm/v0.0.41/nodes/ | batch update node(s) +*SlurmApi* | [**slurm_v0042_delete_job**](docs/SlurmApi.md#slurm_v0042_delete_job) | **DELETE** /slurm/v0.0.42/job/{job_id} | cancel or signal job +*SlurmApi* | [**slurm_v0042_delete_jobs**](docs/SlurmApi.md#slurm_v0042_delete_jobs) | **DELETE** /slurm/v0.0.42/jobs/ | send signal to list of jobs +*SlurmApi* | [**slurm_v0042_delete_node**](docs/SlurmApi.md#slurm_v0042_delete_node) | **DELETE** /slurm/v0.0.42/node/{node_name} | delete node +*SlurmApi* | [**slurm_v0042_delete_reservation**](docs/SlurmApi.md#slurm_v0042_delete_reservation) | **DELETE** /slurm/v0.0.42/reservation/{reservation_name} | delete a reservation +*SlurmApi* | [**slurm_v0042_get_diag**](docs/SlurmApi.md#slurm_v0042_get_diag) | **GET** /slurm/v0.0.42/diag/ | get diagnostics +*SlurmApi* | [**slurm_v0042_get_job**](docs/SlurmApi.md#slurm_v0042_get_job) | **GET** /slurm/v0.0.42/job/{job_id} | get job info +*SlurmApi* | [**slurm_v0042_get_jobs**](docs/SlurmApi.md#slurm_v0042_get_jobs) | **GET** /slurm/v0.0.42/jobs/ | get list of jobs +*SlurmApi* | [**slurm_v0042_get_jobs_state**](docs/SlurmApi.md#slurm_v0042_get_jobs_state) | **GET** /slurm/v0.0.42/jobs/state/ | get list of job states +*SlurmApi* | [**slurm_v0042_get_licenses**](docs/SlurmApi.md#slurm_v0042_get_licenses) | **GET** /slurm/v0.0.42/licenses/ | get all Slurm tracked license info +*SlurmApi* | [**slurm_v0042_get_node**](docs/SlurmApi.md#slurm_v0042_get_node) | **GET** /slurm/v0.0.42/node/{node_name} | get node info +*SlurmApi* | [**slurm_v0042_get_nodes**](docs/SlurmApi.md#slurm_v0042_get_nodes) | **GET** /slurm/v0.0.42/nodes/ | get node(s) info +*SlurmApi* | [**slurm_v0042_get_partition**](docs/SlurmApi.md#slurm_v0042_get_partition) | **GET** /slurm/v0.0.42/partition/{partition_name} | get partition info +*SlurmApi* | [**slurm_v0042_get_partitions**](docs/SlurmApi.md#slurm_v0042_get_partitions) | **GET** /slurm/v0.0.42/partitions/ | get all partition info +*SlurmApi* | [**slurm_v0042_get_ping**](docs/SlurmApi.md#slurm_v0042_get_ping) | **GET** /slurm/v0.0.42/ping/ | ping test +*SlurmApi* | [**slurm_v0042_get_reconfigure**](docs/SlurmApi.md#slurm_v0042_get_reconfigure) | **GET** /slurm/v0.0.42/reconfigure/ | request slurmctld reconfigure +*SlurmApi* | [**slurm_v0042_get_reservation**](docs/SlurmApi.md#slurm_v0042_get_reservation) | **GET** /slurm/v0.0.42/reservation/{reservation_name} | get reservation info +*SlurmApi* | [**slurm_v0042_get_reservations**](docs/SlurmApi.md#slurm_v0042_get_reservations) | **GET** /slurm/v0.0.42/reservations/ | get all reservation info +*SlurmApi* | [**slurm_v0042_get_shares**](docs/SlurmApi.md#slurm_v0042_get_shares) | **GET** /slurm/v0.0.42/shares | get fairshare info +*SlurmApi* | [**slurm_v0042_post_job**](docs/SlurmApi.md#slurm_v0042_post_job) | **POST** /slurm/v0.0.42/job/{job_id} | update job +*SlurmApi* | [**slurm_v0042_post_job_allocate**](docs/SlurmApi.md#slurm_v0042_post_job_allocate) | **POST** /slurm/v0.0.42/job/allocate | submit new job allocation without any steps that must be signaled to stop +*SlurmApi* | [**slurm_v0042_post_job_submit**](docs/SlurmApi.md#slurm_v0042_post_job_submit) | **POST** /slurm/v0.0.42/job/submit | submit new job +*SlurmApi* | [**slurm_v0042_post_node**](docs/SlurmApi.md#slurm_v0042_post_node) | **POST** /slurm/v0.0.42/node/{node_name} | update node properties +*SlurmApi* | [**slurm_v0042_post_nodes**](docs/SlurmApi.md#slurm_v0042_post_nodes) | **POST** /slurm/v0.0.42/nodes/ | batch update node(s) +*SlurmApi* | [**slurm_v0043_delete_job**](docs/SlurmApi.md#slurm_v0043_delete_job) | **DELETE** /slurm/v0.0.43/job/{job_id} | cancel or signal job +*SlurmApi* | [**slurm_v0043_delete_jobs**](docs/SlurmApi.md#slurm_v0043_delete_jobs) | **DELETE** /slurm/v0.0.43/jobs/ | send signal to list of jobs +*SlurmApi* | [**slurm_v0043_delete_node**](docs/SlurmApi.md#slurm_v0043_delete_node) | **DELETE** /slurm/v0.0.43/node/{node_name} | delete node +*SlurmApi* | [**slurm_v0043_delete_reservation**](docs/SlurmApi.md#slurm_v0043_delete_reservation) | **DELETE** /slurm/v0.0.43/reservation/{reservation_name} | delete a reservation +*SlurmApi* | [**slurm_v0043_get_diag**](docs/SlurmApi.md#slurm_v0043_get_diag) | **GET** /slurm/v0.0.43/diag/ | get diagnostics +*SlurmApi* | [**slurm_v0043_get_job**](docs/SlurmApi.md#slurm_v0043_get_job) | **GET** /slurm/v0.0.43/job/{job_id} | get job info +*SlurmApi* | [**slurm_v0043_get_jobs**](docs/SlurmApi.md#slurm_v0043_get_jobs) | **GET** /slurm/v0.0.43/jobs/ | get list of jobs +*SlurmApi* | [**slurm_v0043_get_jobs_state**](docs/SlurmApi.md#slurm_v0043_get_jobs_state) | **GET** /slurm/v0.0.43/jobs/state/ | get list of job states +*SlurmApi* | [**slurm_v0043_get_licenses**](docs/SlurmApi.md#slurm_v0043_get_licenses) | **GET** /slurm/v0.0.43/licenses/ | get all Slurm tracked license info +*SlurmApi* | [**slurm_v0043_get_node**](docs/SlurmApi.md#slurm_v0043_get_node) | **GET** /slurm/v0.0.43/node/{node_name} | get node info +*SlurmApi* | [**slurm_v0043_get_nodes**](docs/SlurmApi.md#slurm_v0043_get_nodes) | **GET** /slurm/v0.0.43/nodes/ | get node(s) info +*SlurmApi* | [**slurm_v0043_get_partition**](docs/SlurmApi.md#slurm_v0043_get_partition) | **GET** /slurm/v0.0.43/partition/{partition_name} | get partition info +*SlurmApi* | [**slurm_v0043_get_partitions**](docs/SlurmApi.md#slurm_v0043_get_partitions) | **GET** /slurm/v0.0.43/partitions/ | get all partition info +*SlurmApi* | [**slurm_v0043_get_ping**](docs/SlurmApi.md#slurm_v0043_get_ping) | **GET** /slurm/v0.0.43/ping/ | ping test +*SlurmApi* | [**slurm_v0043_get_reconfigure**](docs/SlurmApi.md#slurm_v0043_get_reconfigure) | **GET** /slurm/v0.0.43/reconfigure/ | request slurmctld reconfigure +*SlurmApi* | [**slurm_v0043_get_reservation**](docs/SlurmApi.md#slurm_v0043_get_reservation) | **GET** /slurm/v0.0.43/reservation/{reservation_name} | get reservation info +*SlurmApi* | [**slurm_v0043_get_reservations**](docs/SlurmApi.md#slurm_v0043_get_reservations) | **GET** /slurm/v0.0.43/reservations/ | get all reservation info +*SlurmApi* | [**slurm_v0043_get_shares**](docs/SlurmApi.md#slurm_v0043_get_shares) | **GET** /slurm/v0.0.43/shares | get fairshare info +*SlurmApi* | [**slurm_v0043_post_job**](docs/SlurmApi.md#slurm_v0043_post_job) | **POST** /slurm/v0.0.43/job/{job_id} | update job +*SlurmApi* | [**slurm_v0043_post_job_allocate**](docs/SlurmApi.md#slurm_v0043_post_job_allocate) | **POST** /slurm/v0.0.43/job/allocate | submit new job allocation without any steps that must be signaled to stop +*SlurmApi* | [**slurm_v0043_post_job_submit**](docs/SlurmApi.md#slurm_v0043_post_job_submit) | **POST** /slurm/v0.0.43/job/submit | submit new job +*SlurmApi* | [**slurm_v0043_post_node**](docs/SlurmApi.md#slurm_v0043_post_node) | **POST** /slurm/v0.0.43/node/{node_name} | update node properties +*SlurmApi* | [**slurm_v0043_post_nodes**](docs/SlurmApi.md#slurm_v0043_post_nodes) | **POST** /slurm/v0.0.43/nodes/ | batch update node(s) +*SlurmApi* | [**slurm_v0043_post_reservation**](docs/SlurmApi.md#slurm_v0043_post_reservation) | **POST** /slurm/v0.0.43/reservation | create or update a reservation +*SlurmApi* | [**slurm_v0043_post_reservations**](docs/SlurmApi.md#slurm_v0043_post_reservations) | **POST** /slurm/v0.0.43/reservations/ | create or update reservations +*SlurmApi* | [**slurm_v0044_delete_job**](docs/SlurmApi.md#slurm_v0044_delete_job) | **DELETE** /slurm/v0.0.44/job/{job_id} | cancel or signal job +*SlurmApi* | [**slurm_v0044_delete_jobs**](docs/SlurmApi.md#slurm_v0044_delete_jobs) | **DELETE** /slurm/v0.0.44/jobs/ | send signal to list of jobs +*SlurmApi* | [**slurm_v0044_delete_node**](docs/SlurmApi.md#slurm_v0044_delete_node) | **DELETE** /slurm/v0.0.44/node/{node_name} | delete node +*SlurmApi* | [**slurm_v0044_delete_reservation**](docs/SlurmApi.md#slurm_v0044_delete_reservation) | **DELETE** /slurm/v0.0.44/reservation/{reservation_name} | delete a reservation +*SlurmApi* | [**slurm_v0044_get_diag**](docs/SlurmApi.md#slurm_v0044_get_diag) | **GET** /slurm/v0.0.44/diag/ | get diagnostics +*SlurmApi* | [**slurm_v0044_get_job**](docs/SlurmApi.md#slurm_v0044_get_job) | **GET** /slurm/v0.0.44/job/{job_id} | get job info +*SlurmApi* | [**slurm_v0044_get_jobs**](docs/SlurmApi.md#slurm_v0044_get_jobs) | **GET** /slurm/v0.0.44/jobs/ | get list of jobs +*SlurmApi* | [**slurm_v0044_get_jobs_state**](docs/SlurmApi.md#slurm_v0044_get_jobs_state) | **GET** /slurm/v0.0.44/jobs/state/ | get list of job states +*SlurmApi* | [**slurm_v0044_get_licenses**](docs/SlurmApi.md#slurm_v0044_get_licenses) | **GET** /slurm/v0.0.44/licenses/ | get all Slurm tracked license info +*SlurmApi* | [**slurm_v0044_get_node**](docs/SlurmApi.md#slurm_v0044_get_node) | **GET** /slurm/v0.0.44/node/{node_name} | get node info +*SlurmApi* | [**slurm_v0044_get_nodes**](docs/SlurmApi.md#slurm_v0044_get_nodes) | **GET** /slurm/v0.0.44/nodes/ | get node(s) info +*SlurmApi* | [**slurm_v0044_get_partition**](docs/SlurmApi.md#slurm_v0044_get_partition) | **GET** /slurm/v0.0.44/partition/{partition_name} | get partition info +*SlurmApi* | [**slurm_v0044_get_partitions**](docs/SlurmApi.md#slurm_v0044_get_partitions) | **GET** /slurm/v0.0.44/partitions/ | get all partition info +*SlurmApi* | [**slurm_v0044_get_ping**](docs/SlurmApi.md#slurm_v0044_get_ping) | **GET** /slurm/v0.0.44/ping/ | ping test +*SlurmApi* | [**slurm_v0044_get_reconfigure**](docs/SlurmApi.md#slurm_v0044_get_reconfigure) | **GET** /slurm/v0.0.44/reconfigure/ | request slurmctld reconfigure +*SlurmApi* | [**slurm_v0044_get_reservation**](docs/SlurmApi.md#slurm_v0044_get_reservation) | **GET** /slurm/v0.0.44/reservation/{reservation_name} | get reservation info +*SlurmApi* | [**slurm_v0044_get_reservations**](docs/SlurmApi.md#slurm_v0044_get_reservations) | **GET** /slurm/v0.0.44/reservations/ | get all reservation info +*SlurmApi* | [**slurm_v0044_get_resources**](docs/SlurmApi.md#slurm_v0044_get_resources) | **GET** /slurm/v0.0.44/resources/{job_id} | get resource layout info +*SlurmApi* | [**slurm_v0044_get_shares**](docs/SlurmApi.md#slurm_v0044_get_shares) | **GET** /slurm/v0.0.44/shares | get fairshare info +*SlurmApi* | [**slurm_v0044_post_job**](docs/SlurmApi.md#slurm_v0044_post_job) | **POST** /slurm/v0.0.44/job/{job_id} | update job +*SlurmApi* | [**slurm_v0044_post_job_allocate**](docs/SlurmApi.md#slurm_v0044_post_job_allocate) | **POST** /slurm/v0.0.44/job/allocate | submit new job allocation without any steps that must be signaled to stop +*SlurmApi* | [**slurm_v0044_post_job_submit**](docs/SlurmApi.md#slurm_v0044_post_job_submit) | **POST** /slurm/v0.0.44/job/submit | submit new job +*SlurmApi* | [**slurm_v0044_post_new_node**](docs/SlurmApi.md#slurm_v0044_post_new_node) | **POST** /slurm/v0.0.44/new/node/ | create node +*SlurmApi* | [**slurm_v0044_post_node**](docs/SlurmApi.md#slurm_v0044_post_node) | **POST** /slurm/v0.0.44/node/{node_name} | update node properties +*SlurmApi* | [**slurm_v0044_post_nodes**](docs/SlurmApi.md#slurm_v0044_post_nodes) | **POST** /slurm/v0.0.44/nodes/ | batch update node(s) +*SlurmApi* | [**slurm_v0044_post_reservation**](docs/SlurmApi.md#slurm_v0044_post_reservation) | **POST** /slurm/v0.0.44/reservation | create or update a reservation +*SlurmApi* | [**slurm_v0044_post_reservations**](docs/SlurmApi.md#slurm_v0044_post_reservations) | **POST** /slurm/v0.0.44/reservations/ | create or update reservations +*SlurmdbApi* | [**slurmdb_v0041_delete_account**](docs/SlurmdbApi.md#slurmdb_v0041_delete_account) | **DELETE** /slurmdb/v0.0.41/account/{account_name} | Delete account +*SlurmdbApi* | [**slurmdb_v0041_delete_association**](docs/SlurmdbApi.md#slurmdb_v0041_delete_association) | **DELETE** /slurmdb/v0.0.41/association/ | Delete association +*SlurmdbApi* | [**slurmdb_v0041_delete_associations**](docs/SlurmdbApi.md#slurmdb_v0041_delete_associations) | **DELETE** /slurmdb/v0.0.41/associations/ | Delete associations +*SlurmdbApi* | [**slurmdb_v0041_delete_cluster**](docs/SlurmdbApi.md#slurmdb_v0041_delete_cluster) | **DELETE** /slurmdb/v0.0.41/cluster/{cluster_name} | Delete cluster +*SlurmdbApi* | [**slurmdb_v0041_delete_single_qos**](docs/SlurmdbApi.md#slurmdb_v0041_delete_single_qos) | **DELETE** /slurmdb/v0.0.41/qos/{qos} | Delete QOS +*SlurmdbApi* | [**slurmdb_v0041_delete_user**](docs/SlurmdbApi.md#slurmdb_v0041_delete_user) | **DELETE** /slurmdb/v0.0.41/user/{name} | Delete user +*SlurmdbApi* | [**slurmdb_v0041_delete_wckey**](docs/SlurmdbApi.md#slurmdb_v0041_delete_wckey) | **DELETE** /slurmdb/v0.0.41/wckey/{id} | Delete wckey +*SlurmdbApi* | [**slurmdb_v0041_get_account**](docs/SlurmdbApi.md#slurmdb_v0041_get_account) | **GET** /slurmdb/v0.0.41/account/{account_name} | Get account info +*SlurmdbApi* | [**slurmdb_v0041_get_accounts**](docs/SlurmdbApi.md#slurmdb_v0041_get_accounts) | **GET** /slurmdb/v0.0.41/accounts/ | Get account list +*SlurmdbApi* | [**slurmdb_v0041_get_association**](docs/SlurmdbApi.md#slurmdb_v0041_get_association) | **GET** /slurmdb/v0.0.41/association/ | Get association info +*SlurmdbApi* | [**slurmdb_v0041_get_associations**](docs/SlurmdbApi.md#slurmdb_v0041_get_associations) | **GET** /slurmdb/v0.0.41/associations/ | Get association list +*SlurmdbApi* | [**slurmdb_v0041_get_cluster**](docs/SlurmdbApi.md#slurmdb_v0041_get_cluster) | **GET** /slurmdb/v0.0.41/cluster/{cluster_name} | Get cluster info +*SlurmdbApi* | [**slurmdb_v0041_get_clusters**](docs/SlurmdbApi.md#slurmdb_v0041_get_clusters) | **GET** /slurmdb/v0.0.41/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0041_get_config**](docs/SlurmdbApi.md#slurmdb_v0041_get_config) | **GET** /slurmdb/v0.0.41/config | Dump all configuration information +*SlurmdbApi* | [**slurmdb_v0041_get_diag**](docs/SlurmdbApi.md#slurmdb_v0041_get_diag) | **GET** /slurmdb/v0.0.41/diag/ | Get slurmdb diagnostics +*SlurmdbApi* | [**slurmdb_v0041_get_instance**](docs/SlurmdbApi.md#slurmdb_v0041_get_instance) | **GET** /slurmdb/v0.0.41/instance/ | Get instance info +*SlurmdbApi* | [**slurmdb_v0041_get_instances**](docs/SlurmdbApi.md#slurmdb_v0041_get_instances) | **GET** /slurmdb/v0.0.41/instances/ | Get instance list +*SlurmdbApi* | [**slurmdb_v0041_get_job**](docs/SlurmdbApi.md#slurmdb_v0041_get_job) | **GET** /slurmdb/v0.0.41/job/{job_id} | Get job info +*SlurmdbApi* | [**slurmdb_v0041_get_jobs**](docs/SlurmdbApi.md#slurmdb_v0041_get_jobs) | **GET** /slurmdb/v0.0.41/jobs/ | Get job list +*SlurmdbApi* | [**slurmdb_v0041_get_qos**](docs/SlurmdbApi.md#slurmdb_v0041_get_qos) | **GET** /slurmdb/v0.0.41/qos/ | Get QOS list +*SlurmdbApi* | [**slurmdb_v0041_get_single_qos**](docs/SlurmdbApi.md#slurmdb_v0041_get_single_qos) | **GET** /slurmdb/v0.0.41/qos/{qos} | Get QOS info +*SlurmdbApi* | [**slurmdb_v0041_get_tres**](docs/SlurmdbApi.md#slurmdb_v0041_get_tres) | **GET** /slurmdb/v0.0.41/tres/ | Get TRES info +*SlurmdbApi* | [**slurmdb_v0041_get_user**](docs/SlurmdbApi.md#slurmdb_v0041_get_user) | **GET** /slurmdb/v0.0.41/user/{name} | Get user info +*SlurmdbApi* | [**slurmdb_v0041_get_users**](docs/SlurmdbApi.md#slurmdb_v0041_get_users) | **GET** /slurmdb/v0.0.41/users/ | Get user list +*SlurmdbApi* | [**slurmdb_v0041_get_wckey**](docs/SlurmdbApi.md#slurmdb_v0041_get_wckey) | **GET** /slurmdb/v0.0.41/wckey/{id} | Get wckey info +*SlurmdbApi* | [**slurmdb_v0041_get_wckeys**](docs/SlurmdbApi.md#slurmdb_v0041_get_wckeys) | **GET** /slurmdb/v0.0.41/wckeys/ | Get wckey list +*SlurmdbApi* | [**slurmdb_v0041_post_accounts**](docs/SlurmdbApi.md#slurmdb_v0041_post_accounts) | **POST** /slurmdb/v0.0.41/accounts/ | Add/update list of accounts +*SlurmdbApi* | [**slurmdb_v0041_post_accounts_association**](docs/SlurmdbApi.md#slurmdb_v0041_post_accounts_association) | **POST** /slurmdb/v0.0.41/accounts_association/ | Add accounts with conditional association +*SlurmdbApi* | [**slurmdb_v0041_post_associations**](docs/SlurmdbApi.md#slurmdb_v0041_post_associations) | **POST** /slurmdb/v0.0.41/associations/ | Set associations info +*SlurmdbApi* | [**slurmdb_v0041_post_clusters**](docs/SlurmdbApi.md#slurmdb_v0041_post_clusters) | **POST** /slurmdb/v0.0.41/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0041_post_config**](docs/SlurmdbApi.md#slurmdb_v0041_post_config) | **POST** /slurmdb/v0.0.41/config | Load all configuration information +*SlurmdbApi* | [**slurmdb_v0041_post_qos**](docs/SlurmdbApi.md#slurmdb_v0041_post_qos) | **POST** /slurmdb/v0.0.41/qos/ | Add or update QOSs +*SlurmdbApi* | [**slurmdb_v0041_post_tres**](docs/SlurmdbApi.md#slurmdb_v0041_post_tres) | **POST** /slurmdb/v0.0.41/tres/ | Add TRES +*SlurmdbApi* | [**slurmdb_v0041_post_users**](docs/SlurmdbApi.md#slurmdb_v0041_post_users) | **POST** /slurmdb/v0.0.41/users/ | Update users +*SlurmdbApi* | [**slurmdb_v0041_post_users_association**](docs/SlurmdbApi.md#slurmdb_v0041_post_users_association) | **POST** /slurmdb/v0.0.41/users_association/ | Add users with conditional association +*SlurmdbApi* | [**slurmdb_v0041_post_wckeys**](docs/SlurmdbApi.md#slurmdb_v0041_post_wckeys) | **POST** /slurmdb/v0.0.41/wckeys/ | Add or update wckeys +*SlurmdbApi* | [**slurmdb_v0042_delete_account**](docs/SlurmdbApi.md#slurmdb_v0042_delete_account) | **DELETE** /slurmdb/v0.0.42/account/{account_name} | Delete account +*SlurmdbApi* | [**slurmdb_v0042_delete_association**](docs/SlurmdbApi.md#slurmdb_v0042_delete_association) | **DELETE** /slurmdb/v0.0.42/association/ | Delete association +*SlurmdbApi* | [**slurmdb_v0042_delete_associations**](docs/SlurmdbApi.md#slurmdb_v0042_delete_associations) | **DELETE** /slurmdb/v0.0.42/associations/ | Delete associations +*SlurmdbApi* | [**slurmdb_v0042_delete_cluster**](docs/SlurmdbApi.md#slurmdb_v0042_delete_cluster) | **DELETE** /slurmdb/v0.0.42/cluster/{cluster_name} | Delete cluster +*SlurmdbApi* | [**slurmdb_v0042_delete_single_qos**](docs/SlurmdbApi.md#slurmdb_v0042_delete_single_qos) | **DELETE** /slurmdb/v0.0.42/qos/{qos} | Delete QOS +*SlurmdbApi* | [**slurmdb_v0042_delete_user**](docs/SlurmdbApi.md#slurmdb_v0042_delete_user) | **DELETE** /slurmdb/v0.0.42/user/{name} | Delete user +*SlurmdbApi* | [**slurmdb_v0042_delete_wckey**](docs/SlurmdbApi.md#slurmdb_v0042_delete_wckey) | **DELETE** /slurmdb/v0.0.42/wckey/{id} | Delete wckey +*SlurmdbApi* | [**slurmdb_v0042_get_account**](docs/SlurmdbApi.md#slurmdb_v0042_get_account) | **GET** /slurmdb/v0.0.42/account/{account_name} | Get account info +*SlurmdbApi* | [**slurmdb_v0042_get_accounts**](docs/SlurmdbApi.md#slurmdb_v0042_get_accounts) | **GET** /slurmdb/v0.0.42/accounts/ | Get account list +*SlurmdbApi* | [**slurmdb_v0042_get_association**](docs/SlurmdbApi.md#slurmdb_v0042_get_association) | **GET** /slurmdb/v0.0.42/association/ | Get association info +*SlurmdbApi* | [**slurmdb_v0042_get_associations**](docs/SlurmdbApi.md#slurmdb_v0042_get_associations) | **GET** /slurmdb/v0.0.42/associations/ | Get association list +*SlurmdbApi* | [**slurmdb_v0042_get_cluster**](docs/SlurmdbApi.md#slurmdb_v0042_get_cluster) | **GET** /slurmdb/v0.0.42/cluster/{cluster_name} | Get cluster info +*SlurmdbApi* | [**slurmdb_v0042_get_clusters**](docs/SlurmdbApi.md#slurmdb_v0042_get_clusters) | **GET** /slurmdb/v0.0.42/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0042_get_config**](docs/SlurmdbApi.md#slurmdb_v0042_get_config) | **GET** /slurmdb/v0.0.42/config | Dump all configuration information +*SlurmdbApi* | [**slurmdb_v0042_get_diag**](docs/SlurmdbApi.md#slurmdb_v0042_get_diag) | **GET** /slurmdb/v0.0.42/diag/ | Get slurmdb diagnostics +*SlurmdbApi* | [**slurmdb_v0042_get_instance**](docs/SlurmdbApi.md#slurmdb_v0042_get_instance) | **GET** /slurmdb/v0.0.42/instance/ | Get instance info +*SlurmdbApi* | [**slurmdb_v0042_get_instances**](docs/SlurmdbApi.md#slurmdb_v0042_get_instances) | **GET** /slurmdb/v0.0.42/instances/ | Get instance list +*SlurmdbApi* | [**slurmdb_v0042_get_job**](docs/SlurmdbApi.md#slurmdb_v0042_get_job) | **GET** /slurmdb/v0.0.42/job/{job_id} | Get job info +*SlurmdbApi* | [**slurmdb_v0042_get_jobs**](docs/SlurmdbApi.md#slurmdb_v0042_get_jobs) | **GET** /slurmdb/v0.0.42/jobs/ | Get job list +*SlurmdbApi* | [**slurmdb_v0042_get_ping**](docs/SlurmdbApi.md#slurmdb_v0042_get_ping) | **GET** /slurmdb/v0.0.42/ping/ | ping test +*SlurmdbApi* | [**slurmdb_v0042_get_qos**](docs/SlurmdbApi.md#slurmdb_v0042_get_qos) | **GET** /slurmdb/v0.0.42/qos/ | Get QOS list +*SlurmdbApi* | [**slurmdb_v0042_get_single_qos**](docs/SlurmdbApi.md#slurmdb_v0042_get_single_qos) | **GET** /slurmdb/v0.0.42/qos/{qos} | Get QOS info +*SlurmdbApi* | [**slurmdb_v0042_get_tres**](docs/SlurmdbApi.md#slurmdb_v0042_get_tres) | **GET** /slurmdb/v0.0.42/tres/ | Get TRES info +*SlurmdbApi* | [**slurmdb_v0042_get_user**](docs/SlurmdbApi.md#slurmdb_v0042_get_user) | **GET** /slurmdb/v0.0.42/user/{name} | Get user info +*SlurmdbApi* | [**slurmdb_v0042_get_users**](docs/SlurmdbApi.md#slurmdb_v0042_get_users) | **GET** /slurmdb/v0.0.42/users/ | Get user list +*SlurmdbApi* | [**slurmdb_v0042_get_wckey**](docs/SlurmdbApi.md#slurmdb_v0042_get_wckey) | **GET** /slurmdb/v0.0.42/wckey/{id} | Get wckey info +*SlurmdbApi* | [**slurmdb_v0042_get_wckeys**](docs/SlurmdbApi.md#slurmdb_v0042_get_wckeys) | **GET** /slurmdb/v0.0.42/wckeys/ | Get wckey list +*SlurmdbApi* | [**slurmdb_v0042_post_accounts**](docs/SlurmdbApi.md#slurmdb_v0042_post_accounts) | **POST** /slurmdb/v0.0.42/accounts/ | Add/update list of accounts +*SlurmdbApi* | [**slurmdb_v0042_post_accounts_association**](docs/SlurmdbApi.md#slurmdb_v0042_post_accounts_association) | **POST** /slurmdb/v0.0.42/accounts_association/ | Add accounts with conditional association +*SlurmdbApi* | [**slurmdb_v0042_post_associations**](docs/SlurmdbApi.md#slurmdb_v0042_post_associations) | **POST** /slurmdb/v0.0.42/associations/ | Set associations info +*SlurmdbApi* | [**slurmdb_v0042_post_clusters**](docs/SlurmdbApi.md#slurmdb_v0042_post_clusters) | **POST** /slurmdb/v0.0.42/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0042_post_config**](docs/SlurmdbApi.md#slurmdb_v0042_post_config) | **POST** /slurmdb/v0.0.42/config | Load all configuration information +*SlurmdbApi* | [**slurmdb_v0042_post_qos**](docs/SlurmdbApi.md#slurmdb_v0042_post_qos) | **POST** /slurmdb/v0.0.42/qos/ | Add or update QOSs +*SlurmdbApi* | [**slurmdb_v0042_post_tres**](docs/SlurmdbApi.md#slurmdb_v0042_post_tres) | **POST** /slurmdb/v0.0.42/tres/ | Add TRES +*SlurmdbApi* | [**slurmdb_v0042_post_users**](docs/SlurmdbApi.md#slurmdb_v0042_post_users) | **POST** /slurmdb/v0.0.42/users/ | Update users +*SlurmdbApi* | [**slurmdb_v0042_post_users_association**](docs/SlurmdbApi.md#slurmdb_v0042_post_users_association) | **POST** /slurmdb/v0.0.42/users_association/ | Add users with conditional association +*SlurmdbApi* | [**slurmdb_v0042_post_wckeys**](docs/SlurmdbApi.md#slurmdb_v0042_post_wckeys) | **POST** /slurmdb/v0.0.42/wckeys/ | Add or update wckeys +*SlurmdbApi* | [**slurmdb_v0043_delete_account**](docs/SlurmdbApi.md#slurmdb_v0043_delete_account) | **DELETE** /slurmdb/v0.0.43/account/{account_name} | Delete account +*SlurmdbApi* | [**slurmdb_v0043_delete_association**](docs/SlurmdbApi.md#slurmdb_v0043_delete_association) | **DELETE** /slurmdb/v0.0.43/association/ | Delete association +*SlurmdbApi* | [**slurmdb_v0043_delete_associations**](docs/SlurmdbApi.md#slurmdb_v0043_delete_associations) | **DELETE** /slurmdb/v0.0.43/associations/ | Delete associations +*SlurmdbApi* | [**slurmdb_v0043_delete_cluster**](docs/SlurmdbApi.md#slurmdb_v0043_delete_cluster) | **DELETE** /slurmdb/v0.0.43/cluster/{cluster_name} | Delete cluster +*SlurmdbApi* | [**slurmdb_v0043_delete_single_qos**](docs/SlurmdbApi.md#slurmdb_v0043_delete_single_qos) | **DELETE** /slurmdb/v0.0.43/qos/{qos} | Delete QOS +*SlurmdbApi* | [**slurmdb_v0043_delete_user**](docs/SlurmdbApi.md#slurmdb_v0043_delete_user) | **DELETE** /slurmdb/v0.0.43/user/{name} | Delete user +*SlurmdbApi* | [**slurmdb_v0043_delete_wckey**](docs/SlurmdbApi.md#slurmdb_v0043_delete_wckey) | **DELETE** /slurmdb/v0.0.43/wckey/{id} | Delete wckey +*SlurmdbApi* | [**slurmdb_v0043_get_account**](docs/SlurmdbApi.md#slurmdb_v0043_get_account) | **GET** /slurmdb/v0.0.43/account/{account_name} | Get account info +*SlurmdbApi* | [**slurmdb_v0043_get_accounts**](docs/SlurmdbApi.md#slurmdb_v0043_get_accounts) | **GET** /slurmdb/v0.0.43/accounts/ | Get account list +*SlurmdbApi* | [**slurmdb_v0043_get_association**](docs/SlurmdbApi.md#slurmdb_v0043_get_association) | **GET** /slurmdb/v0.0.43/association/ | Get association info +*SlurmdbApi* | [**slurmdb_v0043_get_associations**](docs/SlurmdbApi.md#slurmdb_v0043_get_associations) | **GET** /slurmdb/v0.0.43/associations/ | Get association list +*SlurmdbApi* | [**slurmdb_v0043_get_cluster**](docs/SlurmdbApi.md#slurmdb_v0043_get_cluster) | **GET** /slurmdb/v0.0.43/cluster/{cluster_name} | Get cluster info +*SlurmdbApi* | [**slurmdb_v0043_get_clusters**](docs/SlurmdbApi.md#slurmdb_v0043_get_clusters) | **GET** /slurmdb/v0.0.43/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0043_get_config**](docs/SlurmdbApi.md#slurmdb_v0043_get_config) | **GET** /slurmdb/v0.0.43/config | Dump all configuration information +*SlurmdbApi* | [**slurmdb_v0043_get_diag**](docs/SlurmdbApi.md#slurmdb_v0043_get_diag) | **GET** /slurmdb/v0.0.43/diag/ | Get slurmdb diagnostics +*SlurmdbApi* | [**slurmdb_v0043_get_instance**](docs/SlurmdbApi.md#slurmdb_v0043_get_instance) | **GET** /slurmdb/v0.0.43/instance/ | Get instance info +*SlurmdbApi* | [**slurmdb_v0043_get_instances**](docs/SlurmdbApi.md#slurmdb_v0043_get_instances) | **GET** /slurmdb/v0.0.43/instances/ | Get instance list +*SlurmdbApi* | [**slurmdb_v0043_get_job**](docs/SlurmdbApi.md#slurmdb_v0043_get_job) | **GET** /slurmdb/v0.0.43/job/{job_id} | Get job info +*SlurmdbApi* | [**slurmdb_v0043_get_jobs**](docs/SlurmdbApi.md#slurmdb_v0043_get_jobs) | **GET** /slurmdb/v0.0.43/jobs/ | Get job list +*SlurmdbApi* | [**slurmdb_v0043_get_ping**](docs/SlurmdbApi.md#slurmdb_v0043_get_ping) | **GET** /slurmdb/v0.0.43/ping/ | ping test +*SlurmdbApi* | [**slurmdb_v0043_get_qos**](docs/SlurmdbApi.md#slurmdb_v0043_get_qos) | **GET** /slurmdb/v0.0.43/qos/ | Get QOS list +*SlurmdbApi* | [**slurmdb_v0043_get_single_qos**](docs/SlurmdbApi.md#slurmdb_v0043_get_single_qos) | **GET** /slurmdb/v0.0.43/qos/{qos} | Get QOS info +*SlurmdbApi* | [**slurmdb_v0043_get_tres**](docs/SlurmdbApi.md#slurmdb_v0043_get_tres) | **GET** /slurmdb/v0.0.43/tres/ | Get TRES info +*SlurmdbApi* | [**slurmdb_v0043_get_user**](docs/SlurmdbApi.md#slurmdb_v0043_get_user) | **GET** /slurmdb/v0.0.43/user/{name} | Get user info +*SlurmdbApi* | [**slurmdb_v0043_get_users**](docs/SlurmdbApi.md#slurmdb_v0043_get_users) | **GET** /slurmdb/v0.0.43/users/ | Get user list +*SlurmdbApi* | [**slurmdb_v0043_get_wckey**](docs/SlurmdbApi.md#slurmdb_v0043_get_wckey) | **GET** /slurmdb/v0.0.43/wckey/{id} | Get wckey info +*SlurmdbApi* | [**slurmdb_v0043_get_wckeys**](docs/SlurmdbApi.md#slurmdb_v0043_get_wckeys) | **GET** /slurmdb/v0.0.43/wckeys/ | Get wckey list +*SlurmdbApi* | [**slurmdb_v0043_post_accounts**](docs/SlurmdbApi.md#slurmdb_v0043_post_accounts) | **POST** /slurmdb/v0.0.43/accounts/ | Add/update list of accounts +*SlurmdbApi* | [**slurmdb_v0043_post_accounts_association**](docs/SlurmdbApi.md#slurmdb_v0043_post_accounts_association) | **POST** /slurmdb/v0.0.43/accounts_association/ | Add accounts with conditional association +*SlurmdbApi* | [**slurmdb_v0043_post_associations**](docs/SlurmdbApi.md#slurmdb_v0043_post_associations) | **POST** /slurmdb/v0.0.43/associations/ | Set associations info +*SlurmdbApi* | [**slurmdb_v0043_post_clusters**](docs/SlurmdbApi.md#slurmdb_v0043_post_clusters) | **POST** /slurmdb/v0.0.43/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0043_post_config**](docs/SlurmdbApi.md#slurmdb_v0043_post_config) | **POST** /slurmdb/v0.0.43/config | Load all configuration information +*SlurmdbApi* | [**slurmdb_v0043_post_qos**](docs/SlurmdbApi.md#slurmdb_v0043_post_qos) | **POST** /slurmdb/v0.0.43/qos/ | Add or update QOSs +*SlurmdbApi* | [**slurmdb_v0043_post_tres**](docs/SlurmdbApi.md#slurmdb_v0043_post_tres) | **POST** /slurmdb/v0.0.43/tres/ | Add TRES +*SlurmdbApi* | [**slurmdb_v0043_post_users**](docs/SlurmdbApi.md#slurmdb_v0043_post_users) | **POST** /slurmdb/v0.0.43/users/ | Update users +*SlurmdbApi* | [**slurmdb_v0043_post_users_association**](docs/SlurmdbApi.md#slurmdb_v0043_post_users_association) | **POST** /slurmdb/v0.0.43/users_association/ | Add users with conditional association +*SlurmdbApi* | [**slurmdb_v0043_post_wckeys**](docs/SlurmdbApi.md#slurmdb_v0043_post_wckeys) | **POST** /slurmdb/v0.0.43/wckeys/ | Add or update wckeys +*SlurmdbApi* | [**slurmdb_v0044_delete_account**](docs/SlurmdbApi.md#slurmdb_v0044_delete_account) | **DELETE** /slurmdb/v0.0.44/account/{account_name} | Delete account +*SlurmdbApi* | [**slurmdb_v0044_delete_association**](docs/SlurmdbApi.md#slurmdb_v0044_delete_association) | **DELETE** /slurmdb/v0.0.44/association/ | Delete association +*SlurmdbApi* | [**slurmdb_v0044_delete_associations**](docs/SlurmdbApi.md#slurmdb_v0044_delete_associations) | **DELETE** /slurmdb/v0.0.44/associations/ | Delete associations +*SlurmdbApi* | [**slurmdb_v0044_delete_cluster**](docs/SlurmdbApi.md#slurmdb_v0044_delete_cluster) | **DELETE** /slurmdb/v0.0.44/cluster/{cluster_name} | Delete cluster +*SlurmdbApi* | [**slurmdb_v0044_delete_single_qos**](docs/SlurmdbApi.md#slurmdb_v0044_delete_single_qos) | **DELETE** /slurmdb/v0.0.44/qos/{qos} | Delete QOS +*SlurmdbApi* | [**slurmdb_v0044_delete_user**](docs/SlurmdbApi.md#slurmdb_v0044_delete_user) | **DELETE** /slurmdb/v0.0.44/user/{name} | Delete user +*SlurmdbApi* | [**slurmdb_v0044_delete_wckey**](docs/SlurmdbApi.md#slurmdb_v0044_delete_wckey) | **DELETE** /slurmdb/v0.0.44/wckey/{id} | Delete wckey +*SlurmdbApi* | [**slurmdb_v0044_get_account**](docs/SlurmdbApi.md#slurmdb_v0044_get_account) | **GET** /slurmdb/v0.0.44/account/{account_name} | Get account info +*SlurmdbApi* | [**slurmdb_v0044_get_accounts**](docs/SlurmdbApi.md#slurmdb_v0044_get_accounts) | **GET** /slurmdb/v0.0.44/accounts/ | Get account list +*SlurmdbApi* | [**slurmdb_v0044_get_association**](docs/SlurmdbApi.md#slurmdb_v0044_get_association) | **GET** /slurmdb/v0.0.44/association/ | Get association info +*SlurmdbApi* | [**slurmdb_v0044_get_associations**](docs/SlurmdbApi.md#slurmdb_v0044_get_associations) | **GET** /slurmdb/v0.0.44/associations/ | Get association list +*SlurmdbApi* | [**slurmdb_v0044_get_cluster**](docs/SlurmdbApi.md#slurmdb_v0044_get_cluster) | **GET** /slurmdb/v0.0.44/cluster/{cluster_name} | Get cluster info +*SlurmdbApi* | [**slurmdb_v0044_get_clusters**](docs/SlurmdbApi.md#slurmdb_v0044_get_clusters) | **GET** /slurmdb/v0.0.44/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0044_get_config**](docs/SlurmdbApi.md#slurmdb_v0044_get_config) | **GET** /slurmdb/v0.0.44/config | Dump all configuration information +*SlurmdbApi* | [**slurmdb_v0044_get_diag**](docs/SlurmdbApi.md#slurmdb_v0044_get_diag) | **GET** /slurmdb/v0.0.44/diag/ | Get slurmdb diagnostics +*SlurmdbApi* | [**slurmdb_v0044_get_instance**](docs/SlurmdbApi.md#slurmdb_v0044_get_instance) | **GET** /slurmdb/v0.0.44/instance/ | Get instance info +*SlurmdbApi* | [**slurmdb_v0044_get_instances**](docs/SlurmdbApi.md#slurmdb_v0044_get_instances) | **GET** /slurmdb/v0.0.44/instances/ | Get instance list +*SlurmdbApi* | [**slurmdb_v0044_get_job**](docs/SlurmdbApi.md#slurmdb_v0044_get_job) | **GET** /slurmdb/v0.0.44/job/{job_id} | Get job info +*SlurmdbApi* | [**slurmdb_v0044_get_jobs**](docs/SlurmdbApi.md#slurmdb_v0044_get_jobs) | **GET** /slurmdb/v0.0.44/jobs/ | Get job list +*SlurmdbApi* | [**slurmdb_v0044_get_ping**](docs/SlurmdbApi.md#slurmdb_v0044_get_ping) | **GET** /slurmdb/v0.0.44/ping/ | ping test +*SlurmdbApi* | [**slurmdb_v0044_get_qos**](docs/SlurmdbApi.md#slurmdb_v0044_get_qos) | **GET** /slurmdb/v0.0.44/qos/ | Get QOS list +*SlurmdbApi* | [**slurmdb_v0044_get_single_qos**](docs/SlurmdbApi.md#slurmdb_v0044_get_single_qos) | **GET** /slurmdb/v0.0.44/qos/{qos} | Get QOS info +*SlurmdbApi* | [**slurmdb_v0044_get_tres**](docs/SlurmdbApi.md#slurmdb_v0044_get_tres) | **GET** /slurmdb/v0.0.44/tres/ | Get TRES info +*SlurmdbApi* | [**slurmdb_v0044_get_user**](docs/SlurmdbApi.md#slurmdb_v0044_get_user) | **GET** /slurmdb/v0.0.44/user/{name} | Get user info +*SlurmdbApi* | [**slurmdb_v0044_get_users**](docs/SlurmdbApi.md#slurmdb_v0044_get_users) | **GET** /slurmdb/v0.0.44/users/ | Get user list +*SlurmdbApi* | [**slurmdb_v0044_get_wckey**](docs/SlurmdbApi.md#slurmdb_v0044_get_wckey) | **GET** /slurmdb/v0.0.44/wckey/{id} | Get wckey info +*SlurmdbApi* | [**slurmdb_v0044_get_wckeys**](docs/SlurmdbApi.md#slurmdb_v0044_get_wckeys) | **GET** /slurmdb/v0.0.44/wckeys/ | Get wckey list +*SlurmdbApi* | [**slurmdb_v0044_post_accounts**](docs/SlurmdbApi.md#slurmdb_v0044_post_accounts) | **POST** /slurmdb/v0.0.44/accounts/ | Add/update list of accounts +*SlurmdbApi* | [**slurmdb_v0044_post_accounts_association**](docs/SlurmdbApi.md#slurmdb_v0044_post_accounts_association) | **POST** /slurmdb/v0.0.44/accounts_association/ | Add accounts with conditional association +*SlurmdbApi* | [**slurmdb_v0044_post_associations**](docs/SlurmdbApi.md#slurmdb_v0044_post_associations) | **POST** /slurmdb/v0.0.44/associations/ | Set associations info +*SlurmdbApi* | [**slurmdb_v0044_post_clusters**](docs/SlurmdbApi.md#slurmdb_v0044_post_clusters) | **POST** /slurmdb/v0.0.44/clusters/ | Get cluster list +*SlurmdbApi* | [**slurmdb_v0044_post_config**](docs/SlurmdbApi.md#slurmdb_v0044_post_config) | **POST** /slurmdb/v0.0.44/config | Load all configuration information +*SlurmdbApi* | [**slurmdb_v0044_post_job**](docs/SlurmdbApi.md#slurmdb_v0044_post_job) | **POST** /slurmdb/v0.0.44/job/{job_id} | Update job +*SlurmdbApi* | [**slurmdb_v0044_post_jobs**](docs/SlurmdbApi.md#slurmdb_v0044_post_jobs) | **POST** /slurmdb/v0.0.44/jobs/ | Update jobs +*SlurmdbApi* | [**slurmdb_v0044_post_qos**](docs/SlurmdbApi.md#slurmdb_v0044_post_qos) | **POST** /slurmdb/v0.0.44/qos/ | Add or update QOSs +*SlurmdbApi* | [**slurmdb_v0044_post_tres**](docs/SlurmdbApi.md#slurmdb_v0044_post_tres) | **POST** /slurmdb/v0.0.44/tres/ | Add TRES +*SlurmdbApi* | [**slurmdb_v0044_post_users**](docs/SlurmdbApi.md#slurmdb_v0044_post_users) | **POST** /slurmdb/v0.0.44/users/ | Update users +*SlurmdbApi* | [**slurmdb_v0044_post_users_association**](docs/SlurmdbApi.md#slurmdb_v0044_post_users_association) | **POST** /slurmdb/v0.0.44/users_association/ | Add users with conditional association +*SlurmdbApi* | [**slurmdb_v0044_post_wckeys**](docs/SlurmdbApi.md#slurmdb_v0044_post_wckeys) | **POST** /slurmdb/v0.0.44/wckeys/ | Add or update wckeys +*UtilApi* | [**util_v0044_post_hostlist**](docs/UtilApi.md#util_v0044_post_hostlist) | **POST** /util/v0.0.44/hostlist | Convert an array of host names into hostlist expression +*UtilApi* | [**util_v0044_post_hostnames**](docs/UtilApi.md#util_v0044_post_hostnames) | **POST** /util/v0.0.44/hostnames | Convert a hostlist expression into array of host names + + +## Documentation For Models + + - [V0041JobAllocReq](docs/V0041JobAllocReq.md) + - [V0041JobDescMsg](docs/V0041JobDescMsg.md) + - [V0041JobDescMsgBeginTime](docs/V0041JobDescMsgBeginTime.md) + - [V0041JobDescMsgCrontab](docs/V0041JobDescMsgCrontab.md) + - [V0041JobDescMsgCrontabLine](docs/V0041JobDescMsgCrontabLine.md) + - [V0041JobDescMsgDistributionPlaneSize](docs/V0041JobDescMsgDistributionPlaneSize.md) + - [V0041JobDescMsgKillWarningDelay](docs/V0041JobDescMsgKillWarningDelay.md) + - [V0041JobDescMsgMemoryPerCpu](docs/V0041JobDescMsgMemoryPerCpu.md) + - [V0041JobDescMsgPriority](docs/V0041JobDescMsgPriority.md) + - [V0041JobDescMsgRequiredSwitches](docs/V0041JobDescMsgRequiredSwitches.md) + - [V0041JobDescMsgRlimits](docs/V0041JobDescMsgRlimits.md) + - [V0041JobDescMsgRlimitsAs](docs/V0041JobDescMsgRlimitsAs.md) + - [V0041JobDescMsgRlimitsCore](docs/V0041JobDescMsgRlimitsCore.md) + - [V0041JobDescMsgRlimitsCpu](docs/V0041JobDescMsgRlimitsCpu.md) + - [V0041JobDescMsgRlimitsData](docs/V0041JobDescMsgRlimitsData.md) + - [V0041JobDescMsgRlimitsFsize](docs/V0041JobDescMsgRlimitsFsize.md) + - [V0041JobDescMsgRlimitsMemlock](docs/V0041JobDescMsgRlimitsMemlock.md) + - [V0041JobDescMsgRlimitsNofile](docs/V0041JobDescMsgRlimitsNofile.md) + - [V0041JobDescMsgRlimitsNproc](docs/V0041JobDescMsgRlimitsNproc.md) + - [V0041JobDescMsgRlimitsRss](docs/V0041JobDescMsgRlimitsRss.md) + - [V0041JobDescMsgRlimitsStack](docs/V0041JobDescMsgRlimitsStack.md) + - [V0041JobDescMsgSegmentSize](docs/V0041JobDescMsgSegmentSize.md) + - [V0041JobDescMsgTimeLimit](docs/V0041JobDescMsgTimeLimit.md) + - [V0041JobDescMsgTimeMinimum](docs/V0041JobDescMsgTimeMinimum.md) + - [V0041JobSubmitReq](docs/V0041JobSubmitReq.md) + - [V0041KillJobsMsg](docs/V0041KillJobsMsg.md) + - [V0041OpenapiAccountsAddCondResp](docs/V0041OpenapiAccountsAddCondResp.md) + - [V0041OpenapiAccountsAddCondRespAccount](docs/V0041OpenapiAccountsAddCondRespAccount.md) + - [V0041OpenapiAccountsAddCondRespAssociationCondition](docs/V0041OpenapiAccountsAddCondRespAssociationCondition.md) + - [V0041OpenapiAccountsAddCondRespStr](docs/V0041OpenapiAccountsAddCondRespStr.md) + - [V0041OpenapiAccountsRemovedResp](docs/V0041OpenapiAccountsRemovedResp.md) + - [V0041OpenapiAccountsResp](docs/V0041OpenapiAccountsResp.md) + - [V0041OpenapiAssocsRemovedResp](docs/V0041OpenapiAssocsRemovedResp.md) + - [V0041OpenapiAssocsResp](docs/V0041OpenapiAssocsResp.md) + - [V0041OpenapiClustersRemovedResp](docs/V0041OpenapiClustersRemovedResp.md) + - [V0041OpenapiClustersResp](docs/V0041OpenapiClustersResp.md) + - [V0041OpenapiDiagResp](docs/V0041OpenapiDiagResp.md) + - [V0041OpenapiDiagRespStatistics](docs/V0041OpenapiDiagRespStatistics.md) + - [V0041OpenapiDiagRespStatisticsBfExit](docs/V0041OpenapiDiagRespStatisticsBfExit.md) + - [V0041OpenapiDiagRespStatisticsBfWhenLastCycle](docs/V0041OpenapiDiagRespStatisticsBfWhenLastCycle.md) + - [V0041OpenapiDiagRespStatisticsJobStatesTs](docs/V0041OpenapiDiagRespStatisticsJobStatesTs.md) + - [V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner](docs/V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.md) + - [V0041OpenapiDiagRespStatisticsPendingRpcsInner](docs/V0041OpenapiDiagRespStatisticsPendingRpcsInner.md) + - [V0041OpenapiDiagRespStatisticsReqTime](docs/V0041OpenapiDiagRespStatisticsReqTime.md) + - [V0041OpenapiDiagRespStatisticsReqTimeStart](docs/V0041OpenapiDiagRespStatisticsReqTimeStart.md) + - [V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner](docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.md) + - [V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime](docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md) + - [V0041OpenapiDiagRespStatisticsRpcsByUserInner](docs/V0041OpenapiDiagRespStatisticsRpcsByUserInner.md) + - [V0041OpenapiDiagRespStatisticsScheduleExit](docs/V0041OpenapiDiagRespStatisticsScheduleExit.md) + - [V0041OpenapiInstancesResp](docs/V0041OpenapiInstancesResp.md) + - [V0041OpenapiJobAllocResp](docs/V0041OpenapiJobAllocResp.md) + - [V0041OpenapiJobInfoResp](docs/V0041OpenapiJobInfoResp.md) + - [V0041OpenapiJobInfoRespJobsInner](docs/V0041OpenapiJobInfoRespJobsInner.md) + - [V0041OpenapiJobInfoRespJobsInnerAccrueTime](docs/V0041OpenapiJobInfoRespJobsInnerAccrueTime.md) + - [V0041OpenapiJobInfoRespJobsInnerArrayJobId](docs/V0041OpenapiJobInfoRespJobsInnerArrayJobId.md) + - [V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks](docs/V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.md) + - [V0041OpenapiJobInfoRespJobsInnerArrayTaskId](docs/V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md) + - [V0041OpenapiJobInfoRespJobsInnerBillableTres](docs/V0041OpenapiJobInfoRespJobsInnerBillableTres.md) + - [V0041OpenapiJobInfoRespJobsInnerCoresPerSocket](docs/V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.md) + - [V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor](docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.md) + - [V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum](docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.md) + - [V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum](docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.md) + - [V0041OpenapiJobInfoRespJobsInnerCpus](docs/V0041OpenapiJobInfoRespJobsInnerCpus.md) + - [V0041OpenapiJobInfoRespJobsInnerCpusPerTask](docs/V0041OpenapiJobInfoRespJobsInnerCpusPerTask.md) + - [V0041OpenapiJobInfoRespJobsInnerDeadline](docs/V0041OpenapiJobInfoRespJobsInnerDeadline.md) + - [V0041OpenapiJobInfoRespJobsInnerDelayBoot](docs/V0041OpenapiJobInfoRespJobsInnerDelayBoot.md) + - [V0041OpenapiJobInfoRespJobsInnerDerivedExitCode](docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md) + - [V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode](docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md) + - [V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal](docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md) + - [V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId](docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.md) + - [V0041OpenapiJobInfoRespJobsInnerEligibleTime](docs/V0041OpenapiJobInfoRespJobsInnerEligibleTime.md) + - [V0041OpenapiJobInfoRespJobsInnerEndTime](docs/V0041OpenapiJobInfoRespJobsInnerEndTime.md) + - [V0041OpenapiJobInfoRespJobsInnerExitCode](docs/V0041OpenapiJobInfoRespJobsInnerExitCode.md) + - [V0041OpenapiJobInfoRespJobsInnerHetJobId](docs/V0041OpenapiJobInfoRespJobsInnerHetJobId.md) + - [V0041OpenapiJobInfoRespJobsInnerHetJobOffset](docs/V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResources](docs/V0041OpenapiJobInfoRespJobsInnerJobResources.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes](docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner](docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus](docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory](docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner](docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner](docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.md) + - [V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore](docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.md) + - [V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation](docs/V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.md) + - [V0041OpenapiJobInfoRespJobsInnerMaxCpus](docs/V0041OpenapiJobInfoRespJobsInnerMaxCpus.md) + - [V0041OpenapiJobInfoRespJobsInnerMaxNodes](docs/V0041OpenapiJobInfoRespJobsInnerMaxNodes.md) + - [V0041OpenapiJobInfoRespJobsInnerMemoryPerNode](docs/V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md) + - [V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode](docs/V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.md) + - [V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode](docs/V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.md) + - [V0041OpenapiJobInfoRespJobsInnerNodeCount](docs/V0041OpenapiJobInfoRespJobsInnerNodeCount.md) + - [V0041OpenapiJobInfoRespJobsInnerPower](docs/V0041OpenapiJobInfoRespJobsInnerPower.md) + - [V0041OpenapiJobInfoRespJobsInnerPreSusTime](docs/V0041OpenapiJobInfoRespJobsInnerPreSusTime.md) + - [V0041OpenapiJobInfoRespJobsInnerPreemptTime](docs/V0041OpenapiJobInfoRespJobsInnerPreemptTime.md) + - [V0041OpenapiJobInfoRespJobsInnerPreemptableTime](docs/V0041OpenapiJobInfoRespJobsInnerPreemptableTime.md) + - [V0041OpenapiJobInfoRespJobsInnerResizeTime](docs/V0041OpenapiJobInfoRespJobsInnerResizeTime.md) + - [V0041OpenapiJobInfoRespJobsInnerSocketsPerNode](docs/V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.md) + - [V0041OpenapiJobInfoRespJobsInnerStartTime](docs/V0041OpenapiJobInfoRespJobsInnerStartTime.md) + - [V0041OpenapiJobInfoRespJobsInnerSubmitTime](docs/V0041OpenapiJobInfoRespJobsInnerSubmitTime.md) + - [V0041OpenapiJobInfoRespJobsInnerSuspendTime](docs/V0041OpenapiJobInfoRespJobsInnerSuspendTime.md) + - [V0041OpenapiJobInfoRespJobsInnerTasks](docs/V0041OpenapiJobInfoRespJobsInnerTasks.md) + - [V0041OpenapiJobInfoRespJobsInnerTasksPerBoard](docs/V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.md) + - [V0041OpenapiJobInfoRespJobsInnerTasksPerCore](docs/V0041OpenapiJobInfoRespJobsInnerTasksPerCore.md) + - [V0041OpenapiJobInfoRespJobsInnerTasksPerNode](docs/V0041OpenapiJobInfoRespJobsInnerTasksPerNode.md) + - [V0041OpenapiJobInfoRespJobsInnerTasksPerSocket](docs/V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.md) + - [V0041OpenapiJobInfoRespJobsInnerTasksPerTres](docs/V0041OpenapiJobInfoRespJobsInnerTasksPerTres.md) + - [V0041OpenapiJobInfoRespJobsInnerThreadsPerCore](docs/V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.md) + - [V0041OpenapiJobInfoRespLastBackfill](docs/V0041OpenapiJobInfoRespLastBackfill.md) + - [V0041OpenapiJobInfoRespLastUpdate](docs/V0041OpenapiJobInfoRespLastUpdate.md) + - [V0041OpenapiJobPostResponse](docs/V0041OpenapiJobPostResponse.md) + - [V0041OpenapiJobPostResponseResultsInner](docs/V0041OpenapiJobPostResponseResultsInner.md) + - [V0041OpenapiJobSubmitResponse](docs/V0041OpenapiJobSubmitResponse.md) + - [V0041OpenapiJobSubmitResponseResult](docs/V0041OpenapiJobSubmitResponseResult.md) + - [V0041OpenapiKillJobsResp](docs/V0041OpenapiKillJobsResp.md) + - [V0041OpenapiKillJobsRespStatusInner](docs/V0041OpenapiKillJobsRespStatusInner.md) + - [V0041OpenapiKillJobsRespStatusInnerError](docs/V0041OpenapiKillJobsRespStatusInnerError.md) + - [V0041OpenapiKillJobsRespStatusInnerFederation](docs/V0041OpenapiKillJobsRespStatusInnerFederation.md) + - [V0041OpenapiKillJobsRespStatusInnerJobId](docs/V0041OpenapiKillJobsRespStatusInnerJobId.md) + - [V0041OpenapiLicensesResp](docs/V0041OpenapiLicensesResp.md) + - [V0041OpenapiLicensesRespLastUpdate](docs/V0041OpenapiLicensesRespLastUpdate.md) + - [V0041OpenapiLicensesRespLicensesInner](docs/V0041OpenapiLicensesRespLicensesInner.md) + - [V0041OpenapiNodesResp](docs/V0041OpenapiNodesResp.md) + - [V0041OpenapiNodesRespLastUpdate](docs/V0041OpenapiNodesRespLastUpdate.md) + - [V0041OpenapiNodesRespNodesInner](docs/V0041OpenapiNodesRespNodesInner.md) + - [V0041OpenapiNodesRespNodesInnerBootTime](docs/V0041OpenapiNodesRespNodesInnerBootTime.md) + - [V0041OpenapiNodesRespNodesInnerEnergy](docs/V0041OpenapiNodesRespNodesInnerEnergy.md) + - [V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts](docs/V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.md) + - [V0041OpenapiNodesRespNodesInnerFreeMem](docs/V0041OpenapiNodesRespNodesInnerFreeMem.md) + - [V0041OpenapiNodesRespNodesInnerLastBusy](docs/V0041OpenapiNodesRespNodesInnerLastBusy.md) + - [V0041OpenapiNodesRespNodesInnerReasonChangedAt](docs/V0041OpenapiNodesRespNodesInnerReasonChangedAt.md) + - [V0041OpenapiNodesRespNodesInnerResumeAfter](docs/V0041OpenapiNodesRespNodesInnerResumeAfter.md) + - [V0041OpenapiNodesRespNodesInnerSlurmdStartTime](docs/V0041OpenapiNodesRespNodesInnerSlurmdStartTime.md) + - [V0041OpenapiPartitionResp](docs/V0041OpenapiPartitionResp.md) + - [V0041OpenapiPartitionRespLastUpdate](docs/V0041OpenapiPartitionRespLastUpdate.md) + - [V0041OpenapiPartitionRespPartitionsInner](docs/V0041OpenapiPartitionRespPartitionsInner.md) + - [V0041OpenapiPartitionRespPartitionsInnerAccounts](docs/V0041OpenapiPartitionRespPartitionsInnerAccounts.md) + - [V0041OpenapiPartitionRespPartitionsInnerCpus](docs/V0041OpenapiPartitionRespPartitionsInnerCpus.md) + - [V0041OpenapiPartitionRespPartitionsInnerDefaults](docs/V0041OpenapiPartitionRespPartitionsInnerDefaults.md) + - [V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu](docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.md) + - [V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode](docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.md) + - [V0041OpenapiPartitionRespPartitionsInnerDefaultsTime](docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.md) + - [V0041OpenapiPartitionRespPartitionsInnerGroups](docs/V0041OpenapiPartitionRespPartitionsInnerGroups.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximums](docs/V0041OpenapiPartitionRespPartitionsInnerMaximums.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.md) + - [V0041OpenapiPartitionRespPartitionsInnerMaximumsTime](docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.md) + - [V0041OpenapiPartitionRespPartitionsInnerMinimums](docs/V0041OpenapiPartitionRespPartitionsInnerMinimums.md) + - [V0041OpenapiPartitionRespPartitionsInnerNodes](docs/V0041OpenapiPartitionRespPartitionsInnerNodes.md) + - [V0041OpenapiPartitionRespPartitionsInnerPartition](docs/V0041OpenapiPartitionRespPartitionsInnerPartition.md) + - [V0041OpenapiPartitionRespPartitionsInnerPriority](docs/V0041OpenapiPartitionRespPartitionsInnerPriority.md) + - [V0041OpenapiPartitionRespPartitionsInnerQos](docs/V0041OpenapiPartitionRespPartitionsInnerQos.md) + - [V0041OpenapiPartitionRespPartitionsInnerSuspendTime](docs/V0041OpenapiPartitionRespPartitionsInnerSuspendTime.md) + - [V0041OpenapiPartitionRespPartitionsInnerTimeouts](docs/V0041OpenapiPartitionRespPartitionsInnerTimeouts.md) + - [V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume](docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.md) + - [V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend](docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.md) + - [V0041OpenapiPartitionRespPartitionsInnerTres](docs/V0041OpenapiPartitionRespPartitionsInnerTres.md) + - [V0041OpenapiPingArrayResp](docs/V0041OpenapiPingArrayResp.md) + - [V0041OpenapiPingArrayRespPingsInner](docs/V0041OpenapiPingArrayRespPingsInner.md) + - [V0041OpenapiReservationResp](docs/V0041OpenapiReservationResp.md) + - [V0041OpenapiReservationRespLastUpdate](docs/V0041OpenapiReservationRespLastUpdate.md) + - [V0041OpenapiReservationRespReservationsInner](docs/V0041OpenapiReservationRespReservationsInner.md) + - [V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner](docs/V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.md) + - [V0041OpenapiReservationRespReservationsInnerEndTime](docs/V0041OpenapiReservationRespReservationsInnerEndTime.md) + - [V0041OpenapiReservationRespReservationsInnerPurgeCompleted](docs/V0041OpenapiReservationRespReservationsInnerPurgeCompleted.md) + - [V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime](docs/V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.md) + - [V0041OpenapiReservationRespReservationsInnerStartTime](docs/V0041OpenapiReservationRespReservationsInnerStartTime.md) + - [V0041OpenapiReservationRespReservationsInnerWatts](docs/V0041OpenapiReservationRespReservationsInnerWatts.md) + - [V0041OpenapiResp](docs/V0041OpenapiResp.md) + - [V0041OpenapiSharesResp](docs/V0041OpenapiSharesResp.md) + - [V0041OpenapiSharesRespErrorsInner](docs/V0041OpenapiSharesRespErrorsInner.md) + - [V0041OpenapiSharesRespMeta](docs/V0041OpenapiSharesRespMeta.md) + - [V0041OpenapiSharesRespMetaClient](docs/V0041OpenapiSharesRespMetaClient.md) + - [V0041OpenapiSharesRespMetaPlugin](docs/V0041OpenapiSharesRespMetaPlugin.md) + - [V0041OpenapiSharesRespMetaSlurm](docs/V0041OpenapiSharesRespMetaSlurm.md) + - [V0041OpenapiSharesRespMetaSlurmVersion](docs/V0041OpenapiSharesRespMetaSlurmVersion.md) + - [V0041OpenapiSharesRespShares](docs/V0041OpenapiSharesRespShares.md) + - [V0041OpenapiSharesRespSharesSharesInner](docs/V0041OpenapiSharesRespSharesSharesInner.md) + - [V0041OpenapiSharesRespSharesSharesInnerFairshare](docs/V0041OpenapiSharesRespSharesSharesInnerFairshare.md) + - [V0041OpenapiSharesRespSharesSharesInnerShares](docs/V0041OpenapiSharesRespSharesSharesInnerShares.md) + - [V0041OpenapiSharesRespSharesSharesInnerSharesNormalized](docs/V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.md) + - [V0041OpenapiSharesRespSharesSharesInnerTres](docs/V0041OpenapiSharesRespSharesSharesInnerTres.md) + - [V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner](docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md) + - [V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue](docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.md) + - [V0041OpenapiSharesRespSharesSharesInnerTresUsageInner](docs/V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.md) + - [V0041OpenapiSharesRespSharesSharesInnerUsageNormalized](docs/V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.md) + - [V0041OpenapiSharesRespWarningsInner](docs/V0041OpenapiSharesRespWarningsInner.md) + - [V0041OpenapiSlurmdbdConfigResp](docs/V0041OpenapiSlurmdbdConfigResp.md) + - [V0041OpenapiSlurmdbdConfigRespAccountsInner](docs/V0041OpenapiSlurmdbdConfigRespAccountsInner.md) + - [V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner](docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md) + - [V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner](docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInner](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInner.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.md) + - [V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority](docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md) + - [V0041OpenapiSlurmdbdConfigRespClustersInner](docs/V0041OpenapiSlurmdbdConfigRespClustersInner.md) + - [V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations](docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.md) + - [V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot](docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.md) + - [V0041OpenapiSlurmdbdConfigRespClustersInnerController](docs/V0041OpenapiSlurmdbdConfigRespClustersInnerController.md) + - [V0041OpenapiSlurmdbdConfigRespInstancesInner](docs/V0041OpenapiSlurmdbdConfigRespInstancesInner.md) + - [V0041OpenapiSlurmdbdConfigRespInstancesInnerTime](docs/V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md) + - [V0041OpenapiSlurmdbdConfigRespQosInner](docs/V0041OpenapiSlurmdbdConfigRespQosInner.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimits](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimits.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer](docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerPreempt](docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime](docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerPriority](docs/V0041OpenapiSlurmdbdConfigRespQosInnerPriority.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor](docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.md) + - [V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold](docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.md) + - [V0041OpenapiSlurmdbdConfigRespUsersInner](docs/V0041OpenapiSlurmdbdConfigRespUsersInner.md) + - [V0041OpenapiSlurmdbdConfigRespUsersInnerDefault](docs/V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.md) + - [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner](docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md) + - [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner](docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md) + - [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated](docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.md) + - [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES](docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.md) + - [V0041OpenapiSlurmdbdJobsResp](docs/V0041OpenapiSlurmdbdJobsResp.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInner](docs/V0041OpenapiSlurmdbdJobsRespJobsInner.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerArray](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArray.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerComment](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerHet](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerHet.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerMcs](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerRequired](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerReservation](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerState](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerState.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerTime](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTime.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerTres](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTres.md) + - [V0041OpenapiSlurmdbdJobsRespJobsInnerWckey](docs/V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.md) + - [V0041OpenapiSlurmdbdQosRemovedResp](docs/V0041OpenapiSlurmdbdQosRemovedResp.md) + - [V0041OpenapiSlurmdbdQosResp](docs/V0041OpenapiSlurmdbdQosResp.md) + - [V0041OpenapiSlurmdbdStatsResp](docs/V0041OpenapiSlurmdbdStatsResp.md) + - [V0041OpenapiSlurmdbdStatsRespStatistics](docs/V0041OpenapiSlurmdbdStatsRespStatistics.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRollups](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollups.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration](docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md) + - [V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner](docs/V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.md) + - [V0041OpenapiTresResp](docs/V0041OpenapiTresResp.md) + - [V0041OpenapiUsersAddCondResp](docs/V0041OpenapiUsersAddCondResp.md) + - [V0041OpenapiUsersAddCondRespAssociationCondition](docs/V0041OpenapiUsersAddCondRespAssociationCondition.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociation](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.md) + - [V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh](docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.md) + - [V0041OpenapiUsersAddCondRespStr](docs/V0041OpenapiUsersAddCondRespStr.md) + - [V0041OpenapiUsersAddCondRespUser](docs/V0041OpenapiUsersAddCondRespUser.md) + - [V0041OpenapiUsersResp](docs/V0041OpenapiUsersResp.md) + - [V0041OpenapiWckeyRemovedResp](docs/V0041OpenapiWckeyRemovedResp.md) + - [V0041OpenapiWckeyResp](docs/V0041OpenapiWckeyResp.md) + - [V0041UpdateNodeMsg](docs/V0041UpdateNodeMsg.md) + - [V0041UpdateNodeMsgResumeAfter](docs/V0041UpdateNodeMsgResumeAfter.md) + - [V0041UpdateNodeMsgWeight](docs/V0041UpdateNodeMsgWeight.md) + - [V0042Account](docs/V0042Account.md) + - [V0042AccountShort](docs/V0042AccountShort.md) + - [V0042Accounting](docs/V0042Accounting.md) + - [V0042AccountsAddCond](docs/V0042AccountsAddCond.md) + - [V0042AcctGatherEnergy](docs/V0042AcctGatherEnergy.md) + - [V0042Assoc](docs/V0042Assoc.md) + - [V0042AssocMax](docs/V0042AssocMax.md) + - [V0042AssocMaxJobs](docs/V0042AssocMaxJobs.md) + - [V0042AssocMaxJobsPer](docs/V0042AssocMaxJobsPer.md) + - [V0042AssocMaxPer](docs/V0042AssocMaxPer.md) + - [V0042AssocMaxPerAccount](docs/V0042AssocMaxPerAccount.md) + - [V0042AssocMaxTres](docs/V0042AssocMaxTres.md) + - [V0042AssocMaxTresGroup](docs/V0042AssocMaxTresGroup.md) + - [V0042AssocMaxTresMinutes](docs/V0042AssocMaxTresMinutes.md) + - [V0042AssocMaxTresPer](docs/V0042AssocMaxTresPer.md) + - [V0042AssocMin](docs/V0042AssocMin.md) + - [V0042AssocRecSet](docs/V0042AssocRecSet.md) + - [V0042AssocSharesObjWrap](docs/V0042AssocSharesObjWrap.md) + - [V0042AssocSharesObjWrapFairshare](docs/V0042AssocSharesObjWrapFairshare.md) + - [V0042AssocSharesObjWrapTres](docs/V0042AssocSharesObjWrapTres.md) + - [V0042AssocShort](docs/V0042AssocShort.md) + - [V0042BfExitFields](docs/V0042BfExitFields.md) + - [V0042ClusterRec](docs/V0042ClusterRec.md) + - [V0042ClusterRecAssociations](docs/V0042ClusterRecAssociations.md) + - [V0042ControllerPing](docs/V0042ControllerPing.md) + - [V0042Coord](docs/V0042Coord.md) + - [V0042CronEntry](docs/V0042CronEntry.md) + - [V0042Float64NoValStruct](docs/V0042Float64NoValStruct.md) + - [V0042Instance](docs/V0042Instance.md) + - [V0042Job](docs/V0042Job.md) + - [V0042JobAllocReq](docs/V0042JobAllocReq.md) + - [V0042JobArray](docs/V0042JobArray.md) + - [V0042JobArrayResponseMsgEntry](docs/V0042JobArrayResponseMsgEntry.md) + - [V0042JobDescMsg](docs/V0042JobDescMsg.md) + - [V0042JobDescMsgRlimits](docs/V0042JobDescMsgRlimits.md) + - [V0042JobHet](docs/V0042JobHet.md) + - [V0042JobInfo](docs/V0042JobInfo.md) + - [V0042JobRequired](docs/V0042JobRequired.md) + - [V0042JobRes](docs/V0042JobRes.md) + - [V0042JobResCore](docs/V0042JobResCore.md) + - [V0042JobResNode](docs/V0042JobResNode.md) + - [V0042JobResNodes](docs/V0042JobResNodes.md) + - [V0042JobResSocket](docs/V0042JobResSocket.md) + - [V0042JobState](docs/V0042JobState.md) + - [V0042JobSubmitReq](docs/V0042JobSubmitReq.md) + - [V0042JobTime](docs/V0042JobTime.md) + - [V0042JobTres](docs/V0042JobTres.md) + - [V0042KillJobsMsg](docs/V0042KillJobsMsg.md) + - [V0042KillJobsRespJob](docs/V0042KillJobsRespJob.md) + - [V0042License](docs/V0042License.md) + - [V0042Node](docs/V0042Node.md) + - [V0042OpenapiAccountsAddCondResp](docs/V0042OpenapiAccountsAddCondResp.md) + - [V0042OpenapiAccountsAddCondRespStr](docs/V0042OpenapiAccountsAddCondRespStr.md) + - [V0042OpenapiAccountsRemovedResp](docs/V0042OpenapiAccountsRemovedResp.md) + - [V0042OpenapiAccountsResp](docs/V0042OpenapiAccountsResp.md) + - [V0042OpenapiAssocsRemovedResp](docs/V0042OpenapiAssocsRemovedResp.md) + - [V0042OpenapiAssocsResp](docs/V0042OpenapiAssocsResp.md) + - [V0042OpenapiClustersRemovedResp](docs/V0042OpenapiClustersRemovedResp.md) + - [V0042OpenapiClustersResp](docs/V0042OpenapiClustersResp.md) + - [V0042OpenapiDiagResp](docs/V0042OpenapiDiagResp.md) + - [V0042OpenapiError](docs/V0042OpenapiError.md) + - [V0042OpenapiInstancesResp](docs/V0042OpenapiInstancesResp.md) + - [V0042OpenapiJobAllocResp](docs/V0042OpenapiJobAllocResp.md) + - [V0042OpenapiJobInfoResp](docs/V0042OpenapiJobInfoResp.md) + - [V0042OpenapiJobPostResponse](docs/V0042OpenapiJobPostResponse.md) + - [V0042OpenapiJobSubmitResponse](docs/V0042OpenapiJobSubmitResponse.md) + - [V0042OpenapiKillJobResp](docs/V0042OpenapiKillJobResp.md) + - [V0042OpenapiKillJobsResp](docs/V0042OpenapiKillJobsResp.md) + - [V0042OpenapiLicensesResp](docs/V0042OpenapiLicensesResp.md) + - [V0042OpenapiMeta](docs/V0042OpenapiMeta.md) + - [V0042OpenapiNodesResp](docs/V0042OpenapiNodesResp.md) + - [V0042OpenapiPartitionResp](docs/V0042OpenapiPartitionResp.md) + - [V0042OpenapiPingArrayResp](docs/V0042OpenapiPingArrayResp.md) + - [V0042OpenapiReservationResp](docs/V0042OpenapiReservationResp.md) + - [V0042OpenapiResp](docs/V0042OpenapiResp.md) + - [V0042OpenapiSharesResp](docs/V0042OpenapiSharesResp.md) + - [V0042OpenapiSlurmdbdConfigResp](docs/V0042OpenapiSlurmdbdConfigResp.md) + - [V0042OpenapiSlurmdbdJobsResp](docs/V0042OpenapiSlurmdbdJobsResp.md) + - [V0042OpenapiSlurmdbdPingResp](docs/V0042OpenapiSlurmdbdPingResp.md) + - [V0042OpenapiSlurmdbdQosRemovedResp](docs/V0042OpenapiSlurmdbdQosRemovedResp.md) + - [V0042OpenapiSlurmdbdQosResp](docs/V0042OpenapiSlurmdbdQosResp.md) + - [V0042OpenapiSlurmdbdStatsResp](docs/V0042OpenapiSlurmdbdStatsResp.md) + - [V0042OpenapiTresResp](docs/V0042OpenapiTresResp.md) + - [V0042OpenapiUsersAddCondResp](docs/V0042OpenapiUsersAddCondResp.md) + - [V0042OpenapiUsersAddCondRespStr](docs/V0042OpenapiUsersAddCondRespStr.md) + - [V0042OpenapiUsersResp](docs/V0042OpenapiUsersResp.md) + - [V0042OpenapiWarning](docs/V0042OpenapiWarning.md) + - [V0042OpenapiWckeyRemovedResp](docs/V0042OpenapiWckeyRemovedResp.md) + - [V0042OpenapiWckeyResp](docs/V0042OpenapiWckeyResp.md) + - [V0042PartPrio](docs/V0042PartPrio.md) + - [V0042PartitionInfo](docs/V0042PartitionInfo.md) + - [V0042PartitionInfoDefaults](docs/V0042PartitionInfoDefaults.md) + - [V0042PartitionInfoMaximums](docs/V0042PartitionInfoMaximums.md) + - [V0042PartitionInfoMaximumsOversubscribe](docs/V0042PartitionInfoMaximumsOversubscribe.md) + - [V0042PartitionInfoPartition](docs/V0042PartitionInfoPartition.md) + - [V0042PartitionInfoTimeouts](docs/V0042PartitionInfoTimeouts.md) + - [V0042ProcessExitCodeVerbose](docs/V0042ProcessExitCodeVerbose.md) + - [V0042ProcessExitCodeVerboseSignal](docs/V0042ProcessExitCodeVerboseSignal.md) + - [V0042Qos](docs/V0042Qos.md) + - [V0042QosLimits](docs/V0042QosLimits.md) + - [V0042QosLimitsMax](docs/V0042QosLimitsMax.md) + - [V0042QosLimitsMaxActiveJobs](docs/V0042QosLimitsMaxActiveJobs.md) + - [V0042QosLimitsMaxJobs](docs/V0042QosLimitsMaxJobs.md) + - [V0042QosLimitsMaxJobsActiveJobs](docs/V0042QosLimitsMaxJobsActiveJobs.md) + - [V0042QosLimitsMaxJobsActiveJobsPer](docs/V0042QosLimitsMaxJobsActiveJobsPer.md) + - [V0042QosLimitsMaxTres](docs/V0042QosLimitsMaxTres.md) + - [V0042QosLimitsMaxTresMinutes](docs/V0042QosLimitsMaxTresMinutes.md) + - [V0042QosLimitsMaxTresMinutesPer](docs/V0042QosLimitsMaxTresMinutesPer.md) + - [V0042QosLimitsMaxTresPer](docs/V0042QosLimitsMaxTresPer.md) + - [V0042QosLimitsMaxWallClock](docs/V0042QosLimitsMaxWallClock.md) + - [V0042QosLimitsMaxWallClockPer](docs/V0042QosLimitsMaxWallClockPer.md) + - [V0042QosLimitsMin](docs/V0042QosLimitsMin.md) + - [V0042QosLimitsMinTres](docs/V0042QosLimitsMinTres.md) + - [V0042QosLimitsMinTresPer](docs/V0042QosLimitsMinTresPer.md) + - [V0042QosPreempt](docs/V0042QosPreempt.md) + - [V0042ReservationCoreSpec](docs/V0042ReservationCoreSpec.md) + - [V0042ReservationInfo](docs/V0042ReservationInfo.md) + - [V0042ReservationInfoPurgeCompleted](docs/V0042ReservationInfoPurgeCompleted.md) + - [V0042RollupStats](docs/V0042RollupStats.md) + - [V0042ScheduleExitFields](docs/V0042ScheduleExitFields.md) + - [V0042SharesFloat128Tres](docs/V0042SharesFloat128Tres.md) + - [V0042SharesRespMsg](docs/V0042SharesRespMsg.md) + - [V0042SharesUint64Tres](docs/V0042SharesUint64Tres.md) + - [V0042SlurmdbdPing](docs/V0042SlurmdbdPing.md) + - [V0042StatsMsg](docs/V0042StatsMsg.md) + - [V0042StatsMsgRpcDump](docs/V0042StatsMsgRpcDump.md) + - [V0042StatsMsgRpcQueue](docs/V0042StatsMsgRpcQueue.md) + - [V0042StatsMsgRpcType](docs/V0042StatsMsgRpcType.md) + - [V0042StatsMsgRpcUser](docs/V0042StatsMsgRpcUser.md) + - [V0042StatsRec](docs/V0042StatsRec.md) + - [V0042StatsRpc](docs/V0042StatsRpc.md) + - [V0042StatsUser](docs/V0042StatsUser.md) + - [V0042Step](docs/V0042Step.md) + - [V0042StepCPU](docs/V0042StepCPU.md) + - [V0042StepCPURequestedFrequency](docs/V0042StepCPURequestedFrequency.md) + - [V0042StepNodes](docs/V0042StepNodes.md) + - [V0042StepStatistics](docs/V0042StepStatistics.md) + - [V0042StepStatisticsEnergy](docs/V0042StepStatisticsEnergy.md) + - [V0042StepTime](docs/V0042StepTime.md) + - [V0042StepTres](docs/V0042StepTres.md) + - [V0042StepTresConsumed](docs/V0042StepTresConsumed.md) + - [V0042StepTresRequested](docs/V0042StepTresRequested.md) + - [V0042Tres](docs/V0042Tres.md) + - [V0042Uint16NoValStruct](docs/V0042Uint16NoValStruct.md) + - [V0042Uint32NoValStruct](docs/V0042Uint32NoValStruct.md) + - [V0042Uint64NoValStruct](docs/V0042Uint64NoValStruct.md) + - [V0042UpdateNodeMsg](docs/V0042UpdateNodeMsg.md) + - [V0042User](docs/V0042User.md) + - [V0042UserDefault](docs/V0042UserDefault.md) + - [V0042UserShort](docs/V0042UserShort.md) + - [V0042UsersAddCond](docs/V0042UsersAddCond.md) + - [V0042Wckey](docs/V0042Wckey.md) + - [V0042WckeyTagStruct](docs/V0042WckeyTagStruct.md) + - [V0043Account](docs/V0043Account.md) + - [V0043AccountShort](docs/V0043AccountShort.md) + - [V0043Accounting](docs/V0043Accounting.md) + - [V0043AccountsAddCond](docs/V0043AccountsAddCond.md) + - [V0043AcctGatherEnergy](docs/V0043AcctGatherEnergy.md) + - [V0043Assoc](docs/V0043Assoc.md) + - [V0043AssocMax](docs/V0043AssocMax.md) + - [V0043AssocMaxJobs](docs/V0043AssocMaxJobs.md) + - [V0043AssocMaxJobsPer](docs/V0043AssocMaxJobsPer.md) + - [V0043AssocMaxPer](docs/V0043AssocMaxPer.md) + - [V0043AssocMaxPerAccount](docs/V0043AssocMaxPerAccount.md) + - [V0043AssocMaxTres](docs/V0043AssocMaxTres.md) + - [V0043AssocMaxTresGroup](docs/V0043AssocMaxTresGroup.md) + - [V0043AssocMaxTresMinutes](docs/V0043AssocMaxTresMinutes.md) + - [V0043AssocMaxTresPer](docs/V0043AssocMaxTresPer.md) + - [V0043AssocMin](docs/V0043AssocMin.md) + - [V0043AssocRecSet](docs/V0043AssocRecSet.md) + - [V0043AssocSharesObjWrap](docs/V0043AssocSharesObjWrap.md) + - [V0043AssocSharesObjWrapFairshare](docs/V0043AssocSharesObjWrapFairshare.md) + - [V0043AssocSharesObjWrapTres](docs/V0043AssocSharesObjWrapTres.md) + - [V0043AssocShort](docs/V0043AssocShort.md) + - [V0043BfExitFields](docs/V0043BfExitFields.md) + - [V0043ClusterRec](docs/V0043ClusterRec.md) + - [V0043ClusterRecAssociations](docs/V0043ClusterRecAssociations.md) + - [V0043ControllerPing](docs/V0043ControllerPing.md) + - [V0043Coord](docs/V0043Coord.md) + - [V0043CronEntry](docs/V0043CronEntry.md) + - [V0043Float64NoValStruct](docs/V0043Float64NoValStruct.md) + - [V0043Instance](docs/V0043Instance.md) + - [V0043Job](docs/V0043Job.md) + - [V0043JobAllocReq](docs/V0043JobAllocReq.md) + - [V0043JobArray](docs/V0043JobArray.md) + - [V0043JobArrayResponseMsgEntry](docs/V0043JobArrayResponseMsgEntry.md) + - [V0043JobDescMsg](docs/V0043JobDescMsg.md) + - [V0043JobDescMsgRlimits](docs/V0043JobDescMsgRlimits.md) + - [V0043JobHet](docs/V0043JobHet.md) + - [V0043JobInfo](docs/V0043JobInfo.md) + - [V0043JobRequired](docs/V0043JobRequired.md) + - [V0043JobRes](docs/V0043JobRes.md) + - [V0043JobResCore](docs/V0043JobResCore.md) + - [V0043JobResNode](docs/V0043JobResNode.md) + - [V0043JobResNodes](docs/V0043JobResNodes.md) + - [V0043JobResSocket](docs/V0043JobResSocket.md) + - [V0043JobSubmitReq](docs/V0043JobSubmitReq.md) + - [V0043JobTime](docs/V0043JobTime.md) + - [V0043JobTres](docs/V0043JobTres.md) + - [V0043KillJobsMsg](docs/V0043KillJobsMsg.md) + - [V0043KillJobsRespJob](docs/V0043KillJobsRespJob.md) + - [V0043License](docs/V0043License.md) + - [V0043Node](docs/V0043Node.md) + - [V0043OpenapiAccountsAddCondResp](docs/V0043OpenapiAccountsAddCondResp.md) + - [V0043OpenapiAccountsAddCondRespStr](docs/V0043OpenapiAccountsAddCondRespStr.md) + - [V0043OpenapiAccountsRemovedResp](docs/V0043OpenapiAccountsRemovedResp.md) + - [V0043OpenapiAccountsResp](docs/V0043OpenapiAccountsResp.md) + - [V0043OpenapiAssocsRemovedResp](docs/V0043OpenapiAssocsRemovedResp.md) + - [V0043OpenapiAssocsResp](docs/V0043OpenapiAssocsResp.md) + - [V0043OpenapiClustersRemovedResp](docs/V0043OpenapiClustersRemovedResp.md) + - [V0043OpenapiClustersResp](docs/V0043OpenapiClustersResp.md) + - [V0043OpenapiDiagResp](docs/V0043OpenapiDiagResp.md) + - [V0043OpenapiError](docs/V0043OpenapiError.md) + - [V0043OpenapiInstancesResp](docs/V0043OpenapiInstancesResp.md) + - [V0043OpenapiJobAllocResp](docs/V0043OpenapiJobAllocResp.md) + - [V0043OpenapiJobInfoResp](docs/V0043OpenapiJobInfoResp.md) + - [V0043OpenapiJobPostResponse](docs/V0043OpenapiJobPostResponse.md) + - [V0043OpenapiJobSubmitResponse](docs/V0043OpenapiJobSubmitResponse.md) + - [V0043OpenapiKillJobResp](docs/V0043OpenapiKillJobResp.md) + - [V0043OpenapiKillJobsResp](docs/V0043OpenapiKillJobsResp.md) + - [V0043OpenapiLicensesResp](docs/V0043OpenapiLicensesResp.md) + - [V0043OpenapiMeta](docs/V0043OpenapiMeta.md) + - [V0043OpenapiNodesResp](docs/V0043OpenapiNodesResp.md) + - [V0043OpenapiPartitionResp](docs/V0043OpenapiPartitionResp.md) + - [V0043OpenapiPingArrayResp](docs/V0043OpenapiPingArrayResp.md) + - [V0043OpenapiReservationModResp](docs/V0043OpenapiReservationModResp.md) + - [V0043OpenapiReservationResp](docs/V0043OpenapiReservationResp.md) + - [V0043OpenapiResp](docs/V0043OpenapiResp.md) + - [V0043OpenapiSharesResp](docs/V0043OpenapiSharesResp.md) + - [V0043OpenapiSlurmdbdConfigResp](docs/V0043OpenapiSlurmdbdConfigResp.md) + - [V0043OpenapiSlurmdbdJobsResp](docs/V0043OpenapiSlurmdbdJobsResp.md) + - [V0043OpenapiSlurmdbdPingResp](docs/V0043OpenapiSlurmdbdPingResp.md) + - [V0043OpenapiSlurmdbdQosRemovedResp](docs/V0043OpenapiSlurmdbdQosRemovedResp.md) + - [V0043OpenapiSlurmdbdQosResp](docs/V0043OpenapiSlurmdbdQosResp.md) + - [V0043OpenapiSlurmdbdStatsResp](docs/V0043OpenapiSlurmdbdStatsResp.md) + - [V0043OpenapiTresResp](docs/V0043OpenapiTresResp.md) + - [V0043OpenapiUsersAddCondResp](docs/V0043OpenapiUsersAddCondResp.md) + - [V0043OpenapiUsersAddCondRespStr](docs/V0043OpenapiUsersAddCondRespStr.md) + - [V0043OpenapiUsersResp](docs/V0043OpenapiUsersResp.md) + - [V0043OpenapiWarning](docs/V0043OpenapiWarning.md) + - [V0043OpenapiWckeyRemovedResp](docs/V0043OpenapiWckeyRemovedResp.md) + - [V0043OpenapiWckeyResp](docs/V0043OpenapiWckeyResp.md) + - [V0043PartPrio](docs/V0043PartPrio.md) + - [V0043PartitionInfo](docs/V0043PartitionInfo.md) + - [V0043PartitionInfoDefaults](docs/V0043PartitionInfoDefaults.md) + - [V0043PartitionInfoMaximums](docs/V0043PartitionInfoMaximums.md) + - [V0043PartitionInfoTimeouts](docs/V0043PartitionInfoTimeouts.md) + - [V0043ProcessExitCodeVerbose](docs/V0043ProcessExitCodeVerbose.md) + - [V0043ProcessExitCodeVerboseSignal](docs/V0043ProcessExitCodeVerboseSignal.md) + - [V0043Qos](docs/V0043Qos.md) + - [V0043QosLimits](docs/V0043QosLimits.md) + - [V0043QosLimitsMax](docs/V0043QosLimitsMax.md) + - [V0043QosLimitsMaxActiveJobs](docs/V0043QosLimitsMaxActiveJobs.md) + - [V0043QosLimitsMaxJobs](docs/V0043QosLimitsMaxJobs.md) + - [V0043QosLimitsMaxJobsActiveJobs](docs/V0043QosLimitsMaxJobsActiveJobs.md) + - [V0043QosLimitsMaxJobsActiveJobsPer](docs/V0043QosLimitsMaxJobsActiveJobsPer.md) + - [V0043QosLimitsMaxTres](docs/V0043QosLimitsMaxTres.md) + - [V0043QosLimitsMaxTresMinutes](docs/V0043QosLimitsMaxTresMinutes.md) + - [V0043QosLimitsMaxTresMinutesPer](docs/V0043QosLimitsMaxTresMinutesPer.md) + - [V0043QosLimitsMaxTresPer](docs/V0043QosLimitsMaxTresPer.md) + - [V0043QosLimitsMaxWallClock](docs/V0043QosLimitsMaxWallClock.md) + - [V0043QosLimitsMaxWallClockPer](docs/V0043QosLimitsMaxWallClockPer.md) + - [V0043QosLimitsMin](docs/V0043QosLimitsMin.md) + - [V0043QosLimitsMinTres](docs/V0043QosLimitsMinTres.md) + - [V0043QosLimitsMinTresPer](docs/V0043QosLimitsMinTresPer.md) + - [V0043QosPreempt](docs/V0043QosPreempt.md) + - [V0043ReservationCoreSpec](docs/V0043ReservationCoreSpec.md) + - [V0043ReservationDescMsg](docs/V0043ReservationDescMsg.md) + - [V0043ReservationInfo](docs/V0043ReservationInfo.md) + - [V0043ReservationInfoPurgeCompleted](docs/V0043ReservationInfoPurgeCompleted.md) + - [V0043ReservationModReq](docs/V0043ReservationModReq.md) + - [V0043RollupStats](docs/V0043RollupStats.md) + - [V0043ScheduleExitFields](docs/V0043ScheduleExitFields.md) + - [V0043SharesFloat128Tres](docs/V0043SharesFloat128Tres.md) + - [V0043SharesRespMsg](docs/V0043SharesRespMsg.md) + - [V0043SharesUint64Tres](docs/V0043SharesUint64Tres.md) + - [V0043SlurmdbdPing](docs/V0043SlurmdbdPing.md) + - [V0043StatsMsg](docs/V0043StatsMsg.md) + - [V0043StatsMsgRpcDump](docs/V0043StatsMsgRpcDump.md) + - [V0043StatsMsgRpcQueue](docs/V0043StatsMsgRpcQueue.md) + - [V0043StatsMsgRpcType](docs/V0043StatsMsgRpcType.md) + - [V0043StatsMsgRpcUser](docs/V0043StatsMsgRpcUser.md) + - [V0043StatsRec](docs/V0043StatsRec.md) + - [V0043StatsRpc](docs/V0043StatsRpc.md) + - [V0043StatsUser](docs/V0043StatsUser.md) + - [V0043Step](docs/V0043Step.md) + - [V0043StepCPU](docs/V0043StepCPU.md) + - [V0043StepCPURequestedFrequency](docs/V0043StepCPURequestedFrequency.md) + - [V0043StepNodes](docs/V0043StepNodes.md) + - [V0043StepStatistics](docs/V0043StepStatistics.md) + - [V0043StepStatisticsEnergy](docs/V0043StepStatisticsEnergy.md) + - [V0043StepTime](docs/V0043StepTime.md) + - [V0043StepTres](docs/V0043StepTres.md) + - [V0043StepTresConsumed](docs/V0043StepTresConsumed.md) + - [V0043StepTresRequested](docs/V0043StepTresRequested.md) + - [V0043Tres](docs/V0043Tres.md) + - [V0043Uint16NoValStruct](docs/V0043Uint16NoValStruct.md) + - [V0043Uint32NoValStruct](docs/V0043Uint32NoValStruct.md) + - [V0043Uint64NoValStruct](docs/V0043Uint64NoValStruct.md) + - [V0043UpdateNodeMsg](docs/V0043UpdateNodeMsg.md) + - [V0043User](docs/V0043User.md) + - [V0043UserShort](docs/V0043UserShort.md) + - [V0043UsersAddCond](docs/V0043UsersAddCond.md) + - [V0043Wckey](docs/V0043Wckey.md) + - [V0043WckeyTagStruct](docs/V0043WckeyTagStruct.md) + - [V0044Account](docs/V0044Account.md) + - [V0044AccountShort](docs/V0044AccountShort.md) + - [V0044Accounting](docs/V0044Accounting.md) + - [V0044AccountingAllocated](docs/V0044AccountingAllocated.md) + - [V0044AccountsAddCond](docs/V0044AccountsAddCond.md) + - [V0044AcctGatherEnergy](docs/V0044AcctGatherEnergy.md) + - [V0044Assoc](docs/V0044Assoc.md) + - [V0044AssocMax](docs/V0044AssocMax.md) + - [V0044AssocMaxJobs](docs/V0044AssocMaxJobs.md) + - [V0044AssocMaxJobsPer](docs/V0044AssocMaxJobsPer.md) + - [V0044AssocMaxPer](docs/V0044AssocMaxPer.md) + - [V0044AssocMaxPerAccount](docs/V0044AssocMaxPerAccount.md) + - [V0044AssocMaxTres](docs/V0044AssocMaxTres.md) + - [V0044AssocMaxTresGroup](docs/V0044AssocMaxTresGroup.md) + - [V0044AssocMaxTresMinutes](docs/V0044AssocMaxTresMinutes.md) + - [V0044AssocMaxTresPer](docs/V0044AssocMaxTresPer.md) + - [V0044AssocMin](docs/V0044AssocMin.md) + - [V0044AssocRecSet](docs/V0044AssocRecSet.md) + - [V0044AssocSharesObjWrap](docs/V0044AssocSharesObjWrap.md) + - [V0044AssocSharesObjWrapFairshare](docs/V0044AssocSharesObjWrapFairshare.md) + - [V0044AssocSharesObjWrapTres](docs/V0044AssocSharesObjWrapTres.md) + - [V0044AssocShort](docs/V0044AssocShort.md) + - [V0044BfExitFields](docs/V0044BfExitFields.md) + - [V0044ClusterRec](docs/V0044ClusterRec.md) + - [V0044ClusterRecAssociations](docs/V0044ClusterRecAssociations.md) + - [V0044ControllerPing](docs/V0044ControllerPing.md) + - [V0044Coord](docs/V0044Coord.md) + - [V0044CronEntry](docs/V0044CronEntry.md) + - [V0044Float64NoValStruct](docs/V0044Float64NoValStruct.md) + - [V0044Instance](docs/V0044Instance.md) + - [V0044InstanceTime](docs/V0044InstanceTime.md) + - [V0044Job](docs/V0044Job.md) + - [V0044JobAllocReq](docs/V0044JobAllocReq.md) + - [V0044JobArray](docs/V0044JobArray.md) + - [V0044JobArrayResponseMsgEntry](docs/V0044JobArrayResponseMsgEntry.md) + - [V0044JobDescMsg](docs/V0044JobDescMsg.md) + - [V0044JobDescMsgRlimits](docs/V0044JobDescMsgRlimits.md) + - [V0044JobHet](docs/V0044JobHet.md) + - [V0044JobInfo](docs/V0044JobInfo.md) + - [V0044JobModify](docs/V0044JobModify.md) + - [V0044JobModifyTres](docs/V0044JobModifyTres.md) + - [V0044JobRequired](docs/V0044JobRequired.md) + - [V0044JobRes](docs/V0044JobRes.md) + - [V0044JobResCore](docs/V0044JobResCore.md) + - [V0044JobResNode](docs/V0044JobResNode.md) + - [V0044JobResNodes](docs/V0044JobResNodes.md) + - [V0044JobResSocket](docs/V0044JobResSocket.md) + - [V0044JobReservation](docs/V0044JobReservation.md) + - [V0044JobState](docs/V0044JobState.md) + - [V0044JobSubmitReq](docs/V0044JobSubmitReq.md) + - [V0044JobTime](docs/V0044JobTime.md) + - [V0044JobTres](docs/V0044JobTres.md) + - [V0044KillJobsMsg](docs/V0044KillJobsMsg.md) + - [V0044KillJobsRespJob](docs/V0044KillJobsRespJob.md) + - [V0044License](docs/V0044License.md) + - [V0044Node](docs/V0044Node.md) + - [V0044NodeGresLayout](docs/V0044NodeGresLayout.md) + - [V0044NodeResourceLayout](docs/V0044NodeResourceLayout.md) + - [V0044OpenapiAccountsAddCondResp](docs/V0044OpenapiAccountsAddCondResp.md) + - [V0044OpenapiAccountsAddCondRespStr](docs/V0044OpenapiAccountsAddCondRespStr.md) + - [V0044OpenapiAccountsRemovedResp](docs/V0044OpenapiAccountsRemovedResp.md) + - [V0044OpenapiAccountsResp](docs/V0044OpenapiAccountsResp.md) + - [V0044OpenapiAssocsRemovedResp](docs/V0044OpenapiAssocsRemovedResp.md) + - [V0044OpenapiAssocsResp](docs/V0044OpenapiAssocsResp.md) + - [V0044OpenapiClustersRemovedResp](docs/V0044OpenapiClustersRemovedResp.md) + - [V0044OpenapiClustersResp](docs/V0044OpenapiClustersResp.md) + - [V0044OpenapiCreateNodeReq](docs/V0044OpenapiCreateNodeReq.md) + - [V0044OpenapiDiagResp](docs/V0044OpenapiDiagResp.md) + - [V0044OpenapiError](docs/V0044OpenapiError.md) + - [V0044OpenapiHostlistReqResp](docs/V0044OpenapiHostlistReqResp.md) + - [V0044OpenapiHostnamesReqResp](docs/V0044OpenapiHostnamesReqResp.md) + - [V0044OpenapiInstancesResp](docs/V0044OpenapiInstancesResp.md) + - [V0044OpenapiJobAllocResp](docs/V0044OpenapiJobAllocResp.md) + - [V0044OpenapiJobInfoResp](docs/V0044OpenapiJobInfoResp.md) + - [V0044OpenapiJobModifyReq](docs/V0044OpenapiJobModifyReq.md) + - [V0044OpenapiJobModifyResp](docs/V0044OpenapiJobModifyResp.md) + - [V0044OpenapiJobPostResponse](docs/V0044OpenapiJobPostResponse.md) + - [V0044OpenapiJobSubmitResponse](docs/V0044OpenapiJobSubmitResponse.md) + - [V0044OpenapiKillJobResp](docs/V0044OpenapiKillJobResp.md) + - [V0044OpenapiKillJobsResp](docs/V0044OpenapiKillJobsResp.md) + - [V0044OpenapiLicensesResp](docs/V0044OpenapiLicensesResp.md) + - [V0044OpenapiMeta](docs/V0044OpenapiMeta.md) + - [V0044OpenapiNodesResp](docs/V0044OpenapiNodesResp.md) + - [V0044OpenapiPartitionResp](docs/V0044OpenapiPartitionResp.md) + - [V0044OpenapiPingArrayResp](docs/V0044OpenapiPingArrayResp.md) + - [V0044OpenapiReservationModResp](docs/V0044OpenapiReservationModResp.md) + - [V0044OpenapiReservationResp](docs/V0044OpenapiReservationResp.md) + - [V0044OpenapiResourceLayoutResp](docs/V0044OpenapiResourceLayoutResp.md) + - [V0044OpenapiResp](docs/V0044OpenapiResp.md) + - [V0044OpenapiSharesResp](docs/V0044OpenapiSharesResp.md) + - [V0044OpenapiSlurmdbdConfigResp](docs/V0044OpenapiSlurmdbdConfigResp.md) + - [V0044OpenapiSlurmdbdJobsResp](docs/V0044OpenapiSlurmdbdJobsResp.md) + - [V0044OpenapiSlurmdbdPingResp](docs/V0044OpenapiSlurmdbdPingResp.md) + - [V0044OpenapiSlurmdbdQosRemovedResp](docs/V0044OpenapiSlurmdbdQosRemovedResp.md) + - [V0044OpenapiSlurmdbdQosResp](docs/V0044OpenapiSlurmdbdQosResp.md) + - [V0044OpenapiSlurmdbdStatsResp](docs/V0044OpenapiSlurmdbdStatsResp.md) + - [V0044OpenapiTresResp](docs/V0044OpenapiTresResp.md) + - [V0044OpenapiUsersAddCondResp](docs/V0044OpenapiUsersAddCondResp.md) + - [V0044OpenapiUsersAddCondRespStr](docs/V0044OpenapiUsersAddCondRespStr.md) + - [V0044OpenapiUsersResp](docs/V0044OpenapiUsersResp.md) + - [V0044OpenapiWarning](docs/V0044OpenapiWarning.md) + - [V0044OpenapiWckeyRemovedResp](docs/V0044OpenapiWckeyRemovedResp.md) + - [V0044OpenapiWckeyResp](docs/V0044OpenapiWckeyResp.md) + - [V0044PartPrio](docs/V0044PartPrio.md) + - [V0044PartitionInfo](docs/V0044PartitionInfo.md) + - [V0044PartitionInfoAccounts](docs/V0044PartitionInfoAccounts.md) + - [V0044PartitionInfoCpus](docs/V0044PartitionInfoCpus.md) + - [V0044PartitionInfoDefaults](docs/V0044PartitionInfoDefaults.md) + - [V0044PartitionInfoGroups](docs/V0044PartitionInfoGroups.md) + - [V0044PartitionInfoMaximums](docs/V0044PartitionInfoMaximums.md) + - [V0044PartitionInfoMinimums](docs/V0044PartitionInfoMinimums.md) + - [V0044PartitionInfoNodes](docs/V0044PartitionInfoNodes.md) + - [V0044PartitionInfoPriority](docs/V0044PartitionInfoPriority.md) + - [V0044PartitionInfoQos](docs/V0044PartitionInfoQos.md) + - [V0044PartitionInfoTimeouts](docs/V0044PartitionInfoTimeouts.md) + - [V0044PartitionInfoTres](docs/V0044PartitionInfoTres.md) + - [V0044ProcessExitCodeVerbose](docs/V0044ProcessExitCodeVerbose.md) + - [V0044ProcessExitCodeVerboseSignal](docs/V0044ProcessExitCodeVerboseSignal.md) + - [V0044Qos](docs/V0044Qos.md) + - [V0044QosLimits](docs/V0044QosLimits.md) + - [V0044QosLimitsMax](docs/V0044QosLimitsMax.md) + - [V0044QosLimitsMaxActiveJobs](docs/V0044QosLimitsMaxActiveJobs.md) + - [V0044QosLimitsMaxJobs](docs/V0044QosLimitsMaxJobs.md) + - [V0044QosLimitsMaxJobsActiveJobs](docs/V0044QosLimitsMaxJobsActiveJobs.md) + - [V0044QosLimitsMaxJobsActiveJobsPer](docs/V0044QosLimitsMaxJobsActiveJobsPer.md) + - [V0044QosLimitsMaxTres](docs/V0044QosLimitsMaxTres.md) + - [V0044QosLimitsMaxTresMinutes](docs/V0044QosLimitsMaxTresMinutes.md) + - [V0044QosLimitsMaxTresMinutesPer](docs/V0044QosLimitsMaxTresMinutesPer.md) + - [V0044QosLimitsMaxTresPer](docs/V0044QosLimitsMaxTresPer.md) + - [V0044QosLimitsMaxWallClock](docs/V0044QosLimitsMaxWallClock.md) + - [V0044QosLimitsMaxWallClockPer](docs/V0044QosLimitsMaxWallClockPer.md) + - [V0044QosLimitsMin](docs/V0044QosLimitsMin.md) + - [V0044QosLimitsMinTres](docs/V0044QosLimitsMinTres.md) + - [V0044QosLimitsMinTresPer](docs/V0044QosLimitsMinTresPer.md) + - [V0044QosPreempt](docs/V0044QosPreempt.md) + - [V0044ReservationCoreSpec](docs/V0044ReservationCoreSpec.md) + - [V0044ReservationDescMsg](docs/V0044ReservationDescMsg.md) + - [V0044ReservationInfo](docs/V0044ReservationInfo.md) + - [V0044ReservationInfoPurgeCompleted](docs/V0044ReservationInfoPurgeCompleted.md) + - [V0044ReservationModReq](docs/V0044ReservationModReq.md) + - [V0044RollupStats](docs/V0044RollupStats.md) + - [V0044RollupStatsDaily](docs/V0044RollupStatsDaily.md) + - [V0044RollupStatsHourly](docs/V0044RollupStatsHourly.md) + - [V0044RollupStatsMonthly](docs/V0044RollupStatsMonthly.md) + - [V0044ScheduleExitFields](docs/V0044ScheduleExitFields.md) + - [V0044SharesFloat128Tres](docs/V0044SharesFloat128Tres.md) + - [V0044SharesRespMsg](docs/V0044SharesRespMsg.md) + - [V0044SharesUint64Tres](docs/V0044SharesUint64Tres.md) + - [V0044SlurmStepId](docs/V0044SlurmStepId.md) + - [V0044SlurmdbdPing](docs/V0044SlurmdbdPing.md) + - [V0044StatsMsg](docs/V0044StatsMsg.md) + - [V0044StatsMsgRpcDump](docs/V0044StatsMsgRpcDump.md) + - [V0044StatsMsgRpcQueue](docs/V0044StatsMsgRpcQueue.md) + - [V0044StatsMsgRpcType](docs/V0044StatsMsgRpcType.md) + - [V0044StatsMsgRpcUser](docs/V0044StatsMsgRpcUser.md) + - [V0044StatsRec](docs/V0044StatsRec.md) + - [V0044StatsRpc](docs/V0044StatsRpc.md) + - [V0044StatsUser](docs/V0044StatsUser.md) + - [V0044Step](docs/V0044Step.md) + - [V0044StepCPU](docs/V0044StepCPU.md) + - [V0044StepCPURequestedFrequency](docs/V0044StepCPURequestedFrequency.md) + - [V0044StepNodes](docs/V0044StepNodes.md) + - [V0044StepStatistics](docs/V0044StepStatistics.md) + - [V0044StepStatisticsEnergy](docs/V0044StepStatisticsEnergy.md) + - [V0044StepStep](docs/V0044StepStep.md) + - [V0044StepTime](docs/V0044StepTime.md) + - [V0044StepTres](docs/V0044StepTres.md) + - [V0044StepTresConsumed](docs/V0044StepTresConsumed.md) + - [V0044StepTresRequested](docs/V0044StepTresRequested.md) + - [V0044Tres](docs/V0044Tres.md) + - [V0044Uint16NoValStruct](docs/V0044Uint16NoValStruct.md) + - [V0044Uint32NoValStruct](docs/V0044Uint32NoValStruct.md) + - [V0044Uint64NoValStruct](docs/V0044Uint64NoValStruct.md) + - [V0044UpdateNodeMsg](docs/V0044UpdateNodeMsg.md) + - [V0044User](docs/V0044User.md) + - [V0044UserDefault](docs/V0044UserDefault.md) + - [V0044UserShort](docs/V0044UserShort.md) + - [V0044UsersAddCond](docs/V0044UsersAddCond.md) + - [V0044Wckey](docs/V0044Wckey.md) + - [V0044WckeyTagStruct](docs/V0044WckeyTagStruct.md) + + + +## Documentation For Authorization + + +Authentication schemes defined for the API: + +### user + +- **Type**: API key +- **API key parameter name**: X-SLURM-USER-NAME +- **Location**: HTTP header + + +### token + +- **Type**: API key +- **API key parameter name**: X-SLURM-USER-TOKEN +- **Location**: HTTP header + + +### bearerAuth + +- **Type**: Bearer authentication (JWT) + + +## Author + +sales@schedmd.com + + diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index f1d9703..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,46 +0,0 @@ -services: - slurmctl: - image: ghcr.io/fasrc/slurmrest-container - hostname: slurmctl - container_name: slurmctl - volumes: - - share:/share - cap_add: - - sys_admin - tty: true # -t keep bash interactive - stdin_open: true # -i keep STDIN open - networks: - - compute - coldfront: - image: ghcr.io/fasrc/coldfront-builder - command: ["serve"] - hostname: coldfront - container_name: coldfront-test - volumes: - - ./coldfront/slurm_rest_coldfront:/opt/slurmrest - - share:/share - expose: - - "22" - networks: - - compute - mysql: - image: mariadb:10.4 - hostname: mysql - container_name: mysql - environment: - MYSQL_ALLOW_EMPTY_PASSWORD: "yes" - volumes: - - ./database:/docker-entrypoint-initdb.d - - ./database:/etc/mysql/conf.d - - var_lib_mysql:/var/lib/mysql - expose: - - "3306" - networks: - - compute - -networks: - compute: - -volumes: - var_lib_mysql: - share: diff --git a/docs/SlurmApi.md b/docs/SlurmApi.md new file mode 100644 index 0000000..ac38c32 --- /dev/null +++ b/docs/SlurmApi.md @@ -0,0 +1,9109 @@ +# slurmrest_python.SlurmApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**slurm_v0041_delete_job**](SlurmApi.md#slurm_v0041_delete_job) | **DELETE** /slurm/v0.0.41/job/{job_id} | cancel or signal job +[**slurm_v0041_delete_jobs**](SlurmApi.md#slurm_v0041_delete_jobs) | **DELETE** /slurm/v0.0.41/jobs/ | send signal to list of jobs +[**slurm_v0041_delete_node**](SlurmApi.md#slurm_v0041_delete_node) | **DELETE** /slurm/v0.0.41/node/{node_name} | delete node +[**slurm_v0041_delete_reservation**](SlurmApi.md#slurm_v0041_delete_reservation) | **DELETE** /slurm/v0.0.41/reservation/{reservation_name} | delete a reservation +[**slurm_v0041_get_diag**](SlurmApi.md#slurm_v0041_get_diag) | **GET** /slurm/v0.0.41/diag/ | get diagnostics +[**slurm_v0041_get_job**](SlurmApi.md#slurm_v0041_get_job) | **GET** /slurm/v0.0.41/job/{job_id} | get job info +[**slurm_v0041_get_jobs**](SlurmApi.md#slurm_v0041_get_jobs) | **GET** /slurm/v0.0.41/jobs/ | get list of jobs +[**slurm_v0041_get_jobs_state**](SlurmApi.md#slurm_v0041_get_jobs_state) | **GET** /slurm/v0.0.41/jobs/state/ | get list of job states +[**slurm_v0041_get_licenses**](SlurmApi.md#slurm_v0041_get_licenses) | **GET** /slurm/v0.0.41/licenses/ | get all Slurm tracked license info +[**slurm_v0041_get_node**](SlurmApi.md#slurm_v0041_get_node) | **GET** /slurm/v0.0.41/node/{node_name} | get node info +[**slurm_v0041_get_nodes**](SlurmApi.md#slurm_v0041_get_nodes) | **GET** /slurm/v0.0.41/nodes/ | get node(s) info +[**slurm_v0041_get_partition**](SlurmApi.md#slurm_v0041_get_partition) | **GET** /slurm/v0.0.41/partition/{partition_name} | get partition info +[**slurm_v0041_get_partitions**](SlurmApi.md#slurm_v0041_get_partitions) | **GET** /slurm/v0.0.41/partitions/ | get all partition info +[**slurm_v0041_get_ping**](SlurmApi.md#slurm_v0041_get_ping) | **GET** /slurm/v0.0.41/ping/ | ping test +[**slurm_v0041_get_reconfigure**](SlurmApi.md#slurm_v0041_get_reconfigure) | **GET** /slurm/v0.0.41/reconfigure/ | request slurmctld reconfigure +[**slurm_v0041_get_reservation**](SlurmApi.md#slurm_v0041_get_reservation) | **GET** /slurm/v0.0.41/reservation/{reservation_name} | get reservation info +[**slurm_v0041_get_reservations**](SlurmApi.md#slurm_v0041_get_reservations) | **GET** /slurm/v0.0.41/reservations/ | get all reservation info +[**slurm_v0041_get_shares**](SlurmApi.md#slurm_v0041_get_shares) | **GET** /slurm/v0.0.41/shares | get fairshare info +[**slurm_v0041_post_job**](SlurmApi.md#slurm_v0041_post_job) | **POST** /slurm/v0.0.41/job/{job_id} | update job +[**slurm_v0041_post_job_allocate**](SlurmApi.md#slurm_v0041_post_job_allocate) | **POST** /slurm/v0.0.41/job/allocate | submit new job allocation without any steps that must be signaled to stop +[**slurm_v0041_post_job_submit**](SlurmApi.md#slurm_v0041_post_job_submit) | **POST** /slurm/v0.0.41/job/submit | submit new job +[**slurm_v0041_post_node**](SlurmApi.md#slurm_v0041_post_node) | **POST** /slurm/v0.0.41/node/{node_name} | update node properties +[**slurm_v0041_post_nodes**](SlurmApi.md#slurm_v0041_post_nodes) | **POST** /slurm/v0.0.41/nodes/ | batch update node(s) +[**slurm_v0042_delete_job**](SlurmApi.md#slurm_v0042_delete_job) | **DELETE** /slurm/v0.0.42/job/{job_id} | cancel or signal job +[**slurm_v0042_delete_jobs**](SlurmApi.md#slurm_v0042_delete_jobs) | **DELETE** /slurm/v0.0.42/jobs/ | send signal to list of jobs +[**slurm_v0042_delete_node**](SlurmApi.md#slurm_v0042_delete_node) | **DELETE** /slurm/v0.0.42/node/{node_name} | delete node +[**slurm_v0042_delete_reservation**](SlurmApi.md#slurm_v0042_delete_reservation) | **DELETE** /slurm/v0.0.42/reservation/{reservation_name} | delete a reservation +[**slurm_v0042_get_diag**](SlurmApi.md#slurm_v0042_get_diag) | **GET** /slurm/v0.0.42/diag/ | get diagnostics +[**slurm_v0042_get_job**](SlurmApi.md#slurm_v0042_get_job) | **GET** /slurm/v0.0.42/job/{job_id} | get job info +[**slurm_v0042_get_jobs**](SlurmApi.md#slurm_v0042_get_jobs) | **GET** /slurm/v0.0.42/jobs/ | get list of jobs +[**slurm_v0042_get_jobs_state**](SlurmApi.md#slurm_v0042_get_jobs_state) | **GET** /slurm/v0.0.42/jobs/state/ | get list of job states +[**slurm_v0042_get_licenses**](SlurmApi.md#slurm_v0042_get_licenses) | **GET** /slurm/v0.0.42/licenses/ | get all Slurm tracked license info +[**slurm_v0042_get_node**](SlurmApi.md#slurm_v0042_get_node) | **GET** /slurm/v0.0.42/node/{node_name} | get node info +[**slurm_v0042_get_nodes**](SlurmApi.md#slurm_v0042_get_nodes) | **GET** /slurm/v0.0.42/nodes/ | get node(s) info +[**slurm_v0042_get_partition**](SlurmApi.md#slurm_v0042_get_partition) | **GET** /slurm/v0.0.42/partition/{partition_name} | get partition info +[**slurm_v0042_get_partitions**](SlurmApi.md#slurm_v0042_get_partitions) | **GET** /slurm/v0.0.42/partitions/ | get all partition info +[**slurm_v0042_get_ping**](SlurmApi.md#slurm_v0042_get_ping) | **GET** /slurm/v0.0.42/ping/ | ping test +[**slurm_v0042_get_reconfigure**](SlurmApi.md#slurm_v0042_get_reconfigure) | **GET** /slurm/v0.0.42/reconfigure/ | request slurmctld reconfigure +[**slurm_v0042_get_reservation**](SlurmApi.md#slurm_v0042_get_reservation) | **GET** /slurm/v0.0.42/reservation/{reservation_name} | get reservation info +[**slurm_v0042_get_reservations**](SlurmApi.md#slurm_v0042_get_reservations) | **GET** /slurm/v0.0.42/reservations/ | get all reservation info +[**slurm_v0042_get_shares**](SlurmApi.md#slurm_v0042_get_shares) | **GET** /slurm/v0.0.42/shares | get fairshare info +[**slurm_v0042_post_job**](SlurmApi.md#slurm_v0042_post_job) | **POST** /slurm/v0.0.42/job/{job_id} | update job +[**slurm_v0042_post_job_allocate**](SlurmApi.md#slurm_v0042_post_job_allocate) | **POST** /slurm/v0.0.42/job/allocate | submit new job allocation without any steps that must be signaled to stop +[**slurm_v0042_post_job_submit**](SlurmApi.md#slurm_v0042_post_job_submit) | **POST** /slurm/v0.0.42/job/submit | submit new job +[**slurm_v0042_post_node**](SlurmApi.md#slurm_v0042_post_node) | **POST** /slurm/v0.0.42/node/{node_name} | update node properties +[**slurm_v0042_post_nodes**](SlurmApi.md#slurm_v0042_post_nodes) | **POST** /slurm/v0.0.42/nodes/ | batch update node(s) +[**slurm_v0043_delete_job**](SlurmApi.md#slurm_v0043_delete_job) | **DELETE** /slurm/v0.0.43/job/{job_id} | cancel or signal job +[**slurm_v0043_delete_jobs**](SlurmApi.md#slurm_v0043_delete_jobs) | **DELETE** /slurm/v0.0.43/jobs/ | send signal to list of jobs +[**slurm_v0043_delete_node**](SlurmApi.md#slurm_v0043_delete_node) | **DELETE** /slurm/v0.0.43/node/{node_name} | delete node +[**slurm_v0043_delete_reservation**](SlurmApi.md#slurm_v0043_delete_reservation) | **DELETE** /slurm/v0.0.43/reservation/{reservation_name} | delete a reservation +[**slurm_v0043_get_diag**](SlurmApi.md#slurm_v0043_get_diag) | **GET** /slurm/v0.0.43/diag/ | get diagnostics +[**slurm_v0043_get_job**](SlurmApi.md#slurm_v0043_get_job) | **GET** /slurm/v0.0.43/job/{job_id} | get job info +[**slurm_v0043_get_jobs**](SlurmApi.md#slurm_v0043_get_jobs) | **GET** /slurm/v0.0.43/jobs/ | get list of jobs +[**slurm_v0043_get_jobs_state**](SlurmApi.md#slurm_v0043_get_jobs_state) | **GET** /slurm/v0.0.43/jobs/state/ | get list of job states +[**slurm_v0043_get_licenses**](SlurmApi.md#slurm_v0043_get_licenses) | **GET** /slurm/v0.0.43/licenses/ | get all Slurm tracked license info +[**slurm_v0043_get_node**](SlurmApi.md#slurm_v0043_get_node) | **GET** /slurm/v0.0.43/node/{node_name} | get node info +[**slurm_v0043_get_nodes**](SlurmApi.md#slurm_v0043_get_nodes) | **GET** /slurm/v0.0.43/nodes/ | get node(s) info +[**slurm_v0043_get_partition**](SlurmApi.md#slurm_v0043_get_partition) | **GET** /slurm/v0.0.43/partition/{partition_name} | get partition info +[**slurm_v0043_get_partitions**](SlurmApi.md#slurm_v0043_get_partitions) | **GET** /slurm/v0.0.43/partitions/ | get all partition info +[**slurm_v0043_get_ping**](SlurmApi.md#slurm_v0043_get_ping) | **GET** /slurm/v0.0.43/ping/ | ping test +[**slurm_v0043_get_reconfigure**](SlurmApi.md#slurm_v0043_get_reconfigure) | **GET** /slurm/v0.0.43/reconfigure/ | request slurmctld reconfigure +[**slurm_v0043_get_reservation**](SlurmApi.md#slurm_v0043_get_reservation) | **GET** /slurm/v0.0.43/reservation/{reservation_name} | get reservation info +[**slurm_v0043_get_reservations**](SlurmApi.md#slurm_v0043_get_reservations) | **GET** /slurm/v0.0.43/reservations/ | get all reservation info +[**slurm_v0043_get_shares**](SlurmApi.md#slurm_v0043_get_shares) | **GET** /slurm/v0.0.43/shares | get fairshare info +[**slurm_v0043_post_job**](SlurmApi.md#slurm_v0043_post_job) | **POST** /slurm/v0.0.43/job/{job_id} | update job +[**slurm_v0043_post_job_allocate**](SlurmApi.md#slurm_v0043_post_job_allocate) | **POST** /slurm/v0.0.43/job/allocate | submit new job allocation without any steps that must be signaled to stop +[**slurm_v0043_post_job_submit**](SlurmApi.md#slurm_v0043_post_job_submit) | **POST** /slurm/v0.0.43/job/submit | submit new job +[**slurm_v0043_post_node**](SlurmApi.md#slurm_v0043_post_node) | **POST** /slurm/v0.0.43/node/{node_name} | update node properties +[**slurm_v0043_post_nodes**](SlurmApi.md#slurm_v0043_post_nodes) | **POST** /slurm/v0.0.43/nodes/ | batch update node(s) +[**slurm_v0043_post_reservation**](SlurmApi.md#slurm_v0043_post_reservation) | **POST** /slurm/v0.0.43/reservation | create or update a reservation +[**slurm_v0043_post_reservations**](SlurmApi.md#slurm_v0043_post_reservations) | **POST** /slurm/v0.0.43/reservations/ | create or update reservations +[**slurm_v0044_delete_job**](SlurmApi.md#slurm_v0044_delete_job) | **DELETE** /slurm/v0.0.44/job/{job_id} | cancel or signal job +[**slurm_v0044_delete_jobs**](SlurmApi.md#slurm_v0044_delete_jobs) | **DELETE** /slurm/v0.0.44/jobs/ | send signal to list of jobs +[**slurm_v0044_delete_node**](SlurmApi.md#slurm_v0044_delete_node) | **DELETE** /slurm/v0.0.44/node/{node_name} | delete node +[**slurm_v0044_delete_reservation**](SlurmApi.md#slurm_v0044_delete_reservation) | **DELETE** /slurm/v0.0.44/reservation/{reservation_name} | delete a reservation +[**slurm_v0044_get_diag**](SlurmApi.md#slurm_v0044_get_diag) | **GET** /slurm/v0.0.44/diag/ | get diagnostics +[**slurm_v0044_get_job**](SlurmApi.md#slurm_v0044_get_job) | **GET** /slurm/v0.0.44/job/{job_id} | get job info +[**slurm_v0044_get_jobs**](SlurmApi.md#slurm_v0044_get_jobs) | **GET** /slurm/v0.0.44/jobs/ | get list of jobs +[**slurm_v0044_get_jobs_state**](SlurmApi.md#slurm_v0044_get_jobs_state) | **GET** /slurm/v0.0.44/jobs/state/ | get list of job states +[**slurm_v0044_get_licenses**](SlurmApi.md#slurm_v0044_get_licenses) | **GET** /slurm/v0.0.44/licenses/ | get all Slurm tracked license info +[**slurm_v0044_get_node**](SlurmApi.md#slurm_v0044_get_node) | **GET** /slurm/v0.0.44/node/{node_name} | get node info +[**slurm_v0044_get_nodes**](SlurmApi.md#slurm_v0044_get_nodes) | **GET** /slurm/v0.0.44/nodes/ | get node(s) info +[**slurm_v0044_get_partition**](SlurmApi.md#slurm_v0044_get_partition) | **GET** /slurm/v0.0.44/partition/{partition_name} | get partition info +[**slurm_v0044_get_partitions**](SlurmApi.md#slurm_v0044_get_partitions) | **GET** /slurm/v0.0.44/partitions/ | get all partition info +[**slurm_v0044_get_ping**](SlurmApi.md#slurm_v0044_get_ping) | **GET** /slurm/v0.0.44/ping/ | ping test +[**slurm_v0044_get_reconfigure**](SlurmApi.md#slurm_v0044_get_reconfigure) | **GET** /slurm/v0.0.44/reconfigure/ | request slurmctld reconfigure +[**slurm_v0044_get_reservation**](SlurmApi.md#slurm_v0044_get_reservation) | **GET** /slurm/v0.0.44/reservation/{reservation_name} | get reservation info +[**slurm_v0044_get_reservations**](SlurmApi.md#slurm_v0044_get_reservations) | **GET** /slurm/v0.0.44/reservations/ | get all reservation info +[**slurm_v0044_get_resources**](SlurmApi.md#slurm_v0044_get_resources) | **GET** /slurm/v0.0.44/resources/{job_id} | get resource layout info +[**slurm_v0044_get_shares**](SlurmApi.md#slurm_v0044_get_shares) | **GET** /slurm/v0.0.44/shares | get fairshare info +[**slurm_v0044_post_job**](SlurmApi.md#slurm_v0044_post_job) | **POST** /slurm/v0.0.44/job/{job_id} | update job +[**slurm_v0044_post_job_allocate**](SlurmApi.md#slurm_v0044_post_job_allocate) | **POST** /slurm/v0.0.44/job/allocate | submit new job allocation without any steps that must be signaled to stop +[**slurm_v0044_post_job_submit**](SlurmApi.md#slurm_v0044_post_job_submit) | **POST** /slurm/v0.0.44/job/submit | submit new job +[**slurm_v0044_post_new_node**](SlurmApi.md#slurm_v0044_post_new_node) | **POST** /slurm/v0.0.44/new/node/ | create node +[**slurm_v0044_post_node**](SlurmApi.md#slurm_v0044_post_node) | **POST** /slurm/v0.0.44/node/{node_name} | update node properties +[**slurm_v0044_post_nodes**](SlurmApi.md#slurm_v0044_post_nodes) | **POST** /slurm/v0.0.44/nodes/ | batch update node(s) +[**slurm_v0044_post_reservation**](SlurmApi.md#slurm_v0044_post_reservation) | **POST** /slurm/v0.0.44/reservation | create or update a reservation +[**slurm_v0044_post_reservations**](SlurmApi.md#slurm_v0044_post_reservations) | **POST** /slurm/v0.0.44/reservations/ | create or update reservations + + +# **slurm_v0041_delete_job** +> V0041OpenapiResp slurm_v0041_delete_job(job_id, signal=signal, flags=flags) + +cancel or signal job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + signal = 'signal_example' # str | Signal to send to Job (optional) + flags = 'flags_example' # str | Signalling flags (optional) + + try: + # cancel or signal job + api_response = api_instance.slurm_v0041_delete_job(job_id, signal=signal, flags=flags) + print("The response of SlurmApi->slurm_v0041_delete_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_delete_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **signal** | **str**| Signal to send to Job | [optional] + **flags** | **str**| Signalling flags | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job signal result | - | +**0** | job signal result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_delete_jobs** +> V0041OpenapiKillJobsResp slurm_v0041_delete_jobs(v0041_kill_jobs_msg=v0041_kill_jobs_msg) + +send signal to list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_kill_jobs_msg import V0041KillJobsMsg +from slurmrest_python.models.v0041_openapi_kill_jobs_resp import V0041OpenapiKillJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0041_kill_jobs_msg = slurmrest_python.V0041KillJobsMsg() # V0041KillJobsMsg | Signal or cancel jobs (optional) + + try: + # send signal to list of jobs + api_response = api_instance.slurm_v0041_delete_jobs(v0041_kill_jobs_msg=v0041_kill_jobs_msg) + print("The response of SlurmApi->slurm_v0041_delete_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_delete_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_kill_jobs_msg** | [**V0041KillJobsMsg**](V0041KillJobsMsg.md)| Signal or cancel jobs | [optional] + +### Return type + +[**V0041OpenapiKillJobsResp**](V0041OpenapiKillJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | description of jobs to signal | - | +**0** | description of jobs to signal | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_delete_node** +> V0041OpenapiResp slurm_v0041_delete_node(node_name) + +delete node + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + + try: + # delete node + api_response = api_instance.slurm_v0041_delete_node(node_name) + print("The response of SlurmApi->slurm_v0041_delete_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_delete_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node delete request result | - | +**0** | node delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_delete_reservation** +> V0041OpenapiResp slurm_v0041_delete_reservation(reservation_name) + +delete a reservation + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + + try: + # delete a reservation + api_response = api_instance.slurm_v0041_delete_reservation(reservation_name) + print("The response of SlurmApi->slurm_v0041_delete_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_delete_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation delete request result | - | +**0** | reservation delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_diag** +> V0041OpenapiDiagResp slurm_v0041_get_diag() + +get diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_diag_resp import V0041OpenapiDiagResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get diagnostics + api_response = api_instance.slurm_v0041_get_diag() + print("The response of SlurmApi->slurm_v0041_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0041OpenapiDiagResp**](V0041OpenapiDiagResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | diagnostic results | - | +**0** | diagnostic results | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_job** +> V0041OpenapiJobInfoResp slurm_v0041_get_job(job_id, update_time=update_time, flags=flags) + +get job info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + update_time = 'update_time_example' # str | Filter jobs since update timestamp (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get job info + api_response = api_instance.slurm_v0041_get_job(job_id, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0041_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **update_time** | **str**| Filter jobs since update timestamp | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0041OpenapiJobInfoResp**](V0041OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_jobs** +> V0041OpenapiJobInfoResp slurm_v0041_get_jobs(update_time=update_time, flags=flags) + +get list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Filter jobs since update timestamp (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get list of jobs + api_response = api_instance.slurm_v0041_get_jobs(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0041_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Filter jobs since update timestamp | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0041OpenapiJobInfoResp**](V0041OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_jobs_state** +> V0041OpenapiJobInfoResp slurm_v0041_get_jobs_state(job_id=job_id) + +get list of job states + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Search for CSV list of Job IDs (optional) + + try: + # get list of job states + api_response = api_instance.slurm_v0041_get_jobs_state(job_id=job_id) + print("The response of SlurmApi->slurm_v0041_get_jobs_state:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_jobs_state: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Search for CSV list of Job IDs | [optional] + +### Return type + +[**V0041OpenapiJobInfoResp**](V0041OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) state information | - | +**0** | job(s) state information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_licenses** +> V0041OpenapiLicensesResp slurm_v0041_get_licenses() + +get all Slurm tracked license info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_licenses_resp import V0041OpenapiLicensesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get all Slurm tracked license info + api_response = api_instance.slurm_v0041_get_licenses() + print("The response of SlurmApi->slurm_v0041_get_licenses:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_licenses: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0041OpenapiLicensesResp**](V0041OpenapiLicensesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of get all licenses | - | +**0** | results of get all licenses | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_node** +> V0041OpenapiNodesResp slurm_v0041_get_node(node_name, update_time=update_time, flags=flags) + +get node info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_nodes_resp import V0041OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + update_time = 'update_time_example' # str | Filter jobs since update timestamp (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node info + api_response = api_instance.slurm_v0041_get_node(node_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0041_get_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **update_time** | **str**| Filter jobs since update timestamp | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0041OpenapiNodesResp**](V0041OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node information | - | +**0** | node information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_nodes** +> V0041OpenapiNodesResp slurm_v0041_get_nodes(update_time=update_time, flags=flags) + +get node(s) info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_nodes_resp import V0041OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Filter jobs since update timestamp (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node(s) info + api_response = api_instance.slurm_v0041_get_nodes(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0041_get_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Filter jobs since update timestamp | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0041OpenapiNodesResp**](V0041OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node(s) information | - | +**0** | node(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_partition** +> V0041OpenapiPartitionResp slurm_v0041_get_partition(partition_name, update_time=update_time, flags=flags) + +get partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_partition_resp import V0041OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + partition_name = 'partition_name_example' # str | Partition name + update_time = 'update_time_example' # str | Filter partitions since update timestamp (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get partition info + api_response = api_instance.slurm_v0041_get_partition(partition_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0041_get_partition:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_partition: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **partition_name** | **str**| Partition name | + **update_time** | **str**| Filter partitions since update timestamp | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0041OpenapiPartitionResp**](V0041OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_partitions** +> V0041OpenapiPartitionResp slurm_v0041_get_partitions(update_time=update_time, flags=flags) + +get all partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_partition_resp import V0041OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Filter partitions since update timestamp (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get all partition info + api_response = api_instance.slurm_v0041_get_partitions(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0041_get_partitions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_partitions: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Filter partitions since update timestamp | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0041OpenapiPartitionResp**](V0041OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_ping** +> V0041OpenapiPingArrayResp slurm_v0041_get_ping() + +ping test + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_ping_array_resp import V0041OpenapiPingArrayResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # ping test + api_response = api_instance.slurm_v0041_get_ping() + print("The response of SlurmApi->slurm_v0041_get_ping:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_ping: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0041OpenapiPingArrayResp**](V0041OpenapiPingArrayResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_reconfigure** +> V0041OpenapiResp slurm_v0041_get_reconfigure() + +request slurmctld reconfigure + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # request slurmctld reconfigure + api_response = api_instance.slurm_v0041_get_reconfigure() + print("The response of SlurmApi->slurm_v0041_get_reconfigure:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_reconfigure: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reconfigure request result | - | +**0** | reconfigure request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_reservation** +> V0041OpenapiReservationResp slurm_v0041_get_reservation(reservation_name, update_time=update_time) + +get reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_reservation_resp import V0041OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + update_time = 'update_time_example' # str | Filter reservations since update timestamp (optional) + + try: + # get reservation info + api_response = api_instance.slurm_v0041_get_reservation(reservation_name, update_time=update_time) + print("The response of SlurmApi->slurm_v0041_get_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + **update_time** | **str**| Filter reservations since update timestamp | [optional] + +### Return type + +[**V0041OpenapiReservationResp**](V0041OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_reservations** +> V0041OpenapiReservationResp slurm_v0041_get_reservations(update_time=update_time) + +get all reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_reservation_resp import V0041OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Filter reservations since update timestamp (optional) + + try: + # get all reservation info + api_response = api_instance.slurm_v0041_get_reservations(update_time=update_time) + print("The response of SlurmApi->slurm_v0041_get_reservations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_reservations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Filter reservations since update timestamp | [optional] + +### Return type + +[**V0041OpenapiReservationResp**](V0041OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_get_shares** +> V0041OpenapiSharesResp slurm_v0041_get_shares(accounts=accounts, users=users) + +get fairshare info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_shares_resp import V0041OpenapiSharesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + accounts = 'accounts_example' # str | Accounts to query (optional) + users = 'users_example' # str | Users to query (optional) + + try: + # get fairshare info + api_response = api_instance.slurm_v0041_get_shares(accounts=accounts, users=users) + print("The response of SlurmApi->slurm_v0041_get_shares:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_get_shares: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accounts** | **str**| Accounts to query | [optional] + **users** | **str**| Users to query | [optional] + +### Return type + +[**V0041OpenapiSharesResp**](V0041OpenapiSharesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | shares information | - | +**0** | shares information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_post_job** +> V0041OpenapiJobPostResponse slurm_v0041_post_job(job_id, v0041_job_desc_msg=v0041_job_desc_msg) + +update job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg +from slurmrest_python.models.v0041_openapi_job_post_response import V0041OpenapiJobPostResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + v0041_job_desc_msg = slurmrest_python.V0041JobDescMsg() # V0041JobDescMsg | Job update description (optional) + + try: + # update job + api_response = api_instance.slurm_v0041_post_job(job_id, v0041_job_desc_msg=v0041_job_desc_msg) + print("The response of SlurmApi->slurm_v0041_post_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_post_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **v0041_job_desc_msg** | [**V0041JobDescMsg**](V0041JobDescMsg.md)| Job update description | [optional] + +### Return type + +[**V0041OpenapiJobPostResponse**](V0041OpenapiJobPostResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job update result | - | +**0** | job update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_post_job_allocate** +> V0041OpenapiJobAllocResp slurm_v0041_post_job_allocate(v0041_job_alloc_req=v0041_job_alloc_req) + +submit new job allocation without any steps that must be signaled to stop + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_job_alloc_req import V0041JobAllocReq +from slurmrest_python.models.v0041_openapi_job_alloc_resp import V0041OpenapiJobAllocResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0041_job_alloc_req = slurmrest_python.V0041JobAllocReq() # V0041JobAllocReq | Job allocation description (optional) + + try: + # submit new job allocation without any steps that must be signaled to stop + api_response = api_instance.slurm_v0041_post_job_allocate(v0041_job_alloc_req=v0041_job_alloc_req) + print("The response of SlurmApi->slurm_v0041_post_job_allocate:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_post_job_allocate: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_job_alloc_req** | [**V0041JobAllocReq**](V0041JobAllocReq.md)| Job allocation description | [optional] + +### Return type + +[**V0041OpenapiJobAllocResp**](V0041OpenapiJobAllocResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job allocation response | - | +**0** | job allocation response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_post_job_submit** +> V0041OpenapiJobSubmitResponse slurm_v0041_post_job_submit(v0041_job_submit_req=v0041_job_submit_req) + +submit new job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_job_submit_req import V0041JobSubmitReq +from slurmrest_python.models.v0041_openapi_job_submit_response import V0041OpenapiJobSubmitResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0041_job_submit_req = slurmrest_python.V0041JobSubmitReq() # V0041JobSubmitReq | Job description (optional) + + try: + # submit new job + api_response = api_instance.slurm_v0041_post_job_submit(v0041_job_submit_req=v0041_job_submit_req) + print("The response of SlurmApi->slurm_v0041_post_job_submit:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_post_job_submit: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_job_submit_req** | [**V0041JobSubmitReq**](V0041JobSubmitReq.md)| Job description | [optional] + +### Return type + +[**V0041OpenapiJobSubmitResponse**](V0041OpenapiJobSubmitResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job submission response | - | +**0** | job submission response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_post_node** +> V0041OpenapiResp slurm_v0041_post_node(node_name, v0041_update_node_msg=v0041_update_node_msg) + +update node properties + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_update_node_msg import V0041UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + v0041_update_node_msg = slurmrest_python.V0041UpdateNodeMsg() # V0041UpdateNodeMsg | Node update description (optional) + + try: + # update node properties + api_response = api_instance.slurm_v0041_post_node(node_name, v0041_update_node_msg=v0041_update_node_msg) + print("The response of SlurmApi->slurm_v0041_post_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_post_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **v0041_update_node_msg** | [**V0041UpdateNodeMsg**](V0041UpdateNodeMsg.md)| Node update description | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node update request result | - | +**0** | node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0041_post_nodes** +> V0041OpenapiResp slurm_v0041_post_nodes(v0041_update_node_msg=v0041_update_node_msg) + +batch update node(s) + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_update_node_msg import V0041UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0041_update_node_msg = slurmrest_python.V0041UpdateNodeMsg() # V0041UpdateNodeMsg | Nodelist update description (optional) + + try: + # batch update node(s) + api_response = api_instance.slurm_v0041_post_nodes(v0041_update_node_msg=v0041_update_node_msg) + print("The response of SlurmApi->slurm_v0041_post_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0041_post_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_update_node_msg** | [**V0041UpdateNodeMsg**](V0041UpdateNodeMsg.md)| Nodelist update description | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | batch node update request result | - | +**0** | batch node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_delete_job** +> V0042OpenapiKillJobResp slurm_v0042_delete_job(job_id, signal=signal, flags=flags) + +cancel or signal job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_kill_job_resp import V0042OpenapiKillJobResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + signal = 'signal_example' # str | Signal to send to Job (optional) + flags = 'flags_example' # str | Signalling flags (optional) + + try: + # cancel or signal job + api_response = api_instance.slurm_v0042_delete_job(job_id, signal=signal, flags=flags) + print("The response of SlurmApi->slurm_v0042_delete_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_delete_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **signal** | **str**| Signal to send to Job | [optional] + **flags** | **str**| Signalling flags | [optional] + +### Return type + +[**V0042OpenapiKillJobResp**](V0042OpenapiKillJobResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job signal result | - | +**0** | job signal result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_delete_jobs** +> V0042OpenapiKillJobsResp slurm_v0042_delete_jobs(v0042_kill_jobs_msg=v0042_kill_jobs_msg) + +send signal to list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_kill_jobs_msg import V0042KillJobsMsg +from slurmrest_python.models.v0042_openapi_kill_jobs_resp import V0042OpenapiKillJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0042_kill_jobs_msg = slurmrest_python.V0042KillJobsMsg() # V0042KillJobsMsg | Signal or cancel jobs (optional) + + try: + # send signal to list of jobs + api_response = api_instance.slurm_v0042_delete_jobs(v0042_kill_jobs_msg=v0042_kill_jobs_msg) + print("The response of SlurmApi->slurm_v0042_delete_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_delete_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_kill_jobs_msg** | [**V0042KillJobsMsg**](V0042KillJobsMsg.md)| Signal or cancel jobs | [optional] + +### Return type + +[**V0042OpenapiKillJobsResp**](V0042OpenapiKillJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | description of jobs to signal | - | +**0** | description of jobs to signal | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_delete_node** +> V0042OpenapiResp slurm_v0042_delete_node(node_name) + +delete node + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + + try: + # delete node + api_response = api_instance.slurm_v0042_delete_node(node_name) + print("The response of SlurmApi->slurm_v0042_delete_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_delete_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node delete request result | - | +**0** | node delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_delete_reservation** +> V0042OpenapiResp slurm_v0042_delete_reservation(reservation_name) + +delete a reservation + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + + try: + # delete a reservation + api_response = api_instance.slurm_v0042_delete_reservation(reservation_name) + print("The response of SlurmApi->slurm_v0042_delete_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_delete_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation delete request result | - | +**0** | reservation delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_diag** +> V0042OpenapiDiagResp slurm_v0042_get_diag() + +get diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_diag_resp import V0042OpenapiDiagResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get diagnostics + api_response = api_instance.slurm_v0042_get_diag() + print("The response of SlurmApi->slurm_v0042_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiDiagResp**](V0042OpenapiDiagResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | diagnostic results | - | +**0** | diagnostic results | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_job** +> V0042OpenapiJobInfoResp slurm_v0042_get_job(job_id, update_time=update_time, flags=flags) + +get job info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get job info + api_response = api_instance.slurm_v0042_get_job(job_id, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0042_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0042OpenapiJobInfoResp**](V0042OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_jobs** +> V0042OpenapiJobInfoResp slurm_v0042_get_jobs(update_time=update_time, flags=flags) + +get list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get list of jobs + api_response = api_instance.slurm_v0042_get_jobs(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0042_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0042OpenapiJobInfoResp**](V0042OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_jobs_state** +> V0042OpenapiJobInfoResp slurm_v0042_get_jobs_state(job_id=job_id) + +get list of job states + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | CSV list of Job IDs to search for (optional) + + try: + # get list of job states + api_response = api_instance.slurm_v0042_get_jobs_state(job_id=job_id) + print("The response of SlurmApi->slurm_v0042_get_jobs_state:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_jobs_state: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| CSV list of Job IDs to search for | [optional] + +### Return type + +[**V0042OpenapiJobInfoResp**](V0042OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) state information | - | +**0** | job(s) state information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_licenses** +> V0042OpenapiLicensesResp slurm_v0042_get_licenses() + +get all Slurm tracked license info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_licenses_resp import V0042OpenapiLicensesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get all Slurm tracked license info + api_response = api_instance.slurm_v0042_get_licenses() + print("The response of SlurmApi->slurm_v0042_get_licenses:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_licenses: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiLicensesResp**](V0042OpenapiLicensesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of get all licenses | - | +**0** | results of get all licenses | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_node** +> V0042OpenapiNodesResp slurm_v0042_get_node(node_name, update_time=update_time, flags=flags) + +get node info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_nodes_resp import V0042OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node info + api_response = api_instance.slurm_v0042_get_node(node_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0042_get_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0042OpenapiNodesResp**](V0042OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node information | - | +**0** | node information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_nodes** +> V0042OpenapiNodesResp slurm_v0042_get_nodes(update_time=update_time, flags=flags) + +get node(s) info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_nodes_resp import V0042OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node(s) info + api_response = api_instance.slurm_v0042_get_nodes(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0042_get_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0042OpenapiNodesResp**](V0042OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node(s) information | - | +**0** | node(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_partition** +> V0042OpenapiPartitionResp slurm_v0042_get_partition(partition_name, update_time=update_time, flags=flags) + +get partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_partition_resp import V0042OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + partition_name = 'partition_name_example' # str | Partition name + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get partition info + api_response = api_instance.slurm_v0042_get_partition(partition_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0042_get_partition:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_partition: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **partition_name** | **str**| Partition name | + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0042OpenapiPartitionResp**](V0042OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_partitions** +> V0042OpenapiPartitionResp slurm_v0042_get_partitions(update_time=update_time, flags=flags) + +get all partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_partition_resp import V0042OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get all partition info + api_response = api_instance.slurm_v0042_get_partitions(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0042_get_partitions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_partitions: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0042OpenapiPartitionResp**](V0042OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_ping** +> V0042OpenapiPingArrayResp slurm_v0042_get_ping() + +ping test + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_ping_array_resp import V0042OpenapiPingArrayResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # ping test + api_response = api_instance.slurm_v0042_get_ping() + print("The response of SlurmApi->slurm_v0042_get_ping:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_ping: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiPingArrayResp**](V0042OpenapiPingArrayResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_reconfigure** +> V0042OpenapiResp slurm_v0042_get_reconfigure() + +request slurmctld reconfigure + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # request slurmctld reconfigure + api_response = api_instance.slurm_v0042_get_reconfigure() + print("The response of SlurmApi->slurm_v0042_get_reconfigure:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_reconfigure: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reconfigure request result | - | +**0** | reconfigure request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_reservation** +> V0042OpenapiReservationResp slurm_v0042_get_reservation(reservation_name, update_time=update_time) + +get reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_reservation_resp import V0042OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # get reservation info + api_response = api_instance.slurm_v0042_get_reservation(reservation_name, update_time=update_time) + print("The response of SlurmApi->slurm_v0042_get_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0042OpenapiReservationResp**](V0042OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_reservations** +> V0042OpenapiReservationResp slurm_v0042_get_reservations(update_time=update_time) + +get all reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_reservation_resp import V0042OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # get all reservation info + api_response = api_instance.slurm_v0042_get_reservations(update_time=update_time) + print("The response of SlurmApi->slurm_v0042_get_reservations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_reservations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0042OpenapiReservationResp**](V0042OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_get_shares** +> V0042OpenapiSharesResp slurm_v0042_get_shares(accounts=accounts, users=users) + +get fairshare info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_shares_resp import V0042OpenapiSharesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + accounts = 'accounts_example' # str | Accounts to query (optional) + users = 'users_example' # str | Users to query (optional) + + try: + # get fairshare info + api_response = api_instance.slurm_v0042_get_shares(accounts=accounts, users=users) + print("The response of SlurmApi->slurm_v0042_get_shares:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_get_shares: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accounts** | **str**| Accounts to query | [optional] + **users** | **str**| Users to query | [optional] + +### Return type + +[**V0042OpenapiSharesResp**](V0042OpenapiSharesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | shares information | - | +**0** | shares information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_post_job** +> V0042OpenapiJobPostResponse slurm_v0042_post_job(job_id, v0042_job_desc_msg=v0042_job_desc_msg) + +update job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg +from slurmrest_python.models.v0042_openapi_job_post_response import V0042OpenapiJobPostResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + v0042_job_desc_msg = slurmrest_python.V0042JobDescMsg() # V0042JobDescMsg | Job update description (optional) + + try: + # update job + api_response = api_instance.slurm_v0042_post_job(job_id, v0042_job_desc_msg=v0042_job_desc_msg) + print("The response of SlurmApi->slurm_v0042_post_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_post_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **v0042_job_desc_msg** | [**V0042JobDescMsg**](V0042JobDescMsg.md)| Job update description | [optional] + +### Return type + +[**V0042OpenapiJobPostResponse**](V0042OpenapiJobPostResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job update result | - | +**0** | job update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_post_job_allocate** +> V0042OpenapiJobAllocResp slurm_v0042_post_job_allocate(v0042_job_alloc_req=v0042_job_alloc_req) + +submit new job allocation without any steps that must be signaled to stop + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_job_alloc_req import V0042JobAllocReq +from slurmrest_python.models.v0042_openapi_job_alloc_resp import V0042OpenapiJobAllocResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0042_job_alloc_req = slurmrest_python.V0042JobAllocReq() # V0042JobAllocReq | Job allocation description (optional) + + try: + # submit new job allocation without any steps that must be signaled to stop + api_response = api_instance.slurm_v0042_post_job_allocate(v0042_job_alloc_req=v0042_job_alloc_req) + print("The response of SlurmApi->slurm_v0042_post_job_allocate:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_post_job_allocate: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_job_alloc_req** | [**V0042JobAllocReq**](V0042JobAllocReq.md)| Job allocation description | [optional] + +### Return type + +[**V0042OpenapiJobAllocResp**](V0042OpenapiJobAllocResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job allocation response | - | +**0** | job allocation response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_post_job_submit** +> V0042OpenapiJobSubmitResponse slurm_v0042_post_job_submit(v0042_job_submit_req=v0042_job_submit_req) + +submit new job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_job_submit_req import V0042JobSubmitReq +from slurmrest_python.models.v0042_openapi_job_submit_response import V0042OpenapiJobSubmitResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0042_job_submit_req = slurmrest_python.V0042JobSubmitReq() # V0042JobSubmitReq | Job description (optional) + + try: + # submit new job + api_response = api_instance.slurm_v0042_post_job_submit(v0042_job_submit_req=v0042_job_submit_req) + print("The response of SlurmApi->slurm_v0042_post_job_submit:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_post_job_submit: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_job_submit_req** | [**V0042JobSubmitReq**](V0042JobSubmitReq.md)| Job description | [optional] + +### Return type + +[**V0042OpenapiJobSubmitResponse**](V0042OpenapiJobSubmitResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job submission response | - | +**0** | job submission response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_post_node** +> V0042OpenapiResp slurm_v0042_post_node(node_name, v0042_update_node_msg=v0042_update_node_msg) + +update node properties + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_update_node_msg import V0042UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + v0042_update_node_msg = slurmrest_python.V0042UpdateNodeMsg() # V0042UpdateNodeMsg | Node update description (optional) + + try: + # update node properties + api_response = api_instance.slurm_v0042_post_node(node_name, v0042_update_node_msg=v0042_update_node_msg) + print("The response of SlurmApi->slurm_v0042_post_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_post_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **v0042_update_node_msg** | [**V0042UpdateNodeMsg**](V0042UpdateNodeMsg.md)| Node update description | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node update request result | - | +**0** | node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0042_post_nodes** +> V0042OpenapiResp slurm_v0042_post_nodes(v0042_update_node_msg=v0042_update_node_msg) + +batch update node(s) + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_update_node_msg import V0042UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0042_update_node_msg = slurmrest_python.V0042UpdateNodeMsg() # V0042UpdateNodeMsg | Nodelist update description (optional) + + try: + # batch update node(s) + api_response = api_instance.slurm_v0042_post_nodes(v0042_update_node_msg=v0042_update_node_msg) + print("The response of SlurmApi->slurm_v0042_post_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0042_post_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_update_node_msg** | [**V0042UpdateNodeMsg**](V0042UpdateNodeMsg.md)| Nodelist update description | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | batch node update request result | - | +**0** | batch node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_delete_job** +> V0043OpenapiKillJobResp slurm_v0043_delete_job(job_id, signal=signal, flags=flags) + +cancel or signal job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_kill_job_resp import V0043OpenapiKillJobResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + signal = 'signal_example' # str | Signal to send to Job (optional) + flags = 'flags_example' # str | Signalling flags (optional) + + try: + # cancel or signal job + api_response = api_instance.slurm_v0043_delete_job(job_id, signal=signal, flags=flags) + print("The response of SlurmApi->slurm_v0043_delete_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_delete_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **signal** | **str**| Signal to send to Job | [optional] + **flags** | **str**| Signalling flags | [optional] + +### Return type + +[**V0043OpenapiKillJobResp**](V0043OpenapiKillJobResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job signal result | - | +**0** | job signal result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_delete_jobs** +> V0043OpenapiKillJobsResp slurm_v0043_delete_jobs(v0043_kill_jobs_msg=v0043_kill_jobs_msg) + +send signal to list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_kill_jobs_msg import V0043KillJobsMsg +from slurmrest_python.models.v0043_openapi_kill_jobs_resp import V0043OpenapiKillJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0043_kill_jobs_msg = slurmrest_python.V0043KillJobsMsg() # V0043KillJobsMsg | Signal or cancel jobs (optional) + + try: + # send signal to list of jobs + api_response = api_instance.slurm_v0043_delete_jobs(v0043_kill_jobs_msg=v0043_kill_jobs_msg) + print("The response of SlurmApi->slurm_v0043_delete_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_delete_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_kill_jobs_msg** | [**V0043KillJobsMsg**](V0043KillJobsMsg.md)| Signal or cancel jobs | [optional] + +### Return type + +[**V0043OpenapiKillJobsResp**](V0043OpenapiKillJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | description of jobs to signal | - | +**0** | description of jobs to signal | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_delete_node** +> V0043OpenapiResp slurm_v0043_delete_node(node_name) + +delete node + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + + try: + # delete node + api_response = api_instance.slurm_v0043_delete_node(node_name) + print("The response of SlurmApi->slurm_v0043_delete_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_delete_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node delete request result | - | +**0** | node delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_delete_reservation** +> V0043OpenapiResp slurm_v0043_delete_reservation(reservation_name) + +delete a reservation + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + + try: + # delete a reservation + api_response = api_instance.slurm_v0043_delete_reservation(reservation_name) + print("The response of SlurmApi->slurm_v0043_delete_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_delete_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation delete request result | - | +**0** | reservation delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_diag** +> V0043OpenapiDiagResp slurm_v0043_get_diag() + +get diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_diag_resp import V0043OpenapiDiagResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get diagnostics + api_response = api_instance.slurm_v0043_get_diag() + print("The response of SlurmApi->slurm_v0043_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiDiagResp**](V0043OpenapiDiagResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | diagnostic results | - | +**0** | diagnostic results | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_job** +> V0043OpenapiJobInfoResp slurm_v0043_get_job(job_id, update_time=update_time, flags=flags) + +get job info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get job info + api_response = api_instance.slurm_v0043_get_job(job_id, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0043_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0043OpenapiJobInfoResp**](V0043OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_jobs** +> V0043OpenapiJobInfoResp slurm_v0043_get_jobs(update_time=update_time, flags=flags) + +get list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get list of jobs + api_response = api_instance.slurm_v0043_get_jobs(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0043_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0043OpenapiJobInfoResp**](V0043OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_jobs_state** +> V0043OpenapiJobInfoResp slurm_v0043_get_jobs_state(job_id=job_id) + +get list of job states + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | CSV list of Job IDs to search for (optional) + + try: + # get list of job states + api_response = api_instance.slurm_v0043_get_jobs_state(job_id=job_id) + print("The response of SlurmApi->slurm_v0043_get_jobs_state:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_jobs_state: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| CSV list of Job IDs to search for | [optional] + +### Return type + +[**V0043OpenapiJobInfoResp**](V0043OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) state information | - | +**0** | job(s) state information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_licenses** +> V0043OpenapiLicensesResp slurm_v0043_get_licenses() + +get all Slurm tracked license info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_licenses_resp import V0043OpenapiLicensesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get all Slurm tracked license info + api_response = api_instance.slurm_v0043_get_licenses() + print("The response of SlurmApi->slurm_v0043_get_licenses:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_licenses: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiLicensesResp**](V0043OpenapiLicensesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of get all licenses | - | +**0** | results of get all licenses | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_node** +> V0043OpenapiNodesResp slurm_v0043_get_node(node_name, update_time=update_time, flags=flags) + +get node info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_nodes_resp import V0043OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node info + api_response = api_instance.slurm_v0043_get_node(node_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0043_get_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0043OpenapiNodesResp**](V0043OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node information | - | +**0** | node information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_nodes** +> V0043OpenapiNodesResp slurm_v0043_get_nodes(update_time=update_time, flags=flags) + +get node(s) info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_nodes_resp import V0043OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node(s) info + api_response = api_instance.slurm_v0043_get_nodes(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0043_get_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0043OpenapiNodesResp**](V0043OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node(s) information | - | +**0** | node(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_partition** +> V0043OpenapiPartitionResp slurm_v0043_get_partition(partition_name, update_time=update_time, flags=flags) + +get partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_partition_resp import V0043OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + partition_name = 'partition_name_example' # str | Partition name + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get partition info + api_response = api_instance.slurm_v0043_get_partition(partition_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0043_get_partition:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_partition: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **partition_name** | **str**| Partition name | + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0043OpenapiPartitionResp**](V0043OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_partitions** +> V0043OpenapiPartitionResp slurm_v0043_get_partitions(update_time=update_time, flags=flags) + +get all partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_partition_resp import V0043OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get all partition info + api_response = api_instance.slurm_v0043_get_partitions(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0043_get_partitions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_partitions: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0043OpenapiPartitionResp**](V0043OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_ping** +> V0043OpenapiPingArrayResp slurm_v0043_get_ping() + +ping test + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_ping_array_resp import V0043OpenapiPingArrayResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # ping test + api_response = api_instance.slurm_v0043_get_ping() + print("The response of SlurmApi->slurm_v0043_get_ping:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_ping: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiPingArrayResp**](V0043OpenapiPingArrayResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_reconfigure** +> V0043OpenapiResp slurm_v0043_get_reconfigure() + +request slurmctld reconfigure + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # request slurmctld reconfigure + api_response = api_instance.slurm_v0043_get_reconfigure() + print("The response of SlurmApi->slurm_v0043_get_reconfigure:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_reconfigure: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reconfigure request result | - | +**0** | reconfigure request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_reservation** +> V0043OpenapiReservationResp slurm_v0043_get_reservation(reservation_name, update_time=update_time) + +get reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_reservation_resp import V0043OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # get reservation info + api_response = api_instance.slurm_v0043_get_reservation(reservation_name, update_time=update_time) + print("The response of SlurmApi->slurm_v0043_get_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0043OpenapiReservationResp**](V0043OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_reservations** +> V0043OpenapiReservationResp slurm_v0043_get_reservations(update_time=update_time) + +get all reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_reservation_resp import V0043OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # get all reservation info + api_response = api_instance.slurm_v0043_get_reservations(update_time=update_time) + print("The response of SlurmApi->slurm_v0043_get_reservations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_reservations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0043OpenapiReservationResp**](V0043OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_get_shares** +> V0043OpenapiSharesResp slurm_v0043_get_shares(accounts=accounts, users=users) + +get fairshare info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_shares_resp import V0043OpenapiSharesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + accounts = 'accounts_example' # str | Accounts to query (optional) + users = 'users_example' # str | Users to query (optional) + + try: + # get fairshare info + api_response = api_instance.slurm_v0043_get_shares(accounts=accounts, users=users) + print("The response of SlurmApi->slurm_v0043_get_shares:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_get_shares: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accounts** | **str**| Accounts to query | [optional] + **users** | **str**| Users to query | [optional] + +### Return type + +[**V0043OpenapiSharesResp**](V0043OpenapiSharesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | shares information | - | +**0** | shares information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_post_job** +> V0043OpenapiJobPostResponse slurm_v0043_post_job(job_id, v0043_job_desc_msg=v0043_job_desc_msg) + +update job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg +from slurmrest_python.models.v0043_openapi_job_post_response import V0043OpenapiJobPostResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + v0043_job_desc_msg = slurmrest_python.V0043JobDescMsg() # V0043JobDescMsg | Job update description (optional) + + try: + # update job + api_response = api_instance.slurm_v0043_post_job(job_id, v0043_job_desc_msg=v0043_job_desc_msg) + print("The response of SlurmApi->slurm_v0043_post_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_post_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **v0043_job_desc_msg** | [**V0043JobDescMsg**](V0043JobDescMsg.md)| Job update description | [optional] + +### Return type + +[**V0043OpenapiJobPostResponse**](V0043OpenapiJobPostResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job update result | - | +**0** | job update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_post_job_allocate** +> V0043OpenapiJobAllocResp slurm_v0043_post_job_allocate(v0043_job_alloc_req=v0043_job_alloc_req) + +submit new job allocation without any steps that must be signaled to stop + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_job_alloc_req import V0043JobAllocReq +from slurmrest_python.models.v0043_openapi_job_alloc_resp import V0043OpenapiJobAllocResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0043_job_alloc_req = slurmrest_python.V0043JobAllocReq() # V0043JobAllocReq | Job allocation description (optional) + + try: + # submit new job allocation without any steps that must be signaled to stop + api_response = api_instance.slurm_v0043_post_job_allocate(v0043_job_alloc_req=v0043_job_alloc_req) + print("The response of SlurmApi->slurm_v0043_post_job_allocate:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_post_job_allocate: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_job_alloc_req** | [**V0043JobAllocReq**](V0043JobAllocReq.md)| Job allocation description | [optional] + +### Return type + +[**V0043OpenapiJobAllocResp**](V0043OpenapiJobAllocResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job allocation response | - | +**0** | job allocation response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_post_job_submit** +> V0043OpenapiJobSubmitResponse slurm_v0043_post_job_submit(v0043_job_submit_req=v0043_job_submit_req) + +submit new job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_job_submit_req import V0043JobSubmitReq +from slurmrest_python.models.v0043_openapi_job_submit_response import V0043OpenapiJobSubmitResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0043_job_submit_req = slurmrest_python.V0043JobSubmitReq() # V0043JobSubmitReq | Job description (optional) + + try: + # submit new job + api_response = api_instance.slurm_v0043_post_job_submit(v0043_job_submit_req=v0043_job_submit_req) + print("The response of SlurmApi->slurm_v0043_post_job_submit:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_post_job_submit: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_job_submit_req** | [**V0043JobSubmitReq**](V0043JobSubmitReq.md)| Job description | [optional] + +### Return type + +[**V0043OpenapiJobSubmitResponse**](V0043OpenapiJobSubmitResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job submission response | - | +**0** | job submission response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_post_node** +> V0043OpenapiResp slurm_v0043_post_node(node_name, v0043_update_node_msg=v0043_update_node_msg) + +update node properties + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_update_node_msg import V0043UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + v0043_update_node_msg = slurmrest_python.V0043UpdateNodeMsg() # V0043UpdateNodeMsg | Node update description (optional) + + try: + # update node properties + api_response = api_instance.slurm_v0043_post_node(node_name, v0043_update_node_msg=v0043_update_node_msg) + print("The response of SlurmApi->slurm_v0043_post_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_post_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **v0043_update_node_msg** | [**V0043UpdateNodeMsg**](V0043UpdateNodeMsg.md)| Node update description | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node update request result | - | +**0** | node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_post_nodes** +> V0043OpenapiResp slurm_v0043_post_nodes(v0043_update_node_msg=v0043_update_node_msg) + +batch update node(s) + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_update_node_msg import V0043UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0043_update_node_msg = slurmrest_python.V0043UpdateNodeMsg() # V0043UpdateNodeMsg | Nodelist update description (optional) + + try: + # batch update node(s) + api_response = api_instance.slurm_v0043_post_nodes(v0043_update_node_msg=v0043_update_node_msg) + print("The response of SlurmApi->slurm_v0043_post_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_post_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_update_node_msg** | [**V0043UpdateNodeMsg**](V0043UpdateNodeMsg.md)| Nodelist update description | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | batch node update request result | - | +**0** | batch node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_post_reservation** +> V0043OpenapiReservationModResp slurm_v0043_post_reservation(v0043_reservation_desc_msg=v0043_reservation_desc_msg) + +create or update a reservation + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_reservation_mod_resp import V0043OpenapiReservationModResp +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0043_reservation_desc_msg = slurmrest_python.V0043ReservationDescMsg() # V0043ReservationDescMsg | reservation description (optional) + + try: + # create or update a reservation + api_response = api_instance.slurm_v0043_post_reservation(v0043_reservation_desc_msg=v0043_reservation_desc_msg) + print("The response of SlurmApi->slurm_v0043_post_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_post_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_reservation_desc_msg** | [**V0043ReservationDescMsg**](V0043ReservationDescMsg.md)| reservation description | [optional] + +### Return type + +[**V0043OpenapiReservationModResp**](V0043OpenapiReservationModResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation description | - | +**0** | reservation description | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0043_post_reservations** +> V0043OpenapiReservationModResp slurm_v0043_post_reservations(v0043_reservation_mod_req=v0043_reservation_mod_req) + +create or update reservations + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_reservation_mod_resp import V0043OpenapiReservationModResp +from slurmrest_python.models.v0043_reservation_mod_req import V0043ReservationModReq +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0043_reservation_mod_req = slurmrest_python.V0043ReservationModReq() # V0043ReservationModReq | reservation descriptions (optional) + + try: + # create or update reservations + api_response = api_instance.slurm_v0043_post_reservations(v0043_reservation_mod_req=v0043_reservation_mod_req) + print("The response of SlurmApi->slurm_v0043_post_reservations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0043_post_reservations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_reservation_mod_req** | [**V0043ReservationModReq**](V0043ReservationModReq.md)| reservation descriptions | [optional] + +### Return type + +[**V0043OpenapiReservationModResp**](V0043OpenapiReservationModResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation descriptions | - | +**0** | reservation descriptions | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_delete_job** +> V0044OpenapiKillJobResp slurm_v0044_delete_job(job_id, signal=signal, flags=flags) + +cancel or signal job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_kill_job_resp import V0044OpenapiKillJobResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + signal = 'signal_example' # str | Signal to send to Job (optional) + flags = 'flags_example' # str | Signalling flags (optional) + + try: + # cancel or signal job + api_response = api_instance.slurm_v0044_delete_job(job_id, signal=signal, flags=flags) + print("The response of SlurmApi->slurm_v0044_delete_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_delete_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **signal** | **str**| Signal to send to Job | [optional] + **flags** | **str**| Signalling flags | [optional] + +### Return type + +[**V0044OpenapiKillJobResp**](V0044OpenapiKillJobResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job signal result | - | +**0** | job signal result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_delete_jobs** +> V0044OpenapiKillJobsResp slurm_v0044_delete_jobs(v0044_kill_jobs_msg=v0044_kill_jobs_msg) + +send signal to list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_kill_jobs_msg import V0044KillJobsMsg +from slurmrest_python.models.v0044_openapi_kill_jobs_resp import V0044OpenapiKillJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0044_kill_jobs_msg = slurmrest_python.V0044KillJobsMsg() # V0044KillJobsMsg | Signal or cancel jobs (optional) + + try: + # send signal to list of jobs + api_response = api_instance.slurm_v0044_delete_jobs(v0044_kill_jobs_msg=v0044_kill_jobs_msg) + print("The response of SlurmApi->slurm_v0044_delete_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_delete_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_kill_jobs_msg** | [**V0044KillJobsMsg**](V0044KillJobsMsg.md)| Signal or cancel jobs | [optional] + +### Return type + +[**V0044OpenapiKillJobsResp**](V0044OpenapiKillJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | description of jobs to signal | - | +**0** | description of jobs to signal | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_delete_node** +> V0044OpenapiResp slurm_v0044_delete_node(node_name) + +delete node + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + + try: + # delete node + api_response = api_instance.slurm_v0044_delete_node(node_name) + print("The response of SlurmApi->slurm_v0044_delete_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_delete_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node delete request result | - | +**0** | node delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_delete_reservation** +> V0044OpenapiResp slurm_v0044_delete_reservation(reservation_name) + +delete a reservation + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + + try: + # delete a reservation + api_response = api_instance.slurm_v0044_delete_reservation(reservation_name) + print("The response of SlurmApi->slurm_v0044_delete_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_delete_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation delete request result | - | +**0** | reservation delete request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_diag** +> V0044OpenapiDiagResp slurm_v0044_get_diag() + +get diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_diag_resp import V0044OpenapiDiagResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get diagnostics + api_response = api_instance.slurm_v0044_get_diag() + print("The response of SlurmApi->slurm_v0044_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiDiagResp**](V0044OpenapiDiagResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | diagnostic results | - | +**0** | diagnostic results | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_job** +> V0044OpenapiJobInfoResp slurm_v0044_get_job(job_id, update_time=update_time, flags=flags) + +get job info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get job info + api_response = api_instance.slurm_v0044_get_job(job_id, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0044_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0044OpenapiJobInfoResp**](V0044OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_jobs** +> V0044OpenapiJobInfoResp slurm_v0044_get_jobs(update_time=update_time, flags=flags) + +get list of jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get list of jobs + api_response = api_instance.slurm_v0044_get_jobs(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0044_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0044OpenapiJobInfoResp**](V0044OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) information | - | +**0** | job(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_jobs_state** +> V0044OpenapiJobInfoResp slurm_v0044_get_jobs_state(job_id=job_id) + +get list of job states + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | CSV list of Job IDs to search for (optional) + + try: + # get list of job states + api_response = api_instance.slurm_v0044_get_jobs_state(job_id=job_id) + print("The response of SlurmApi->slurm_v0044_get_jobs_state:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_jobs_state: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| CSV list of Job IDs to search for | [optional] + +### Return type + +[**V0044OpenapiJobInfoResp**](V0044OpenapiJobInfoResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job(s) state information | - | +**0** | job(s) state information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_licenses** +> V0044OpenapiLicensesResp slurm_v0044_get_licenses() + +get all Slurm tracked license info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_licenses_resp import V0044OpenapiLicensesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # get all Slurm tracked license info + api_response = api_instance.slurm_v0044_get_licenses() + print("The response of SlurmApi->slurm_v0044_get_licenses:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_licenses: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiLicensesResp**](V0044OpenapiLicensesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of get all licenses | - | +**0** | results of get all licenses | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_node** +> V0044OpenapiNodesResp slurm_v0044_get_node(node_name, update_time=update_time, flags=flags) + +get node info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_nodes_resp import V0044OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node info + api_response = api_instance.slurm_v0044_get_node(node_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0044_get_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0044OpenapiNodesResp**](V0044OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node information | - | +**0** | node information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_nodes** +> V0044OpenapiNodesResp slurm_v0044_get_nodes(update_time=update_time, flags=flags) + +get node(s) info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_nodes_resp import V0044OpenapiNodesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query jobs updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get node(s) info + api_response = api_instance.slurm_v0044_get_nodes(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0044_get_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query jobs updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0044OpenapiNodesResp**](V0044OpenapiNodesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node(s) information | - | +**0** | node(s) information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_partition** +> V0044OpenapiPartitionResp slurm_v0044_get_partition(partition_name, update_time=update_time, flags=flags) + +get partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_partition_resp import V0044OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + partition_name = 'partition_name_example' # str | Partition name + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get partition info + api_response = api_instance.slurm_v0044_get_partition(partition_name, update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0044_get_partition:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_partition: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **partition_name** | **str**| Partition name | + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0044OpenapiPartitionResp**](V0044OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_partitions** +> V0044OpenapiPartitionResp slurm_v0044_get_partitions(update_time=update_time, flags=flags) + +get all partition info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_partition_resp import V0044OpenapiPartitionResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + + try: + # get all partition info + api_response = api_instance.slurm_v0044_get_partitions(update_time=update_time, flags=flags) + print("The response of SlurmApi->slurm_v0044_get_partitions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_partitions: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + +### Return type + +[**V0044OpenapiPartitionResp**](V0044OpenapiPartitionResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | partition information | - | +**0** | partition information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_ping** +> V0044OpenapiPingArrayResp slurm_v0044_get_ping() + +ping test + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_ping_array_resp import V0044OpenapiPingArrayResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # ping test + api_response = api_instance.slurm_v0044_get_ping() + print("The response of SlurmApi->slurm_v0044_get_ping:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_ping: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiPingArrayResp**](V0044OpenapiPingArrayResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_reconfigure** +> V0044OpenapiResp slurm_v0044_get_reconfigure() + +request slurmctld reconfigure + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + + try: + # request slurmctld reconfigure + api_response = api_instance.slurm_v0044_get_reconfigure() + print("The response of SlurmApi->slurm_v0044_get_reconfigure:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_reconfigure: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reconfigure request result | - | +**0** | reconfigure request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_reservation** +> V0044OpenapiReservationResp slurm_v0044_get_reservation(reservation_name, update_time=update_time) + +get reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_reservation_resp import V0044OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + reservation_name = 'reservation_name_example' # str | Reservation name + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # get reservation info + api_response = api_instance.slurm_v0044_get_reservation(reservation_name, update_time=update_time) + print("The response of SlurmApi->slurm_v0044_get_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_name** | **str**| Reservation name | + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0044OpenapiReservationResp**](V0044OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_reservations** +> V0044OpenapiReservationResp slurm_v0044_get_reservations(update_time=update_time) + +get all reservation info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_reservation_resp import V0044OpenapiReservationResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # get all reservation info + api_response = api_instance.slurm_v0044_get_reservations(update_time=update_time) + print("The response of SlurmApi->slurm_v0044_get_reservations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_reservations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0044OpenapiReservationResp**](V0044OpenapiReservationResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation information | - | +**0** | reservation information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_resources** +> V0044OpenapiResourceLayoutResp slurm_v0044_get_resources(job_id) + +get resource layout info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resource_layout_resp import V0044OpenapiResourceLayoutResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + + try: + # get resource layout info + api_response = api_instance.slurm_v0044_get_resources(job_id) + print("The response of SlurmApi->slurm_v0044_get_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_resources: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + +### Return type + +[**V0044OpenapiResourceLayoutResp**](V0044OpenapiResourceLayoutResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | resource layout information | - | +**0** | resource layout information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_get_shares** +> V0044OpenapiSharesResp slurm_v0044_get_shares(accounts=accounts, users=users) + +get fairshare info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_shares_resp import V0044OpenapiSharesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + accounts = 'accounts_example' # str | Accounts to query (optional) + users = 'users_example' # str | Users to query (optional) + + try: + # get fairshare info + api_response = api_instance.slurm_v0044_get_shares(accounts=accounts, users=users) + print("The response of SlurmApi->slurm_v0044_get_shares:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_get_shares: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accounts** | **str**| Accounts to query | [optional] + **users** | **str**| Users to query | [optional] + +### Return type + +[**V0044OpenapiSharesResp**](V0044OpenapiSharesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | shares information | - | +**0** | shares information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_job** +> V0044OpenapiJobPostResponse slurm_v0044_post_job(job_id, v0044_job_desc_msg=v0044_job_desc_msg) + +update job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg +from slurmrest_python.models.v0044_openapi_job_post_response import V0044OpenapiJobPostResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + job_id = 'job_id_example' # str | Job ID + v0044_job_desc_msg = slurmrest_python.V0044JobDescMsg() # V0044JobDescMsg | Job update description (optional) + + try: + # update job + api_response = api_instance.slurm_v0044_post_job(job_id, v0044_job_desc_msg=v0044_job_desc_msg) + print("The response of SlurmApi->slurm_v0044_post_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **v0044_job_desc_msg** | [**V0044JobDescMsg**](V0044JobDescMsg.md)| Job update description | [optional] + +### Return type + +[**V0044OpenapiJobPostResponse**](V0044OpenapiJobPostResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job update result | - | +**0** | job update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_job_allocate** +> V0044OpenapiJobAllocResp slurm_v0044_post_job_allocate(v0044_job_alloc_req=v0044_job_alloc_req) + +submit new job allocation without any steps that must be signaled to stop + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_job_alloc_req import V0044JobAllocReq +from slurmrest_python.models.v0044_openapi_job_alloc_resp import V0044OpenapiJobAllocResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0044_job_alloc_req = slurmrest_python.V0044JobAllocReq() # V0044JobAllocReq | Job allocation description (optional) + + try: + # submit new job allocation without any steps that must be signaled to stop + api_response = api_instance.slurm_v0044_post_job_allocate(v0044_job_alloc_req=v0044_job_alloc_req) + print("The response of SlurmApi->slurm_v0044_post_job_allocate:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_job_allocate: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_job_alloc_req** | [**V0044JobAllocReq**](V0044JobAllocReq.md)| Job allocation description | [optional] + +### Return type + +[**V0044OpenapiJobAllocResp**](V0044OpenapiJobAllocResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job allocation response | - | +**0** | job allocation response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_job_submit** +> V0044OpenapiJobSubmitResponse slurm_v0044_post_job_submit(v0044_job_submit_req=v0044_job_submit_req) + +submit new job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_job_submit_req import V0044JobSubmitReq +from slurmrest_python.models.v0044_openapi_job_submit_response import V0044OpenapiJobSubmitResponse +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0044_job_submit_req = slurmrest_python.V0044JobSubmitReq() # V0044JobSubmitReq | Job description (optional) + + try: + # submit new job + api_response = api_instance.slurm_v0044_post_job_submit(v0044_job_submit_req=v0044_job_submit_req) + print("The response of SlurmApi->slurm_v0044_post_job_submit:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_job_submit: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_job_submit_req** | [**V0044JobSubmitReq**](V0044JobSubmitReq.md)| Job description | [optional] + +### Return type + +[**V0044OpenapiJobSubmitResponse**](V0044OpenapiJobSubmitResponse.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | job submission response | - | +**0** | job submission response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_new_node** +> V0044OpenapiResp slurm_v0044_post_new_node(v0044_openapi_create_node_req=v0044_openapi_create_node_req) + +create node + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_create_node_req import V0044OpenapiCreateNodeReq +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0044_openapi_create_node_req = slurmrest_python.V0044OpenapiCreateNodeReq() # V0044OpenapiCreateNodeReq | node create request (optional) + + try: + # create node + api_response = api_instance.slurm_v0044_post_new_node(v0044_openapi_create_node_req=v0044_openapi_create_node_req) + print("The response of SlurmApi->slurm_v0044_post_new_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_new_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_create_node_req** | [**V0044OpenapiCreateNodeReq**](V0044OpenapiCreateNodeReq.md)| node create request | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node create request result | - | +**0** | node create request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_node** +> V0044OpenapiResp slurm_v0044_post_node(node_name, v0044_update_node_msg=v0044_update_node_msg) + +update node properties + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_update_node_msg import V0044UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + node_name = 'node_name_example' # str | Node name + v0044_update_node_msg = slurmrest_python.V0044UpdateNodeMsg() # V0044UpdateNodeMsg | Node update description (optional) + + try: + # update node properties + api_response = api_instance.slurm_v0044_post_node(node_name, v0044_update_node_msg=v0044_update_node_msg) + print("The response of SlurmApi->slurm_v0044_post_node:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_node: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_name** | **str**| Node name | + **v0044_update_node_msg** | [**V0044UpdateNodeMsg**](V0044UpdateNodeMsg.md)| Node update description | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | node update request result | - | +**0** | node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_nodes** +> V0044OpenapiResp slurm_v0044_post_nodes(v0044_update_node_msg=v0044_update_node_msg) + +batch update node(s) + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_update_node_msg import V0044UpdateNodeMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0044_update_node_msg = slurmrest_python.V0044UpdateNodeMsg() # V0044UpdateNodeMsg | Nodelist update description (optional) + + try: + # batch update node(s) + api_response = api_instance.slurm_v0044_post_nodes(v0044_update_node_msg=v0044_update_node_msg) + print("The response of SlurmApi->slurm_v0044_post_nodes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_update_node_msg** | [**V0044UpdateNodeMsg**](V0044UpdateNodeMsg.md)| Nodelist update description | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | batch node update request result | - | +**0** | batch node update request result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_reservation** +> V0044OpenapiReservationModResp slurm_v0044_post_reservation(v0044_reservation_desc_msg=v0044_reservation_desc_msg) + +create or update a reservation + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_reservation_mod_resp import V0044OpenapiReservationModResp +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0044_reservation_desc_msg = slurmrest_python.V0044ReservationDescMsg() # V0044ReservationDescMsg | reservation description (optional) + + try: + # create or update a reservation + api_response = api_instance.slurm_v0044_post_reservation(v0044_reservation_desc_msg=v0044_reservation_desc_msg) + print("The response of SlurmApi->slurm_v0044_post_reservation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_reservation: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_reservation_desc_msg** | [**V0044ReservationDescMsg**](V0044ReservationDescMsg.md)| reservation description | [optional] + +### Return type + +[**V0044OpenapiReservationModResp**](V0044OpenapiReservationModResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation description | - | +**0** | reservation description | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurm_v0044_post_reservations** +> V0044OpenapiReservationModResp slurm_v0044_post_reservations(v0044_reservation_mod_req=v0044_reservation_mod_req) + +create or update reservations + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_reservation_mod_resp import V0044OpenapiReservationModResp +from slurmrest_python.models.v0044_reservation_mod_req import V0044ReservationModReq +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmApi(api_client) + v0044_reservation_mod_req = slurmrest_python.V0044ReservationModReq() # V0044ReservationModReq | reservation descriptions (optional) + + try: + # create or update reservations + api_response = api_instance.slurm_v0044_post_reservations(v0044_reservation_mod_req=v0044_reservation_mod_req) + print("The response of SlurmApi->slurm_v0044_post_reservations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmApi->slurm_v0044_post_reservations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_reservation_mod_req** | [**V0044ReservationModReq**](V0044ReservationModReq.md)| reservation descriptions | [optional] + +### Return type + +[**V0044OpenapiReservationModResp**](V0044OpenapiReservationModResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | reservation descriptions | - | +**0** | reservation descriptions | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SlurmdbApi.md b/docs/SlurmdbApi.md new file mode 100644 index 0000000..9b6ae93 --- /dev/null +++ b/docs/SlurmdbApi.md @@ -0,0 +1,15214 @@ +# slurmrest_python.SlurmdbApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**slurmdb_v0041_delete_account**](SlurmdbApi.md#slurmdb_v0041_delete_account) | **DELETE** /slurmdb/v0.0.41/account/{account_name} | Delete account +[**slurmdb_v0041_delete_association**](SlurmdbApi.md#slurmdb_v0041_delete_association) | **DELETE** /slurmdb/v0.0.41/association/ | Delete association +[**slurmdb_v0041_delete_associations**](SlurmdbApi.md#slurmdb_v0041_delete_associations) | **DELETE** /slurmdb/v0.0.41/associations/ | Delete associations +[**slurmdb_v0041_delete_cluster**](SlurmdbApi.md#slurmdb_v0041_delete_cluster) | **DELETE** /slurmdb/v0.0.41/cluster/{cluster_name} | Delete cluster +[**slurmdb_v0041_delete_single_qos**](SlurmdbApi.md#slurmdb_v0041_delete_single_qos) | **DELETE** /slurmdb/v0.0.41/qos/{qos} | Delete QOS +[**slurmdb_v0041_delete_user**](SlurmdbApi.md#slurmdb_v0041_delete_user) | **DELETE** /slurmdb/v0.0.41/user/{name} | Delete user +[**slurmdb_v0041_delete_wckey**](SlurmdbApi.md#slurmdb_v0041_delete_wckey) | **DELETE** /slurmdb/v0.0.41/wckey/{id} | Delete wckey +[**slurmdb_v0041_get_account**](SlurmdbApi.md#slurmdb_v0041_get_account) | **GET** /slurmdb/v0.0.41/account/{account_name} | Get account info +[**slurmdb_v0041_get_accounts**](SlurmdbApi.md#slurmdb_v0041_get_accounts) | **GET** /slurmdb/v0.0.41/accounts/ | Get account list +[**slurmdb_v0041_get_association**](SlurmdbApi.md#slurmdb_v0041_get_association) | **GET** /slurmdb/v0.0.41/association/ | Get association info +[**slurmdb_v0041_get_associations**](SlurmdbApi.md#slurmdb_v0041_get_associations) | **GET** /slurmdb/v0.0.41/associations/ | Get association list +[**slurmdb_v0041_get_cluster**](SlurmdbApi.md#slurmdb_v0041_get_cluster) | **GET** /slurmdb/v0.0.41/cluster/{cluster_name} | Get cluster info +[**slurmdb_v0041_get_clusters**](SlurmdbApi.md#slurmdb_v0041_get_clusters) | **GET** /slurmdb/v0.0.41/clusters/ | Get cluster list +[**slurmdb_v0041_get_config**](SlurmdbApi.md#slurmdb_v0041_get_config) | **GET** /slurmdb/v0.0.41/config | Dump all configuration information +[**slurmdb_v0041_get_diag**](SlurmdbApi.md#slurmdb_v0041_get_diag) | **GET** /slurmdb/v0.0.41/diag/ | Get slurmdb diagnostics +[**slurmdb_v0041_get_instance**](SlurmdbApi.md#slurmdb_v0041_get_instance) | **GET** /slurmdb/v0.0.41/instance/ | Get instance info +[**slurmdb_v0041_get_instances**](SlurmdbApi.md#slurmdb_v0041_get_instances) | **GET** /slurmdb/v0.0.41/instances/ | Get instance list +[**slurmdb_v0041_get_job**](SlurmdbApi.md#slurmdb_v0041_get_job) | **GET** /slurmdb/v0.0.41/job/{job_id} | Get job info +[**slurmdb_v0041_get_jobs**](SlurmdbApi.md#slurmdb_v0041_get_jobs) | **GET** /slurmdb/v0.0.41/jobs/ | Get job list +[**slurmdb_v0041_get_qos**](SlurmdbApi.md#slurmdb_v0041_get_qos) | **GET** /slurmdb/v0.0.41/qos/ | Get QOS list +[**slurmdb_v0041_get_single_qos**](SlurmdbApi.md#slurmdb_v0041_get_single_qos) | **GET** /slurmdb/v0.0.41/qos/{qos} | Get QOS info +[**slurmdb_v0041_get_tres**](SlurmdbApi.md#slurmdb_v0041_get_tres) | **GET** /slurmdb/v0.0.41/tres/ | Get TRES info +[**slurmdb_v0041_get_user**](SlurmdbApi.md#slurmdb_v0041_get_user) | **GET** /slurmdb/v0.0.41/user/{name} | Get user info +[**slurmdb_v0041_get_users**](SlurmdbApi.md#slurmdb_v0041_get_users) | **GET** /slurmdb/v0.0.41/users/ | Get user list +[**slurmdb_v0041_get_wckey**](SlurmdbApi.md#slurmdb_v0041_get_wckey) | **GET** /slurmdb/v0.0.41/wckey/{id} | Get wckey info +[**slurmdb_v0041_get_wckeys**](SlurmdbApi.md#slurmdb_v0041_get_wckeys) | **GET** /slurmdb/v0.0.41/wckeys/ | Get wckey list +[**slurmdb_v0041_post_accounts**](SlurmdbApi.md#slurmdb_v0041_post_accounts) | **POST** /slurmdb/v0.0.41/accounts/ | Add/update list of accounts +[**slurmdb_v0041_post_accounts_association**](SlurmdbApi.md#slurmdb_v0041_post_accounts_association) | **POST** /slurmdb/v0.0.41/accounts_association/ | Add accounts with conditional association +[**slurmdb_v0041_post_associations**](SlurmdbApi.md#slurmdb_v0041_post_associations) | **POST** /slurmdb/v0.0.41/associations/ | Set associations info +[**slurmdb_v0041_post_clusters**](SlurmdbApi.md#slurmdb_v0041_post_clusters) | **POST** /slurmdb/v0.0.41/clusters/ | Get cluster list +[**slurmdb_v0041_post_config**](SlurmdbApi.md#slurmdb_v0041_post_config) | **POST** /slurmdb/v0.0.41/config | Load all configuration information +[**slurmdb_v0041_post_qos**](SlurmdbApi.md#slurmdb_v0041_post_qos) | **POST** /slurmdb/v0.0.41/qos/ | Add or update QOSs +[**slurmdb_v0041_post_tres**](SlurmdbApi.md#slurmdb_v0041_post_tres) | **POST** /slurmdb/v0.0.41/tres/ | Add TRES +[**slurmdb_v0041_post_users**](SlurmdbApi.md#slurmdb_v0041_post_users) | **POST** /slurmdb/v0.0.41/users/ | Update users +[**slurmdb_v0041_post_users_association**](SlurmdbApi.md#slurmdb_v0041_post_users_association) | **POST** /slurmdb/v0.0.41/users_association/ | Add users with conditional association +[**slurmdb_v0041_post_wckeys**](SlurmdbApi.md#slurmdb_v0041_post_wckeys) | **POST** /slurmdb/v0.0.41/wckeys/ | Add or update wckeys +[**slurmdb_v0042_delete_account**](SlurmdbApi.md#slurmdb_v0042_delete_account) | **DELETE** /slurmdb/v0.0.42/account/{account_name} | Delete account +[**slurmdb_v0042_delete_association**](SlurmdbApi.md#slurmdb_v0042_delete_association) | **DELETE** /slurmdb/v0.0.42/association/ | Delete association +[**slurmdb_v0042_delete_associations**](SlurmdbApi.md#slurmdb_v0042_delete_associations) | **DELETE** /slurmdb/v0.0.42/associations/ | Delete associations +[**slurmdb_v0042_delete_cluster**](SlurmdbApi.md#slurmdb_v0042_delete_cluster) | **DELETE** /slurmdb/v0.0.42/cluster/{cluster_name} | Delete cluster +[**slurmdb_v0042_delete_single_qos**](SlurmdbApi.md#slurmdb_v0042_delete_single_qos) | **DELETE** /slurmdb/v0.0.42/qos/{qos} | Delete QOS +[**slurmdb_v0042_delete_user**](SlurmdbApi.md#slurmdb_v0042_delete_user) | **DELETE** /slurmdb/v0.0.42/user/{name} | Delete user +[**slurmdb_v0042_delete_wckey**](SlurmdbApi.md#slurmdb_v0042_delete_wckey) | **DELETE** /slurmdb/v0.0.42/wckey/{id} | Delete wckey +[**slurmdb_v0042_get_account**](SlurmdbApi.md#slurmdb_v0042_get_account) | **GET** /slurmdb/v0.0.42/account/{account_name} | Get account info +[**slurmdb_v0042_get_accounts**](SlurmdbApi.md#slurmdb_v0042_get_accounts) | **GET** /slurmdb/v0.0.42/accounts/ | Get account list +[**slurmdb_v0042_get_association**](SlurmdbApi.md#slurmdb_v0042_get_association) | **GET** /slurmdb/v0.0.42/association/ | Get association info +[**slurmdb_v0042_get_associations**](SlurmdbApi.md#slurmdb_v0042_get_associations) | **GET** /slurmdb/v0.0.42/associations/ | Get association list +[**slurmdb_v0042_get_cluster**](SlurmdbApi.md#slurmdb_v0042_get_cluster) | **GET** /slurmdb/v0.0.42/cluster/{cluster_name} | Get cluster info +[**slurmdb_v0042_get_clusters**](SlurmdbApi.md#slurmdb_v0042_get_clusters) | **GET** /slurmdb/v0.0.42/clusters/ | Get cluster list +[**slurmdb_v0042_get_config**](SlurmdbApi.md#slurmdb_v0042_get_config) | **GET** /slurmdb/v0.0.42/config | Dump all configuration information +[**slurmdb_v0042_get_diag**](SlurmdbApi.md#slurmdb_v0042_get_diag) | **GET** /slurmdb/v0.0.42/diag/ | Get slurmdb diagnostics +[**slurmdb_v0042_get_instance**](SlurmdbApi.md#slurmdb_v0042_get_instance) | **GET** /slurmdb/v0.0.42/instance/ | Get instance info +[**slurmdb_v0042_get_instances**](SlurmdbApi.md#slurmdb_v0042_get_instances) | **GET** /slurmdb/v0.0.42/instances/ | Get instance list +[**slurmdb_v0042_get_job**](SlurmdbApi.md#slurmdb_v0042_get_job) | **GET** /slurmdb/v0.0.42/job/{job_id} | Get job info +[**slurmdb_v0042_get_jobs**](SlurmdbApi.md#slurmdb_v0042_get_jobs) | **GET** /slurmdb/v0.0.42/jobs/ | Get job list +[**slurmdb_v0042_get_ping**](SlurmdbApi.md#slurmdb_v0042_get_ping) | **GET** /slurmdb/v0.0.42/ping/ | ping test +[**slurmdb_v0042_get_qos**](SlurmdbApi.md#slurmdb_v0042_get_qos) | **GET** /slurmdb/v0.0.42/qos/ | Get QOS list +[**slurmdb_v0042_get_single_qos**](SlurmdbApi.md#slurmdb_v0042_get_single_qos) | **GET** /slurmdb/v0.0.42/qos/{qos} | Get QOS info +[**slurmdb_v0042_get_tres**](SlurmdbApi.md#slurmdb_v0042_get_tres) | **GET** /slurmdb/v0.0.42/tres/ | Get TRES info +[**slurmdb_v0042_get_user**](SlurmdbApi.md#slurmdb_v0042_get_user) | **GET** /slurmdb/v0.0.42/user/{name} | Get user info +[**slurmdb_v0042_get_users**](SlurmdbApi.md#slurmdb_v0042_get_users) | **GET** /slurmdb/v0.0.42/users/ | Get user list +[**slurmdb_v0042_get_wckey**](SlurmdbApi.md#slurmdb_v0042_get_wckey) | **GET** /slurmdb/v0.0.42/wckey/{id} | Get wckey info +[**slurmdb_v0042_get_wckeys**](SlurmdbApi.md#slurmdb_v0042_get_wckeys) | **GET** /slurmdb/v0.0.42/wckeys/ | Get wckey list +[**slurmdb_v0042_post_accounts**](SlurmdbApi.md#slurmdb_v0042_post_accounts) | **POST** /slurmdb/v0.0.42/accounts/ | Add/update list of accounts +[**slurmdb_v0042_post_accounts_association**](SlurmdbApi.md#slurmdb_v0042_post_accounts_association) | **POST** /slurmdb/v0.0.42/accounts_association/ | Add accounts with conditional association +[**slurmdb_v0042_post_associations**](SlurmdbApi.md#slurmdb_v0042_post_associations) | **POST** /slurmdb/v0.0.42/associations/ | Set associations info +[**slurmdb_v0042_post_clusters**](SlurmdbApi.md#slurmdb_v0042_post_clusters) | **POST** /slurmdb/v0.0.42/clusters/ | Get cluster list +[**slurmdb_v0042_post_config**](SlurmdbApi.md#slurmdb_v0042_post_config) | **POST** /slurmdb/v0.0.42/config | Load all configuration information +[**slurmdb_v0042_post_qos**](SlurmdbApi.md#slurmdb_v0042_post_qos) | **POST** /slurmdb/v0.0.42/qos/ | Add or update QOSs +[**slurmdb_v0042_post_tres**](SlurmdbApi.md#slurmdb_v0042_post_tres) | **POST** /slurmdb/v0.0.42/tres/ | Add TRES +[**slurmdb_v0042_post_users**](SlurmdbApi.md#slurmdb_v0042_post_users) | **POST** /slurmdb/v0.0.42/users/ | Update users +[**slurmdb_v0042_post_users_association**](SlurmdbApi.md#slurmdb_v0042_post_users_association) | **POST** /slurmdb/v0.0.42/users_association/ | Add users with conditional association +[**slurmdb_v0042_post_wckeys**](SlurmdbApi.md#slurmdb_v0042_post_wckeys) | **POST** /slurmdb/v0.0.42/wckeys/ | Add or update wckeys +[**slurmdb_v0043_delete_account**](SlurmdbApi.md#slurmdb_v0043_delete_account) | **DELETE** /slurmdb/v0.0.43/account/{account_name} | Delete account +[**slurmdb_v0043_delete_association**](SlurmdbApi.md#slurmdb_v0043_delete_association) | **DELETE** /slurmdb/v0.0.43/association/ | Delete association +[**slurmdb_v0043_delete_associations**](SlurmdbApi.md#slurmdb_v0043_delete_associations) | **DELETE** /slurmdb/v0.0.43/associations/ | Delete associations +[**slurmdb_v0043_delete_cluster**](SlurmdbApi.md#slurmdb_v0043_delete_cluster) | **DELETE** /slurmdb/v0.0.43/cluster/{cluster_name} | Delete cluster +[**slurmdb_v0043_delete_single_qos**](SlurmdbApi.md#slurmdb_v0043_delete_single_qos) | **DELETE** /slurmdb/v0.0.43/qos/{qos} | Delete QOS +[**slurmdb_v0043_delete_user**](SlurmdbApi.md#slurmdb_v0043_delete_user) | **DELETE** /slurmdb/v0.0.43/user/{name} | Delete user +[**slurmdb_v0043_delete_wckey**](SlurmdbApi.md#slurmdb_v0043_delete_wckey) | **DELETE** /slurmdb/v0.0.43/wckey/{id} | Delete wckey +[**slurmdb_v0043_get_account**](SlurmdbApi.md#slurmdb_v0043_get_account) | **GET** /slurmdb/v0.0.43/account/{account_name} | Get account info +[**slurmdb_v0043_get_accounts**](SlurmdbApi.md#slurmdb_v0043_get_accounts) | **GET** /slurmdb/v0.0.43/accounts/ | Get account list +[**slurmdb_v0043_get_association**](SlurmdbApi.md#slurmdb_v0043_get_association) | **GET** /slurmdb/v0.0.43/association/ | Get association info +[**slurmdb_v0043_get_associations**](SlurmdbApi.md#slurmdb_v0043_get_associations) | **GET** /slurmdb/v0.0.43/associations/ | Get association list +[**slurmdb_v0043_get_cluster**](SlurmdbApi.md#slurmdb_v0043_get_cluster) | **GET** /slurmdb/v0.0.43/cluster/{cluster_name} | Get cluster info +[**slurmdb_v0043_get_clusters**](SlurmdbApi.md#slurmdb_v0043_get_clusters) | **GET** /slurmdb/v0.0.43/clusters/ | Get cluster list +[**slurmdb_v0043_get_config**](SlurmdbApi.md#slurmdb_v0043_get_config) | **GET** /slurmdb/v0.0.43/config | Dump all configuration information +[**slurmdb_v0043_get_diag**](SlurmdbApi.md#slurmdb_v0043_get_diag) | **GET** /slurmdb/v0.0.43/diag/ | Get slurmdb diagnostics +[**slurmdb_v0043_get_instance**](SlurmdbApi.md#slurmdb_v0043_get_instance) | **GET** /slurmdb/v0.0.43/instance/ | Get instance info +[**slurmdb_v0043_get_instances**](SlurmdbApi.md#slurmdb_v0043_get_instances) | **GET** /slurmdb/v0.0.43/instances/ | Get instance list +[**slurmdb_v0043_get_job**](SlurmdbApi.md#slurmdb_v0043_get_job) | **GET** /slurmdb/v0.0.43/job/{job_id} | Get job info +[**slurmdb_v0043_get_jobs**](SlurmdbApi.md#slurmdb_v0043_get_jobs) | **GET** /slurmdb/v0.0.43/jobs/ | Get job list +[**slurmdb_v0043_get_ping**](SlurmdbApi.md#slurmdb_v0043_get_ping) | **GET** /slurmdb/v0.0.43/ping/ | ping test +[**slurmdb_v0043_get_qos**](SlurmdbApi.md#slurmdb_v0043_get_qos) | **GET** /slurmdb/v0.0.43/qos/ | Get QOS list +[**slurmdb_v0043_get_single_qos**](SlurmdbApi.md#slurmdb_v0043_get_single_qos) | **GET** /slurmdb/v0.0.43/qos/{qos} | Get QOS info +[**slurmdb_v0043_get_tres**](SlurmdbApi.md#slurmdb_v0043_get_tres) | **GET** /slurmdb/v0.0.43/tres/ | Get TRES info +[**slurmdb_v0043_get_user**](SlurmdbApi.md#slurmdb_v0043_get_user) | **GET** /slurmdb/v0.0.43/user/{name} | Get user info +[**slurmdb_v0043_get_users**](SlurmdbApi.md#slurmdb_v0043_get_users) | **GET** /slurmdb/v0.0.43/users/ | Get user list +[**slurmdb_v0043_get_wckey**](SlurmdbApi.md#slurmdb_v0043_get_wckey) | **GET** /slurmdb/v0.0.43/wckey/{id} | Get wckey info +[**slurmdb_v0043_get_wckeys**](SlurmdbApi.md#slurmdb_v0043_get_wckeys) | **GET** /slurmdb/v0.0.43/wckeys/ | Get wckey list +[**slurmdb_v0043_post_accounts**](SlurmdbApi.md#slurmdb_v0043_post_accounts) | **POST** /slurmdb/v0.0.43/accounts/ | Add/update list of accounts +[**slurmdb_v0043_post_accounts_association**](SlurmdbApi.md#slurmdb_v0043_post_accounts_association) | **POST** /slurmdb/v0.0.43/accounts_association/ | Add accounts with conditional association +[**slurmdb_v0043_post_associations**](SlurmdbApi.md#slurmdb_v0043_post_associations) | **POST** /slurmdb/v0.0.43/associations/ | Set associations info +[**slurmdb_v0043_post_clusters**](SlurmdbApi.md#slurmdb_v0043_post_clusters) | **POST** /slurmdb/v0.0.43/clusters/ | Get cluster list +[**slurmdb_v0043_post_config**](SlurmdbApi.md#slurmdb_v0043_post_config) | **POST** /slurmdb/v0.0.43/config | Load all configuration information +[**slurmdb_v0043_post_qos**](SlurmdbApi.md#slurmdb_v0043_post_qos) | **POST** /slurmdb/v0.0.43/qos/ | Add or update QOSs +[**slurmdb_v0043_post_tres**](SlurmdbApi.md#slurmdb_v0043_post_tres) | **POST** /slurmdb/v0.0.43/tres/ | Add TRES +[**slurmdb_v0043_post_users**](SlurmdbApi.md#slurmdb_v0043_post_users) | **POST** /slurmdb/v0.0.43/users/ | Update users +[**slurmdb_v0043_post_users_association**](SlurmdbApi.md#slurmdb_v0043_post_users_association) | **POST** /slurmdb/v0.0.43/users_association/ | Add users with conditional association +[**slurmdb_v0043_post_wckeys**](SlurmdbApi.md#slurmdb_v0043_post_wckeys) | **POST** /slurmdb/v0.0.43/wckeys/ | Add or update wckeys +[**slurmdb_v0044_delete_account**](SlurmdbApi.md#slurmdb_v0044_delete_account) | **DELETE** /slurmdb/v0.0.44/account/{account_name} | Delete account +[**slurmdb_v0044_delete_association**](SlurmdbApi.md#slurmdb_v0044_delete_association) | **DELETE** /slurmdb/v0.0.44/association/ | Delete association +[**slurmdb_v0044_delete_associations**](SlurmdbApi.md#slurmdb_v0044_delete_associations) | **DELETE** /slurmdb/v0.0.44/associations/ | Delete associations +[**slurmdb_v0044_delete_cluster**](SlurmdbApi.md#slurmdb_v0044_delete_cluster) | **DELETE** /slurmdb/v0.0.44/cluster/{cluster_name} | Delete cluster +[**slurmdb_v0044_delete_single_qos**](SlurmdbApi.md#slurmdb_v0044_delete_single_qos) | **DELETE** /slurmdb/v0.0.44/qos/{qos} | Delete QOS +[**slurmdb_v0044_delete_user**](SlurmdbApi.md#slurmdb_v0044_delete_user) | **DELETE** /slurmdb/v0.0.44/user/{name} | Delete user +[**slurmdb_v0044_delete_wckey**](SlurmdbApi.md#slurmdb_v0044_delete_wckey) | **DELETE** /slurmdb/v0.0.44/wckey/{id} | Delete wckey +[**slurmdb_v0044_get_account**](SlurmdbApi.md#slurmdb_v0044_get_account) | **GET** /slurmdb/v0.0.44/account/{account_name} | Get account info +[**slurmdb_v0044_get_accounts**](SlurmdbApi.md#slurmdb_v0044_get_accounts) | **GET** /slurmdb/v0.0.44/accounts/ | Get account list +[**slurmdb_v0044_get_association**](SlurmdbApi.md#slurmdb_v0044_get_association) | **GET** /slurmdb/v0.0.44/association/ | Get association info +[**slurmdb_v0044_get_associations**](SlurmdbApi.md#slurmdb_v0044_get_associations) | **GET** /slurmdb/v0.0.44/associations/ | Get association list +[**slurmdb_v0044_get_cluster**](SlurmdbApi.md#slurmdb_v0044_get_cluster) | **GET** /slurmdb/v0.0.44/cluster/{cluster_name} | Get cluster info +[**slurmdb_v0044_get_clusters**](SlurmdbApi.md#slurmdb_v0044_get_clusters) | **GET** /slurmdb/v0.0.44/clusters/ | Get cluster list +[**slurmdb_v0044_get_config**](SlurmdbApi.md#slurmdb_v0044_get_config) | **GET** /slurmdb/v0.0.44/config | Dump all configuration information +[**slurmdb_v0044_get_diag**](SlurmdbApi.md#slurmdb_v0044_get_diag) | **GET** /slurmdb/v0.0.44/diag/ | Get slurmdb diagnostics +[**slurmdb_v0044_get_instance**](SlurmdbApi.md#slurmdb_v0044_get_instance) | **GET** /slurmdb/v0.0.44/instance/ | Get instance info +[**slurmdb_v0044_get_instances**](SlurmdbApi.md#slurmdb_v0044_get_instances) | **GET** /slurmdb/v0.0.44/instances/ | Get instance list +[**slurmdb_v0044_get_job**](SlurmdbApi.md#slurmdb_v0044_get_job) | **GET** /slurmdb/v0.0.44/job/{job_id} | Get job info +[**slurmdb_v0044_get_jobs**](SlurmdbApi.md#slurmdb_v0044_get_jobs) | **GET** /slurmdb/v0.0.44/jobs/ | Get job list +[**slurmdb_v0044_get_ping**](SlurmdbApi.md#slurmdb_v0044_get_ping) | **GET** /slurmdb/v0.0.44/ping/ | ping test +[**slurmdb_v0044_get_qos**](SlurmdbApi.md#slurmdb_v0044_get_qos) | **GET** /slurmdb/v0.0.44/qos/ | Get QOS list +[**slurmdb_v0044_get_single_qos**](SlurmdbApi.md#slurmdb_v0044_get_single_qos) | **GET** /slurmdb/v0.0.44/qos/{qos} | Get QOS info +[**slurmdb_v0044_get_tres**](SlurmdbApi.md#slurmdb_v0044_get_tres) | **GET** /slurmdb/v0.0.44/tres/ | Get TRES info +[**slurmdb_v0044_get_user**](SlurmdbApi.md#slurmdb_v0044_get_user) | **GET** /slurmdb/v0.0.44/user/{name} | Get user info +[**slurmdb_v0044_get_users**](SlurmdbApi.md#slurmdb_v0044_get_users) | **GET** /slurmdb/v0.0.44/users/ | Get user list +[**slurmdb_v0044_get_wckey**](SlurmdbApi.md#slurmdb_v0044_get_wckey) | **GET** /slurmdb/v0.0.44/wckey/{id} | Get wckey info +[**slurmdb_v0044_get_wckeys**](SlurmdbApi.md#slurmdb_v0044_get_wckeys) | **GET** /slurmdb/v0.0.44/wckeys/ | Get wckey list +[**slurmdb_v0044_post_accounts**](SlurmdbApi.md#slurmdb_v0044_post_accounts) | **POST** /slurmdb/v0.0.44/accounts/ | Add/update list of accounts +[**slurmdb_v0044_post_accounts_association**](SlurmdbApi.md#slurmdb_v0044_post_accounts_association) | **POST** /slurmdb/v0.0.44/accounts_association/ | Add accounts with conditional association +[**slurmdb_v0044_post_associations**](SlurmdbApi.md#slurmdb_v0044_post_associations) | **POST** /slurmdb/v0.0.44/associations/ | Set associations info +[**slurmdb_v0044_post_clusters**](SlurmdbApi.md#slurmdb_v0044_post_clusters) | **POST** /slurmdb/v0.0.44/clusters/ | Get cluster list +[**slurmdb_v0044_post_config**](SlurmdbApi.md#slurmdb_v0044_post_config) | **POST** /slurmdb/v0.0.44/config | Load all configuration information +[**slurmdb_v0044_post_job**](SlurmdbApi.md#slurmdb_v0044_post_job) | **POST** /slurmdb/v0.0.44/job/{job_id} | Update job +[**slurmdb_v0044_post_jobs**](SlurmdbApi.md#slurmdb_v0044_post_jobs) | **POST** /slurmdb/v0.0.44/jobs/ | Update jobs +[**slurmdb_v0044_post_qos**](SlurmdbApi.md#slurmdb_v0044_post_qos) | **POST** /slurmdb/v0.0.44/qos/ | Add or update QOSs +[**slurmdb_v0044_post_tres**](SlurmdbApi.md#slurmdb_v0044_post_tres) | **POST** /slurmdb/v0.0.44/tres/ | Add TRES +[**slurmdb_v0044_post_users**](SlurmdbApi.md#slurmdb_v0044_post_users) | **POST** /slurmdb/v0.0.44/users/ | Update users +[**slurmdb_v0044_post_users_association**](SlurmdbApi.md#slurmdb_v0044_post_users_association) | **POST** /slurmdb/v0.0.44/users_association/ | Add users with conditional association +[**slurmdb_v0044_post_wckeys**](SlurmdbApi.md#slurmdb_v0044_post_wckeys) | **POST** /slurmdb/v0.0.44/wckeys/ | Add or update wckeys + + +# **slurmdb_v0041_delete_account** +> V0041OpenapiAccountsRemovedResp slurmdb_v0041_delete_account(account_name) + +Delete account + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_accounts_removed_resp import V0041OpenapiAccountsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + + try: + # Delete account + api_response = api_instance.slurmdb_v0041_delete_account(account_name) + print("The response of SlurmdbApi->slurmdb_v0041_delete_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_delete_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + +### Return type + +[**V0041OpenapiAccountsRemovedResp**](V0041OpenapiAccountsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account deletion request | - | +**0** | Status of account deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_delete_association** +> V0041OpenapiAssocsRemovedResp slurmdb_v0041_delete_association(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + +Delete association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_assocs_removed_resp import V0041OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV id list (optional) + only_defaults = 'only_defaults_example' # str | Filter to only defaults (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted associations (optional) + with_raw_qos = 'with_raw_qos_example' # str | Include a raw qos or delta_qos (optional) + with_sub_accts = 'with_sub_accts_example' # str | Include sub acct information (optional) + without_parent_info = 'without_parent_info_example' # str | Exclude parent id/name (optional) + without_parent_limits = 'without_parent_limits_example' # str | Exclude limits from parents (optional) + + try: + # Delete association + api_response = api_instance.slurmdb_v0041_delete_association(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + print("The response of SlurmdbApi->slurmdb_v0041_delete_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_delete_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV id list | [optional] + **only_defaults** | **str**| Filter to only defaults | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted associations | [optional] + **with_raw_qos** | **str**| Include a raw qos or delta_qos | [optional] + **with_sub_accts** | **str**| Include sub acct information | [optional] + **without_parent_info** | **str**| Exclude parent id/name | [optional] + **without_parent_limits** | **str**| Exclude limits from parents | [optional] + +### Return type + +[**V0041OpenapiAssocsRemovedResp**](V0041OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of associations delete request | - | +**0** | Status of associations delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_delete_associations** +> V0041OpenapiAssocsRemovedResp slurmdb_v0041_delete_associations(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + +Delete associations + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_assocs_removed_resp import V0041OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV id list (optional) + only_defaults = 'only_defaults_example' # str | Filter to only defaults (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted associations (optional) + with_raw_qos = 'with_raw_qos_example' # str | Include a raw qos or delta_qos (optional) + with_sub_accts = 'with_sub_accts_example' # str | Include sub acct information (optional) + without_parent_info = 'without_parent_info_example' # str | Exclude parent id/name (optional) + without_parent_limits = 'without_parent_limits_example' # str | Exclude limits from parents (optional) + + try: + # Delete associations + api_response = api_instance.slurmdb_v0041_delete_associations(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + print("The response of SlurmdbApi->slurmdb_v0041_delete_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_delete_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV id list | [optional] + **only_defaults** | **str**| Filter to only defaults | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted associations | [optional] + **with_raw_qos** | **str**| Include a raw qos or delta_qos | [optional] + **with_sub_accts** | **str**| Include sub acct information | [optional] + **without_parent_info** | **str**| Exclude parent id/name | [optional] + **without_parent_limits** | **str**| Exclude limits from parents | [optional] + +### Return type + +[**V0041OpenapiAssocsRemovedResp**](V0041OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations deleted | - | +**0** | List of associations deleted | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_delete_cluster** +> V0041OpenapiClustersRemovedResp slurmdb_v0041_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Delete cluster + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_clusters_removed_resp import V0041OpenapiClustersRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Delete cluster + api_response = api_instance.slurmdb_v0041_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0041_delete_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_delete_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0041OpenapiClustersRemovedResp**](V0041OpenapiClustersRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of delete cluster request | - | +**0** | Result of delete cluster request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_delete_single_qos** +> V0041OpenapiSlurmdbdQosRemovedResp slurmdb_v0041_delete_single_qos(qos) + +Delete QOS + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_removed_resp import V0041OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + + try: + # Delete QOS + api_response = api_instance.slurmdb_v0041_delete_single_qos(qos) + print("The response of SlurmdbApi->slurmdb_v0041_delete_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_delete_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + +### Return type + +[**V0041OpenapiSlurmdbdQosRemovedResp**](V0041OpenapiSlurmdbdQosRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_delete_user** +> V0041OpenapiResp slurmdb_v0041_delete_user(name) + +Delete user + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + + try: + # Delete user + api_response = api_instance.slurmdb_v0041_delete_user(name) + print("The response of SlurmdbApi->slurmdb_v0041_delete_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_delete_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of user delete request | - | +**0** | Result of user delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_delete_wckey** +> V0041OpenapiWckeyRemovedResp slurmdb_v0041_delete_wckey(id) + +Delete wckey + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_wckey_removed_resp import V0041OpenapiWckeyRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | wckey id + + try: + # Delete wckey + api_response = api_instance.slurmdb_v0041_delete_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0041_delete_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_delete_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| wckey id | + +### Return type + +[**V0041OpenapiWckeyRemovedResp**](V0041OpenapiWckeyRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey deletion request | - | +**0** | Result of wckey deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_account** +> V0041OpenapiAccountsResp slurmdb_v0041_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + +Get account info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_deleted = 'with_deleted_example' # str | Include deleted (optional) + + try: + # Get account info + api_response = api_instance.slurmdb_v0041_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0041_get_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_deleted** | **str**| Include deleted | [optional] + +### Return type + +[**V0041OpenapiAccountsResp**](V0041OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_accounts** +> V0041OpenapiAccountsResp slurmdb_v0041_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + +Get account list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + deleted = 'deleted_example' # str | include deleted associations (optional) + with_associations = 'with_associations_example' # str | query includes associations (optional) + with_coordinators = 'with_coordinators_example' # str | query includes coordinators (optional) + no_users_are_coords = 'no_users_are_coords_example' # str | remove users as coordinators (optional) + users_are_coords = 'users_are_coords_example' # str | users are coordinators (optional) + + try: + # Get account list + api_response = api_instance.slurmdb_v0041_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + print("The response of SlurmdbApi->slurmdb_v0041_get_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **deleted** | **str**| include deleted associations | [optional] + **with_associations** | **str**| query includes associations | [optional] + **with_coordinators** | **str**| query includes coordinators | [optional] + **no_users_are_coords** | **str**| remove users as coordinators | [optional] + **users_are_coords** | **str**| users are coordinators | [optional] + +### Return type + +[**V0041OpenapiAccountsResp**](V0041OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_association** +> V0041OpenapiAssocsResp slurmdb_v0041_get_association(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + +Get association info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV id list (optional) + only_defaults = 'only_defaults_example' # str | Filter to only defaults (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted associations (optional) + with_raw_qos = 'with_raw_qos_example' # str | Include a raw qos or delta_qos (optional) + with_sub_accts = 'with_sub_accts_example' # str | Include sub acct information (optional) + without_parent_info = 'without_parent_info_example' # str | Exclude parent id/name (optional) + without_parent_limits = 'without_parent_limits_example' # str | Exclude limits from parents (optional) + + try: + # Get association info + api_response = api_instance.slurmdb_v0041_get_association(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + print("The response of SlurmdbApi->slurmdb_v0041_get_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV id list | [optional] + **only_defaults** | **str**| Filter to only defaults | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted associations | [optional] + **with_raw_qos** | **str**| Include a raw qos or delta_qos | [optional] + **with_sub_accts** | **str**| Include sub acct information | [optional] + **without_parent_info** | **str**| Exclude parent id/name | [optional] + **without_parent_limits** | **str**| Exclude limits from parents | [optional] + +### Return type + +[**V0041OpenapiAssocsResp**](V0041OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_associations** +> V0041OpenapiAssocsResp slurmdb_v0041_get_associations(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + +Get association list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV id list (optional) + only_defaults = 'only_defaults_example' # str | Filter to only defaults (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted associations (optional) + with_raw_qos = 'with_raw_qos_example' # str | Include a raw qos or delta_qos (optional) + with_sub_accts = 'with_sub_accts_example' # str | Include sub acct information (optional) + without_parent_info = 'without_parent_info_example' # str | Exclude parent id/name (optional) + without_parent_limits = 'without_parent_limits_example' # str | Exclude limits from parents (optional) + + try: + # Get association list + api_response = api_instance.slurmdb_v0041_get_associations(account=account, cluster=cluster, default_qos=default_qos, format=format, id=id, only_defaults=only_defaults, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, with_raw_qos=with_raw_qos, with_sub_accts=with_sub_accts, without_parent_info=without_parent_info, without_parent_limits=without_parent_limits) + print("The response of SlurmdbApi->slurmdb_v0041_get_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV id list | [optional] + **only_defaults** | **str**| Filter to only defaults | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted associations | [optional] + **with_raw_qos** | **str**| Include a raw qos or delta_qos | [optional] + **with_sub_accts** | **str**| Include sub acct information | [optional] + **without_parent_info** | **str**| Exclude parent id/name | [optional] + **without_parent_limits** | **str**| Exclude limits from parents | [optional] + +### Return type + +[**V0041OpenapiAssocsResp**](V0041OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_cluster** +> V0041OpenapiClustersResp slurmdb_v0041_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Get cluster info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Get cluster info + api_response = api_instance.slurmdb_v0041_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0041_get_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0041OpenapiClustersResp**](V0041OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Cluster information | - | +**0** | Cluster information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_clusters** +> V0041OpenapiClustersResp slurmdb_v0041_get_clusters(update_time=update_time) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Filter reservations since update timestamp (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0041_get_clusters(update_time=update_time) + print("The response of SlurmdbApi->slurmdb_v0041_get_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Filter reservations since update timestamp | [optional] + +### Return type + +[**V0041OpenapiClustersResp**](V0041OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of clusters | - | +**0** | List of clusters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_config** +> V0041OpenapiSlurmdbdConfigResp slurmdb_v0041_get_config() + +Dump all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp import V0041OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Dump all configuration information + api_response = api_instance.slurmdb_v0041_get_config() + print("The response of SlurmdbApi->slurmdb_v0041_get_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_config: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0041OpenapiSlurmdbdConfigResp**](V0041OpenapiSlurmdbdConfigResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_diag** +> V0041OpenapiSlurmdbdStatsResp slurmdb_v0041_get_diag() + +Get slurmdb diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp import V0041OpenapiSlurmdbdStatsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get slurmdb diagnostics + api_response = api_instance.slurmdb_v0041_get_diag() + print("The response of SlurmdbApi->slurmdb_v0041_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0041OpenapiSlurmdbdStatsResp**](V0041OpenapiSlurmdbdStatsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Dictionary of statistics | - | +**0** | Dictionary of statistics | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_instance** +> V0041OpenapiInstancesResp slurmdb_v0041_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_instances_resp import V0041OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance info + api_response = api_instance.slurmdb_v0041_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0041_get_instance:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_instance: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0041OpenapiInstancesResp**](V0041OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_instances** +> V0041OpenapiInstancesResp slurmdb_v0041_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_instances_resp import V0041OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance list + api_response = api_instance.slurmdb_v0041_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0041_get_instances:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_instances: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0041OpenapiInstancesResp**](V0041OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_job** +> V0041OpenapiSlurmdbdJobsResp slurmdb_v0041_get_job(job_id) + +Get job info + +This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp import V0041OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + job_id = 'job_id_example' # str | Job id + + try: + # Get job info + api_response = api_instance.slurmdb_v0041_get_job(job_id) + print("The response of SlurmdbApi->slurmdb_v0041_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job id | + +### Return type + +[**V0041OpenapiSlurmdbdJobsResp**](V0041OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Job description | - | +**0** | Job description | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_jobs** +> V0041OpenapiSlurmdbdJobsResp slurmdb_v0041_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + +Get job list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp import V0041OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV account list (optional) + association = 'association_example' # str | CSV association list (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + constraints = 'constraints_example' # str | CSV constraint list (optional) + scheduler_unset = 'scheduler_unset_example' # str | Schedule bits not set (optional) + scheduled_on_submit = 'scheduled_on_submit_example' # str | Job was started on submit (optional) + scheduled_by_main = 'scheduled_by_main_example' # str | Job was started from main scheduler (optional) + scheduled_by_backfill = 'scheduled_by_backfill_example' # str | Job was started from backfill (optional) + job_started = 'job_started_example' # str | Job start RPC was received (optional) + exit_code = 'exit_code_example' # str | Job exit code (numeric) (optional) + show_duplicates = 'show_duplicates_example' # str | Include duplicate job entries (optional) + skip_steps = 'skip_steps_example' # str | Exclude job step details (optional) + disable_truncate_usage_time = 'disable_truncate_usage_time_example' # str | Do not truncate the time to usage_start and usage_end (optional) + whole_hetjob = 'whole_hetjob_example' # str | Include details on all hetjob components (optional) + disable_whole_hetjob = 'disable_whole_hetjob_example' # str | Only show details on specified hetjob components (optional) + disable_wait_for_result = 'disable_wait_for_result_example' # str | Tell dbd not to wait for the result (optional) + usage_time_as_submit_time = 'usage_time_as_submit_time_example' # str | Use usage_time as the submit_time of the job (optional) + show_batch_script = 'show_batch_script_example' # str | Include job script (optional) + show_job_environment = 'show_job_environment_example' # str | Include job environment (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + groups = 'groups_example' # str | CSV group list (optional) + job_name = 'job_name_example' # str | CSV job name list (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS name list (optional) + reason = 'reason_example' # str | CSV reason list (optional) + reservation = 'reservation_example' # str | CSV reservation name list (optional) + reservation_id = 'reservation_id_example' # str | CSV reservation ID list (optional) + state = 'state_example' # str | CSV state list (optional) + step = 'step_example' # str | CSV step id list (optional) + end_time = 'end_time_example' # str | Usage end (UNIX timestamp) (optional) + start_time = 'start_time_example' # str | Usage start (UNIX timestamp) (optional) + node = 'node_example' # str | Ranged node string where jobs ran (optional) + users = 'users_example' # str | CSV user name list (optional) + wckey = 'wckey_example' # str | CSV wckey list (optional) + + try: + # Get job list + api_response = api_instance.slurmdb_v0041_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + print("The response of SlurmdbApi->slurmdb_v0041_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV account list | [optional] + **association** | **str**| CSV association list | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **constraints** | **str**| CSV constraint list | [optional] + **scheduler_unset** | **str**| Schedule bits not set | [optional] + **scheduled_on_submit** | **str**| Job was started on submit | [optional] + **scheduled_by_main** | **str**| Job was started from main scheduler | [optional] + **scheduled_by_backfill** | **str**| Job was started from backfill | [optional] + **job_started** | **str**| Job start RPC was received | [optional] + **exit_code** | **str**| Job exit code (numeric) | [optional] + **show_duplicates** | **str**| Include duplicate job entries | [optional] + **skip_steps** | **str**| Exclude job step details | [optional] + **disable_truncate_usage_time** | **str**| Do not truncate the time to usage_start and usage_end | [optional] + **whole_hetjob** | **str**| Include details on all hetjob components | [optional] + **disable_whole_hetjob** | **str**| Only show details on specified hetjob components | [optional] + **disable_wait_for_result** | **str**| Tell dbd not to wait for the result | [optional] + **usage_time_as_submit_time** | **str**| Use usage_time as the submit_time of the job | [optional] + **show_batch_script** | **str**| Include job script | [optional] + **show_job_environment** | **str**| Include job environment | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **groups** | **str**| CSV group list | [optional] + **job_name** | **str**| CSV job name list | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS name list | [optional] + **reason** | **str**| CSV reason list | [optional] + **reservation** | **str**| CSV reservation name list | [optional] + **reservation_id** | **str**| CSV reservation ID list | [optional] + **state** | **str**| CSV state list | [optional] + **step** | **str**| CSV step id list | [optional] + **end_time** | **str**| Usage end (UNIX timestamp) | [optional] + **start_time** | **str**| Usage start (UNIX timestamp) | [optional] + **node** | **str**| Ranged node string where jobs ran | [optional] + **users** | **str**| CSV user name list | [optional] + **wckey** | **str**| CSV wckey list | [optional] + +### Return type + +[**V0041OpenapiSlurmdbdJobsResp**](V0041OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of jobs | - | +**0** | List of jobs | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_qos** +> V0041OpenapiSlurmdbdQosResp slurmdb_v0041_get_qos(description=description, id=id, format=format, name=name, preempt_mode=preempt_mode, with_deleted=with_deleted) + +Get QOS list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + with_deleted = 'with_deleted_example' # str | Include deleted QOS (optional) + + try: + # Get QOS list + api_response = api_instance.slurmdb_v0041_get_qos(description=description, id=id, format=format, name=name, preempt_mode=preempt_mode, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0041_get_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + **with_deleted** | **str**| Include deleted QOS | [optional] + +### Return type + +[**V0041OpenapiSlurmdbdQosResp**](V0041OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of QOS | - | +**0** | List of QOS | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_single_qos** +> V0041OpenapiSlurmdbdQosResp slurmdb_v0041_get_single_qos(qos, with_deleted=with_deleted) + +Get QOS info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + with_deleted = 'with_deleted_example' # str | Query includes deleted QOS (optional) + + try: + # Get QOS info + api_response = api_instance.slurmdb_v0041_get_single_qos(qos, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0041_get_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + **with_deleted** | **str**| Query includes deleted QOS | [optional] + +### Return type + +[**V0041OpenapiSlurmdbdQosResp**](V0041OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS information | - | +**0** | QOS information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_tres** +> V0041OpenapiTresResp slurmdb_v0041_get_tres() + +Get TRES info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_tres_resp import V0041OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get TRES info + api_response = api_instance.slurmdb_v0041_get_tres() + print("The response of SlurmdbApi->slurmdb_v0041_get_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_tres: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0041OpenapiTresResp**](V0041OpenapiTresResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of TRES | - | +**0** | List of TRES | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_user** +> V0041OpenapiUsersResp slurmdb_v0041_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + +Get user info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + with_deleted = 'with_deleted_example' # str | Include deleted users (optional) + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_wckeys = 'with_wckeys_example' # str | Include wckeys (optional) + + try: + # Get user info + api_response = api_instance.slurmdb_v0041_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + print("The response of SlurmdbApi->slurmdb_v0041_get_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + **with_deleted** | **str**| Include deleted users | [optional] + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_wckeys** | **str**| Include wckeys | [optional] + +### Return type + +[**V0041OpenapiUsersResp**](V0041OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_users** +> V0041OpenapiUsersResp slurmdb_v0041_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + +Get user list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + admin_level = 'admin_level_example' # str | Administrator level (optional) + default_account = 'default_account_example' # str | CSV default account list (optional) + default_wckey = 'default_wckey_example' # str | CSV default wckey list (optional) + with_assocs = 'with_assocs_example' # str | With associations (optional) + with_coords = 'with_coords_example' # str | With coordinators (optional) + with_deleted = 'with_deleted_example' # str | With deleted (optional) + with_wckeys = 'with_wckeys_example' # str | With wckeys (optional) + without_defaults = 'without_defaults_example' # str | Exclude defaults (optional) + + try: + # Get user list + api_response = api_instance.slurmdb_v0041_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + print("The response of SlurmdbApi->slurmdb_v0041_get_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **admin_level** | **str**| Administrator level | [optional] + **default_account** | **str**| CSV default account list | [optional] + **default_wckey** | **str**| CSV default wckey list | [optional] + **with_assocs** | **str**| With associations | [optional] + **with_coords** | **str**| With coordinators | [optional] + **with_deleted** | **str**| With deleted | [optional] + **with_wckeys** | **str**| With wckeys | [optional] + **without_defaults** | **str**| Exclude defaults | [optional] + +### Return type + +[**V0041OpenapiUsersResp**](V0041OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_wckey** +> V0041OpenapiWckeyResp slurmdb_v0041_get_wckey(id) + +Get wckey info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | wckey id + + try: + # Get wckey info + api_response = api_instance.slurmdb_v0041_get_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0041_get_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| wckey id | + +### Return type + +[**V0041OpenapiWckeyResp**](V0041OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Description of wckey | - | +**0** | Description of wckey | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_get_wckeys** +> V0041OpenapiWckeyResp slurmdb_v0041_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + +Get wckey list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV id list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted wckeys (optional) + + try: + # Get wckey list + api_response = api_instance.slurmdb_v0041_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0041_get_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_get_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV id list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted wckeys | [optional] + +### Return type + +[**V0041OpenapiWckeyResp**](V0041OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of wckeys | - | +**0** | List of wckeys | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_accounts** +> V0041OpenapiResp slurmdb_v0041_post_accounts(v0041_openapi_accounts_resp=v0041_openapi_accounts_resp) + +Add/update list of accounts + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0041_openapi_accounts_resp = slurmrest_python.V0041OpenapiAccountsResp() # V0041OpenapiAccountsResp | Description of accounts to update/create (optional) + + try: + # Add/update list of accounts + api_response = api_instance.slurmdb_v0041_post_accounts(v0041_openapi_accounts_resp=v0041_openapi_accounts_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_openapi_accounts_resp** | [**V0041OpenapiAccountsResp**](V0041OpenapiAccountsResp.md)| Description of accounts to update/create | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account update request | - | +**0** | Status of account update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_accounts_association** +> V0041OpenapiAccountsAddCondRespStr slurmdb_v0041_post_accounts_association(v0041_openapi_accounts_add_cond_resp=v0041_openapi_accounts_add_cond_resp) + +Add accounts with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp import V0041OpenapiAccountsAddCondResp +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_str import V0041OpenapiAccountsAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0041_openapi_accounts_add_cond_resp = slurmrest_python.V0041OpenapiAccountsAddCondResp() # V0041OpenapiAccountsAddCondResp | Add list of accounts with conditional association (optional) + + try: + # Add accounts with conditional association + api_response = api_instance.slurmdb_v0041_post_accounts_association(v0041_openapi_accounts_add_cond_resp=v0041_openapi_accounts_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_accounts_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_accounts_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_openapi_accounts_add_cond_resp** | [**V0041OpenapiAccountsAddCondResp**](V0041OpenapiAccountsAddCondResp.md)| Add list of accounts with conditional association | [optional] + +### Return type + +[**V0041OpenapiAccountsAddCondRespStr**](V0041OpenapiAccountsAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account addition request | - | +**0** | Status of account addition request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_associations** +> V0041OpenapiResp slurmdb_v0041_post_associations(v0041_openapi_assocs_resp=v0041_openapi_assocs_resp) + +Set associations info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0041_openapi_assocs_resp = slurmrest_python.V0041OpenapiAssocsResp() # V0041OpenapiAssocsResp | Job description (optional) + + try: + # Set associations info + api_response = api_instance.slurmdb_v0041_post_associations(v0041_openapi_assocs_resp=v0041_openapi_assocs_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_openapi_assocs_resp** | [**V0041OpenapiAssocsResp**](V0041OpenapiAssocsResp.md)| Job description | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | status of associations update | - | +**0** | status of associations update | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_clusters** +> V0041OpenapiResp slurmdb_v0041_post_clusters(update_time=update_time, v0041_openapi_clusters_resp=v0041_openapi_clusters_resp) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Filter reservations since update timestamp (optional) + v0041_openapi_clusters_resp = slurmrest_python.V0041OpenapiClustersResp() # V0041OpenapiClustersResp | Cluster add or update descriptions (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0041_post_clusters(update_time=update_time, v0041_openapi_clusters_resp=v0041_openapi_clusters_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Filter reservations since update timestamp | [optional] + **v0041_openapi_clusters_resp** | [**V0041OpenapiClustersResp**](V0041OpenapiClustersResp.md)| Cluster add or update descriptions | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of modify clusters request | - | +**0** | Result of modify clusters request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_config** +> V0041OpenapiResp slurmdb_v0041_post_config(v0041_openapi_slurmdbd_config_resp=v0041_openapi_slurmdbd_config_resp) + +Load all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp import V0041OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0041_openapi_slurmdbd_config_resp = slurmrest_python.V0041OpenapiSlurmdbdConfigResp() # V0041OpenapiSlurmdbdConfigResp | Add or update config (optional) + + try: + # Load all configuration information + api_response = api_instance.slurmdb_v0041_post_config(v0041_openapi_slurmdbd_config_resp=v0041_openapi_slurmdbd_config_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_openapi_slurmdbd_config_resp** | [**V0041OpenapiSlurmdbdConfigResp**](V0041OpenapiSlurmdbdConfigResp.md)| Add or update config | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_qos** +> V0041OpenapiResp slurmdb_v0041_post_qos(description=description, id=id, format=format, name=name, preempt_mode=preempt_mode, with_deleted=with_deleted, v0041_openapi_slurmdbd_qos_resp=v0041_openapi_slurmdbd_qos_resp) + +Add or update QOSs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + with_deleted = 'with_deleted_example' # str | Include deleted QOS (optional) + v0041_openapi_slurmdbd_qos_resp = slurmrest_python.V0041OpenapiSlurmdbdQosResp() # V0041OpenapiSlurmdbdQosResp | Description of QOS to add or update (optional) + + try: + # Add or update QOSs + api_response = api_instance.slurmdb_v0041_post_qos(description=description, id=id, format=format, name=name, preempt_mode=preempt_mode, with_deleted=with_deleted, v0041_openapi_slurmdbd_qos_resp=v0041_openapi_slurmdbd_qos_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + **with_deleted** | **str**| Include deleted QOS | [optional] + **v0041_openapi_slurmdbd_qos_resp** | [**V0041OpenapiSlurmdbdQosResp**](V0041OpenapiSlurmdbdQosResp.md)| Description of QOS to add or update | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS update response | - | +**0** | QOS update response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_tres** +> V0041OpenapiResp slurmdb_v0041_post_tres(v0041_openapi_tres_resp=v0041_openapi_tres_resp) + +Add TRES + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_tres_resp import V0041OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0041_openapi_tres_resp = slurmrest_python.V0041OpenapiTresResp() # V0041OpenapiTresResp | TRES descriptions. Only works in developer mode. (optional) + + try: + # Add TRES + api_response = api_instance.slurmdb_v0041_post_tres(v0041_openapi_tres_resp=v0041_openapi_tres_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_tres: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_openapi_tres_resp** | [**V0041OpenapiTresResp**](V0041OpenapiTresResp.md)| TRES descriptions. Only works in developer mode. | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | TRES update result | - | +**0** | TRES update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_users** +> V0041OpenapiResp slurmdb_v0041_post_users(v0041_openapi_users_resp=v0041_openapi_users_resp) + +Update users + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0041_openapi_users_resp = slurmrest_python.V0041OpenapiUsersResp() # V0041OpenapiUsersResp | add or update user (optional) + + try: + # Update users + api_response = api_instance.slurmdb_v0041_post_users(v0041_openapi_users_resp=v0041_openapi_users_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0041_openapi_users_resp** | [**V0041OpenapiUsersResp**](V0041OpenapiUsersResp.md)| add or update user | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of user update request | - | +**0** | Status of user update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_users_association** +> V0041OpenapiUsersAddCondRespStr slurmdb_v0041_post_users_association(update_time=update_time, flags=flags, v0041_openapi_users_add_cond_resp=v0041_openapi_users_add_cond_resp) + +Add users with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp import V0041OpenapiUsersAddCondResp +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_str import V0041OpenapiUsersAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Filter partitions since update timestamp (optional) + flags = 'flags_example' # str | Query flags (optional) + v0041_openapi_users_add_cond_resp = slurmrest_python.V0041OpenapiUsersAddCondResp() # V0041OpenapiUsersAddCondResp | Create users with conditional association (optional) + + try: + # Add users with conditional association + api_response = api_instance.slurmdb_v0041_post_users_association(update_time=update_time, flags=flags, v0041_openapi_users_add_cond_resp=v0041_openapi_users_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_users_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_users_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Filter partitions since update timestamp | [optional] + **flags** | **str**| Query flags | [optional] + **v0041_openapi_users_add_cond_resp** | [**V0041OpenapiUsersAddCondResp**](V0041OpenapiUsersAddCondResp.md)| Create users with conditional association | [optional] + +### Return type + +[**V0041OpenapiUsersAddCondRespStr**](V0041OpenapiUsersAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Add list of users with conditional association | - | +**0** | Add list of users with conditional association | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0041_post_wckeys** +> V0041OpenapiResp slurmdb_v0041_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0041_openapi_wckey_resp=v0041_openapi_wckey_resp) + +Add or update wckeys + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV id list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted wckeys (optional) + v0041_openapi_wckey_resp = slurmrest_python.V0041OpenapiWckeyResp() # V0041OpenapiWckeyResp | wckeys description (optional) + + try: + # Add or update wckeys + api_response = api_instance.slurmdb_v0041_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0041_openapi_wckey_resp=v0041_openapi_wckey_resp) + print("The response of SlurmdbApi->slurmdb_v0041_post_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0041_post_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV id list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted wckeys | [optional] + **v0041_openapi_wckey_resp** | [**V0041OpenapiWckeyResp**](V0041OpenapiWckeyResp.md)| wckeys description | [optional] + +### Return type + +[**V0041OpenapiResp**](V0041OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey addition or update request | - | +**0** | Result of wckey addition or update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_delete_account** +> V0042OpenapiAccountsRemovedResp slurmdb_v0042_delete_account(account_name) + +Delete account + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_accounts_removed_resp import V0042OpenapiAccountsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + + try: + # Delete account + api_response = api_instance.slurmdb_v0042_delete_account(account_name) + print("The response of SlurmdbApi->slurmdb_v0042_delete_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_delete_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + +### Return type + +[**V0042OpenapiAccountsRemovedResp**](V0042OpenapiAccountsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account deletion request | - | +**0** | Status of account deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_delete_association** +> V0042OpenapiAssocsRemovedResp slurmdb_v0042_delete_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Delete association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_assocs_removed_resp import V0042OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Delete association + api_response = api_instance.slurmdb_v0042_delete_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0042_delete_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_delete_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0042OpenapiAssocsRemovedResp**](V0042OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of associations delete request | - | +**0** | Status of associations delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_delete_associations** +> V0042OpenapiAssocsRemovedResp slurmdb_v0042_delete_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Delete associations + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_assocs_removed_resp import V0042OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Delete associations + api_response = api_instance.slurmdb_v0042_delete_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0042_delete_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_delete_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0042OpenapiAssocsRemovedResp**](V0042OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations deleted | - | +**0** | List of associations deleted | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_delete_cluster** +> V0042OpenapiClustersRemovedResp slurmdb_v0042_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Delete cluster + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_clusters_removed_resp import V0042OpenapiClustersRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Delete cluster + api_response = api_instance.slurmdb_v0042_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0042_delete_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_delete_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0042OpenapiClustersRemovedResp**](V0042OpenapiClustersRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of delete cluster request | - | +**0** | Result of delete cluster request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_delete_single_qos** +> V0042OpenapiSlurmdbdQosRemovedResp slurmdb_v0042_delete_single_qos(qos) + +Delete QOS + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_removed_resp import V0042OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + + try: + # Delete QOS + api_response = api_instance.slurmdb_v0042_delete_single_qos(qos) + print("The response of SlurmdbApi->slurmdb_v0042_delete_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_delete_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + +### Return type + +[**V0042OpenapiSlurmdbdQosRemovedResp**](V0042OpenapiSlurmdbdQosRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_delete_user** +> V0042OpenapiResp slurmdb_v0042_delete_user(name) + +Delete user + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + + try: + # Delete user + api_response = api_instance.slurmdb_v0042_delete_user(name) + print("The response of SlurmdbApi->slurmdb_v0042_delete_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_delete_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of user delete request | - | +**0** | Result of user delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_delete_wckey** +> V0042OpenapiWckeyRemovedResp slurmdb_v0042_delete_wckey(id) + +Delete wckey + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_wckey_removed_resp import V0042OpenapiWckeyRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | WCKey ID + + try: + # Delete wckey + api_response = api_instance.slurmdb_v0042_delete_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0042_delete_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_delete_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| WCKey ID | + +### Return type + +[**V0042OpenapiWckeyRemovedResp**](V0042OpenapiWckeyRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey deletion request | - | +**0** | Result of wckey deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_account** +> V0042OpenapiAccountsResp slurmdb_v0042_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + +Get account info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_deleted = 'with_deleted_example' # str | Include deleted (optional) + + try: + # Get account info + api_response = api_instance.slurmdb_v0042_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0042_get_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_deleted** | **str**| Include deleted | [optional] + +### Return type + +[**V0042OpenapiAccountsResp**](V0042OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_accounts** +> V0042OpenapiAccountsResp slurmdb_v0042_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + +Get account list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + deleted = 'deleted_example' # str | include deleted associations (optional) + with_associations = 'with_associations_example' # str | query includes associations (optional) + with_coordinators = 'with_coordinators_example' # str | query includes coordinators (optional) + no_users_are_coords = 'no_users_are_coords_example' # str | remove users as coordinators (optional) + users_are_coords = 'users_are_coords_example' # str | users are coordinators (optional) + + try: + # Get account list + api_response = api_instance.slurmdb_v0042_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + print("The response of SlurmdbApi->slurmdb_v0042_get_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **deleted** | **str**| include deleted associations | [optional] + **with_associations** | **str**| query includes associations | [optional] + **with_coordinators** | **str**| query includes coordinators | [optional] + **no_users_are_coords** | **str**| remove users as coordinators | [optional] + **users_are_coords** | **str**| users are coordinators | [optional] + +### Return type + +[**V0042OpenapiAccountsResp**](V0042OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_association** +> V0042OpenapiAssocsResp slurmdb_v0042_get_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Get association info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Get association info + api_response = api_instance.slurmdb_v0042_get_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0042_get_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0042OpenapiAssocsResp**](V0042OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_associations** +> V0042OpenapiAssocsResp slurmdb_v0042_get_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Get association list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Get association list + api_response = api_instance.slurmdb_v0042_get_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0042_get_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0042OpenapiAssocsResp**](V0042OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_cluster** +> V0042OpenapiClustersResp slurmdb_v0042_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Get cluster info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Get cluster info + api_response = api_instance.slurmdb_v0042_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0042_get_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0042OpenapiClustersResp**](V0042OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Cluster information | - | +**0** | Cluster information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_clusters** +> V0042OpenapiClustersResp slurmdb_v0042_get_clusters(update_time=update_time) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0042_get_clusters(update_time=update_time) + print("The response of SlurmdbApi->slurmdb_v0042_get_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0042OpenapiClustersResp**](V0042OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of clusters | - | +**0** | List of clusters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_config** +> V0042OpenapiSlurmdbdConfigResp slurmdb_v0042_get_config() + +Dump all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_config_resp import V0042OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Dump all configuration information + api_response = api_instance.slurmdb_v0042_get_config() + print("The response of SlurmdbApi->slurmdb_v0042_get_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_config: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiSlurmdbdConfigResp**](V0042OpenapiSlurmdbdConfigResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_diag** +> V0042OpenapiSlurmdbdStatsResp slurmdb_v0042_get_diag() + +Get slurmdb diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_stats_resp import V0042OpenapiSlurmdbdStatsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get slurmdb diagnostics + api_response = api_instance.slurmdb_v0042_get_diag() + print("The response of SlurmdbApi->slurmdb_v0042_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiSlurmdbdStatsResp**](V0042OpenapiSlurmdbdStatsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Dictionary of statistics | - | +**0** | Dictionary of statistics | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_instance** +> V0042OpenapiInstancesResp slurmdb_v0042_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_instances_resp import V0042OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance info + api_response = api_instance.slurmdb_v0042_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0042_get_instance:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_instance: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0042OpenapiInstancesResp**](V0042OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_instances** +> V0042OpenapiInstancesResp slurmdb_v0042_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_instances_resp import V0042OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance list + api_response = api_instance.slurmdb_v0042_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0042_get_instances:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_instances: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0042OpenapiInstancesResp**](V0042OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_job** +> V0042OpenapiSlurmdbdJobsResp slurmdb_v0042_get_job(job_id) + +Get job info + +This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_jobs_resp import V0042OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + job_id = 'job_id_example' # str | Job ID + + try: + # Get job info + api_response = api_instance.slurmdb_v0042_get_job(job_id) + print("The response of SlurmdbApi->slurmdb_v0042_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + +### Return type + +[**V0042OpenapiSlurmdbdJobsResp**](V0042OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Job description | - | +**0** | Job description | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_jobs** +> V0042OpenapiSlurmdbdJobsResp slurmdb_v0042_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + +Get job list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_jobs_resp import V0042OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV account list (optional) + association = 'association_example' # str | CSV association list (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + constraints = 'constraints_example' # str | CSV constraint list (optional) + scheduler_unset = 'scheduler_unset_example' # str | Schedule bits not set (optional) + scheduled_on_submit = 'scheduled_on_submit_example' # str | Job was started on submit (optional) + scheduled_by_main = 'scheduled_by_main_example' # str | Job was started from main scheduler (optional) + scheduled_by_backfill = 'scheduled_by_backfill_example' # str | Job was started from backfill (optional) + job_started = 'job_started_example' # str | Job start RPC was received (optional) + exit_code = 'exit_code_example' # str | Job exit code (numeric) (optional) + show_duplicates = 'show_duplicates_example' # str | Include duplicate job entries (optional) + skip_steps = 'skip_steps_example' # str | Exclude job step details (optional) + disable_truncate_usage_time = 'disable_truncate_usage_time_example' # str | Do not truncate the time to usage_start and usage_end (optional) + whole_hetjob = 'whole_hetjob_example' # str | Include details on all hetjob components (optional) + disable_whole_hetjob = 'disable_whole_hetjob_example' # str | Only show details on specified hetjob components (optional) + disable_wait_for_result = 'disable_wait_for_result_example' # str | Tell dbd not to wait for the result (optional) + usage_time_as_submit_time = 'usage_time_as_submit_time_example' # str | Use usage_time as the submit_time of the job (optional) + show_batch_script = 'show_batch_script_example' # str | Include job script (optional) + show_job_environment = 'show_job_environment_example' # str | Include job environment (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + groups = 'groups_example' # str | CSV group list (optional) + job_name = 'job_name_example' # str | CSV job name list (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS name list (optional) + reason = 'reason_example' # str | CSV reason list (optional) + reservation = 'reservation_example' # str | CSV reservation name list (optional) + reservation_id = 'reservation_id_example' # str | CSV reservation ID list (optional) + state = 'state_example' # str | CSV state list (optional) + step = 'step_example' # str | CSV step id list (optional) + end_time = 'end_time_example' # str | Usage end (UNIX timestamp) (optional) + start_time = 'start_time_example' # str | Usage start (UNIX timestamp) (optional) + node = 'node_example' # str | Ranged node string where jobs ran (optional) + users = 'users_example' # str | CSV user name list (optional) + wckey = 'wckey_example' # str | CSV WCKey list (optional) + + try: + # Get job list + api_response = api_instance.slurmdb_v0042_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + print("The response of SlurmdbApi->slurmdb_v0042_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV account list | [optional] + **association** | **str**| CSV association list | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **constraints** | **str**| CSV constraint list | [optional] + **scheduler_unset** | **str**| Schedule bits not set | [optional] + **scheduled_on_submit** | **str**| Job was started on submit | [optional] + **scheduled_by_main** | **str**| Job was started from main scheduler | [optional] + **scheduled_by_backfill** | **str**| Job was started from backfill | [optional] + **job_started** | **str**| Job start RPC was received | [optional] + **exit_code** | **str**| Job exit code (numeric) | [optional] + **show_duplicates** | **str**| Include duplicate job entries | [optional] + **skip_steps** | **str**| Exclude job step details | [optional] + **disable_truncate_usage_time** | **str**| Do not truncate the time to usage_start and usage_end | [optional] + **whole_hetjob** | **str**| Include details on all hetjob components | [optional] + **disable_whole_hetjob** | **str**| Only show details on specified hetjob components | [optional] + **disable_wait_for_result** | **str**| Tell dbd not to wait for the result | [optional] + **usage_time_as_submit_time** | **str**| Use usage_time as the submit_time of the job | [optional] + **show_batch_script** | **str**| Include job script | [optional] + **show_job_environment** | **str**| Include job environment | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **groups** | **str**| CSV group list | [optional] + **job_name** | **str**| CSV job name list | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS name list | [optional] + **reason** | **str**| CSV reason list | [optional] + **reservation** | **str**| CSV reservation name list | [optional] + **reservation_id** | **str**| CSV reservation ID list | [optional] + **state** | **str**| CSV state list | [optional] + **step** | **str**| CSV step id list | [optional] + **end_time** | **str**| Usage end (UNIX timestamp) | [optional] + **start_time** | **str**| Usage start (UNIX timestamp) | [optional] + **node** | **str**| Ranged node string where jobs ran | [optional] + **users** | **str**| CSV user name list | [optional] + **wckey** | **str**| CSV WCKey list | [optional] + +### Return type + +[**V0042OpenapiSlurmdbdJobsResp**](V0042OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of jobs | - | +**0** | List of jobs | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_ping** +> V0042OpenapiSlurmdbdPingResp slurmdb_v0042_get_ping() + +ping test + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_ping_resp import V0042OpenapiSlurmdbdPingResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # ping test + api_response = api_instance.slurmdb_v0042_get_ping() + print("The response of SlurmdbApi->slurmdb_v0042_get_ping:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_ping: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiSlurmdbdPingResp**](V0042OpenapiSlurmdbdPingResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_qos** +> V0042OpenapiSlurmdbdQosResp slurmdb_v0042_get_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode) + +Get QOS list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + include_deleted_qos = 'include_deleted_qos_example' # str | (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + + try: + # Get QOS list + api_response = api_instance.slurmdb_v0042_get_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode) + print("The response of SlurmdbApi->slurmdb_v0042_get_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **include_deleted_qos** | **str**| | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + +### Return type + +[**V0042OpenapiSlurmdbdQosResp**](V0042OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of QOS | - | +**0** | List of QOS | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_single_qos** +> V0042OpenapiSlurmdbdQosResp slurmdb_v0042_get_single_qos(qos, with_deleted=with_deleted) + +Get QOS info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + with_deleted = 'with_deleted_example' # str | Query includes deleted QOS (optional) + + try: + # Get QOS info + api_response = api_instance.slurmdb_v0042_get_single_qos(qos, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0042_get_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + **with_deleted** | **str**| Query includes deleted QOS | [optional] + +### Return type + +[**V0042OpenapiSlurmdbdQosResp**](V0042OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS information | - | +**0** | QOS information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_tres** +> V0042OpenapiTresResp slurmdb_v0042_get_tres() + +Get TRES info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_tres_resp import V0042OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get TRES info + api_response = api_instance.slurmdb_v0042_get_tres() + print("The response of SlurmdbApi->slurmdb_v0042_get_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_tres: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0042OpenapiTresResp**](V0042OpenapiTresResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of TRES | - | +**0** | List of TRES | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_user** +> V0042OpenapiUsersResp slurmdb_v0042_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + +Get user info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + with_deleted = 'with_deleted_example' # str | Include deleted users (optional) + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_wckeys = 'with_wckeys_example' # str | Include WCKeys (optional) + + try: + # Get user info + api_response = api_instance.slurmdb_v0042_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + print("The response of SlurmdbApi->slurmdb_v0042_get_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + **with_deleted** | **str**| Include deleted users | [optional] + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_wckeys** | **str**| Include WCKeys | [optional] + +### Return type + +[**V0042OpenapiUsersResp**](V0042OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_users** +> V0042OpenapiUsersResp slurmdb_v0042_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + +Get user list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + admin_level = 'admin_level_example' # str | Administrator level (optional) + default_account = 'default_account_example' # str | CSV default account list (optional) + default_wckey = 'default_wckey_example' # str | CSV default WCKey list (optional) + with_assocs = 'with_assocs_example' # str | With associations (optional) + with_coords = 'with_coords_example' # str | With coordinators (optional) + with_deleted = 'with_deleted_example' # str | With deleted (optional) + with_wckeys = 'with_wckeys_example' # str | With WCKeys (optional) + without_defaults = 'without_defaults_example' # str | Exclude defaults (optional) + + try: + # Get user list + api_response = api_instance.slurmdb_v0042_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + print("The response of SlurmdbApi->slurmdb_v0042_get_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **admin_level** | **str**| Administrator level | [optional] + **default_account** | **str**| CSV default account list | [optional] + **default_wckey** | **str**| CSV default WCKey list | [optional] + **with_assocs** | **str**| With associations | [optional] + **with_coords** | **str**| With coordinators | [optional] + **with_deleted** | **str**| With deleted | [optional] + **with_wckeys** | **str**| With WCKeys | [optional] + **without_defaults** | **str**| Exclude defaults | [optional] + +### Return type + +[**V0042OpenapiUsersResp**](V0042OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_wckey** +> V0042OpenapiWckeyResp slurmdb_v0042_get_wckey(id) + +Get wckey info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | WCKey ID + + try: + # Get wckey info + api_response = api_instance.slurmdb_v0042_get_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0042_get_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| WCKey ID | + +### Return type + +[**V0042OpenapiWckeyResp**](V0042OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Description of wckey | - | +**0** | Description of wckey | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_get_wckeys** +> V0042OpenapiWckeyResp slurmdb_v0042_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + +Get wckey list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted WCKeys (optional) + + try: + # Get wckey list + api_response = api_instance.slurmdb_v0042_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0042_get_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_get_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted WCKeys | [optional] + +### Return type + +[**V0042OpenapiWckeyResp**](V0042OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of wckeys | - | +**0** | List of wckeys | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_accounts** +> V0042OpenapiResp slurmdb_v0042_post_accounts(v0042_openapi_accounts_resp=v0042_openapi_accounts_resp) + +Add/update list of accounts + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0042_openapi_accounts_resp = slurmrest_python.V0042OpenapiAccountsResp() # V0042OpenapiAccountsResp | Description of accounts to update/create (optional) + + try: + # Add/update list of accounts + api_response = api_instance.slurmdb_v0042_post_accounts(v0042_openapi_accounts_resp=v0042_openapi_accounts_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_openapi_accounts_resp** | [**V0042OpenapiAccountsResp**](V0042OpenapiAccountsResp.md)| Description of accounts to update/create | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account update request | - | +**0** | Status of account update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_accounts_association** +> V0042OpenapiAccountsAddCondRespStr slurmdb_v0042_post_accounts_association(v0042_openapi_accounts_add_cond_resp=v0042_openapi_accounts_add_cond_resp) + +Add accounts with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp import V0042OpenapiAccountsAddCondResp +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp_str import V0042OpenapiAccountsAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0042_openapi_accounts_add_cond_resp = slurmrest_python.V0042OpenapiAccountsAddCondResp() # V0042OpenapiAccountsAddCondResp | Add list of accounts with conditional association (optional) + + try: + # Add accounts with conditional association + api_response = api_instance.slurmdb_v0042_post_accounts_association(v0042_openapi_accounts_add_cond_resp=v0042_openapi_accounts_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_accounts_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_accounts_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_openapi_accounts_add_cond_resp** | [**V0042OpenapiAccountsAddCondResp**](V0042OpenapiAccountsAddCondResp.md)| Add list of accounts with conditional association | [optional] + +### Return type + +[**V0042OpenapiAccountsAddCondRespStr**](V0042OpenapiAccountsAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account addition request | - | +**0** | Status of account addition request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_associations** +> V0042OpenapiResp slurmdb_v0042_post_associations(v0042_openapi_assocs_resp=v0042_openapi_assocs_resp) + +Set associations info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0042_openapi_assocs_resp = slurmrest_python.V0042OpenapiAssocsResp() # V0042OpenapiAssocsResp | Job description (optional) + + try: + # Set associations info + api_response = api_instance.slurmdb_v0042_post_associations(v0042_openapi_assocs_resp=v0042_openapi_assocs_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_openapi_assocs_resp** | [**V0042OpenapiAssocsResp**](V0042OpenapiAssocsResp.md)| Job description | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | status of associations update | - | +**0** | status of associations update | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_clusters** +> V0042OpenapiResp slurmdb_v0042_post_clusters(update_time=update_time, v0042_openapi_clusters_resp=v0042_openapi_clusters_resp) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + v0042_openapi_clusters_resp = slurmrest_python.V0042OpenapiClustersResp() # V0042OpenapiClustersResp | Cluster add or update descriptions (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0042_post_clusters(update_time=update_time, v0042_openapi_clusters_resp=v0042_openapi_clusters_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + **v0042_openapi_clusters_resp** | [**V0042OpenapiClustersResp**](V0042OpenapiClustersResp.md)| Cluster add or update descriptions | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of modify clusters request | - | +**0** | Result of modify clusters request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_config** +> V0042OpenapiResp slurmdb_v0042_post_config(v0042_openapi_slurmdbd_config_resp=v0042_openapi_slurmdbd_config_resp) + +Load all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_slurmdbd_config_resp import V0042OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0042_openapi_slurmdbd_config_resp = slurmrest_python.V0042OpenapiSlurmdbdConfigResp() # V0042OpenapiSlurmdbdConfigResp | Add or update config (optional) + + try: + # Load all configuration information + api_response = api_instance.slurmdb_v0042_post_config(v0042_openapi_slurmdbd_config_resp=v0042_openapi_slurmdbd_config_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_openapi_slurmdbd_config_resp** | [**V0042OpenapiSlurmdbdConfigResp**](V0042OpenapiSlurmdbdConfigResp.md)| Add or update config | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_qos** +> V0042OpenapiResp slurmdb_v0042_post_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode, v0042_openapi_slurmdbd_qos_resp=v0042_openapi_slurmdbd_qos_resp) + +Add or update QOSs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + include_deleted_qos = 'include_deleted_qos_example' # str | (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + v0042_openapi_slurmdbd_qos_resp = slurmrest_python.V0042OpenapiSlurmdbdQosResp() # V0042OpenapiSlurmdbdQosResp | Description of QOS to add or update (optional) + + try: + # Add or update QOSs + api_response = api_instance.slurmdb_v0042_post_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode, v0042_openapi_slurmdbd_qos_resp=v0042_openapi_slurmdbd_qos_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **include_deleted_qos** | **str**| | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + **v0042_openapi_slurmdbd_qos_resp** | [**V0042OpenapiSlurmdbdQosResp**](V0042OpenapiSlurmdbdQosResp.md)| Description of QOS to add or update | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS update response | - | +**0** | QOS update response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_tres** +> V0042OpenapiResp slurmdb_v0042_post_tres(v0042_openapi_tres_resp=v0042_openapi_tres_resp) + +Add TRES + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_tres_resp import V0042OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0042_openapi_tres_resp = slurmrest_python.V0042OpenapiTresResp() # V0042OpenapiTresResp | TRES descriptions. Only works in developer mode. (optional) + + try: + # Add TRES + api_response = api_instance.slurmdb_v0042_post_tres(v0042_openapi_tres_resp=v0042_openapi_tres_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_tres: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_openapi_tres_resp** | [**V0042OpenapiTresResp**](V0042OpenapiTresResp.md)| TRES descriptions. Only works in developer mode. | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | TRES update result | - | +**0** | TRES update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_users** +> V0042OpenapiResp slurmdb_v0042_post_users(v0042_openapi_users_resp=v0042_openapi_users_resp) + +Update users + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0042_openapi_users_resp = slurmrest_python.V0042OpenapiUsersResp() # V0042OpenapiUsersResp | add or update user (optional) + + try: + # Update users + api_response = api_instance.slurmdb_v0042_post_users(v0042_openapi_users_resp=v0042_openapi_users_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0042_openapi_users_resp** | [**V0042OpenapiUsersResp**](V0042OpenapiUsersResp.md)| add or update user | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of user update request | - | +**0** | Status of user update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_users_association** +> V0042OpenapiUsersAddCondRespStr slurmdb_v0042_post_users_association(update_time=update_time, flags=flags, v0042_openapi_users_add_cond_resp=v0042_openapi_users_add_cond_resp) + +Add users with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_users_add_cond_resp import V0042OpenapiUsersAddCondResp +from slurmrest_python.models.v0042_openapi_users_add_cond_resp_str import V0042OpenapiUsersAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + v0042_openapi_users_add_cond_resp = slurmrest_python.V0042OpenapiUsersAddCondResp() # V0042OpenapiUsersAddCondResp | Create users with conditional association (optional) + + try: + # Add users with conditional association + api_response = api_instance.slurmdb_v0042_post_users_association(update_time=update_time, flags=flags, v0042_openapi_users_add_cond_resp=v0042_openapi_users_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_users_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_users_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + **v0042_openapi_users_add_cond_resp** | [**V0042OpenapiUsersAddCondResp**](V0042OpenapiUsersAddCondResp.md)| Create users with conditional association | [optional] + +### Return type + +[**V0042OpenapiUsersAddCondRespStr**](V0042OpenapiUsersAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Add list of users with conditional association | - | +**0** | Add list of users with conditional association | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0042_post_wckeys** +> V0042OpenapiResp slurmdb_v0042_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0042_openapi_wckey_resp=v0042_openapi_wckey_resp) + +Add or update wckeys + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted WCKeys (optional) + v0042_openapi_wckey_resp = slurmrest_python.V0042OpenapiWckeyResp() # V0042OpenapiWckeyResp | wckeys description (optional) + + try: + # Add or update wckeys + api_response = api_instance.slurmdb_v0042_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0042_openapi_wckey_resp=v0042_openapi_wckey_resp) + print("The response of SlurmdbApi->slurmdb_v0042_post_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0042_post_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted WCKeys | [optional] + **v0042_openapi_wckey_resp** | [**V0042OpenapiWckeyResp**](V0042OpenapiWckeyResp.md)| wckeys description | [optional] + +### Return type + +[**V0042OpenapiResp**](V0042OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey addition or update request | - | +**0** | Result of wckey addition or update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_delete_account** +> V0043OpenapiAccountsRemovedResp slurmdb_v0043_delete_account(account_name) + +Delete account + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_accounts_removed_resp import V0043OpenapiAccountsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + + try: + # Delete account + api_response = api_instance.slurmdb_v0043_delete_account(account_name) + print("The response of SlurmdbApi->slurmdb_v0043_delete_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_delete_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + +### Return type + +[**V0043OpenapiAccountsRemovedResp**](V0043OpenapiAccountsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account deletion request | - | +**0** | Status of account deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_delete_association** +> V0043OpenapiAssocsRemovedResp slurmdb_v0043_delete_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Delete association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_assocs_removed_resp import V0043OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Delete association + api_response = api_instance.slurmdb_v0043_delete_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0043_delete_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_delete_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0043OpenapiAssocsRemovedResp**](V0043OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of associations delete request | - | +**0** | Status of associations delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_delete_associations** +> V0043OpenapiAssocsRemovedResp slurmdb_v0043_delete_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Delete associations + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_assocs_removed_resp import V0043OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Delete associations + api_response = api_instance.slurmdb_v0043_delete_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0043_delete_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_delete_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0043OpenapiAssocsRemovedResp**](V0043OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations deleted | - | +**0** | List of associations deleted | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_delete_cluster** +> V0043OpenapiClustersRemovedResp slurmdb_v0043_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Delete cluster + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_clusters_removed_resp import V0043OpenapiClustersRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Delete cluster + api_response = api_instance.slurmdb_v0043_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0043_delete_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_delete_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0043OpenapiClustersRemovedResp**](V0043OpenapiClustersRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of delete cluster request | - | +**0** | Result of delete cluster request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_delete_single_qos** +> V0043OpenapiSlurmdbdQosRemovedResp slurmdb_v0043_delete_single_qos(qos) + +Delete QOS + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_removed_resp import V0043OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + + try: + # Delete QOS + api_response = api_instance.slurmdb_v0043_delete_single_qos(qos) + print("The response of SlurmdbApi->slurmdb_v0043_delete_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_delete_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + +### Return type + +[**V0043OpenapiSlurmdbdQosRemovedResp**](V0043OpenapiSlurmdbdQosRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_delete_user** +> V0043OpenapiResp slurmdb_v0043_delete_user(name) + +Delete user + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + + try: + # Delete user + api_response = api_instance.slurmdb_v0043_delete_user(name) + print("The response of SlurmdbApi->slurmdb_v0043_delete_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_delete_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of user delete request | - | +**0** | Result of user delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_delete_wckey** +> V0043OpenapiWckeyRemovedResp slurmdb_v0043_delete_wckey(id) + +Delete wckey + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_wckey_removed_resp import V0043OpenapiWckeyRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | WCKey ID + + try: + # Delete wckey + api_response = api_instance.slurmdb_v0043_delete_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0043_delete_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_delete_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| WCKey ID | + +### Return type + +[**V0043OpenapiWckeyRemovedResp**](V0043OpenapiWckeyRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey deletion request | - | +**0** | Result of wckey deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_account** +> V0043OpenapiAccountsResp slurmdb_v0043_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + +Get account info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_deleted = 'with_deleted_example' # str | Include deleted (optional) + + try: + # Get account info + api_response = api_instance.slurmdb_v0043_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0043_get_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_deleted** | **str**| Include deleted | [optional] + +### Return type + +[**V0043OpenapiAccountsResp**](V0043OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_accounts** +> V0043OpenapiAccountsResp slurmdb_v0043_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + +Get account list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + deleted = 'deleted_example' # str | include deleted associations (optional) + with_associations = 'with_associations_example' # str | query includes associations (optional) + with_coordinators = 'with_coordinators_example' # str | query includes coordinators (optional) + no_users_are_coords = 'no_users_are_coords_example' # str | remove users as coordinators (optional) + users_are_coords = 'users_are_coords_example' # str | users are coordinators (optional) + + try: + # Get account list + api_response = api_instance.slurmdb_v0043_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + print("The response of SlurmdbApi->slurmdb_v0043_get_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **deleted** | **str**| include deleted associations | [optional] + **with_associations** | **str**| query includes associations | [optional] + **with_coordinators** | **str**| query includes coordinators | [optional] + **no_users_are_coords** | **str**| remove users as coordinators | [optional] + **users_are_coords** | **str**| users are coordinators | [optional] + +### Return type + +[**V0043OpenapiAccountsResp**](V0043OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_association** +> V0043OpenapiAssocsResp slurmdb_v0043_get_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Get association info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Get association info + api_response = api_instance.slurmdb_v0043_get_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0043_get_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0043OpenapiAssocsResp**](V0043OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_associations** +> V0043OpenapiAssocsResp slurmdb_v0043_get_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Get association list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Get association list + api_response = api_instance.slurmdb_v0043_get_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0043_get_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0043OpenapiAssocsResp**](V0043OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_cluster** +> V0043OpenapiClustersResp slurmdb_v0043_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Get cluster info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Get cluster info + api_response = api_instance.slurmdb_v0043_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0043_get_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0043OpenapiClustersResp**](V0043OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Cluster information | - | +**0** | Cluster information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_clusters** +> V0043OpenapiClustersResp slurmdb_v0043_get_clusters(update_time=update_time) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0043_get_clusters(update_time=update_time) + print("The response of SlurmdbApi->slurmdb_v0043_get_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0043OpenapiClustersResp**](V0043OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of clusters | - | +**0** | List of clusters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_config** +> V0043OpenapiSlurmdbdConfigResp slurmdb_v0043_get_config() + +Dump all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_config_resp import V0043OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Dump all configuration information + api_response = api_instance.slurmdb_v0043_get_config() + print("The response of SlurmdbApi->slurmdb_v0043_get_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_config: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiSlurmdbdConfigResp**](V0043OpenapiSlurmdbdConfigResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_diag** +> V0043OpenapiSlurmdbdStatsResp slurmdb_v0043_get_diag() + +Get slurmdb diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_stats_resp import V0043OpenapiSlurmdbdStatsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get slurmdb diagnostics + api_response = api_instance.slurmdb_v0043_get_diag() + print("The response of SlurmdbApi->slurmdb_v0043_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiSlurmdbdStatsResp**](V0043OpenapiSlurmdbdStatsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Dictionary of statistics | - | +**0** | Dictionary of statistics | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_instance** +> V0043OpenapiInstancesResp slurmdb_v0043_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_instances_resp import V0043OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance info + api_response = api_instance.slurmdb_v0043_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0043_get_instance:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_instance: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0043OpenapiInstancesResp**](V0043OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_instances** +> V0043OpenapiInstancesResp slurmdb_v0043_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_instances_resp import V0043OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance list + api_response = api_instance.slurmdb_v0043_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0043_get_instances:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_instances: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0043OpenapiInstancesResp**](V0043OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_job** +> V0043OpenapiSlurmdbdJobsResp slurmdb_v0043_get_job(job_id) + +Get job info + +This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_jobs_resp import V0043OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + job_id = 'job_id_example' # str | Job ID + + try: + # Get job info + api_response = api_instance.slurmdb_v0043_get_job(job_id) + print("The response of SlurmdbApi->slurmdb_v0043_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + +### Return type + +[**V0043OpenapiSlurmdbdJobsResp**](V0043OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Job description | - | +**0** | Job description | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_jobs** +> V0043OpenapiSlurmdbdJobsResp slurmdb_v0043_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + +Get job list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_jobs_resp import V0043OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV account list (optional) + association = 'association_example' # str | CSV association list (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + constraints = 'constraints_example' # str | CSV constraint list (optional) + scheduler_unset = 'scheduler_unset_example' # str | Schedule bits not set (optional) + scheduled_on_submit = 'scheduled_on_submit_example' # str | Job was started on submit (optional) + scheduled_by_main = 'scheduled_by_main_example' # str | Job was started from main scheduler (optional) + scheduled_by_backfill = 'scheduled_by_backfill_example' # str | Job was started from backfill (optional) + job_started = 'job_started_example' # str | Job start RPC was received (optional) + exit_code = 'exit_code_example' # str | Job exit code (numeric) (optional) + show_duplicates = 'show_duplicates_example' # str | Include duplicate job entries (optional) + skip_steps = 'skip_steps_example' # str | Exclude job step details (optional) + disable_truncate_usage_time = 'disable_truncate_usage_time_example' # str | Do not truncate the time to usage_start and usage_end (optional) + whole_hetjob = 'whole_hetjob_example' # str | Include details on all hetjob components (optional) + disable_whole_hetjob = 'disable_whole_hetjob_example' # str | Only show details on specified hetjob components (optional) + disable_wait_for_result = 'disable_wait_for_result_example' # str | Tell dbd not to wait for the result (optional) + usage_time_as_submit_time = 'usage_time_as_submit_time_example' # str | Use usage_time as the submit_time of the job (optional) + show_batch_script = 'show_batch_script_example' # str | Include job script (optional) + show_job_environment = 'show_job_environment_example' # str | Include job environment (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + groups = 'groups_example' # str | CSV group list (optional) + job_name = 'job_name_example' # str | CSV job name list (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS name list (optional) + reason = 'reason_example' # str | CSV reason list (optional) + reservation = 'reservation_example' # str | CSV reservation name list (optional) + reservation_id = 'reservation_id_example' # str | CSV reservation ID list (optional) + state = 'state_example' # str | CSV state list (optional) + step = 'step_example' # str | CSV step id list (optional) + end_time = 'end_time_example' # str | Usage end (UNIX timestamp) (optional) + start_time = 'start_time_example' # str | Usage start (UNIX timestamp) (optional) + node = 'node_example' # str | Ranged node string where jobs ran (optional) + users = 'users_example' # str | CSV user name list (optional) + wckey = 'wckey_example' # str | CSV WCKey list (optional) + + try: + # Get job list + api_response = api_instance.slurmdb_v0043_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + print("The response of SlurmdbApi->slurmdb_v0043_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV account list | [optional] + **association** | **str**| CSV association list | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **constraints** | **str**| CSV constraint list | [optional] + **scheduler_unset** | **str**| Schedule bits not set | [optional] + **scheduled_on_submit** | **str**| Job was started on submit | [optional] + **scheduled_by_main** | **str**| Job was started from main scheduler | [optional] + **scheduled_by_backfill** | **str**| Job was started from backfill | [optional] + **job_started** | **str**| Job start RPC was received | [optional] + **exit_code** | **str**| Job exit code (numeric) | [optional] + **show_duplicates** | **str**| Include duplicate job entries | [optional] + **skip_steps** | **str**| Exclude job step details | [optional] + **disable_truncate_usage_time** | **str**| Do not truncate the time to usage_start and usage_end | [optional] + **whole_hetjob** | **str**| Include details on all hetjob components | [optional] + **disable_whole_hetjob** | **str**| Only show details on specified hetjob components | [optional] + **disable_wait_for_result** | **str**| Tell dbd not to wait for the result | [optional] + **usage_time_as_submit_time** | **str**| Use usage_time as the submit_time of the job | [optional] + **show_batch_script** | **str**| Include job script | [optional] + **show_job_environment** | **str**| Include job environment | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **groups** | **str**| CSV group list | [optional] + **job_name** | **str**| CSV job name list | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS name list | [optional] + **reason** | **str**| CSV reason list | [optional] + **reservation** | **str**| CSV reservation name list | [optional] + **reservation_id** | **str**| CSV reservation ID list | [optional] + **state** | **str**| CSV state list | [optional] + **step** | **str**| CSV step id list | [optional] + **end_time** | **str**| Usage end (UNIX timestamp) | [optional] + **start_time** | **str**| Usage start (UNIX timestamp) | [optional] + **node** | **str**| Ranged node string where jobs ran | [optional] + **users** | **str**| CSV user name list | [optional] + **wckey** | **str**| CSV WCKey list | [optional] + +### Return type + +[**V0043OpenapiSlurmdbdJobsResp**](V0043OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of jobs | - | +**0** | List of jobs | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_ping** +> V0043OpenapiSlurmdbdPingResp slurmdb_v0043_get_ping() + +ping test + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_ping_resp import V0043OpenapiSlurmdbdPingResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # ping test + api_response = api_instance.slurmdb_v0043_get_ping() + print("The response of SlurmdbApi->slurmdb_v0043_get_ping:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_ping: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiSlurmdbdPingResp**](V0043OpenapiSlurmdbdPingResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_qos** +> V0043OpenapiSlurmdbdQosResp slurmdb_v0043_get_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode) + +Get QOS list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + include_deleted_qos = 'include_deleted_qos_example' # str | (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + + try: + # Get QOS list + api_response = api_instance.slurmdb_v0043_get_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode) + print("The response of SlurmdbApi->slurmdb_v0043_get_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **include_deleted_qos** | **str**| | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + +### Return type + +[**V0043OpenapiSlurmdbdQosResp**](V0043OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of QOS | - | +**0** | List of QOS | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_single_qos** +> V0043OpenapiSlurmdbdQosResp slurmdb_v0043_get_single_qos(qos, with_deleted=with_deleted) + +Get QOS info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + with_deleted = 'with_deleted_example' # str | Query includes deleted QOS (optional) + + try: + # Get QOS info + api_response = api_instance.slurmdb_v0043_get_single_qos(qos, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0043_get_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + **with_deleted** | **str**| Query includes deleted QOS | [optional] + +### Return type + +[**V0043OpenapiSlurmdbdQosResp**](V0043OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS information | - | +**0** | QOS information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_tres** +> V0043OpenapiTresResp slurmdb_v0043_get_tres() + +Get TRES info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_tres_resp import V0043OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get TRES info + api_response = api_instance.slurmdb_v0043_get_tres() + print("The response of SlurmdbApi->slurmdb_v0043_get_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_tres: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0043OpenapiTresResp**](V0043OpenapiTresResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of TRES | - | +**0** | List of TRES | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_user** +> V0043OpenapiUsersResp slurmdb_v0043_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + +Get user info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + with_deleted = 'with_deleted_example' # str | Include deleted users (optional) + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_wckeys = 'with_wckeys_example' # str | Include WCKeys (optional) + + try: + # Get user info + api_response = api_instance.slurmdb_v0043_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + print("The response of SlurmdbApi->slurmdb_v0043_get_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + **with_deleted** | **str**| Include deleted users | [optional] + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_wckeys** | **str**| Include WCKeys | [optional] + +### Return type + +[**V0043OpenapiUsersResp**](V0043OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_users** +> V0043OpenapiUsersResp slurmdb_v0043_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + +Get user list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + admin_level = 'admin_level_example' # str | Administrator level (optional) + default_account = 'default_account_example' # str | CSV default account list (optional) + default_wckey = 'default_wckey_example' # str | CSV default WCKey list (optional) + with_assocs = 'with_assocs_example' # str | With associations (optional) + with_coords = 'with_coords_example' # str | With coordinators (optional) + with_deleted = 'with_deleted_example' # str | With deleted (optional) + with_wckeys = 'with_wckeys_example' # str | With WCKeys (optional) + without_defaults = 'without_defaults_example' # str | Exclude defaults (optional) + + try: + # Get user list + api_response = api_instance.slurmdb_v0043_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + print("The response of SlurmdbApi->slurmdb_v0043_get_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **admin_level** | **str**| Administrator level | [optional] + **default_account** | **str**| CSV default account list | [optional] + **default_wckey** | **str**| CSV default WCKey list | [optional] + **with_assocs** | **str**| With associations | [optional] + **with_coords** | **str**| With coordinators | [optional] + **with_deleted** | **str**| With deleted | [optional] + **with_wckeys** | **str**| With WCKeys | [optional] + **without_defaults** | **str**| Exclude defaults | [optional] + +### Return type + +[**V0043OpenapiUsersResp**](V0043OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_wckey** +> V0043OpenapiWckeyResp slurmdb_v0043_get_wckey(id) + +Get wckey info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | WCKey ID + + try: + # Get wckey info + api_response = api_instance.slurmdb_v0043_get_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0043_get_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| WCKey ID | + +### Return type + +[**V0043OpenapiWckeyResp**](V0043OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Description of wckey | - | +**0** | Description of wckey | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_get_wckeys** +> V0043OpenapiWckeyResp slurmdb_v0043_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + +Get wckey list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted WCKeys (optional) + + try: + # Get wckey list + api_response = api_instance.slurmdb_v0043_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0043_get_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_get_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted WCKeys | [optional] + +### Return type + +[**V0043OpenapiWckeyResp**](V0043OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of wckeys | - | +**0** | List of wckeys | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_accounts** +> V0043OpenapiResp slurmdb_v0043_post_accounts(v0043_openapi_accounts_resp=v0043_openapi_accounts_resp) + +Add/update list of accounts + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0043_openapi_accounts_resp = slurmrest_python.V0043OpenapiAccountsResp() # V0043OpenapiAccountsResp | Description of accounts to update/create (optional) + + try: + # Add/update list of accounts + api_response = api_instance.slurmdb_v0043_post_accounts(v0043_openapi_accounts_resp=v0043_openapi_accounts_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_openapi_accounts_resp** | [**V0043OpenapiAccountsResp**](V0043OpenapiAccountsResp.md)| Description of accounts to update/create | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account update request | - | +**0** | Status of account update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_accounts_association** +> V0043OpenapiAccountsAddCondRespStr slurmdb_v0043_post_accounts_association(v0043_openapi_accounts_add_cond_resp=v0043_openapi_accounts_add_cond_resp) + +Add accounts with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp import V0043OpenapiAccountsAddCondResp +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp_str import V0043OpenapiAccountsAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0043_openapi_accounts_add_cond_resp = slurmrest_python.V0043OpenapiAccountsAddCondResp() # V0043OpenapiAccountsAddCondResp | Add list of accounts with conditional association (optional) + + try: + # Add accounts with conditional association + api_response = api_instance.slurmdb_v0043_post_accounts_association(v0043_openapi_accounts_add_cond_resp=v0043_openapi_accounts_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_accounts_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_accounts_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_openapi_accounts_add_cond_resp** | [**V0043OpenapiAccountsAddCondResp**](V0043OpenapiAccountsAddCondResp.md)| Add list of accounts with conditional association | [optional] + +### Return type + +[**V0043OpenapiAccountsAddCondRespStr**](V0043OpenapiAccountsAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account addition request | - | +**0** | Status of account addition request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_associations** +> V0043OpenapiResp slurmdb_v0043_post_associations(v0043_openapi_assocs_resp=v0043_openapi_assocs_resp) + +Set associations info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0043_openapi_assocs_resp = slurmrest_python.V0043OpenapiAssocsResp() # V0043OpenapiAssocsResp | Job description (optional) + + try: + # Set associations info + api_response = api_instance.slurmdb_v0043_post_associations(v0043_openapi_assocs_resp=v0043_openapi_assocs_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_openapi_assocs_resp** | [**V0043OpenapiAssocsResp**](V0043OpenapiAssocsResp.md)| Job description | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | status of associations update | - | +**0** | status of associations update | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_clusters** +> V0043OpenapiResp slurmdb_v0043_post_clusters(update_time=update_time, v0043_openapi_clusters_resp=v0043_openapi_clusters_resp) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + v0043_openapi_clusters_resp = slurmrest_python.V0043OpenapiClustersResp() # V0043OpenapiClustersResp | Cluster add or update descriptions (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0043_post_clusters(update_time=update_time, v0043_openapi_clusters_resp=v0043_openapi_clusters_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + **v0043_openapi_clusters_resp** | [**V0043OpenapiClustersResp**](V0043OpenapiClustersResp.md)| Cluster add or update descriptions | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of modify clusters request | - | +**0** | Result of modify clusters request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_config** +> V0043OpenapiResp slurmdb_v0043_post_config(v0043_openapi_slurmdbd_config_resp=v0043_openapi_slurmdbd_config_resp) + +Load all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_slurmdbd_config_resp import V0043OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0043_openapi_slurmdbd_config_resp = slurmrest_python.V0043OpenapiSlurmdbdConfigResp() # V0043OpenapiSlurmdbdConfigResp | Add or update config (optional) + + try: + # Load all configuration information + api_response = api_instance.slurmdb_v0043_post_config(v0043_openapi_slurmdbd_config_resp=v0043_openapi_slurmdbd_config_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_openapi_slurmdbd_config_resp** | [**V0043OpenapiSlurmdbdConfigResp**](V0043OpenapiSlurmdbdConfigResp.md)| Add or update config | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_qos** +> V0043OpenapiResp slurmdb_v0043_post_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode, v0043_openapi_slurmdbd_qos_resp=v0043_openapi_slurmdbd_qos_resp) + +Add or update QOSs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + include_deleted_qos = 'include_deleted_qos_example' # str | (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + v0043_openapi_slurmdbd_qos_resp = slurmrest_python.V0043OpenapiSlurmdbdQosResp() # V0043OpenapiSlurmdbdQosResp | Description of QOS to add or update (optional) + + try: + # Add or update QOSs + api_response = api_instance.slurmdb_v0043_post_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode, v0043_openapi_slurmdbd_qos_resp=v0043_openapi_slurmdbd_qos_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **include_deleted_qos** | **str**| | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + **v0043_openapi_slurmdbd_qos_resp** | [**V0043OpenapiSlurmdbdQosResp**](V0043OpenapiSlurmdbdQosResp.md)| Description of QOS to add or update | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS update response | - | +**0** | QOS update response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_tres** +> V0043OpenapiResp slurmdb_v0043_post_tres(v0043_openapi_tres_resp=v0043_openapi_tres_resp) + +Add TRES + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_tres_resp import V0043OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0043_openapi_tres_resp = slurmrest_python.V0043OpenapiTresResp() # V0043OpenapiTresResp | TRES descriptions. Only works in developer mode. (optional) + + try: + # Add TRES + api_response = api_instance.slurmdb_v0043_post_tres(v0043_openapi_tres_resp=v0043_openapi_tres_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_tres: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_openapi_tres_resp** | [**V0043OpenapiTresResp**](V0043OpenapiTresResp.md)| TRES descriptions. Only works in developer mode. | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | TRES update result | - | +**0** | TRES update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_users** +> V0043OpenapiResp slurmdb_v0043_post_users(v0043_openapi_users_resp=v0043_openapi_users_resp) + +Update users + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0043_openapi_users_resp = slurmrest_python.V0043OpenapiUsersResp() # V0043OpenapiUsersResp | add or update user (optional) + + try: + # Update users + api_response = api_instance.slurmdb_v0043_post_users(v0043_openapi_users_resp=v0043_openapi_users_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0043_openapi_users_resp** | [**V0043OpenapiUsersResp**](V0043OpenapiUsersResp.md)| add or update user | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of user update request | - | +**0** | Status of user update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_users_association** +> V0043OpenapiUsersAddCondRespStr slurmdb_v0043_post_users_association(update_time=update_time, flags=flags, v0043_openapi_users_add_cond_resp=v0043_openapi_users_add_cond_resp) + +Add users with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_users_add_cond_resp import V0043OpenapiUsersAddCondResp +from slurmrest_python.models.v0043_openapi_users_add_cond_resp_str import V0043OpenapiUsersAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + v0043_openapi_users_add_cond_resp = slurmrest_python.V0043OpenapiUsersAddCondResp() # V0043OpenapiUsersAddCondResp | Create users with conditional association (optional) + + try: + # Add users with conditional association + api_response = api_instance.slurmdb_v0043_post_users_association(update_time=update_time, flags=flags, v0043_openapi_users_add_cond_resp=v0043_openapi_users_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_users_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_users_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + **v0043_openapi_users_add_cond_resp** | [**V0043OpenapiUsersAddCondResp**](V0043OpenapiUsersAddCondResp.md)| Create users with conditional association | [optional] + +### Return type + +[**V0043OpenapiUsersAddCondRespStr**](V0043OpenapiUsersAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Add list of users with conditional association | - | +**0** | Add list of users with conditional association | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0043_post_wckeys** +> V0043OpenapiResp slurmdb_v0043_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0043_openapi_wckey_resp=v0043_openapi_wckey_resp) + +Add or update wckeys + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted WCKeys (optional) + v0043_openapi_wckey_resp = slurmrest_python.V0043OpenapiWckeyResp() # V0043OpenapiWckeyResp | wckeys description (optional) + + try: + # Add or update wckeys + api_response = api_instance.slurmdb_v0043_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0043_openapi_wckey_resp=v0043_openapi_wckey_resp) + print("The response of SlurmdbApi->slurmdb_v0043_post_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0043_post_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted WCKeys | [optional] + **v0043_openapi_wckey_resp** | [**V0043OpenapiWckeyResp**](V0043OpenapiWckeyResp.md)| wckeys description | [optional] + +### Return type + +[**V0043OpenapiResp**](V0043OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey addition or update request | - | +**0** | Result of wckey addition or update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_delete_account** +> V0044OpenapiAccountsRemovedResp slurmdb_v0044_delete_account(account_name) + +Delete account + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_accounts_removed_resp import V0044OpenapiAccountsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + + try: + # Delete account + api_response = api_instance.slurmdb_v0044_delete_account(account_name) + print("The response of SlurmdbApi->slurmdb_v0044_delete_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_delete_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + +### Return type + +[**V0044OpenapiAccountsRemovedResp**](V0044OpenapiAccountsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account deletion request | - | +**0** | Status of account deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_delete_association** +> V0044OpenapiAssocsRemovedResp slurmdb_v0044_delete_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Delete association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_assocs_removed_resp import V0044OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Delete association + api_response = api_instance.slurmdb_v0044_delete_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0044_delete_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_delete_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0044OpenapiAssocsRemovedResp**](V0044OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of associations delete request | - | +**0** | Status of associations delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_delete_associations** +> V0044OpenapiAssocsRemovedResp slurmdb_v0044_delete_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Delete associations + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_assocs_removed_resp import V0044OpenapiAssocsRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Delete associations + api_response = api_instance.slurmdb_v0044_delete_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0044_delete_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_delete_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0044OpenapiAssocsRemovedResp**](V0044OpenapiAssocsRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations deleted | - | +**0** | List of associations deleted | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_delete_cluster** +> V0044OpenapiClustersRemovedResp slurmdb_v0044_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Delete cluster + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_clusters_removed_resp import V0044OpenapiClustersRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Delete cluster + api_response = api_instance.slurmdb_v0044_delete_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0044_delete_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_delete_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0044OpenapiClustersRemovedResp**](V0044OpenapiClustersRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of delete cluster request | - | +**0** | Result of delete cluster request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_delete_single_qos** +> V0044OpenapiSlurmdbdQosRemovedResp slurmdb_v0044_delete_single_qos(qos) + +Delete QOS + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_removed_resp import V0044OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + + try: + # Delete QOS + api_response = api_instance.slurmdb_v0044_delete_single_qos(qos) + print("The response of SlurmdbApi->slurmdb_v0044_delete_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_delete_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + +### Return type + +[**V0044OpenapiSlurmdbdQosRemovedResp**](V0044OpenapiSlurmdbdQosRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_delete_user** +> V0044OpenapiResp slurmdb_v0044_delete_user(name) + +Delete user + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + + try: + # Delete user + api_response = api_instance.slurmdb_v0044_delete_user(name) + print("The response of SlurmdbApi->slurmdb_v0044_delete_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_delete_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of user delete request | - | +**0** | Result of user delete request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_delete_wckey** +> V0044OpenapiWckeyRemovedResp slurmdb_v0044_delete_wckey(id) + +Delete wckey + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_wckey_removed_resp import V0044OpenapiWckeyRemovedResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | WCKey ID + + try: + # Delete wckey + api_response = api_instance.slurmdb_v0044_delete_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0044_delete_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_delete_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| WCKey ID | + +### Return type + +[**V0044OpenapiWckeyRemovedResp**](V0044OpenapiWckeyRemovedResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey deletion request | - | +**0** | Result of wckey deletion request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_account** +> V0044OpenapiAccountsResp slurmdb_v0044_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + +Get account info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account_name = 'account_name_example' # str | Account name + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_deleted = 'with_deleted_example' # str | Include deleted (optional) + + try: + # Get account info + api_response = api_instance.slurmdb_v0044_get_account(account_name, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0044_get_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_name** | **str**| Account name | + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_deleted** | **str**| Include deleted | [optional] + +### Return type + +[**V0044OpenapiAccountsResp**](V0044OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_accounts** +> V0044OpenapiAccountsResp slurmdb_v0044_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + +Get account list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + deleted = 'deleted_example' # str | include deleted associations (optional) + with_associations = 'with_associations_example' # str | query includes associations (optional) + with_coordinators = 'with_coordinators_example' # str | query includes coordinators (optional) + no_users_are_coords = 'no_users_are_coords_example' # str | remove users as coordinators (optional) + users_are_coords = 'users_are_coords_example' # str | users are coordinators (optional) + + try: + # Get account list + api_response = api_instance.slurmdb_v0044_get_accounts(description=description, deleted=deleted, with_associations=with_associations, with_coordinators=with_coordinators, no_users_are_coords=no_users_are_coords, users_are_coords=users_are_coords) + print("The response of SlurmdbApi->slurmdb_v0044_get_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **deleted** | **str**| include deleted associations | [optional] + **with_associations** | **str**| query includes associations | [optional] + **with_coordinators** | **str**| query includes coordinators | [optional] + **no_users_are_coords** | **str**| remove users as coordinators | [optional] + **users_are_coords** | **str**| users are coordinators | [optional] + +### Return type + +[**V0044OpenapiAccountsResp**](V0044OpenapiAccountsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of accounts | - | +**0** | List of accounts | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_association** +> V0044OpenapiAssocsResp slurmdb_v0044_get_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Get association info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Get association info + api_response = api_instance.slurmdb_v0044_get_association(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0044_get_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0044OpenapiAssocsResp**](V0044OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_associations** +> V0044OpenapiAssocsResp slurmdb_v0044_get_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + +Get association list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV accounts list (optional) + cluster = 'cluster_example' # str | CSV clusters list (optional) + default_qos = 'default_qos_example' # str | CSV QOS list (optional) + include_deleted_associations = 'include_deleted_associations_example' # str | (optional) + include_usage = 'include_usage_example' # str | (optional) + filter_to_only_defaults = 'filter_to_only_defaults_example' # str | (optional) + include_the_raw_qos_or_delta_qos = 'include_the_raw_qos_or_delta_qos_example' # str | (optional) + include_sub_acct_information = 'include_sub_acct_information_example' # str | (optional) + exclude_parent_id_name = 'exclude_parent_id_name_example' # str | (optional) + exclude_limits_from_parents = 'exclude_limits_from_parents_example' # str | (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + parent_account = 'parent_account_example' # str | CSV names of parent account (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + + try: + # Get association list + api_response = api_instance.slurmdb_v0044_get_associations(account=account, cluster=cluster, default_qos=default_qos, include_deleted_associations=include_deleted_associations, include_usage=include_usage, filter_to_only_defaults=filter_to_only_defaults, include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, include_sub_acct_information=include_sub_acct_information, exclude_parent_id_name=exclude_parent_id_name, exclude_limits_from_parents=exclude_limits_from_parents, format=format, id=id, parent_account=parent_account, partition=partition, qos=qos, usage_end=usage_end, usage_start=usage_start, user=user) + print("The response of SlurmdbApi->slurmdb_v0044_get_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV accounts list | [optional] + **cluster** | **str**| CSV clusters list | [optional] + **default_qos** | **str**| CSV QOS list | [optional] + **include_deleted_associations** | **str**| | [optional] + **include_usage** | **str**| | [optional] + **filter_to_only_defaults** | **str**| | [optional] + **include_the_raw_qos_or_delta_qos** | **str**| | [optional] + **include_sub_acct_information** | **str**| | [optional] + **exclude_parent_id_name** | **str**| | [optional] + **exclude_limits_from_parents** | **str**| | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **parent_account** | **str**| CSV names of parent account | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + +### Return type + +[**V0044OpenapiAssocsResp**](V0044OpenapiAssocsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of associations | - | +**0** | List of associations | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_cluster** +> V0044OpenapiClustersResp slurmdb_v0044_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + +Get cluster info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster_name = 'cluster_name_example' # str | Cluster name + classification = 'classification_example' # str | Type of machine (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + federation = 'federation_example' # str | CSV federation list (optional) + flags = 'flags_example' # str | Query flags (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + rpc_version = 'rpc_version_example' # str | CSV RPC version list (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + with_deleted = 'with_deleted_example' # str | Include deleted clusters (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + + try: + # Get cluster info + api_response = api_instance.slurmdb_v0044_get_cluster(cluster_name, classification=classification, cluster=cluster, federation=federation, flags=flags, format=format, rpc_version=rpc_version, usage_end=usage_end, usage_start=usage_start, with_deleted=with_deleted, with_usage=with_usage) + print("The response of SlurmdbApi->slurmdb_v0044_get_cluster:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_cluster: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_name** | **str**| Cluster name | + **classification** | **str**| Type of machine | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **federation** | **str**| CSV federation list | [optional] + **flags** | **str**| Query flags | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **rpc_version** | **str**| CSV RPC version list | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **with_deleted** | **str**| Include deleted clusters | [optional] + **with_usage** | **str**| Include usage | [optional] + +### Return type + +[**V0044OpenapiClustersResp**](V0044OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Cluster information | - | +**0** | Cluster information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_clusters** +> V0044OpenapiClustersResp slurmdb_v0044_get_clusters(update_time=update_time) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0044_get_clusters(update_time=update_time) + print("The response of SlurmdbApi->slurmdb_v0044_get_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + +### Return type + +[**V0044OpenapiClustersResp**](V0044OpenapiClustersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of clusters | - | +**0** | List of clusters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_config** +> V0044OpenapiSlurmdbdConfigResp slurmdb_v0044_get_config() + +Dump all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_config_resp import V0044OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Dump all configuration information + api_response = api_instance.slurmdb_v0044_get_config() + print("The response of SlurmdbApi->slurmdb_v0044_get_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_config: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiSlurmdbdConfigResp**](V0044OpenapiSlurmdbdConfigResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_diag** +> V0044OpenapiSlurmdbdStatsResp slurmdb_v0044_get_diag() + +Get slurmdb diagnostics + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_stats_resp import V0044OpenapiSlurmdbdStatsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get slurmdb diagnostics + api_response = api_instance.slurmdb_v0044_get_diag() + print("The response of SlurmdbApi->slurmdb_v0044_get_diag:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_diag: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiSlurmdbdStatsResp**](V0044OpenapiSlurmdbdStatsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Dictionary of statistics | - | +**0** | Dictionary of statistics | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_instance** +> V0044OpenapiInstancesResp slurmdb_v0044_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_instances_resp import V0044OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance info + api_response = api_instance.slurmdb_v0044_get_instance(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0044_get_instance:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_instance: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0044OpenapiInstancesResp**](V0044OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_instances** +> V0044OpenapiInstancesResp slurmdb_v0044_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + +Get instance list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_instances_resp import V0044OpenapiInstancesResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV clusters list (optional) + extra = 'extra_example' # str | CSV extra list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + instance_id = 'instance_id_example' # str | CSV instance_id list (optional) + instance_type = 'instance_type_example' # str | CSV instance_type list (optional) + node_list = 'node_list_example' # str | Ranged node string (optional) + time_end = 'time_end_example' # str | Time end (UNIX timestamp) (optional) + time_start = 'time_start_example' # str | Time start (UNIX timestamp) (optional) + + try: + # Get instance list + api_response = api_instance.slurmdb_v0044_get_instances(cluster=cluster, extra=extra, format=format, instance_id=instance_id, instance_type=instance_type, node_list=node_list, time_end=time_end, time_start=time_start) + print("The response of SlurmdbApi->slurmdb_v0044_get_instances:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_instances: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV clusters list | [optional] + **extra** | **str**| CSV extra list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **instance_id** | **str**| CSV instance_id list | [optional] + **instance_type** | **str**| CSV instance_type list | [optional] + **node_list** | **str**| Ranged node string | [optional] + **time_end** | **str**| Time end (UNIX timestamp) | [optional] + **time_start** | **str**| Time start (UNIX timestamp) | [optional] + +### Return type + +[**V0044OpenapiInstancesResp**](V0044OpenapiInstancesResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of instances | - | +**0** | List of instances | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_job** +> V0044OpenapiSlurmdbdJobsResp slurmdb_v0044_get_job(job_id) + +Get job info + +This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_jobs_resp import V0044OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + job_id = 'job_id_example' # str | Job ID + + try: + # Get job info + api_response = api_instance.slurmdb_v0044_get_job(job_id) + print("The response of SlurmdbApi->slurmdb_v0044_get_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + +### Return type + +[**V0044OpenapiSlurmdbdJobsResp**](V0044OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Job description | - | +**0** | Job description | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_jobs** +> V0044OpenapiSlurmdbdJobsResp slurmdb_v0044_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, job_altered=job_altered, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + +Get job list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_jobs_resp import V0044OpenapiSlurmdbdJobsResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + account = 'account_example' # str | CSV account list (optional) + association = 'association_example' # str | CSV association list (optional) + cluster = 'cluster_example' # str | CSV cluster list (optional) + constraints = 'constraints_example' # str | CSV constraint list (optional) + scheduler_unset = 'scheduler_unset_example' # str | Schedule bits not set (optional) + scheduled_on_submit = 'scheduled_on_submit_example' # str | Job was started on submit (optional) + scheduled_by_main = 'scheduled_by_main_example' # str | Job was started from main scheduler (optional) + scheduled_by_backfill = 'scheduled_by_backfill_example' # str | Job was started from backfill (optional) + job_started = 'job_started_example' # str | Job start RPC was received (optional) + job_altered = 'job_altered_example' # str | Job record has been altered (optional) + exit_code = 'exit_code_example' # str | Job exit code (numeric) (optional) + show_duplicates = 'show_duplicates_example' # str | Include duplicate job entries (optional) + skip_steps = 'skip_steps_example' # str | Exclude job step details (optional) + disable_truncate_usage_time = 'disable_truncate_usage_time_example' # str | Do not truncate the time to usage_start and usage_end (optional) + whole_hetjob = 'whole_hetjob_example' # str | Include details on all hetjob components (optional) + disable_whole_hetjob = 'disable_whole_hetjob_example' # str | Only show details on specified hetjob components (optional) + disable_wait_for_result = 'disable_wait_for_result_example' # str | Tell dbd not to wait for the result (optional) + usage_time_as_submit_time = 'usage_time_as_submit_time_example' # str | Use usage_time as the submit_time of the job (optional) + show_batch_script = 'show_batch_script_example' # str | Include job script (optional) + show_job_environment = 'show_job_environment_example' # str | Include job environment (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + groups = 'groups_example' # str | CSV group list (optional) + job_name = 'job_name_example' # str | CSV job name list (optional) + partition = 'partition_example' # str | CSV partition name list (optional) + qos = 'qos_example' # str | CSV QOS name list (optional) + reason = 'reason_example' # str | CSV reason list (optional) + reservation = 'reservation_example' # str | CSV reservation name list (optional) + reservation_id = 'reservation_id_example' # str | CSV reservation ID list (optional) + state = 'state_example' # str | CSV state list (optional) + step = 'step_example' # str | CSV step id list (optional) + end_time = 'end_time_example' # str | Usage end (UNIX timestamp) (optional) + start_time = 'start_time_example' # str | Usage start (UNIX timestamp) (optional) + node = 'node_example' # str | Ranged node string where jobs ran (optional) + users = 'users_example' # str | CSV user name list (optional) + wckey = 'wckey_example' # str | CSV WCKey list (optional) + + try: + # Get job list + api_response = api_instance.slurmdb_v0044_get_jobs(account=account, association=association, cluster=cluster, constraints=constraints, scheduler_unset=scheduler_unset, scheduled_on_submit=scheduled_on_submit, scheduled_by_main=scheduled_by_main, scheduled_by_backfill=scheduled_by_backfill, job_started=job_started, job_altered=job_altered, exit_code=exit_code, show_duplicates=show_duplicates, skip_steps=skip_steps, disable_truncate_usage_time=disable_truncate_usage_time, whole_hetjob=whole_hetjob, disable_whole_hetjob=disable_whole_hetjob, disable_wait_for_result=disable_wait_for_result, usage_time_as_submit_time=usage_time_as_submit_time, show_batch_script=show_batch_script, show_job_environment=show_job_environment, format=format, groups=groups, job_name=job_name, partition=partition, qos=qos, reason=reason, reservation=reservation, reservation_id=reservation_id, state=state, step=step, end_time=end_time, start_time=start_time, node=node, users=users, wckey=wckey) + print("The response of SlurmdbApi->slurmdb_v0044_get_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | **str**| CSV account list | [optional] + **association** | **str**| CSV association list | [optional] + **cluster** | **str**| CSV cluster list | [optional] + **constraints** | **str**| CSV constraint list | [optional] + **scheduler_unset** | **str**| Schedule bits not set | [optional] + **scheduled_on_submit** | **str**| Job was started on submit | [optional] + **scheduled_by_main** | **str**| Job was started from main scheduler | [optional] + **scheduled_by_backfill** | **str**| Job was started from backfill | [optional] + **job_started** | **str**| Job start RPC was received | [optional] + **job_altered** | **str**| Job record has been altered | [optional] + **exit_code** | **str**| Job exit code (numeric) | [optional] + **show_duplicates** | **str**| Include duplicate job entries | [optional] + **skip_steps** | **str**| Exclude job step details | [optional] + **disable_truncate_usage_time** | **str**| Do not truncate the time to usage_start and usage_end | [optional] + **whole_hetjob** | **str**| Include details on all hetjob components | [optional] + **disable_whole_hetjob** | **str**| Only show details on specified hetjob components | [optional] + **disable_wait_for_result** | **str**| Tell dbd not to wait for the result | [optional] + **usage_time_as_submit_time** | **str**| Use usage_time as the submit_time of the job | [optional] + **show_batch_script** | **str**| Include job script | [optional] + **show_job_environment** | **str**| Include job environment | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **groups** | **str**| CSV group list | [optional] + **job_name** | **str**| CSV job name list | [optional] + **partition** | **str**| CSV partition name list | [optional] + **qos** | **str**| CSV QOS name list | [optional] + **reason** | **str**| CSV reason list | [optional] + **reservation** | **str**| CSV reservation name list | [optional] + **reservation_id** | **str**| CSV reservation ID list | [optional] + **state** | **str**| CSV state list | [optional] + **step** | **str**| CSV step id list | [optional] + **end_time** | **str**| Usage end (UNIX timestamp) | [optional] + **start_time** | **str**| Usage start (UNIX timestamp) | [optional] + **node** | **str**| Ranged node string where jobs ran | [optional] + **users** | **str**| CSV user name list | [optional] + **wckey** | **str**| CSV WCKey list | [optional] + +### Return type + +[**V0044OpenapiSlurmdbdJobsResp**](V0044OpenapiSlurmdbdJobsResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of jobs | - | +**0** | List of jobs | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_ping** +> V0044OpenapiSlurmdbdPingResp slurmdb_v0044_get_ping() + +ping test + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_ping_resp import V0044OpenapiSlurmdbdPingResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # ping test + api_response = api_instance.slurmdb_v0044_get_ping() + print("The response of SlurmdbApi->slurmdb_v0044_get_ping:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_ping: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiSlurmdbdPingResp**](V0044OpenapiSlurmdbdPingResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | results of ping test | - | +**0** | results of ping test | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_qos** +> V0044OpenapiSlurmdbdQosResp slurmdb_v0044_get_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode) + +Get QOS list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + include_deleted_qos = 'include_deleted_qos_example' # str | (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + + try: + # Get QOS list + api_response = api_instance.slurmdb_v0044_get_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode) + print("The response of SlurmdbApi->slurmdb_v0044_get_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **include_deleted_qos** | **str**| | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + +### Return type + +[**V0044OpenapiSlurmdbdQosResp**](V0044OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of QOS | - | +**0** | List of QOS | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_single_qos** +> V0044OpenapiSlurmdbdQosResp slurmdb_v0044_get_single_qos(qos, with_deleted=with_deleted) + +Get QOS info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + qos = 'qos_example' # str | QOS name + with_deleted = 'with_deleted_example' # str | Query includes deleted QOS (optional) + + try: + # Get QOS info + api_response = api_instance.slurmdb_v0044_get_single_qos(qos, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0044_get_single_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_single_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qos** | **str**| QOS name | + **with_deleted** | **str**| Query includes deleted QOS | [optional] + +### Return type + +[**V0044OpenapiSlurmdbdQosResp**](V0044OpenapiSlurmdbdQosResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS information | - | +**0** | QOS information | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_tres** +> V0044OpenapiTresResp slurmdb_v0044_get_tres() + +Get TRES info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_tres_resp import V0044OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + + try: + # Get TRES info + api_response = api_instance.slurmdb_v0044_get_tres() + print("The response of SlurmdbApi->slurmdb_v0044_get_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_tres: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**V0044OpenapiTresResp**](V0044OpenapiTresResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of TRES | - | +**0** | List of TRES | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_user** +> V0044OpenapiUsersResp slurmdb_v0044_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + +Get user info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + name = 'name_example' # str | User name + with_deleted = 'with_deleted_example' # str | Include deleted users (optional) + with_assocs = 'with_assocs_example' # str | Include associations (optional) + with_coords = 'with_coords_example' # str | Include coordinators (optional) + with_wckeys = 'with_wckeys_example' # str | Include WCKeys (optional) + + try: + # Get user info + api_response = api_instance.slurmdb_v0044_get_user(name, with_deleted=with_deleted, with_assocs=with_assocs, with_coords=with_coords, with_wckeys=with_wckeys) + print("The response of SlurmdbApi->slurmdb_v0044_get_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| User name | + **with_deleted** | **str**| Include deleted users | [optional] + **with_assocs** | **str**| Include associations | [optional] + **with_coords** | **str**| Include coordinators | [optional] + **with_wckeys** | **str**| Include WCKeys | [optional] + +### Return type + +[**V0044OpenapiUsersResp**](V0044OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_users** +> V0044OpenapiUsersResp slurmdb_v0044_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + +Get user list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + admin_level = 'admin_level_example' # str | Administrator level (optional) + default_account = 'default_account_example' # str | CSV default account list (optional) + default_wckey = 'default_wckey_example' # str | CSV default WCKey list (optional) + with_assocs = 'with_assocs_example' # str | With associations (optional) + with_coords = 'with_coords_example' # str | With coordinators (optional) + with_deleted = 'with_deleted_example' # str | With deleted (optional) + with_wckeys = 'with_wckeys_example' # str | With WCKeys (optional) + without_defaults = 'without_defaults_example' # str | Exclude defaults (optional) + + try: + # Get user list + api_response = api_instance.slurmdb_v0044_get_users(admin_level=admin_level, default_account=default_account, default_wckey=default_wckey, with_assocs=with_assocs, with_coords=with_coords, with_deleted=with_deleted, with_wckeys=with_wckeys, without_defaults=without_defaults) + print("The response of SlurmdbApi->slurmdb_v0044_get_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **admin_level** | **str**| Administrator level | [optional] + **default_account** | **str**| CSV default account list | [optional] + **default_wckey** | **str**| CSV default WCKey list | [optional] + **with_assocs** | **str**| With associations | [optional] + **with_coords** | **str**| With coordinators | [optional] + **with_deleted** | **str**| With deleted | [optional] + **with_wckeys** | **str**| With WCKeys | [optional] + **without_defaults** | **str**| Exclude defaults | [optional] + +### Return type + +[**V0044OpenapiUsersResp**](V0044OpenapiUsersResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of users | - | +**0** | List of users | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_wckey** +> V0044OpenapiWckeyResp slurmdb_v0044_get_wckey(id) + +Get wckey info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + id = 'id_example' # str | WCKey ID + + try: + # Get wckey info + api_response = api_instance.slurmdb_v0044_get_wckey(id) + print("The response of SlurmdbApi->slurmdb_v0044_get_wckey:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_wckey: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| WCKey ID | + +### Return type + +[**V0044OpenapiWckeyResp**](V0044OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Description of wckey | - | +**0** | Description of wckey | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_get_wckeys** +> V0044OpenapiWckeyResp slurmdb_v0044_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + +Get wckey list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted WCKeys (optional) + + try: + # Get wckey list + api_response = api_instance.slurmdb_v0044_get_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted) + print("The response of SlurmdbApi->slurmdb_v0044_get_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_get_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted WCKeys | [optional] + +### Return type + +[**V0044OpenapiWckeyResp**](V0044OpenapiWckeyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of wckeys | - | +**0** | List of wckeys | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_accounts** +> V0044OpenapiResp slurmdb_v0044_post_accounts(v0044_openapi_accounts_resp=v0044_openapi_accounts_resp) + +Add/update list of accounts + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0044_openapi_accounts_resp = slurmrest_python.V0044OpenapiAccountsResp() # V0044OpenapiAccountsResp | Description of accounts to update/create (optional) + + try: + # Add/update list of accounts + api_response = api_instance.slurmdb_v0044_post_accounts(v0044_openapi_accounts_resp=v0044_openapi_accounts_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_accounts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_accounts_resp** | [**V0044OpenapiAccountsResp**](V0044OpenapiAccountsResp.md)| Description of accounts to update/create | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account update request | - | +**0** | Status of account update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_accounts_association** +> V0044OpenapiAccountsAddCondRespStr slurmdb_v0044_post_accounts_association(v0044_openapi_accounts_add_cond_resp=v0044_openapi_accounts_add_cond_resp) + +Add accounts with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp import V0044OpenapiAccountsAddCondResp +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp_str import V0044OpenapiAccountsAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0044_openapi_accounts_add_cond_resp = slurmrest_python.V0044OpenapiAccountsAddCondResp() # V0044OpenapiAccountsAddCondResp | Add list of accounts with conditional association (optional) + + try: + # Add accounts with conditional association + api_response = api_instance.slurmdb_v0044_post_accounts_association(v0044_openapi_accounts_add_cond_resp=v0044_openapi_accounts_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_accounts_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_accounts_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_accounts_add_cond_resp** | [**V0044OpenapiAccountsAddCondResp**](V0044OpenapiAccountsAddCondResp.md)| Add list of accounts with conditional association | [optional] + +### Return type + +[**V0044OpenapiAccountsAddCondRespStr**](V0044OpenapiAccountsAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of account addition request | - | +**0** | Status of account addition request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_associations** +> V0044OpenapiResp slurmdb_v0044_post_associations(v0044_openapi_assocs_resp=v0044_openapi_assocs_resp) + +Set associations info + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0044_openapi_assocs_resp = slurmrest_python.V0044OpenapiAssocsResp() # V0044OpenapiAssocsResp | Job description (optional) + + try: + # Set associations info + api_response = api_instance.slurmdb_v0044_post_associations(v0044_openapi_assocs_resp=v0044_openapi_assocs_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_associations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_associations: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_assocs_resp** | [**V0044OpenapiAssocsResp**](V0044OpenapiAssocsResp.md)| Job description | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | status of associations update | - | +**0** | status of associations update | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_clusters** +> V0044OpenapiResp slurmdb_v0044_post_clusters(update_time=update_time, v0044_openapi_clusters_resp=v0044_openapi_clusters_resp) + +Get cluster list + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query reservations updated more recently than this time (UNIX timestamp) (optional) + v0044_openapi_clusters_resp = slurmrest_python.V0044OpenapiClustersResp() # V0044OpenapiClustersResp | Cluster add or update descriptions (optional) + + try: + # Get cluster list + api_response = api_instance.slurmdb_v0044_post_clusters(update_time=update_time, v0044_openapi_clusters_resp=v0044_openapi_clusters_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_clusters:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_clusters: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query reservations updated more recently than this time (UNIX timestamp) | [optional] + **v0044_openapi_clusters_resp** | [**V0044OpenapiClustersResp**](V0044OpenapiClustersResp.md)| Cluster add or update descriptions | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of modify clusters request | - | +**0** | Result of modify clusters request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_config** +> V0044OpenapiResp slurmdb_v0044_post_config(v0044_openapi_slurmdbd_config_resp=v0044_openapi_slurmdbd_config_resp) + +Load all configuration information + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_slurmdbd_config_resp import V0044OpenapiSlurmdbdConfigResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0044_openapi_slurmdbd_config_resp = slurmrest_python.V0044OpenapiSlurmdbdConfigResp() # V0044OpenapiSlurmdbdConfigResp | Add or update config (optional) + + try: + # Load all configuration information + api_response = api_instance.slurmdb_v0044_post_config(v0044_openapi_slurmdbd_config_resp=v0044_openapi_slurmdbd_config_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_config:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_config: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_slurmdbd_config_resp** | [**V0044OpenapiSlurmdbdConfigResp**](V0044OpenapiSlurmdbdConfigResp.md)| Add or update config | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | slurmdbd configuration | - | +**0** | slurmdbd configuration | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_job** +> V0044OpenapiJobModifyResp slurmdb_v0044_post_job(job_id, v0044_job_modify=v0044_job_modify) + +Update job + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_job_modify import V0044JobModify +from slurmrest_python.models.v0044_openapi_job_modify_resp import V0044OpenapiJobModifyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + job_id = 'job_id_example' # str | Job ID + v0044_job_modify = slurmrest_python.V0044JobModify() # V0044JobModify | Job update description (optional) + + try: + # Update job + api_response = api_instance.slurmdb_v0044_post_job(job_id, v0044_job_modify=v0044_job_modify) + print("The response of SlurmdbApi->slurmdb_v0044_post_job:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_job: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_id** | **str**| Job ID | + **v0044_job_modify** | [**V0044JobModify**](V0044JobModify.md)| Job update description | [optional] + +### Return type + +[**V0044OpenapiJobModifyResp**](V0044OpenapiJobModifyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Job update results | - | +**0** | Job update results | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_jobs** +> V0044OpenapiJobModifyResp slurmdb_v0044_post_jobs(v0044_openapi_job_modify_req=v0044_openapi_job_modify_req) + +Update jobs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_job_modify_req import V0044OpenapiJobModifyReq +from slurmrest_python.models.v0044_openapi_job_modify_resp import V0044OpenapiJobModifyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0044_openapi_job_modify_req = slurmrest_python.V0044OpenapiJobModifyReq() # V0044OpenapiJobModifyReq | Job update description (optional) + + try: + # Update jobs + api_response = api_instance.slurmdb_v0044_post_jobs(v0044_openapi_job_modify_req=v0044_openapi_job_modify_req) + print("The response of SlurmdbApi->slurmdb_v0044_post_jobs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_jobs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_job_modify_req** | [**V0044OpenapiJobModifyReq**](V0044OpenapiJobModifyReq.md)| Job update description | [optional] + +### Return type + +[**V0044OpenapiJobModifyResp**](V0044OpenapiJobModifyResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Job update results | - | +**0** | Job update results | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_qos** +> V0044OpenapiResp slurmdb_v0044_post_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode, v0044_openapi_slurmdbd_qos_resp=v0044_openapi_slurmdbd_qos_resp) + +Add or update QOSs + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + description = 'description_example' # str | CSV description list (optional) + include_deleted_qos = 'include_deleted_qos_example' # str | (optional) + id = 'id_example' # str | CSV QOS id list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + name = 'name_example' # str | CSV QOS name list (optional) + preempt_mode = 'preempt_mode_example' # str | PreemptMode used when jobs in this QOS are preempted (optional) + v0044_openapi_slurmdbd_qos_resp = slurmrest_python.V0044OpenapiSlurmdbdQosResp() # V0044OpenapiSlurmdbdQosResp | Description of QOS to add or update (optional) + + try: + # Add or update QOSs + api_response = api_instance.slurmdb_v0044_post_qos(description=description, include_deleted_qos=include_deleted_qos, id=id, format=format, name=name, preempt_mode=preempt_mode, v0044_openapi_slurmdbd_qos_resp=v0044_openapi_slurmdbd_qos_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_qos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_qos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **str**| CSV description list | [optional] + **include_deleted_qos** | **str**| | [optional] + **id** | **str**| CSV QOS id list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **name** | **str**| CSV QOS name list | [optional] + **preempt_mode** | **str**| PreemptMode used when jobs in this QOS are preempted | [optional] + **v0044_openapi_slurmdbd_qos_resp** | [**V0044OpenapiSlurmdbdQosResp**](V0044OpenapiSlurmdbdQosResp.md)| Description of QOS to add or update | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | QOS update response | - | +**0** | QOS update response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_tres** +> V0044OpenapiResp slurmdb_v0044_post_tres(v0044_openapi_tres_resp=v0044_openapi_tres_resp) + +Add TRES + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_tres_resp import V0044OpenapiTresResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0044_openapi_tres_resp = slurmrest_python.V0044OpenapiTresResp() # V0044OpenapiTresResp | TRES descriptions. Only works in developer mode. (optional) + + try: + # Add TRES + api_response = api_instance.slurmdb_v0044_post_tres(v0044_openapi_tres_resp=v0044_openapi_tres_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_tres:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_tres: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_tres_resp** | [**V0044OpenapiTresResp**](V0044OpenapiTresResp.md)| TRES descriptions. Only works in developer mode. | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | TRES update result | - | +**0** | TRES update result | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_users** +> V0044OpenapiResp slurmdb_v0044_post_users(v0044_openapi_users_resp=v0044_openapi_users_resp) + +Update users + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + v0044_openapi_users_resp = slurmrest_python.V0044OpenapiUsersResp() # V0044OpenapiUsersResp | add or update user (optional) + + try: + # Update users + api_response = api_instance.slurmdb_v0044_post_users(v0044_openapi_users_resp=v0044_openapi_users_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_users_resp** | [**V0044OpenapiUsersResp**](V0044OpenapiUsersResp.md)| add or update user | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Status of user update request | - | +**0** | Status of user update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_users_association** +> V0044OpenapiUsersAddCondRespStr slurmdb_v0044_post_users_association(update_time=update_time, flags=flags, v0044_openapi_users_add_cond_resp=v0044_openapi_users_add_cond_resp) + +Add users with conditional association + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_users_add_cond_resp import V0044OpenapiUsersAddCondResp +from slurmrest_python.models.v0044_openapi_users_add_cond_resp_str import V0044OpenapiUsersAddCondRespStr +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + update_time = 'update_time_example' # str | Query partitions updated more recently than this time (UNIX timestamp) (optional) + flags = 'flags_example' # str | Query flags (optional) + v0044_openapi_users_add_cond_resp = slurmrest_python.V0044OpenapiUsersAddCondResp() # V0044OpenapiUsersAddCondResp | Create users with conditional association (optional) + + try: + # Add users with conditional association + api_response = api_instance.slurmdb_v0044_post_users_association(update_time=update_time, flags=flags, v0044_openapi_users_add_cond_resp=v0044_openapi_users_add_cond_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_users_association:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_users_association: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_time** | **str**| Query partitions updated more recently than this time (UNIX timestamp) | [optional] + **flags** | **str**| Query flags | [optional] + **v0044_openapi_users_add_cond_resp** | [**V0044OpenapiUsersAddCondResp**](V0044OpenapiUsersAddCondResp.md)| Create users with conditional association | [optional] + +### Return type + +[**V0044OpenapiUsersAddCondRespStr**](V0044OpenapiUsersAddCondRespStr.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Add list of users with conditional association | - | +**0** | Add list of users with conditional association | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **slurmdb_v0044_post_wckeys** +> V0044OpenapiResp slurmdb_v0044_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0044_openapi_wckey_resp=v0044_openapi_wckey_resp) + +Add or update wckeys + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.SlurmdbApi(api_client) + cluster = 'cluster_example' # str | CSV cluster name list (optional) + format = 'format_example' # str | Ignored; process JSON manually to control output format (optional) + id = 'id_example' # str | CSV ID list (optional) + name = 'name_example' # str | CSV name list (optional) + only_defaults = 'only_defaults_example' # str | Only query defaults (optional) + usage_end = 'usage_end_example' # str | Usage end (UNIX timestamp) (optional) + usage_start = 'usage_start_example' # str | Usage start (UNIX timestamp) (optional) + user = 'user_example' # str | CSV user list (optional) + with_usage = 'with_usage_example' # str | Include usage (optional) + with_deleted = 'with_deleted_example' # str | Include deleted WCKeys (optional) + v0044_openapi_wckey_resp = slurmrest_python.V0044OpenapiWckeyResp() # V0044OpenapiWckeyResp | wckeys description (optional) + + try: + # Add or update wckeys + api_response = api_instance.slurmdb_v0044_post_wckeys(cluster=cluster, format=format, id=id, name=name, only_defaults=only_defaults, usage_end=usage_end, usage_start=usage_start, user=user, with_usage=with_usage, with_deleted=with_deleted, v0044_openapi_wckey_resp=v0044_openapi_wckey_resp) + print("The response of SlurmdbApi->slurmdb_v0044_post_wckeys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SlurmdbApi->slurmdb_v0044_post_wckeys: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | **str**| CSV cluster name list | [optional] + **format** | **str**| Ignored; process JSON manually to control output format | [optional] + **id** | **str**| CSV ID list | [optional] + **name** | **str**| CSV name list | [optional] + **only_defaults** | **str**| Only query defaults | [optional] + **usage_end** | **str**| Usage end (UNIX timestamp) | [optional] + **usage_start** | **str**| Usage start (UNIX timestamp) | [optional] + **user** | **str**| CSV user list | [optional] + **with_usage** | **str**| Include usage | [optional] + **with_deleted** | **str**| Include deleted WCKeys | [optional] + **v0044_openapi_wckey_resp** | [**V0044OpenapiWckeyResp**](V0044OpenapiWckeyResp.md)| wckeys description | [optional] + +### Return type + +[**V0044OpenapiResp**](V0044OpenapiResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Result of wckey addition or update request | - | +**0** | Result of wckey addition or update request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UtilApi.md b/docs/UtilApi.md new file mode 100644 index 0000000..84f7ce9 --- /dev/null +++ b/docs/UtilApi.md @@ -0,0 +1,194 @@ +# slurmrest_python.UtilApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**util_v0044_post_hostlist**](UtilApi.md#util_v0044_post_hostlist) | **POST** /util/v0.0.44/hostlist | Convert an array of host names into hostlist expression +[**util_v0044_post_hostnames**](UtilApi.md#util_v0044_post_hostnames) | **POST** /util/v0.0.44/hostnames | Convert a hostlist expression into array of host names + + +# **util_v0044_post_hostlist** +> V0044OpenapiHostlistReqResp util_v0044_post_hostlist(v0044_openapi_hostnames_req_resp=v0044_openapi_hostnames_req_resp) + +Convert an array of host names into hostlist expression + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_hostlist_req_resp import V0044OpenapiHostlistReqResp +from slurmrest_python.models.v0044_openapi_hostnames_req_resp import V0044OpenapiHostnamesReqResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.UtilApi(api_client) + v0044_openapi_hostnames_req_resp = slurmrest_python.V0044OpenapiHostnamesReqResp() # V0044OpenapiHostnamesReqResp | Array of host names (optional) + + try: + # Convert an array of host names into hostlist expression + api_response = api_instance.util_v0044_post_hostlist(v0044_openapi_hostnames_req_resp=v0044_openapi_hostnames_req_resp) + print("The response of UtilApi->util_v0044_post_hostlist:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UtilApi->util_v0044_post_hostlist: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_hostnames_req_resp** | [**V0044OpenapiHostnamesReqResp**](V0044OpenapiHostnamesReqResp.md)| Array of host names | [optional] + +### Return type + +[**V0044OpenapiHostlistReqResp**](V0044OpenapiHostlistReqResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Hostlist expression | - | +**0** | Hostlist expression | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **util_v0044_post_hostnames** +> V0044OpenapiHostnamesReqResp util_v0044_post_hostnames(v0044_openapi_hostlist_req_resp=v0044_openapi_hostlist_req_resp) + +Convert a hostlist expression into array of host names + +### Example + +* Api Key Authentication (user): +* Bearer (JWT) Authentication (bearerAuth): +* Api Key Authentication (token): + +```python +import slurmrest_python +from slurmrest_python.models.v0044_openapi_hostlist_req_resp import V0044OpenapiHostlistReqResp +from slurmrest_python.models.v0044_openapi_hostnames_req_resp import V0044OpenapiHostnamesReqResp +from slurmrest_python.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = slurmrest_python.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: user +configuration.api_key['user'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['user'] = 'Bearer' + +# Configure Bearer authorization (JWT): bearerAuth +configuration = slurmrest_python.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Configure API key authorization: token +configuration.api_key['token'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['token'] = 'Bearer' + +# Enter a context with an instance of the API client +with slurmrest_python.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = slurmrest_python.UtilApi(api_client) + v0044_openapi_hostlist_req_resp = slurmrest_python.V0044OpenapiHostlistReqResp() # V0044OpenapiHostlistReqResp | Hostlist expression (optional) + + try: + # Convert a hostlist expression into array of host names + api_response = api_instance.util_v0044_post_hostnames(v0044_openapi_hostlist_req_resp=v0044_openapi_hostlist_req_resp) + print("The response of UtilApi->util_v0044_post_hostnames:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UtilApi->util_v0044_post_hostnames: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v0044_openapi_hostlist_req_resp** | [**V0044OpenapiHostlistReqResp**](V0044OpenapiHostlistReqResp.md)| Hostlist expression | [optional] + +### Return type + +[**V0044OpenapiHostnamesReqResp**](V0044OpenapiHostnamesReqResp.md) + +### Authorization + +[user](../README.md#user), [bearerAuth](../README.md#bearerAuth), [token](../README.md#token) + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Array of host names | - | +**0** | Array of host names | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/V0041JobAllocReq.md b/docs/V0041JobAllocReq.md new file mode 100644 index 0000000..cbd6c00 --- /dev/null +++ b/docs/V0041JobAllocReq.md @@ -0,0 +1,30 @@ +# V0041JobAllocReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hetjob** | [**List[V0041JobDescMsg]**](V0041JobDescMsg.md) | HetJob description | [optional] +**job** | [**V0041JobDescMsg**](V0041JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_alloc_req import V0041JobAllocReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobAllocReq from a JSON string +v0041_job_alloc_req_instance = V0041JobAllocReq.from_json(json) +# print the JSON string representation of the object +print(V0041JobAllocReq.to_json()) + +# convert the object into a dict +v0041_job_alloc_req_dict = v0041_job_alloc_req_instance.to_dict() +# create an instance of V0041JobAllocReq from a dict +v0041_job_alloc_req_from_dict = V0041JobAllocReq.from_dict(v0041_job_alloc_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsg.md b/docs/V0041JobDescMsg.md new file mode 100644 index 0000000..84ac1c7 --- /dev/null +++ b/docs/V0041JobDescMsg.md @@ -0,0 +1,145 @@ +# V0041JobDescMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**account_gather_frequency** | **str** | Job accounting and profiling sampling intervals in seconds | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocation_node_list** | **str** | Local node making the resource allocation | [optional] +**allocation_node_port** | **int** | Port to send allocation confirmation to | [optional] +**argv** | **List[str]** | Arguments to the script | [optional] +**array** | **str** | Job array index value specification | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**begin_time** | [**V0041JobDescMsgBeginTime**](V0041JobDescMsgBeginTime.md) | | [optional] +**flags** | **List[str]** | Job flags | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**clusters** | **str** | Clusters that a federated job can run on | [optional] +**cluster_constraint** | **str** | Required features that a federated cluster must have to have a sibling job submitted to it | [optional] +**comment** | **str** | Arbitrary comment made by user | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**core_specification** | **int** | Specialized core count | [optional] +**thread_specification** | **int** | Specialized thread count | [optional] +**cpu_binding** | **str** | Method for binding tasks to allocated CPUs | [optional] +**cpu_binding_flags** | **List[str]** | Flags for CPU binding | [optional] +**cpu_frequency** | **str** | Requested CPU frequency range <p1>[-p2][:p3] | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**crontab** | [**V0041JobDescMsgCrontab**](V0041JobDescMsgCrontab.md) | | [optional] +**deadline** | **int** | Latest time that the job may start (UNIX timestamp) | [optional] +**delay_boot** | **int** | Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**end_time** | **int** | Expected end time (UNIX timestamp) | [optional] +**environment** | **List[str]** | Environment variables to be set for the job | [optional] +**rlimits** | [**V0041JobDescMsgRlimits**](V0041JobDescMsgRlimits.md) | | [optional] +**excluded_nodes** | **List[str]** | Comma separated list of nodes that may not be used | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**constraints** | **str** | Comma separated list of features that are required | [optional] +**group_id** | **str** | Group ID of the user that owns the job | [optional] +**hetjob_group** | **int** | Unique sequence number applied to this component of the heterogeneous job | [optional] +**immediate** | **bool** | If true, exit if resources are not available within the time period specified | [optional] +**job_id** | **int** | Job ID | [optional] +**kill_on_node_fail** | **bool** | If true, kill job on node failure | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mail_type** | **List[str]** | Mail event type(s) | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_binding** | **str** | Binding map for map/mask_cpu | [optional] +**memory_binding_type** | **List[str]** | Method for binding tasks to memory | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for job step | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks** | **int** | Number of tasks | [optional] +**open_mode** | **List[str]** | Open mode used for stdout and stderr files | [optional] +**reserve_ports** | **int** | Port to send various notification msg to | [optional] +**overcommit** | **bool** | Overcommit resources | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**distribution_plane_size** | [**V0041JobDescMsgDistributionPlaneSize**](V0041JobDescMsgDistributionPlaneSize.md) | | [optional] +**power_flags** | **List[object]** | | [optional] +**prefer** | **str** | Comma separated list of features that are preferred but not required | [optional] +**hold** | **bool** | Hold (true) or release (false) job | [optional] +**priority** | [**V0041JobDescMsgPriority**](V0041JobDescMsgPriority.md) | | [optional] +**profile** | **List[str]** | Profile used by the acct_gather_profile plugin | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **List[str]** | Comma separated list of required nodes | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**reservation** | **str** | Name of reservation to use | [optional] +**resv_mpi_ports** | **int** | Number of reserved communication ports; can only be used if slurmstepd step manager is enabled | [optional] +**script** | **str** | Job batch script; only the first component in a HetJob is populated or honored | [optional] +**shared** | **List[str]** | How the job can share resources with other jobs, if at all | [optional] +**exclusive** | **List[str]** | | [optional] +**oversubscribe** | **bool** | | [optional] +**site_factor** | **int** | Site-specific priority factor | [optional] +**spank_environment** | **List[str]** | Environment variables for job prolog/epilog scripts as set by SPANK plugins | [optional] +**distribution** | **str** | Layout | [optional] +**time_limit** | [**V0041JobDescMsgTimeLimit**](V0041JobDescMsgTimeLimit.md) | | [optional] +**time_minimum** | [**V0041JobDescMsgTimeMinimum**](V0041JobDescMsgTimeMinimum.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma separated list of TRES=# values to be allocated for every job | [optional] +**tres_per_node** | **str** | Comma separated list of TRES=# values to be allocated for every node | [optional] +**tres_per_socket** | **str** | Comma separated list of TRES=# values to be allocated for every socket | [optional] +**tres_per_task** | **str** | Comma separated list of TRES=# values to be allocated for every task | [optional] +**user_id** | **str** | User ID that owns the job | [optional] +**wait_all_nodes** | **bool** | If true, wait to start until after all nodes have booted | [optional] +**kill_warning_flags** | **List[str]** | Flags related to job signals | [optional] +**kill_warning_signal** | **str** | Signal to send when approaching end time (e.g. \"10\" or \"USR1\") | [optional] +**kill_warning_delay** | [**V0041JobDescMsgKillWarningDelay**](V0041JobDescMsgKillWarningDelay.md) | | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] +**cpus_per_task** | **int** | Number of CPUs required by each task | [optional] +**minimum_cpus** | **int** | Minimum number of CPUs required | [optional] +**maximum_cpus** | **int** | Maximum number of CPUs required | [optional] +**nodes** | **str** | Node count range specification (e.g. 1-15:4) | [optional] +**minimum_nodes** | **int** | Minimum node count | [optional] +**maximum_nodes** | **int** | Maximum node count | [optional] +**minimum_boards_per_node** | **int** | Boards per node required | [optional] +**minimum_sockets_per_board** | **int** | Sockets per board required | [optional] +**sockets_per_node** | **int** | Sockets per node required | [optional] +**threads_per_core** | **int** | Threads per core required | [optional] +**tasks_per_node** | **int** | Number of tasks to invoke on each node | [optional] +**tasks_per_socket** | **int** | Number of tasks to invoke on each socket | [optional] +**tasks_per_core** | **int** | Number of tasks to invoke on each core | [optional] +**tasks_per_board** | **int** | Number of tasks to invoke on each board | [optional] +**ntasks_per_tres** | **int** | Number of tasks that can access each GPU | [optional] +**minimum_cpus_per_node** | **int** | Minimum number of CPUs per node | [optional] +**memory_per_cpu** | [**V0041JobDescMsgMemoryPerCpu**](V0041JobDescMsgMemoryPerCpu.md) | | [optional] +**memory_per_node** | [**V0041JobDescMsgMemoryPerCpu**](V0041JobDescMsgMemoryPerCpu.md) | | [optional] +**temporary_disk_per_node** | **int** | Minimum tmp disk space required per node | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**required_switches** | [**V0041JobDescMsgRequiredSwitches**](V0041JobDescMsgRequiredSwitches.md) | | [optional] +**segment_size** | [**V0041JobDescMsgSegmentSize**](V0041JobDescMsgSegmentSize.md) | | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**wait_for_switch** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**x11** | **List[str]** | X11 forwarding options | [optional] +**x11_magic_cookie** | **str** | Magic cookie for X11 forwarding | [optional] +**x11_target_host** | **str** | Hostname or UNIX socket if x11_target_port=0 | [optional] +**x11_target_port** | **int** | TCP port | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsg from a JSON string +v0041_job_desc_msg_instance = V0041JobDescMsg.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsg.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_dict = v0041_job_desc_msg_instance.to_dict() +# create an instance of V0041JobDescMsg from a dict +v0041_job_desc_msg_from_dict = V0041JobDescMsg.from_dict(v0041_job_desc_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgBeginTime.md b/docs/V0041JobDescMsgBeginTime.md new file mode 100644 index 0000000..aa0142d --- /dev/null +++ b/docs/V0041JobDescMsgBeginTime.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgBeginTime + +Defer the allocation of the job until the specified time (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_begin_time import V0041JobDescMsgBeginTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgBeginTime from a JSON string +v0041_job_desc_msg_begin_time_instance = V0041JobDescMsgBeginTime.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgBeginTime.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_begin_time_dict = v0041_job_desc_msg_begin_time_instance.to_dict() +# create an instance of V0041JobDescMsgBeginTime from a dict +v0041_job_desc_msg_begin_time_from_dict = V0041JobDescMsgBeginTime.from_dict(v0041_job_desc_msg_begin_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgCrontab.md b/docs/V0041JobDescMsgCrontab.md new file mode 100644 index 0000000..c8fef23 --- /dev/null +++ b/docs/V0041JobDescMsgCrontab.md @@ -0,0 +1,38 @@ +# V0041JobDescMsgCrontab + +Specification for scrontab job + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flags** | **List[str]** | Flags | [optional] +**minute** | **str** | Ranged string specifying eligible minute values (e.g. 0-10,50) | [optional] +**hour** | **str** | Ranged string specifying eligible hour values (e.g. 0-5,23) | [optional] +**day_of_month** | **str** | Ranged string specifying eligible day of month values (e.g. 0-10,29) | [optional] +**month** | **str** | Ranged string specifying eligible month values (e.g. 0-5,12) | [optional] +**day_of_week** | **str** | Ranged string specifying eligible day of week values (e.g.0-3,7) | [optional] +**specification** | **str** | Time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week | [optional] +**command** | **str** | Command to run | [optional] +**line** | [**V0041JobDescMsgCrontabLine**](V0041JobDescMsgCrontabLine.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_crontab import V0041JobDescMsgCrontab + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgCrontab from a JSON string +v0041_job_desc_msg_crontab_instance = V0041JobDescMsgCrontab.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgCrontab.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_crontab_dict = v0041_job_desc_msg_crontab_instance.to_dict() +# create an instance of V0041JobDescMsgCrontab from a dict +v0041_job_desc_msg_crontab_from_dict = V0041JobDescMsgCrontab.from_dict(v0041_job_desc_msg_crontab_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgCrontabLine.md b/docs/V0041JobDescMsgCrontabLine.md new file mode 100644 index 0000000..524c4b7 --- /dev/null +++ b/docs/V0041JobDescMsgCrontabLine.md @@ -0,0 +1,30 @@ +# V0041JobDescMsgCrontabLine + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start** | **int** | Start of this entry in file | [optional] +**end** | **int** | End of this entry in file | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgCrontabLine from a JSON string +v0041_job_desc_msg_crontab_line_instance = V0041JobDescMsgCrontabLine.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgCrontabLine.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_crontab_line_dict = v0041_job_desc_msg_crontab_line_instance.to_dict() +# create an instance of V0041JobDescMsgCrontabLine from a dict +v0041_job_desc_msg_crontab_line_from_dict = V0041JobDescMsgCrontabLine.from_dict(v0041_job_desc_msg_crontab_line_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgDistributionPlaneSize.md b/docs/V0041JobDescMsgDistributionPlaneSize.md new file mode 100644 index 0000000..aef0f7c --- /dev/null +++ b/docs/V0041JobDescMsgDistributionPlaneSize.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgDistributionPlaneSize + +Plane size specification when distribution specifies plane + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_distribution_plane_size import V0041JobDescMsgDistributionPlaneSize + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgDistributionPlaneSize from a JSON string +v0041_job_desc_msg_distribution_plane_size_instance = V0041JobDescMsgDistributionPlaneSize.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgDistributionPlaneSize.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_distribution_plane_size_dict = v0041_job_desc_msg_distribution_plane_size_instance.to_dict() +# create an instance of V0041JobDescMsgDistributionPlaneSize from a dict +v0041_job_desc_msg_distribution_plane_size_from_dict = V0041JobDescMsgDistributionPlaneSize.from_dict(v0041_job_desc_msg_distribution_plane_size_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgKillWarningDelay.md b/docs/V0041JobDescMsgKillWarningDelay.md new file mode 100644 index 0000000..76211d7 --- /dev/null +++ b/docs/V0041JobDescMsgKillWarningDelay.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgKillWarningDelay + +Number of seconds before end time to send the warning signal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_kill_warning_delay import V0041JobDescMsgKillWarningDelay + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgKillWarningDelay from a JSON string +v0041_job_desc_msg_kill_warning_delay_instance = V0041JobDescMsgKillWarningDelay.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgKillWarningDelay.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_kill_warning_delay_dict = v0041_job_desc_msg_kill_warning_delay_instance.to_dict() +# create an instance of V0041JobDescMsgKillWarningDelay from a dict +v0041_job_desc_msg_kill_warning_delay_from_dict = V0041JobDescMsgKillWarningDelay.from_dict(v0041_job_desc_msg_kill_warning_delay_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgMemoryPerCpu.md b/docs/V0041JobDescMsgMemoryPerCpu.md new file mode 100644 index 0000000..82aa7d0 --- /dev/null +++ b/docs/V0041JobDescMsgMemoryPerCpu.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgMemoryPerCpu + +Minimum memory in megabytes per allocated CPU + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_memory_per_cpu import V0041JobDescMsgMemoryPerCpu + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgMemoryPerCpu from a JSON string +v0041_job_desc_msg_memory_per_cpu_instance = V0041JobDescMsgMemoryPerCpu.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgMemoryPerCpu.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_memory_per_cpu_dict = v0041_job_desc_msg_memory_per_cpu_instance.to_dict() +# create an instance of V0041JobDescMsgMemoryPerCpu from a dict +v0041_job_desc_msg_memory_per_cpu_from_dict = V0041JobDescMsgMemoryPerCpu.from_dict(v0041_job_desc_msg_memory_per_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgPriority.md b/docs/V0041JobDescMsgPriority.md new file mode 100644 index 0000000..7b738a4 --- /dev/null +++ b/docs/V0041JobDescMsgPriority.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgPriority + +Request specific job priority + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_priority import V0041JobDescMsgPriority + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgPriority from a JSON string +v0041_job_desc_msg_priority_instance = V0041JobDescMsgPriority.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgPriority.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_priority_dict = v0041_job_desc_msg_priority_instance.to_dict() +# create an instance of V0041JobDescMsgPriority from a dict +v0041_job_desc_msg_priority_from_dict = V0041JobDescMsgPriority.from_dict(v0041_job_desc_msg_priority_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRequiredSwitches.md b/docs/V0041JobDescMsgRequiredSwitches.md new file mode 100644 index 0000000..a734885 --- /dev/null +++ b/docs/V0041JobDescMsgRequiredSwitches.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRequiredSwitches + +Maximum number of switches + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_required_switches import V0041JobDescMsgRequiredSwitches + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRequiredSwitches from a JSON string +v0041_job_desc_msg_required_switches_instance = V0041JobDescMsgRequiredSwitches.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRequiredSwitches.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_required_switches_dict = v0041_job_desc_msg_required_switches_instance.to_dict() +# create an instance of V0041JobDescMsgRequiredSwitches from a dict +v0041_job_desc_msg_required_switches_from_dict = V0041JobDescMsgRequiredSwitches.from_dict(v0041_job_desc_msg_required_switches_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimits.md b/docs/V0041JobDescMsgRlimits.md new file mode 100644 index 0000000..c03a53a --- /dev/null +++ b/docs/V0041JobDescMsgRlimits.md @@ -0,0 +1,38 @@ +# V0041JobDescMsgRlimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0041JobDescMsgRlimitsCpu**](V0041JobDescMsgRlimitsCpu.md) | | [optional] +**fsize** | [**V0041JobDescMsgRlimitsFsize**](V0041JobDescMsgRlimitsFsize.md) | | [optional] +**data** | [**V0041JobDescMsgRlimitsData**](V0041JobDescMsgRlimitsData.md) | | [optional] +**stack** | [**V0041JobDescMsgRlimitsStack**](V0041JobDescMsgRlimitsStack.md) | | [optional] +**core** | [**V0041JobDescMsgRlimitsCore**](V0041JobDescMsgRlimitsCore.md) | | [optional] +**rss** | [**V0041JobDescMsgRlimitsRss**](V0041JobDescMsgRlimitsRss.md) | | [optional] +**nproc** | [**V0041JobDescMsgRlimitsNproc**](V0041JobDescMsgRlimitsNproc.md) | | [optional] +**nofile** | [**V0041JobDescMsgRlimitsNofile**](V0041JobDescMsgRlimitsNofile.md) | | [optional] +**memlock** | [**V0041JobDescMsgRlimitsMemlock**](V0041JobDescMsgRlimitsMemlock.md) | | [optional] +**var_as** | [**V0041JobDescMsgRlimitsAs**](V0041JobDescMsgRlimitsAs.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits import V0041JobDescMsgRlimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimits from a JSON string +v0041_job_desc_msg_rlimits_instance = V0041JobDescMsgRlimits.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimits.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_dict = v0041_job_desc_msg_rlimits_instance.to_dict() +# create an instance of V0041JobDescMsgRlimits from a dict +v0041_job_desc_msg_rlimits_from_dict = V0041JobDescMsgRlimits.from_dict(v0041_job_desc_msg_rlimits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsAs.md b/docs/V0041JobDescMsgRlimitsAs.md new file mode 100644 index 0000000..b38a9cf --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsAs.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsAs + +Address space limit. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_as import V0041JobDescMsgRlimitsAs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsAs from a JSON string +v0041_job_desc_msg_rlimits_as_instance = V0041JobDescMsgRlimitsAs.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsAs.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_as_dict = v0041_job_desc_msg_rlimits_as_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsAs from a dict +v0041_job_desc_msg_rlimits_as_from_dict = V0041JobDescMsgRlimitsAs.from_dict(v0041_job_desc_msg_rlimits_as_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsCore.md b/docs/V0041JobDescMsgRlimitsCore.md new file mode 100644 index 0000000..e93570c --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsCore.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsCore + +Largest core file that can be created, in bytes. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_core import V0041JobDescMsgRlimitsCore + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsCore from a JSON string +v0041_job_desc_msg_rlimits_core_instance = V0041JobDescMsgRlimitsCore.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsCore.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_core_dict = v0041_job_desc_msg_rlimits_core_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsCore from a dict +v0041_job_desc_msg_rlimits_core_from_dict = V0041JobDescMsgRlimitsCore.from_dict(v0041_job_desc_msg_rlimits_core_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsCpu.md b/docs/V0041JobDescMsgRlimitsCpu.md new file mode 100644 index 0000000..2656049 --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsCpu.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsCpu + +Per-process CPU limit, in seconds. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_cpu import V0041JobDescMsgRlimitsCpu + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsCpu from a JSON string +v0041_job_desc_msg_rlimits_cpu_instance = V0041JobDescMsgRlimitsCpu.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsCpu.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_cpu_dict = v0041_job_desc_msg_rlimits_cpu_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsCpu from a dict +v0041_job_desc_msg_rlimits_cpu_from_dict = V0041JobDescMsgRlimitsCpu.from_dict(v0041_job_desc_msg_rlimits_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsData.md b/docs/V0041JobDescMsgRlimitsData.md new file mode 100644 index 0000000..4aaea47 --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsData.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsData + +Maximum size of data segment, in bytes. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_data import V0041JobDescMsgRlimitsData + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsData from a JSON string +v0041_job_desc_msg_rlimits_data_instance = V0041JobDescMsgRlimitsData.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsData.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_data_dict = v0041_job_desc_msg_rlimits_data_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsData from a dict +v0041_job_desc_msg_rlimits_data_from_dict = V0041JobDescMsgRlimitsData.from_dict(v0041_job_desc_msg_rlimits_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsFsize.md b/docs/V0041JobDescMsgRlimitsFsize.md new file mode 100644 index 0000000..06b9b51 --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsFsize.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsFsize + +Largest file that can be created, in bytes. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_fsize import V0041JobDescMsgRlimitsFsize + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsFsize from a JSON string +v0041_job_desc_msg_rlimits_fsize_instance = V0041JobDescMsgRlimitsFsize.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsFsize.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_fsize_dict = v0041_job_desc_msg_rlimits_fsize_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsFsize from a dict +v0041_job_desc_msg_rlimits_fsize_from_dict = V0041JobDescMsgRlimitsFsize.from_dict(v0041_job_desc_msg_rlimits_fsize_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsMemlock.md b/docs/V0041JobDescMsgRlimitsMemlock.md new file mode 100644 index 0000000..646bbbc --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsMemlock.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsMemlock + +Locked-in-memory address space + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_memlock import V0041JobDescMsgRlimitsMemlock + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsMemlock from a JSON string +v0041_job_desc_msg_rlimits_memlock_instance = V0041JobDescMsgRlimitsMemlock.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsMemlock.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_memlock_dict = v0041_job_desc_msg_rlimits_memlock_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsMemlock from a dict +v0041_job_desc_msg_rlimits_memlock_from_dict = V0041JobDescMsgRlimitsMemlock.from_dict(v0041_job_desc_msg_rlimits_memlock_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsNofile.md b/docs/V0041JobDescMsgRlimitsNofile.md new file mode 100644 index 0000000..e67ea58 --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsNofile.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsNofile + +Number of open files. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nofile import V0041JobDescMsgRlimitsNofile + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsNofile from a JSON string +v0041_job_desc_msg_rlimits_nofile_instance = V0041JobDescMsgRlimitsNofile.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsNofile.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_nofile_dict = v0041_job_desc_msg_rlimits_nofile_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsNofile from a dict +v0041_job_desc_msg_rlimits_nofile_from_dict = V0041JobDescMsgRlimitsNofile.from_dict(v0041_job_desc_msg_rlimits_nofile_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsNproc.md b/docs/V0041JobDescMsgRlimitsNproc.md new file mode 100644 index 0000000..70c164e --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsNproc.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsNproc + +Number of processes. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nproc import V0041JobDescMsgRlimitsNproc + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsNproc from a JSON string +v0041_job_desc_msg_rlimits_nproc_instance = V0041JobDescMsgRlimitsNproc.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsNproc.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_nproc_dict = v0041_job_desc_msg_rlimits_nproc_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsNproc from a dict +v0041_job_desc_msg_rlimits_nproc_from_dict = V0041JobDescMsgRlimitsNproc.from_dict(v0041_job_desc_msg_rlimits_nproc_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsRss.md b/docs/V0041JobDescMsgRlimitsRss.md new file mode 100644 index 0000000..91e298c --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsRss.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsRss + +Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_rss import V0041JobDescMsgRlimitsRss + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsRss from a JSON string +v0041_job_desc_msg_rlimits_rss_instance = V0041JobDescMsgRlimitsRss.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsRss.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_rss_dict = v0041_job_desc_msg_rlimits_rss_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsRss from a dict +v0041_job_desc_msg_rlimits_rss_from_dict = V0041JobDescMsgRlimitsRss.from_dict(v0041_job_desc_msg_rlimits_rss_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgRlimitsStack.md b/docs/V0041JobDescMsgRlimitsStack.md new file mode 100644 index 0000000..4f1d609 --- /dev/null +++ b/docs/V0041JobDescMsgRlimitsStack.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgRlimitsStack + +Maximum size of stack segment, in bytes. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_rlimits_stack import V0041JobDescMsgRlimitsStack + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgRlimitsStack from a JSON string +v0041_job_desc_msg_rlimits_stack_instance = V0041JobDescMsgRlimitsStack.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgRlimitsStack.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_rlimits_stack_dict = v0041_job_desc_msg_rlimits_stack_instance.to_dict() +# create an instance of V0041JobDescMsgRlimitsStack from a dict +v0041_job_desc_msg_rlimits_stack_from_dict = V0041JobDescMsgRlimitsStack.from_dict(v0041_job_desc_msg_rlimits_stack_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgSegmentSize.md b/docs/V0041JobDescMsgSegmentSize.md new file mode 100644 index 0000000..ae42420 --- /dev/null +++ b/docs/V0041JobDescMsgSegmentSize.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgSegmentSize + +Segment size for topology/block + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_segment_size import V0041JobDescMsgSegmentSize + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgSegmentSize from a JSON string +v0041_job_desc_msg_segment_size_instance = V0041JobDescMsgSegmentSize.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgSegmentSize.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_segment_size_dict = v0041_job_desc_msg_segment_size_instance.to_dict() +# create an instance of V0041JobDescMsgSegmentSize from a dict +v0041_job_desc_msg_segment_size_from_dict = V0041JobDescMsgSegmentSize.from_dict(v0041_job_desc_msg_segment_size_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgTimeLimit.md b/docs/V0041JobDescMsgTimeLimit.md new file mode 100644 index 0000000..dba9c50 --- /dev/null +++ b/docs/V0041JobDescMsgTimeLimit.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgTimeLimit + +Maximum run time in minutes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_time_limit import V0041JobDescMsgTimeLimit + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgTimeLimit from a JSON string +v0041_job_desc_msg_time_limit_instance = V0041JobDescMsgTimeLimit.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgTimeLimit.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_time_limit_dict = v0041_job_desc_msg_time_limit_instance.to_dict() +# create an instance of V0041JobDescMsgTimeLimit from a dict +v0041_job_desc_msg_time_limit_from_dict = V0041JobDescMsgTimeLimit.from_dict(v0041_job_desc_msg_time_limit_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobDescMsgTimeMinimum.md b/docs/V0041JobDescMsgTimeMinimum.md new file mode 100644 index 0000000..8950dc0 --- /dev/null +++ b/docs/V0041JobDescMsgTimeMinimum.md @@ -0,0 +1,32 @@ +# V0041JobDescMsgTimeMinimum + +Minimum run time in minutes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_desc_msg_time_minimum import V0041JobDescMsgTimeMinimum + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobDescMsgTimeMinimum from a JSON string +v0041_job_desc_msg_time_minimum_instance = V0041JobDescMsgTimeMinimum.from_json(json) +# print the JSON string representation of the object +print(V0041JobDescMsgTimeMinimum.to_json()) + +# convert the object into a dict +v0041_job_desc_msg_time_minimum_dict = v0041_job_desc_msg_time_minimum_instance.to_dict() +# create an instance of V0041JobDescMsgTimeMinimum from a dict +v0041_job_desc_msg_time_minimum_from_dict = V0041JobDescMsgTimeMinimum.from_dict(v0041_job_desc_msg_time_minimum_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041JobSubmitReq.md b/docs/V0041JobSubmitReq.md new file mode 100644 index 0000000..df988fd --- /dev/null +++ b/docs/V0041JobSubmitReq.md @@ -0,0 +1,31 @@ +# V0041JobSubmitReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**script** | **str** | Job batch script contents; Same as the script field in jobs[0] or job. | [optional] +**jobs** | [**List[V0041JobDescMsg]**](V0041JobDescMsg.md) | HetJob description | [optional] +**job** | [**V0041JobDescMsg**](V0041JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_job_submit_req import V0041JobSubmitReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041JobSubmitReq from a JSON string +v0041_job_submit_req_instance = V0041JobSubmitReq.from_json(json) +# print the JSON string representation of the object +print(V0041JobSubmitReq.to_json()) + +# convert the object into a dict +v0041_job_submit_req_dict = v0041_job_submit_req_instance.to_dict() +# create an instance of V0041JobSubmitReq from a dict +v0041_job_submit_req_from_dict = V0041JobSubmitReq.from_dict(v0041_job_submit_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041KillJobsMsg.md b/docs/V0041KillJobsMsg.md new file mode 100644 index 0000000..dfb7616 --- /dev/null +++ b/docs/V0041KillJobsMsg.md @@ -0,0 +1,41 @@ +# V0041KillJobsMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Filter jobs to a specific account | [optional] +**flags** | **List[str]** | Filter jobs according to flags | [optional] +**job_name** | **str** | Filter jobs to a specific name | [optional] +**jobs** | **List[str]** | List of jobs to signal | [optional] +**partition** | **str** | Filter jobs to a specific partition | [optional] +**qos** | **str** | Filter jobs to a specific QOS | [optional] +**reservation** | **str** | Filter jobs to a specific reservation | [optional] +**signal** | **str** | Signal to send to jobs | [optional] +**job_state** | **List[str]** | Filter jobs to a specific state | [optional] +**user_id** | **str** | Filter jobs to a specific numeric user id | [optional] +**user_name** | **str** | Filter jobs to a specific user name | [optional] +**wckey** | **str** | Filter jobs to a specific wckey | [optional] +**nodes** | **List[str]** | Filter jobs to a set of nodes | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_kill_jobs_msg import V0041KillJobsMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041KillJobsMsg from a JSON string +v0041_kill_jobs_msg_instance = V0041KillJobsMsg.from_json(json) +# print the JSON string representation of the object +print(V0041KillJobsMsg.to_json()) + +# convert the object into a dict +v0041_kill_jobs_msg_dict = v0041_kill_jobs_msg_instance.to_dict() +# create an instance of V0041KillJobsMsg from a dict +v0041_kill_jobs_msg_from_dict = V0041KillJobsMsg.from_dict(v0041_kill_jobs_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAccountsAddCondResp.md b/docs/V0041OpenapiAccountsAddCondResp.md new file mode 100644 index 0000000..d663f5e --- /dev/null +++ b/docs/V0041OpenapiAccountsAddCondResp.md @@ -0,0 +1,33 @@ +# V0041OpenapiAccountsAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0041OpenapiAccountsAddCondRespAssociationCondition**](V0041OpenapiAccountsAddCondRespAssociationCondition.md) | | [optional] +**account** | [**V0041OpenapiAccountsAddCondRespAccount**](V0041OpenapiAccountsAddCondRespAccount.md) | | [optional] +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp import V0041OpenapiAccountsAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAccountsAddCondResp from a JSON string +v0041_openapi_accounts_add_cond_resp_instance = V0041OpenapiAccountsAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAccountsAddCondResp.to_json()) + +# convert the object into a dict +v0041_openapi_accounts_add_cond_resp_dict = v0041_openapi_accounts_add_cond_resp_instance.to_dict() +# create an instance of V0041OpenapiAccountsAddCondResp from a dict +v0041_openapi_accounts_add_cond_resp_from_dict = V0041OpenapiAccountsAddCondResp.from_dict(v0041_openapi_accounts_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAccountsAddCondRespAccount.md b/docs/V0041OpenapiAccountsAddCondRespAccount.md new file mode 100644 index 0000000..b3cfb2e --- /dev/null +++ b/docs/V0041OpenapiAccountsAddCondRespAccount.md @@ -0,0 +1,31 @@ +# V0041OpenapiAccountsAddCondRespAccount + +Account organization and description + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary string describing the account | [optional] +**organization** | **str** | Organization to which the account belongs | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_account import V0041OpenapiAccountsAddCondRespAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAccountsAddCondRespAccount from a JSON string +v0041_openapi_accounts_add_cond_resp_account_instance = V0041OpenapiAccountsAddCondRespAccount.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAccountsAddCondRespAccount.to_json()) + +# convert the object into a dict +v0041_openapi_accounts_add_cond_resp_account_dict = v0041_openapi_accounts_add_cond_resp_account_instance.to_dict() +# create an instance of V0041OpenapiAccountsAddCondRespAccount from a dict +v0041_openapi_accounts_add_cond_resp_account_from_dict = V0041OpenapiAccountsAddCondRespAccount.from_dict(v0041_openapi_accounts_add_cond_resp_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAccountsAddCondRespAssociationCondition.md b/docs/V0041OpenapiAccountsAddCondRespAssociationCondition.md new file mode 100644 index 0000000..05d397c --- /dev/null +++ b/docs/V0041OpenapiAccountsAddCondRespAssociationCondition.md @@ -0,0 +1,32 @@ +# V0041OpenapiAccountsAddCondRespAssociationCondition + +CSV list of accounts, association limits and options, CSV list of clusters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | CSV accounts list | +**association** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociation**](V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md) | | [optional] +**clusters** | **List[str]** | CSV clusters list | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_association_condition import V0041OpenapiAccountsAddCondRespAssociationCondition + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAccountsAddCondRespAssociationCondition from a JSON string +v0041_openapi_accounts_add_cond_resp_association_condition_instance = V0041OpenapiAccountsAddCondRespAssociationCondition.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAccountsAddCondRespAssociationCondition.to_json()) + +# convert the object into a dict +v0041_openapi_accounts_add_cond_resp_association_condition_dict = v0041_openapi_accounts_add_cond_resp_association_condition_instance.to_dict() +# create an instance of V0041OpenapiAccountsAddCondRespAssociationCondition from a dict +v0041_openapi_accounts_add_cond_resp_association_condition_from_dict = V0041OpenapiAccountsAddCondRespAssociationCondition.from_dict(v0041_openapi_accounts_add_cond_resp_association_condition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAccountsAddCondRespStr.md b/docs/V0041OpenapiAccountsAddCondRespStr.md new file mode 100644 index 0000000..e35f701 --- /dev/null +++ b/docs/V0041OpenapiAccountsAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0041OpenapiAccountsAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_accounts** | **str** | added_accounts | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_str import V0041OpenapiAccountsAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAccountsAddCondRespStr from a JSON string +v0041_openapi_accounts_add_cond_resp_str_instance = V0041OpenapiAccountsAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAccountsAddCondRespStr.to_json()) + +# convert the object into a dict +v0041_openapi_accounts_add_cond_resp_str_dict = v0041_openapi_accounts_add_cond_resp_str_instance.to_dict() +# create an instance of V0041OpenapiAccountsAddCondRespStr from a dict +v0041_openapi_accounts_add_cond_resp_str_from_dict = V0041OpenapiAccountsAddCondRespStr.from_dict(v0041_openapi_accounts_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAccountsRemovedResp.md b/docs/V0041OpenapiAccountsRemovedResp.md new file mode 100644 index 0000000..0f2576b --- /dev/null +++ b/docs/V0041OpenapiAccountsRemovedResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiAccountsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_accounts** | **List[str]** | removed_accounts | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_accounts_removed_resp import V0041OpenapiAccountsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAccountsRemovedResp from a JSON string +v0041_openapi_accounts_removed_resp_instance = V0041OpenapiAccountsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAccountsRemovedResp.to_json()) + +# convert the object into a dict +v0041_openapi_accounts_removed_resp_dict = v0041_openapi_accounts_removed_resp_instance.to_dict() +# create an instance of V0041OpenapiAccountsRemovedResp from a dict +v0041_openapi_accounts_removed_resp_from_dict = V0041OpenapiAccountsRemovedResp.from_dict(v0041_openapi_accounts_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAccountsResp.md b/docs/V0041OpenapiAccountsResp.md new file mode 100644 index 0000000..c662583 --- /dev/null +++ b/docs/V0041OpenapiAccountsResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiAccountsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**List[V0041OpenapiSlurmdbdConfigRespAccountsInner]**](V0041OpenapiSlurmdbdConfigRespAccountsInner.md) | accounts | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAccountsResp from a JSON string +v0041_openapi_accounts_resp_instance = V0041OpenapiAccountsResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAccountsResp.to_json()) + +# convert the object into a dict +v0041_openapi_accounts_resp_dict = v0041_openapi_accounts_resp_instance.to_dict() +# create an instance of V0041OpenapiAccountsResp from a dict +v0041_openapi_accounts_resp_from_dict = V0041OpenapiAccountsResp.from_dict(v0041_openapi_accounts_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAssocsRemovedResp.md b/docs/V0041OpenapiAssocsRemovedResp.md new file mode 100644 index 0000000..abcec5b --- /dev/null +++ b/docs/V0041OpenapiAssocsRemovedResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiAssocsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_associations** | **List[str]** | removed_associations | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_assocs_removed_resp import V0041OpenapiAssocsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAssocsRemovedResp from a JSON string +v0041_openapi_assocs_removed_resp_instance = V0041OpenapiAssocsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAssocsRemovedResp.to_json()) + +# convert the object into a dict +v0041_openapi_assocs_removed_resp_dict = v0041_openapi_assocs_removed_resp_instance.to_dict() +# create an instance of V0041OpenapiAssocsRemovedResp from a dict +v0041_openapi_assocs_removed_resp_from_dict = V0041OpenapiAssocsRemovedResp.from_dict(v0041_openapi_assocs_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiAssocsResp.md b/docs/V0041OpenapiAssocsResp.md new file mode 100644 index 0000000..ba44baf --- /dev/null +++ b/docs/V0041OpenapiAssocsResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiAssocsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0041OpenapiSlurmdbdConfigRespAssociationsInner]**](V0041OpenapiSlurmdbdConfigRespAssociationsInner.md) | associations | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiAssocsResp from a JSON string +v0041_openapi_assocs_resp_instance = V0041OpenapiAssocsResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiAssocsResp.to_json()) + +# convert the object into a dict +v0041_openapi_assocs_resp_dict = v0041_openapi_assocs_resp_instance.to_dict() +# create an instance of V0041OpenapiAssocsResp from a dict +v0041_openapi_assocs_resp_from_dict = V0041OpenapiAssocsResp.from_dict(v0041_openapi_assocs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiClustersRemovedResp.md b/docs/V0041OpenapiClustersRemovedResp.md new file mode 100644 index 0000000..d8fbb8e --- /dev/null +++ b/docs/V0041OpenapiClustersRemovedResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiClustersRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_clusters** | **List[str]** | deleted_clusters | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_clusters_removed_resp import V0041OpenapiClustersRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiClustersRemovedResp from a JSON string +v0041_openapi_clusters_removed_resp_instance = V0041OpenapiClustersRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiClustersRemovedResp.to_json()) + +# convert the object into a dict +v0041_openapi_clusters_removed_resp_dict = v0041_openapi_clusters_removed_resp_instance.to_dict() +# create an instance of V0041OpenapiClustersRemovedResp from a dict +v0041_openapi_clusters_removed_resp_from_dict = V0041OpenapiClustersRemovedResp.from_dict(v0041_openapi_clusters_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiClustersResp.md b/docs/V0041OpenapiClustersResp.md new file mode 100644 index 0000000..a553af4 --- /dev/null +++ b/docs/V0041OpenapiClustersResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiClustersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0041OpenapiSlurmdbdConfigRespClustersInner]**](V0041OpenapiSlurmdbdConfigRespClustersInner.md) | clusters | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiClustersResp from a JSON string +v0041_openapi_clusters_resp_instance = V0041OpenapiClustersResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiClustersResp.to_json()) + +# convert the object into a dict +v0041_openapi_clusters_resp_dict = v0041_openapi_clusters_resp_instance.to_dict() +# create an instance of V0041OpenapiClustersResp from a dict +v0041_openapi_clusters_resp_from_dict = V0041OpenapiClustersResp.from_dict(v0041_openapi_clusters_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagResp.md b/docs/V0041OpenapiDiagResp.md new file mode 100644 index 0000000..5f2d62e --- /dev/null +++ b/docs/V0041OpenapiDiagResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0041OpenapiDiagRespStatistics**](V0041OpenapiDiagRespStatistics.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp import V0041OpenapiDiagResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagResp from a JSON string +v0041_openapi_diag_resp_instance = V0041OpenapiDiagResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagResp.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_dict = v0041_openapi_diag_resp_instance.to_dict() +# create an instance of V0041OpenapiDiagResp from a dict +v0041_openapi_diag_resp_from_dict = V0041OpenapiDiagResp.from_dict(v0041_openapi_diag_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatistics.md b/docs/V0041OpenapiDiagRespStatistics.md new file mode 100644 index 0000000..d3fc2b6 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatistics.md @@ -0,0 +1,83 @@ +# V0041OpenapiDiagRespStatistics + +statistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parts_packed** | **int** | Zero if only RPC statistic included | [optional] +**req_time** | [**V0041OpenapiDiagRespStatisticsReqTime**](V0041OpenapiDiagRespStatisticsReqTime.md) | | [optional] +**req_time_start** | [**V0041OpenapiDiagRespStatisticsReqTimeStart**](V0041OpenapiDiagRespStatisticsReqTimeStart.md) | | [optional] +**server_thread_count** | **int** | Number of current active slurmctld threads | [optional] +**agent_queue_size** | **int** | Number of enqueued outgoing RPC requests in an internal retry list | [optional] +**agent_count** | **int** | Number of agent threads | [optional] +**agent_thread_count** | **int** | Total number of active threads created by all agent threads | [optional] +**dbd_agent_queue_size** | **int** | Number of messages for SlurmDBD that are queued | [optional] +**gettimeofday_latency** | **int** | Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup | [optional] +**schedule_cycle_max** | **int** | Max time of any scheduling cycle in microseconds since last reset | [optional] +**schedule_cycle_last** | **int** | Time in microseconds for last scheduling cycle | [optional] +**schedule_cycle_sum** | **int** | Total run time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_total** | **int** | Number of scheduling cycles since last reset | [optional] +**schedule_cycle_mean** | **int** | Mean time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_mean_depth** | **int** | Mean of the number of jobs processed in a scheduling cycle | [optional] +**schedule_cycle_per_minute** | **int** | Number of scheduling executions per minute | [optional] +**schedule_cycle_depth** | **int** | Total number of jobs processed in scheduling cycles | [optional] +**schedule_exit** | [**V0041OpenapiDiagRespStatisticsScheduleExit**](V0041OpenapiDiagRespStatisticsScheduleExit.md) | | [optional] +**schedule_queue_length** | **int** | Number of jobs pending in queue | [optional] +**jobs_submitted** | **int** | Number of jobs submitted since last reset | [optional] +**jobs_started** | **int** | Number of jobs started since last reset | [optional] +**jobs_completed** | **int** | Number of jobs completed since last reset | [optional] +**jobs_canceled** | **int** | Number of jobs canceled since the last reset | [optional] +**jobs_failed** | **int** | Number of jobs failed due to slurmd or other internal issues since last reset | [optional] +**jobs_pending** | **int** | Number of jobs pending at the time of listed in job_state_ts | [optional] +**jobs_running** | **int** | Number of jobs running at the time of listed in job_state_ts | [optional] +**job_states_ts** | [**V0041OpenapiDiagRespStatisticsJobStatesTs**](V0041OpenapiDiagRespStatisticsJobStatesTs.md) | | [optional] +**bf_backfilled_jobs** | **int** | Number of jobs started through backfilling since last slurm start | [optional] +**bf_last_backfilled_jobs** | **int** | Number of jobs started through backfilling since last reset | [optional] +**bf_backfilled_het_jobs** | **int** | Number of heterogeneous job components started through backfilling since last Slurm start | [optional] +**bf_cycle_counter** | **int** | Number of backfill scheduling cycles since last reset | [optional] +**bf_cycle_mean** | **int** | Mean time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean** | **int** | Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean_try** | **int** | The subset of Depth Mean that the backfill scheduler attempted to schedule | [optional] +**bf_cycle_sum** | **int** | Total time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_cycle_last** | **int** | Execution time in microseconds of last backfill scheduling cycle | [optional] +**bf_cycle_max** | **int** | Execution time in microseconds of longest backfill scheduling cycle | [optional] +**bf_exit** | [**V0041OpenapiDiagRespStatisticsBfExit**](V0041OpenapiDiagRespStatisticsBfExit.md) | | [optional] +**bf_last_depth** | **int** | Number of processed jobs during last backfilling scheduling cycle | [optional] +**bf_last_depth_try** | **int** | Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources | [optional] +**bf_depth_sum** | **int** | Total number of jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_try_sum** | **int** | Subset of bf_depth_sum that the backfill scheduler attempted to schedule | [optional] +**bf_queue_len** | **int** | Number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_mean** | **int** | Mean number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_sum** | **int** | Total number of jobs pending to be processed by backfilling algorithm since last reset | [optional] +**bf_table_size** | **int** | Number of different time slots tested by the backfill scheduler in its last iteration | [optional] +**bf_table_size_sum** | **int** | Total number of different time slots tested by the backfill scheduler | [optional] +**bf_table_size_mean** | **int** | Mean number of different time slots tested by the backfill scheduler | [optional] +**bf_when_last_cycle** | [**V0041OpenapiDiagRespStatisticsBfWhenLastCycle**](V0041OpenapiDiagRespStatisticsBfWhenLastCycle.md) | | [optional] +**bf_active** | **bool** | Backfill scheduler currently running | [optional] +**rpcs_by_message_type** | [**List[V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner]**](V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.md) | Most frequently issued remote procedure calls (RPCs) | [optional] +**rpcs_by_user** | [**List[V0041OpenapiDiagRespStatisticsRpcsByUserInner]**](V0041OpenapiDiagRespStatisticsRpcsByUserInner.md) | RPCs issued by user ID | [optional] +**pending_rpcs** | [**List[V0041OpenapiDiagRespStatisticsPendingRpcsInner]**](V0041OpenapiDiagRespStatisticsPendingRpcsInner.md) | Pending RPC statistics | [optional] +**pending_rpcs_by_hostlist** | [**List[V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner]**](V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.md) | Pending RPCs hostlists | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics import V0041OpenapiDiagRespStatistics + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatistics from a JSON string +v0041_openapi_diag_resp_statistics_instance = V0041OpenapiDiagRespStatistics.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatistics.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_dict = v0041_openapi_diag_resp_statistics_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatistics from a dict +v0041_openapi_diag_resp_statistics_from_dict = V0041OpenapiDiagRespStatistics.from_dict(v0041_openapi_diag_resp_statistics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsBfExit.md b/docs/V0041OpenapiDiagRespStatisticsBfExit.md new file mode 100644 index 0000000..bfd7854 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsBfExit.md @@ -0,0 +1,35 @@ +# V0041OpenapiDiagRespStatisticsBfExit + +Reasons for which the backfill scheduling cycle exited since last reset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**bf_max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**bf_max_job_test** | **int** | Reached number of jobs allowed to be tested | [optional] +**bf_max_time** | **int** | Reached maximum allowed scheduler time | [optional] +**bf_node_space_size** | **int** | Reached table size limit | [optional] +**state_changed** | **int** | System state changed | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_exit import V0041OpenapiDiagRespStatisticsBfExit + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsBfExit from a JSON string +v0041_openapi_diag_resp_statistics_bf_exit_instance = V0041OpenapiDiagRespStatisticsBfExit.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsBfExit.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_bf_exit_dict = v0041_openapi_diag_resp_statistics_bf_exit_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsBfExit from a dict +v0041_openapi_diag_resp_statistics_bf_exit_from_dict = V0041OpenapiDiagRespStatisticsBfExit.from_dict(v0041_openapi_diag_resp_statistics_bf_exit_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsBfWhenLastCycle.md b/docs/V0041OpenapiDiagRespStatisticsBfWhenLastCycle.md new file mode 100644 index 0000000..ce8a893 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsBfWhenLastCycle.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagRespStatisticsBfWhenLastCycle + +When the last backfill scheduling cycle happened (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_when_last_cycle import V0041OpenapiDiagRespStatisticsBfWhenLastCycle + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsBfWhenLastCycle from a JSON string +v0041_openapi_diag_resp_statistics_bf_when_last_cycle_instance = V0041OpenapiDiagRespStatisticsBfWhenLastCycle.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsBfWhenLastCycle.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_bf_when_last_cycle_dict = v0041_openapi_diag_resp_statistics_bf_when_last_cycle_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsBfWhenLastCycle from a dict +v0041_openapi_diag_resp_statistics_bf_when_last_cycle_from_dict = V0041OpenapiDiagRespStatisticsBfWhenLastCycle.from_dict(v0041_openapi_diag_resp_statistics_bf_when_last_cycle_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsJobStatesTs.md b/docs/V0041OpenapiDiagRespStatisticsJobStatesTs.md new file mode 100644 index 0000000..fae74a6 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsJobStatesTs.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagRespStatisticsJobStatesTs + +When the job state counts were gathered (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_job_states_ts import V0041OpenapiDiagRespStatisticsJobStatesTs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsJobStatesTs from a JSON string +v0041_openapi_diag_resp_statistics_job_states_ts_instance = V0041OpenapiDiagRespStatisticsJobStatesTs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsJobStatesTs.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_job_states_ts_dict = v0041_openapi_diag_resp_statistics_job_states_ts_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsJobStatesTs from a dict +v0041_openapi_diag_resp_statistics_job_states_ts_from_dict = V0041OpenapiDiagRespStatisticsJobStatesTs.from_dict(v0041_openapi_diag_resp_statistics_job_states_ts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.md b/docs/V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.md new file mode 100644 index 0000000..5d8c0a0 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner + +Pending RPCs by hostlist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string | +**count** | **List[str]** | Number of RPCs received | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner import V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner from a JSON string +v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner_instance = V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner_dict = v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner from a dict +v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner_from_dict = V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.from_dict(v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsPendingRpcsInner.md b/docs/V0041OpenapiDiagRespStatisticsPendingRpcsInner.md new file mode 100644 index 0000000..6b2b86c --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsPendingRpcsInner.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagRespStatisticsPendingRpcsInner + +Pending RPCs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string | +**count** | **int** | Number of pending RPCs queued | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_inner import V0041OpenapiDiagRespStatisticsPendingRpcsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsInner from a JSON string +v0041_openapi_diag_resp_statistics_pending_rpcs_inner_instance = V0041OpenapiDiagRespStatisticsPendingRpcsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsPendingRpcsInner.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_pending_rpcs_inner_dict = v0041_openapi_diag_resp_statistics_pending_rpcs_inner_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsInner from a dict +v0041_openapi_diag_resp_statistics_pending_rpcs_inner_from_dict = V0041OpenapiDiagRespStatisticsPendingRpcsInner.from_dict(v0041_openapi_diag_resp_statistics_pending_rpcs_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsReqTime.md b/docs/V0041OpenapiDiagRespStatisticsReqTime.md new file mode 100644 index 0000000..19b7d15 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsReqTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagRespStatisticsReqTime + +When the request was made (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time import V0041OpenapiDiagRespStatisticsReqTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsReqTime from a JSON string +v0041_openapi_diag_resp_statistics_req_time_instance = V0041OpenapiDiagRespStatisticsReqTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsReqTime.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_req_time_dict = v0041_openapi_diag_resp_statistics_req_time_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsReqTime from a dict +v0041_openapi_diag_resp_statistics_req_time_from_dict = V0041OpenapiDiagRespStatisticsReqTime.from_dict(v0041_openapi_diag_resp_statistics_req_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsReqTimeStart.md b/docs/V0041OpenapiDiagRespStatisticsReqTimeStart.md new file mode 100644 index 0000000..77c23c2 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsReqTimeStart.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagRespStatisticsReqTimeStart + +When the data in the report started (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time_start import V0041OpenapiDiagRespStatisticsReqTimeStart + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsReqTimeStart from a JSON string +v0041_openapi_diag_resp_statistics_req_time_start_instance = V0041OpenapiDiagRespStatisticsReqTimeStart.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsReqTimeStart.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_req_time_start_dict = v0041_openapi_diag_resp_statistics_req_time_start_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsReqTimeStart from a dict +v0041_openapi_diag_resp_statistics_req_time_start_from_dict = V0041OpenapiDiagRespStatisticsReqTimeStart.from_dict(v0041_openapi_diag_resp_statistics_req_time_start_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.md b/docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.md new file mode 100644 index 0000000..1363538 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.md @@ -0,0 +1,38 @@ +# V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner + +RPCs by type + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string | +**count** | **int** | Number of RPCs received | +**queued** | **int** | Number of RPCs queued | +**dropped** | **int** | Number of RPCs dropped | +**cycle_last** | **int** | Number of RPCs processed within the last RPC queue cycle | +**cycle_max** | **int** | Maximum number of RPCs processed within a RPC queue cycle since start | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime**](V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md) | | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner from a JSON string +v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_instance = V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_dict = v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner from a dict +v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_from_dict = V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.from_dict(v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md b/docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md new file mode 100644 index 0000000..fa50fb4 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime + +Average time spent processing RPC in seconds + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime from a JSON string +v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time_instance = V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time_dict = v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime from a dict +v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time_from_dict = V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.from_dict(v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsRpcsByUserInner.md b/docs/V0041OpenapiDiagRespStatisticsRpcsByUserInner.md new file mode 100644 index 0000000..c3f1b38 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsRpcsByUserInner.md @@ -0,0 +1,34 @@ +# V0041OpenapiDiagRespStatisticsRpcsByUserInner + +RPCs by user + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **int** | User ID (numeric) | +**user** | **str** | User name | +**count** | **int** | Number of RPCs received | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime**](V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.md) | | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_user_inner import V0041OpenapiDiagRespStatisticsRpcsByUserInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsRpcsByUserInner from a JSON string +v0041_openapi_diag_resp_statistics_rpcs_by_user_inner_instance = V0041OpenapiDiagRespStatisticsRpcsByUserInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsRpcsByUserInner.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_rpcs_by_user_inner_dict = v0041_openapi_diag_resp_statistics_rpcs_by_user_inner_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsRpcsByUserInner from a dict +v0041_openapi_diag_resp_statistics_rpcs_by_user_inner_from_dict = V0041OpenapiDiagRespStatisticsRpcsByUserInner.from_dict(v0041_openapi_diag_resp_statistics_rpcs_by_user_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiDiagRespStatisticsScheduleExit.md b/docs/V0041OpenapiDiagRespStatisticsScheduleExit.md new file mode 100644 index 0000000..8e8bbf9 --- /dev/null +++ b/docs/V0041OpenapiDiagRespStatisticsScheduleExit.md @@ -0,0 +1,35 @@ +# V0041OpenapiDiagRespStatisticsScheduleExit + +Reasons for which the scheduling cycle exited since last reset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**default_queue_depth** | **int** | Reached number of jobs allowed to be tested | [optional] +**max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**max_rpc_cnt** | **int** | Reached RPC limit | [optional] +**max_sched_time** | **int** | Reached maximum allowed scheduler time | [optional] +**licenses** | **int** | Blocked on licenses | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_schedule_exit import V0041OpenapiDiagRespStatisticsScheduleExit + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiDiagRespStatisticsScheduleExit from a JSON string +v0041_openapi_diag_resp_statistics_schedule_exit_instance = V0041OpenapiDiagRespStatisticsScheduleExit.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiDiagRespStatisticsScheduleExit.to_json()) + +# convert the object into a dict +v0041_openapi_diag_resp_statistics_schedule_exit_dict = v0041_openapi_diag_resp_statistics_schedule_exit_instance.to_dict() +# create an instance of V0041OpenapiDiagRespStatisticsScheduleExit from a dict +v0041_openapi_diag_resp_statistics_schedule_exit_from_dict = V0041OpenapiDiagRespStatisticsScheduleExit.from_dict(v0041_openapi_diag_resp_statistics_schedule_exit_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiInstancesResp.md b/docs/V0041OpenapiInstancesResp.md new file mode 100644 index 0000000..31182e6 --- /dev/null +++ b/docs/V0041OpenapiInstancesResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiInstancesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**instances** | [**List[V0041OpenapiSlurmdbdConfigRespInstancesInner]**](V0041OpenapiSlurmdbdConfigRespInstancesInner.md) | instances | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_instances_resp import V0041OpenapiInstancesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiInstancesResp from a JSON string +v0041_openapi_instances_resp_instance = V0041OpenapiInstancesResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiInstancesResp.to_json()) + +# convert the object into a dict +v0041_openapi_instances_resp_dict = v0041_openapi_instances_resp_instance.to_dict() +# create an instance of V0041OpenapiInstancesResp from a dict +v0041_openapi_instances_resp_from_dict = V0041OpenapiInstancesResp.from_dict(v0041_openapi_instances_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobAllocResp.md b/docs/V0041OpenapiJobAllocResp.md new file mode 100644 index 0000000..827db3d --- /dev/null +++ b/docs/V0041OpenapiJobAllocResp.md @@ -0,0 +1,33 @@ +# V0041OpenapiJobAllocResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Submitted Job ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_alloc_resp import V0041OpenapiJobAllocResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobAllocResp from a JSON string +v0041_openapi_job_alloc_resp_instance = V0041OpenapiJobAllocResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobAllocResp.to_json()) + +# convert the object into a dict +v0041_openapi_job_alloc_resp_dict = v0041_openapi_job_alloc_resp_instance.to_dict() +# create an instance of V0041OpenapiJobAllocResp from a dict +v0041_openapi_job_alloc_resp_from_dict = V0041OpenapiJobAllocResp.from_dict(v0041_openapi_job_alloc_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoResp.md b/docs/V0041OpenapiJobInfoResp.md new file mode 100644 index 0000000..28f8367 --- /dev/null +++ b/docs/V0041OpenapiJobInfoResp.md @@ -0,0 +1,34 @@ +# V0041OpenapiJobInfoResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0041OpenapiJobInfoRespJobsInner]**](V0041OpenapiJobInfoRespJobsInner.md) | List of jobs | +**last_backfill** | [**V0041OpenapiJobInfoRespLastBackfill**](V0041OpenapiJobInfoRespLastBackfill.md) | | +**last_update** | [**V0041OpenapiJobInfoRespLastUpdate**](V0041OpenapiJobInfoRespLastUpdate.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoResp from a JSON string +v0041_openapi_job_info_resp_instance = V0041OpenapiJobInfoResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoResp.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_dict = v0041_openapi_job_info_resp_instance.to_dict() +# create an instance of V0041OpenapiJobInfoResp from a dict +v0041_openapi_job_info_resp_from_dict = V0041OpenapiJobInfoResp.from_dict(v0041_openapi_job_info_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInner.md b/docs/V0041OpenapiJobInfoRespJobsInner.md new file mode 100644 index 0000000..3445fa3 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInner.md @@ -0,0 +1,158 @@ +# V0041OpenapiJobInfoRespJobsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**accrue_time** | [**V0041OpenapiJobInfoRespJobsInnerAccrueTime**](V0041OpenapiJobInfoRespJobsInnerAccrueTime.md) | | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocating_node** | **str** | Local node making the resource allocation | [optional] +**array_job_id** | [**V0041OpenapiJobInfoRespJobsInnerArrayJobId**](V0041OpenapiJobInfoRespJobsInnerArrayJobId.md) | | [optional] +**array_task_id** | [**V0041OpenapiJobInfoRespJobsInnerArrayTaskId**](V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md) | | [optional] +**array_max_tasks** | [**V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks**](V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.md) | | [optional] +**array_task_string** | **str** | String expression of task IDs in this record | [optional] +**association_id** | **int** | Unique identifier for the association | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**batch_flag** | **bool** | True if batch job | [optional] +**batch_host** | **str** | Name of host running batch script | [optional] +**flags** | **List[str]** | Job flags | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**burst_buffer_state** | **str** | Burst buffer state details | [optional] +**cluster** | **str** | Cluster name | [optional] +**cluster_features** | **str** | List of required cluster features | [optional] +**command** | **str** | Executed command | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**core_spec** | **int** | Specialized core count | [optional] +**thread_spec** | **int** | Specialized thread count | [optional] +**cores_per_socket** | [**V0041OpenapiJobInfoRespJobsInnerCoresPerSocket**](V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.md) | | [optional] +**billable_tres** | [**V0041OpenapiJobInfoRespJobsInnerBillableTres**](V0041OpenapiJobInfoRespJobsInnerBillableTres.md) | | [optional] +**cpus_per_task** | [**V0041OpenapiJobInfoRespJobsInnerCpusPerTask**](V0041OpenapiJobInfoRespJobsInnerCpusPerTask.md) | | [optional] +**cpu_frequency_minimum** | [**V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum**](V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.md) | | [optional] +**cpu_frequency_maximum** | [**V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum**](V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.md) | | [optional] +**cpu_frequency_governor** | [**V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor**](V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.md) | | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**cron** | **str** | Time specification for scrontab job | [optional] +**deadline** | [**V0041OpenapiJobInfoRespJobsInnerDeadline**](V0041OpenapiJobInfoRespJobsInnerDeadline.md) | | [optional] +**delay_boot** | [**V0041OpenapiJobInfoRespJobsInnerDelayBoot**](V0041OpenapiJobInfoRespJobsInnerDelayBoot.md) | | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**derived_exit_code** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCode**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md) | | [optional] +**eligible_time** | [**V0041OpenapiJobInfoRespJobsInnerEligibleTime**](V0041OpenapiJobInfoRespJobsInnerEligibleTime.md) | | [optional] +**end_time** | [**V0041OpenapiJobInfoRespJobsInnerEndTime**](V0041OpenapiJobInfoRespJobsInnerEndTime.md) | | [optional] +**excluded_nodes** | **str** | Comma separated list of nodes that may not be used | [optional] +**exit_code** | [**V0041OpenapiJobInfoRespJobsInnerExitCode**](V0041OpenapiJobInfoRespJobsInnerExitCode.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**features** | **str** | Comma separated list of features that are required | [optional] +**federation_origin** | **str** | Origin cluster's name (when using federation) | [optional] +**federation_siblings_active** | **str** | Active sibling job names | [optional] +**federation_siblings_viable** | **str** | Viable sibling job names | [optional] +**gres_detail** | **List[str]** | List of GRES index and counts allocated per node | [optional] +**group_id** | **int** | Group ID of the user that owns the job | [optional] +**group_name** | **str** | Group name of the user that owns the job | [optional] +**het_job_id** | [**V0041OpenapiJobInfoRespJobsInnerHetJobId**](V0041OpenapiJobInfoRespJobsInnerHetJobId.md) | | [optional] +**het_job_id_set** | **str** | Job ID range for all heterogeneous job components | [optional] +**het_job_offset** | [**V0041OpenapiJobInfoRespJobsInnerHetJobOffset**](V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**job_resources** | [**V0041OpenapiJobInfoRespJobsInnerJobResources**](V0041OpenapiJobInfoRespJobsInnerJobResources.md) | | [optional] +**job_size_str** | **List[str]** | Number of nodes (in a range) required for this job | [optional] +**job_state** | **List[str]** | Current state | [optional] +**last_sched_evaluation** | [**V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation**](V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.md) | | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mail_type** | **List[str]** | Mail event type(s) | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**max_cpus** | [**V0041OpenapiJobInfoRespJobsInnerMaxCpus**](V0041OpenapiJobInfoRespJobsInnerMaxCpus.md) | | [optional] +**max_nodes** | [**V0041OpenapiJobInfoRespJobsInnerMaxNodes**](V0041OpenapiJobInfoRespJobsInnerMaxNodes.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for the job | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks_per_core** | [**V0041OpenapiJobInfoRespJobsInnerTasksPerCore**](V0041OpenapiJobInfoRespJobsInnerTasksPerCore.md) | | [optional] +**tasks_per_tres** | [**V0041OpenapiJobInfoRespJobsInnerTasksPerTres**](V0041OpenapiJobInfoRespJobsInnerTasksPerTres.md) | | [optional] +**tasks_per_node** | [**V0041OpenapiJobInfoRespJobsInnerTasksPerNode**](V0041OpenapiJobInfoRespJobsInnerTasksPerNode.md) | | [optional] +**tasks_per_socket** | [**V0041OpenapiJobInfoRespJobsInnerTasksPerSocket**](V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.md) | | [optional] +**tasks_per_board** | [**V0041OpenapiJobInfoRespJobsInnerTasksPerBoard**](V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.md) | | [optional] +**cpus** | [**V0041OpenapiJobInfoRespJobsInnerCpus**](V0041OpenapiJobInfoRespJobsInnerCpus.md) | | [optional] +**node_count** | [**V0041OpenapiJobInfoRespJobsInnerNodeCount**](V0041OpenapiJobInfoRespJobsInnerNodeCount.md) | | [optional] +**tasks** | [**V0041OpenapiJobInfoRespJobsInnerTasks**](V0041OpenapiJobInfoRespJobsInnerTasks.md) | | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**prefer** | **str** | Feature(s) the job requested but that are not required | [optional] +**memory_per_cpu** | [**V0041JobDescMsgMemoryPerCpu**](V0041JobDescMsgMemoryPerCpu.md) | | [optional] +**memory_per_node** | [**V0041OpenapiJobInfoRespJobsInnerMemoryPerNode**](V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md) | | [optional] +**minimum_cpus_per_node** | [**V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode**](V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.md) | | [optional] +**minimum_tmp_disk_per_node** | [**V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode**](V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.md) | | [optional] +**power** | [**V0041OpenapiJobInfoRespJobsInnerPower**](V0041OpenapiJobInfoRespJobsInnerPower.md) | | [optional] +**preempt_time** | [**V0041OpenapiJobInfoRespJobsInnerPreemptTime**](V0041OpenapiJobInfoRespJobsInnerPreemptTime.md) | | [optional] +**preemptable_time** | [**V0041OpenapiJobInfoRespJobsInnerPreemptableTime**](V0041OpenapiJobInfoRespJobsInnerPreemptableTime.md) | | [optional] +**pre_sus_time** | [**V0041OpenapiJobInfoRespJobsInnerPreSusTime**](V0041OpenapiJobInfoRespJobsInnerPreSusTime.md) | | [optional] +**hold** | **bool** | Hold (true) or release (false) job | [optional] +**priority** | [**V0041JobDescMsgPriority**](V0041JobDescMsgPriority.md) | | [optional] +**profile** | **List[str]** | Profile used by the acct_gather_profile plugin | [optional] +**qos** | **str** | Quality of Service assigned to the job, if pending the QOS requested | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **str** | Comma separated list of required nodes | [optional] +**minimum_switches** | **int** | Maximum number of switches (the 'minimum' in the key is incorrect) | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**resize_time** | [**V0041OpenapiJobInfoRespJobsInnerResizeTime**](V0041OpenapiJobInfoRespJobsInnerResizeTime.md) | | [optional] +**restart_cnt** | **int** | Number of job restarts | [optional] +**resv_name** | **str** | Name of reservation to use | [optional] +**scheduled_nodes** | **str** | List of nodes scheduled to be used for the job | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**shared** | **List[str]** | How the job can share resources with other jobs, if at all | [optional] +**exclusive** | **List[str]** | | [optional] +**oversubscribe** | **bool** | | [optional] +**show_flags** | **List[str]** | | [optional] +**sockets_per_board** | **int** | Number of sockets per board required | [optional] +**sockets_per_node** | [**V0041OpenapiJobInfoRespJobsInnerSocketsPerNode**](V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.md) | | [optional] +**start_time** | [**V0041OpenapiJobInfoRespJobsInnerStartTime**](V0041OpenapiJobInfoRespJobsInnerStartTime.md) | | [optional] +**state_description** | **str** | Optional details for state_reason | [optional] +**state_reason** | **str** | Reason for current Pending or Failed state | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**submit_time** | [**V0041OpenapiJobInfoRespJobsInnerSubmitTime**](V0041OpenapiJobInfoRespJobsInnerSubmitTime.md) | | [optional] +**suspend_time** | [**V0041OpenapiJobInfoRespJobsInnerSuspendTime**](V0041OpenapiJobInfoRespJobsInnerSuspendTime.md) | | [optional] +**system_comment** | **str** | Arbitrary comment from slurmctld | [optional] +**time_limit** | [**V0041JobDescMsgTimeLimit**](V0041JobDescMsgTimeLimit.md) | | [optional] +**time_minimum** | [**V0041JobDescMsgTimeMinimum**](V0041JobDescMsgTimeMinimum.md) | | [optional] +**threads_per_core** | [**V0041OpenapiJobInfoRespJobsInnerThreadsPerCore**](V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma separated list of TRES=# values to be allocated per job | [optional] +**tres_per_node** | **str** | Comma separated list of TRES=# values to be allocated per node | [optional] +**tres_per_socket** | **str** | Comma separated list of TRES=# values to be allocated per socket | [optional] +**tres_per_task** | **str** | Comma separated list of TRES=# values to be allocated per task | [optional] +**tres_req_str** | **str** | TRES requested by the job | [optional] +**tres_alloc_str** | **str** | TRES used by the job | [optional] +**user_id** | **int** | User ID that owns the job | [optional] +**user_name** | **str** | User name that owns the job | [optional] +**maximum_switch_wait_time** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner import V0041OpenapiJobInfoRespJobsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInner from a JSON string +v0041_openapi_job_info_resp_jobs_inner_instance = V0041OpenapiJobInfoRespJobsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInner.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_dict = v0041_openapi_job_info_resp_jobs_inner_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInner from a dict +v0041_openapi_job_info_resp_jobs_inner_from_dict = V0041OpenapiJobInfoRespJobsInner.from_dict(v0041_openapi_job_info_resp_jobs_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerAccrueTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerAccrueTime.md new file mode 100644 index 0000000..22801f5 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerAccrueTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerAccrueTime + +When the job started accruing age priority (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_accrue_time import V0041OpenapiJobInfoRespJobsInnerAccrueTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerAccrueTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_accrue_time_instance = V0041OpenapiJobInfoRespJobsInnerAccrueTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerAccrueTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_accrue_time_dict = v0041_openapi_job_info_resp_jobs_inner_accrue_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerAccrueTime from a dict +v0041_openapi_job_info_resp_jobs_inner_accrue_time_from_dict = V0041OpenapiJobInfoRespJobsInnerAccrueTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_accrue_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerArrayJobId.md b/docs/V0041OpenapiJobInfoRespJobsInnerArrayJobId.md new file mode 100644 index 0000000..a6beee4 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerArrayJobId.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerArrayJobId + +Job ID of job array, or 0 if N/A + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_job_id import V0041OpenapiJobInfoRespJobsInnerArrayJobId + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerArrayJobId from a JSON string +v0041_openapi_job_info_resp_jobs_inner_array_job_id_instance = V0041OpenapiJobInfoRespJobsInnerArrayJobId.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerArrayJobId.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_array_job_id_dict = v0041_openapi_job_info_resp_jobs_inner_array_job_id_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerArrayJobId from a dict +v0041_openapi_job_info_resp_jobs_inner_array_job_id_from_dict = V0041OpenapiJobInfoRespJobsInnerArrayJobId.from_dict(v0041_openapi_job_info_resp_jobs_inner_array_job_id_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.md b/docs/V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.md new file mode 100644 index 0000000..f2ad933 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks + +Maximum number of simultaneously running array tasks, 0 if no limit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_max_tasks import V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks from a JSON string +v0041_openapi_job_info_resp_jobs_inner_array_max_tasks_instance = V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_array_max_tasks_dict = v0041_openapi_job_info_resp_jobs_inner_array_max_tasks_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks from a dict +v0041_openapi_job_info_resp_jobs_inner_array_max_tasks_from_dict = V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.from_dict(v0041_openapi_job_info_resp_jobs_inner_array_max_tasks_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md b/docs/V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md new file mode 100644 index 0000000..9857a33 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerArrayTaskId + +Task ID of this task in job array + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_task_id import V0041OpenapiJobInfoRespJobsInnerArrayTaskId + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerArrayTaskId from a JSON string +v0041_openapi_job_info_resp_jobs_inner_array_task_id_instance = V0041OpenapiJobInfoRespJobsInnerArrayTaskId.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerArrayTaskId.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_array_task_id_dict = v0041_openapi_job_info_resp_jobs_inner_array_task_id_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerArrayTaskId from a dict +v0041_openapi_job_info_resp_jobs_inner_array_task_id_from_dict = V0041OpenapiJobInfoRespJobsInnerArrayTaskId.from_dict(v0041_openapi_job_info_resp_jobs_inner_array_task_id_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerBillableTres.md b/docs/V0041OpenapiJobInfoRespJobsInnerBillableTres.md new file mode 100644 index 0000000..b6de306 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerBillableTres.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerBillableTres + +Billable TRES + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_billable_tres import V0041OpenapiJobInfoRespJobsInnerBillableTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerBillableTres from a JSON string +v0041_openapi_job_info_resp_jobs_inner_billable_tres_instance = V0041OpenapiJobInfoRespJobsInnerBillableTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerBillableTres.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_billable_tres_dict = v0041_openapi_job_info_resp_jobs_inner_billable_tres_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerBillableTres from a dict +v0041_openapi_job_info_resp_jobs_inner_billable_tres_from_dict = V0041OpenapiJobInfoRespJobsInnerBillableTres.from_dict(v0041_openapi_job_info_resp_jobs_inner_billable_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.md b/docs/V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.md new file mode 100644 index 0000000..ae4c746 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerCoresPerSocket + +Cores per socket required + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cores_per_socket import V0041OpenapiJobInfoRespJobsInnerCoresPerSocket + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerCoresPerSocket from a JSON string +v0041_openapi_job_info_resp_jobs_inner_cores_per_socket_instance = V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_cores_per_socket_dict = v0041_openapi_job_info_resp_jobs_inner_cores_per_socket_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerCoresPerSocket from a dict +v0041_openapi_job_info_resp_jobs_inner_cores_per_socket_from_dict = V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.from_dict(v0041_openapi_job_info_resp_jobs_inner_cores_per_socket_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.md b/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.md new file mode 100644 index 0000000..833d885 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor + +CPU frequency governor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor from a JSON string +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor_instance = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor_dict = v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor from a dict +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor_from_dict = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.from_dict(v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.md b/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.md new file mode 100644 index 0000000..3fa0f34 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum + +Maximum CPU frequency + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum from a JSON string +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum_instance = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum_dict = v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum from a dict +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum_from_dict = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.from_dict(v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.md b/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.md new file mode 100644 index 0000000..da5a4ec --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum + +Minimum CPU frequency + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum from a JSON string +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum_instance = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum_dict = v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum from a dict +v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum_from_dict = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.from_dict(v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerCpus.md b/docs/V0041OpenapiJobInfoRespJobsInnerCpus.md new file mode 100644 index 0000000..50e220d --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerCpus.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerCpus + +Minimum number of CPUs required + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus import V0041OpenapiJobInfoRespJobsInnerCpus + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpus from a JSON string +v0041_openapi_job_info_resp_jobs_inner_cpus_instance = V0041OpenapiJobInfoRespJobsInnerCpus.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerCpus.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_cpus_dict = v0041_openapi_job_info_resp_jobs_inner_cpus_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpus from a dict +v0041_openapi_job_info_resp_jobs_inner_cpus_from_dict = V0041OpenapiJobInfoRespJobsInnerCpus.from_dict(v0041_openapi_job_info_resp_jobs_inner_cpus_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerCpusPerTask.md b/docs/V0041OpenapiJobInfoRespJobsInnerCpusPerTask.md new file mode 100644 index 0000000..ebe4c4e --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerCpusPerTask.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerCpusPerTask + +Number of CPUs required by each task + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus_per_task import V0041OpenapiJobInfoRespJobsInnerCpusPerTask + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpusPerTask from a JSON string +v0041_openapi_job_info_resp_jobs_inner_cpus_per_task_instance = V0041OpenapiJobInfoRespJobsInnerCpusPerTask.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerCpusPerTask.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_cpus_per_task_dict = v0041_openapi_job_info_resp_jobs_inner_cpus_per_task_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerCpusPerTask from a dict +v0041_openapi_job_info_resp_jobs_inner_cpus_per_task_from_dict = V0041OpenapiJobInfoRespJobsInnerCpusPerTask.from_dict(v0041_openapi_job_info_resp_jobs_inner_cpus_per_task_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerDeadline.md b/docs/V0041OpenapiJobInfoRespJobsInnerDeadline.md new file mode 100644 index 0000000..3cbd0eb --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerDeadline.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerDeadline + +Latest time that the job may start (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_deadline import V0041OpenapiJobInfoRespJobsInnerDeadline + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerDeadline from a JSON string +v0041_openapi_job_info_resp_jobs_inner_deadline_instance = V0041OpenapiJobInfoRespJobsInnerDeadline.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerDeadline.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_deadline_dict = v0041_openapi_job_info_resp_jobs_inner_deadline_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerDeadline from a dict +v0041_openapi_job_info_resp_jobs_inner_deadline_from_dict = V0041OpenapiJobInfoRespJobsInnerDeadline.from_dict(v0041_openapi_job_info_resp_jobs_inner_deadline_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerDelayBoot.md b/docs/V0041OpenapiJobInfoRespJobsInnerDelayBoot.md new file mode 100644 index 0000000..923890e --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerDelayBoot.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerDelayBoot + +Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_delay_boot import V0041OpenapiJobInfoRespJobsInnerDelayBoot + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerDelayBoot from a JSON string +v0041_openapi_job_info_resp_jobs_inner_delay_boot_instance = V0041OpenapiJobInfoRespJobsInnerDelayBoot.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerDelayBoot.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_delay_boot_dict = v0041_openapi_job_info_resp_jobs_inner_delay_boot_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerDelayBoot from a dict +v0041_openapi_job_info_resp_jobs_inner_delay_boot_from_dict = V0041OpenapiJobInfoRespJobsInnerDelayBoot.from_dict(v0041_openapi_job_info_resp_jobs_inner_delay_boot_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md new file mode 100644 index 0000000..a60c27a --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerDerivedExitCode + +Highest exit code of all job steps + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **List[str]** | Status given by return code | [optional] +**return_code** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md) | | [optional] +**signal** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_instance = V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_dict = v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCode from a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_from_dict = V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.from_dict(v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md new file mode 100644 index 0000000..cd2e913 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode + +Process return code (numeric) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code_instance = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code_dict = v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode from a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code_from_dict = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.from_dict(v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md new file mode 100644 index 0000000..4d3c21f --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md @@ -0,0 +1,30 @@ +# V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.md) | | [optional] +**name** | **str** | Signal sent to process | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal from a JSON string +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_instance = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_dict = v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal from a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_from_dict = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.from_dict(v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.md b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.md new file mode 100644 index 0000000..8702b08 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId + +Signal sent to process (numeric) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId from a JSON string +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id_instance = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id_dict = v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId from a dict +v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id_from_dict = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.from_dict(v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerEligibleTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerEligibleTime.md new file mode 100644 index 0000000..e8291ed --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerEligibleTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerEligibleTime + +Time when the job became eligible to run (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_eligible_time import V0041OpenapiJobInfoRespJobsInnerEligibleTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerEligibleTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_eligible_time_instance = V0041OpenapiJobInfoRespJobsInnerEligibleTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerEligibleTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_eligible_time_dict = v0041_openapi_job_info_resp_jobs_inner_eligible_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerEligibleTime from a dict +v0041_openapi_job_info_resp_jobs_inner_eligible_time_from_dict = V0041OpenapiJobInfoRespJobsInnerEligibleTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_eligible_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerEndTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerEndTime.md new file mode 100644 index 0000000..69644b6 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerEndTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerEndTime + +End time, real or expected (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_end_time import V0041OpenapiJobInfoRespJobsInnerEndTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerEndTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_end_time_instance = V0041OpenapiJobInfoRespJobsInnerEndTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerEndTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_end_time_dict = v0041_openapi_job_info_resp_jobs_inner_end_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerEndTime from a dict +v0041_openapi_job_info_resp_jobs_inner_end_time_from_dict = V0041OpenapiJobInfoRespJobsInnerEndTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_end_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerExitCode.md b/docs/V0041OpenapiJobInfoRespJobsInnerExitCode.md new file mode 100644 index 0000000..64d9272 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerExitCode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerExitCode + +Exit code of the job + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **List[str]** | Status given by return code | [optional] +**return_code** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md) | | [optional] +**signal** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_exit_code import V0041OpenapiJobInfoRespJobsInnerExitCode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerExitCode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_exit_code_instance = V0041OpenapiJobInfoRespJobsInnerExitCode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerExitCode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_exit_code_dict = v0041_openapi_job_info_resp_jobs_inner_exit_code_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerExitCode from a dict +v0041_openapi_job_info_resp_jobs_inner_exit_code_from_dict = V0041OpenapiJobInfoRespJobsInnerExitCode.from_dict(v0041_openapi_job_info_resp_jobs_inner_exit_code_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerHetJobId.md b/docs/V0041OpenapiJobInfoRespJobsInnerHetJobId.md new file mode 100644 index 0000000..e8f6bfb --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerHetJobId.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerHetJobId + +Heterogeneous job ID, if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_id import V0041OpenapiJobInfoRespJobsInnerHetJobId + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobId from a JSON string +v0041_openapi_job_info_resp_jobs_inner_het_job_id_instance = V0041OpenapiJobInfoRespJobsInnerHetJobId.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerHetJobId.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_het_job_id_dict = v0041_openapi_job_info_resp_jobs_inner_het_job_id_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobId from a dict +v0041_openapi_job_info_resp_jobs_inner_het_job_id_from_dict = V0041OpenapiJobInfoRespJobsInnerHetJobId.from_dict(v0041_openapi_job_info_resp_jobs_inner_het_job_id_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md b/docs/V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md new file mode 100644 index 0000000..e58a678 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerHetJobOffset + +Unique sequence number applied to this component of the heterogeneous job + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_offset import V0041OpenapiJobInfoRespJobsInnerHetJobOffset + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobOffset from a JSON string +v0041_openapi_job_info_resp_jobs_inner_het_job_offset_instance = V0041OpenapiJobInfoRespJobsInnerHetJobOffset.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerHetJobOffset.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_het_job_offset_dict = v0041_openapi_job_info_resp_jobs_inner_het_job_offset_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobOffset from a dict +v0041_openapi_job_info_resp_jobs_inner_het_job_offset_from_dict = V0041OpenapiJobInfoRespJobsInnerHetJobOffset.from_dict(v0041_openapi_job_info_resp_jobs_inner_het_job_offset_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResources.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResources.md new file mode 100644 index 0000000..6bcdadb --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResources.md @@ -0,0 +1,33 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResources + +Resources used by the job + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**select_type** | **List[str]** | Scheduler consumable resource selection type | +**nodes** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.md) | | [optional] +**cpus** | **int** | Number of allocated CPUs | +**threads_per_core** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore**](V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.md) | | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources import V0041OpenapiJobInfoRespJobsInnerJobResources + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResources from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_instance = V0041OpenapiJobInfoRespJobsInnerJobResources.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResources.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResources from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResources.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.md new file mode 100644 index 0000000..b947b0a --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.md @@ -0,0 +1,33 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of allocated nodes | [optional] +**select_type** | **List[str]** | Node scheduling selection method | [optional] +**list** | **str** | Node(s) allocated to the job | [optional] +**whole** | **bool** | Whether whole nodes were allocated | [optional] +**allocation** | [**List[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner]**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.md) | Allocated node resources | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_instance = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.md new file mode 100644 index 0000000..8b879e5 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.md @@ -0,0 +1,34 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner + +Job resources for a node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Node index | +**name** | **str** | Node name | +**cpus** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md) | | [optional] +**memory** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md) | | [optional] +**sockets** | [**List[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner]**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.md) | Socket allocations in node | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_instance = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md new file mode 100644 index 0000000..5bf20a6 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md @@ -0,0 +1,30 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Total number of CPUs assigned to job | [optional] +**used** | **int** | Total number of CPUs used by job | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus_instance = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md new file mode 100644 index 0000000..7d7f243 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md @@ -0,0 +1,30 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**used** | **int** | Total memory (MiB) used by job | [optional] +**allocated** | **int** | Total memory (MiB) allocated to job | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory_instance = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.md new file mode 100644 index 0000000..319d9bf --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.md @@ -0,0 +1,30 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**cores** | [**List[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner]**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.md) | Core in socket | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_instance = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.md new file mode 100644 index 0000000..7f185dd --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.md @@ -0,0 +1,30 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**status** | **List[str]** | Core status | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner_instance = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.md b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.md new file mode 100644 index 0000000..9c5de17 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore + +Number of processor threads per CPU core + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core import V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore from a JSON string +v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core_instance = V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core_dict = v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore from a dict +v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core_from_dict = V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.from_dict(v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.md b/docs/V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.md new file mode 100644 index 0000000..c8c6a9b --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation + +Last time job was evaluated for scheduling (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation import V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation from a JSON string +v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation_instance = V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation_dict = v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation from a dict +v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation_from_dict = V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.from_dict(v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerMaxCpus.md b/docs/V0041OpenapiJobInfoRespJobsInnerMaxCpus.md new file mode 100644 index 0000000..4ba728d --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerMaxCpus.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerMaxCpus + +Maximum number of CPUs usable by the job + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_cpus import V0041OpenapiJobInfoRespJobsInnerMaxCpus + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerMaxCpus from a JSON string +v0041_openapi_job_info_resp_jobs_inner_max_cpus_instance = V0041OpenapiJobInfoRespJobsInnerMaxCpus.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerMaxCpus.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_max_cpus_dict = v0041_openapi_job_info_resp_jobs_inner_max_cpus_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerMaxCpus from a dict +v0041_openapi_job_info_resp_jobs_inner_max_cpus_from_dict = V0041OpenapiJobInfoRespJobsInnerMaxCpus.from_dict(v0041_openapi_job_info_resp_jobs_inner_max_cpus_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerMaxNodes.md b/docs/V0041OpenapiJobInfoRespJobsInnerMaxNodes.md new file mode 100644 index 0000000..2fcc4bc --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerMaxNodes.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerMaxNodes + +Maximum number of nodes usable by the job + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_nodes import V0041OpenapiJobInfoRespJobsInnerMaxNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerMaxNodes from a JSON string +v0041_openapi_job_info_resp_jobs_inner_max_nodes_instance = V0041OpenapiJobInfoRespJobsInnerMaxNodes.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerMaxNodes.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_max_nodes_dict = v0041_openapi_job_info_resp_jobs_inner_max_nodes_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerMaxNodes from a dict +v0041_openapi_job_info_resp_jobs_inner_max_nodes_from_dict = V0041OpenapiJobInfoRespJobsInnerMaxNodes.from_dict(v0041_openapi_job_info_resp_jobs_inner_max_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md b/docs/V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md new file mode 100644 index 0000000..b971115 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerMemoryPerNode + +Minimum memory in megabytes per allocated node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_memory_per_node import V0041OpenapiJobInfoRespJobsInnerMemoryPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerMemoryPerNode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_memory_per_node_instance = V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_memory_per_node_dict = v0041_openapi_job_info_resp_jobs_inner_memory_per_node_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerMemoryPerNode from a dict +v0041_openapi_job_info_resp_jobs_inner_memory_per_node_from_dict = V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.from_dict(v0041_openapi_job_info_resp_jobs_inner_memory_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.md b/docs/V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.md new file mode 100644 index 0000000..c3ca1e7 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode + +Minimum number of CPUs per node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node_instance = V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node_dict = v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode from a dict +v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node_from_dict = V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.from_dict(v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.md b/docs/V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.md new file mode 100644 index 0000000..dc887a2 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode + +Minimum tmp disk space required per node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node_instance = V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node_dict = v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode from a dict +v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node_from_dict = V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.from_dict(v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerNodeCount.md b/docs/V0041OpenapiJobInfoRespJobsInnerNodeCount.md new file mode 100644 index 0000000..23f04c9 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerNodeCount.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerNodeCount + +Minimum number of nodes required + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_node_count import V0041OpenapiJobInfoRespJobsInnerNodeCount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerNodeCount from a JSON string +v0041_openapi_job_info_resp_jobs_inner_node_count_instance = V0041OpenapiJobInfoRespJobsInnerNodeCount.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerNodeCount.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_node_count_dict = v0041_openapi_job_info_resp_jobs_inner_node_count_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerNodeCount from a dict +v0041_openapi_job_info_resp_jobs_inner_node_count_from_dict = V0041OpenapiJobInfoRespJobsInnerNodeCount.from_dict(v0041_openapi_job_info_resp_jobs_inner_node_count_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerPower.md b/docs/V0041OpenapiJobInfoRespJobsInnerPower.md new file mode 100644 index 0000000..002417d --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerPower.md @@ -0,0 +1,29 @@ +# V0041OpenapiJobInfoRespJobsInnerPower + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flags** | **List[object]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerPower from a JSON string +v0041_openapi_job_info_resp_jobs_inner_power_instance = V0041OpenapiJobInfoRespJobsInnerPower.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerPower.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_power_dict = v0041_openapi_job_info_resp_jobs_inner_power_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerPower from a dict +v0041_openapi_job_info_resp_jobs_inner_power_from_dict = V0041OpenapiJobInfoRespJobsInnerPower.from_dict(v0041_openapi_job_info_resp_jobs_inner_power_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerPreSusTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerPreSusTime.md new file mode 100644 index 0000000..725725e --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerPreSusTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerPreSusTime + +Total run time prior to last suspend in seconds + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_pre_sus_time import V0041OpenapiJobInfoRespJobsInnerPreSusTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerPreSusTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_pre_sus_time_instance = V0041OpenapiJobInfoRespJobsInnerPreSusTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerPreSusTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_pre_sus_time_dict = v0041_openapi_job_info_resp_jobs_inner_pre_sus_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerPreSusTime from a dict +v0041_openapi_job_info_resp_jobs_inner_pre_sus_time_from_dict = V0041OpenapiJobInfoRespJobsInnerPreSusTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_pre_sus_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerPreemptTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerPreemptTime.md new file mode 100644 index 0000000..02e5cf8 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerPreemptTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerPreemptTime + +Time job received preemption signal (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preempt_time import V0041OpenapiJobInfoRespJobsInnerPreemptTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_preempt_time_instance = V0041OpenapiJobInfoRespJobsInnerPreemptTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerPreemptTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_preempt_time_dict = v0041_openapi_job_info_resp_jobs_inner_preempt_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptTime from a dict +v0041_openapi_job_info_resp_jobs_inner_preempt_time_from_dict = V0041OpenapiJobInfoRespJobsInnerPreemptTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_preempt_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerPreemptableTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerPreemptableTime.md new file mode 100644 index 0000000..9dc7739 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerPreemptableTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerPreemptableTime + +Time job becomes eligible for preemption (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preemptable_time import V0041OpenapiJobInfoRespJobsInnerPreemptableTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptableTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_preemptable_time_instance = V0041OpenapiJobInfoRespJobsInnerPreemptableTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerPreemptableTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_preemptable_time_dict = v0041_openapi_job_info_resp_jobs_inner_preemptable_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptableTime from a dict +v0041_openapi_job_info_resp_jobs_inner_preemptable_time_from_dict = V0041OpenapiJobInfoRespJobsInnerPreemptableTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_preemptable_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerResizeTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerResizeTime.md new file mode 100644 index 0000000..323b6bc --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerResizeTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerResizeTime + +Time of last size change (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_resize_time import V0041OpenapiJobInfoRespJobsInnerResizeTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerResizeTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_resize_time_instance = V0041OpenapiJobInfoRespJobsInnerResizeTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerResizeTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_resize_time_dict = v0041_openapi_job_info_resp_jobs_inner_resize_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerResizeTime from a dict +v0041_openapi_job_info_resp_jobs_inner_resize_time_from_dict = V0041OpenapiJobInfoRespJobsInnerResizeTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_resize_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.md b/docs/V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.md new file mode 100644 index 0000000..39b215f --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerSocketsPerNode + +Number of sockets per node required + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_sockets_per_node import V0041OpenapiJobInfoRespJobsInnerSocketsPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerSocketsPerNode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_sockets_per_node_instance = V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_sockets_per_node_dict = v0041_openapi_job_info_resp_jobs_inner_sockets_per_node_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerSocketsPerNode from a dict +v0041_openapi_job_info_resp_jobs_inner_sockets_per_node_from_dict = V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.from_dict(v0041_openapi_job_info_resp_jobs_inner_sockets_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerStartTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerStartTime.md new file mode 100644 index 0000000..1573a1b --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerStartTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerStartTime + +Time execution began, or is expected to begin (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_start_time import V0041OpenapiJobInfoRespJobsInnerStartTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerStartTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_start_time_instance = V0041OpenapiJobInfoRespJobsInnerStartTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerStartTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_start_time_dict = v0041_openapi_job_info_resp_jobs_inner_start_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerStartTime from a dict +v0041_openapi_job_info_resp_jobs_inner_start_time_from_dict = V0041OpenapiJobInfoRespJobsInnerStartTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_start_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerSubmitTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerSubmitTime.md new file mode 100644 index 0000000..ab314f9 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerSubmitTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerSubmitTime + +Time when the job was submitted (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_submit_time import V0041OpenapiJobInfoRespJobsInnerSubmitTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerSubmitTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_submit_time_instance = V0041OpenapiJobInfoRespJobsInnerSubmitTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerSubmitTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_submit_time_dict = v0041_openapi_job_info_resp_jobs_inner_submit_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerSubmitTime from a dict +v0041_openapi_job_info_resp_jobs_inner_submit_time_from_dict = V0041OpenapiJobInfoRespJobsInnerSubmitTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_submit_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerSuspendTime.md b/docs/V0041OpenapiJobInfoRespJobsInnerSuspendTime.md new file mode 100644 index 0000000..9a3e871 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerSuspendTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerSuspendTime + +Time the job was last suspended or resumed (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_suspend_time import V0041OpenapiJobInfoRespJobsInnerSuspendTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerSuspendTime from a JSON string +v0041_openapi_job_info_resp_jobs_inner_suspend_time_instance = V0041OpenapiJobInfoRespJobsInnerSuspendTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerSuspendTime.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_suspend_time_dict = v0041_openapi_job_info_resp_jobs_inner_suspend_time_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerSuspendTime from a dict +v0041_openapi_job_info_resp_jobs_inner_suspend_time_from_dict = V0041OpenapiJobInfoRespJobsInnerSuspendTime.from_dict(v0041_openapi_job_info_resp_jobs_inner_suspend_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerTasks.md b/docs/V0041OpenapiJobInfoRespJobsInnerTasks.md new file mode 100644 index 0000000..60da4c0 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerTasks.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerTasks + +Number of tasks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks import V0041OpenapiJobInfoRespJobsInnerTasks + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasks from a JSON string +v0041_openapi_job_info_resp_jobs_inner_tasks_instance = V0041OpenapiJobInfoRespJobsInnerTasks.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerTasks.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_dict = v0041_openapi_job_info_resp_jobs_inner_tasks_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasks from a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_from_dict = V0041OpenapiJobInfoRespJobsInnerTasks.from_dict(v0041_openapi_job_info_resp_jobs_inner_tasks_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.md b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.md new file mode 100644 index 0000000..4237460 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerTasksPerBoard + +Number of tasks invoked on each board + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_board import V0041OpenapiJobInfoRespJobsInnerTasksPerBoard + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerBoard from a JSON string +v0041_openapi_job_info_resp_jobs_inner_tasks_per_board_instance = V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_board_dict = v0041_openapi_job_info_resp_jobs_inner_tasks_per_board_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerBoard from a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_board_from_dict = V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.from_dict(v0041_openapi_job_info_resp_jobs_inner_tasks_per_board_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerCore.md b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerCore.md new file mode 100644 index 0000000..0f64f7d --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerCore.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerTasksPerCore + +Number of tasks invoked on each core + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_core import V0041OpenapiJobInfoRespJobsInnerTasksPerCore + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerCore from a JSON string +v0041_openapi_job_info_resp_jobs_inner_tasks_per_core_instance = V0041OpenapiJobInfoRespJobsInnerTasksPerCore.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerTasksPerCore.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_core_dict = v0041_openapi_job_info_resp_jobs_inner_tasks_per_core_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerCore from a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_core_from_dict = V0041OpenapiJobInfoRespJobsInnerTasksPerCore.from_dict(v0041_openapi_job_info_resp_jobs_inner_tasks_per_core_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerNode.md b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerNode.md new file mode 100644 index 0000000..cc0cb66 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerTasksPerNode + +Number of tasks invoked on each node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_node import V0041OpenapiJobInfoRespJobsInnerTasksPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerNode from a JSON string +v0041_openapi_job_info_resp_jobs_inner_tasks_per_node_instance = V0041OpenapiJobInfoRespJobsInnerTasksPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerTasksPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_node_dict = v0041_openapi_job_info_resp_jobs_inner_tasks_per_node_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerNode from a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_node_from_dict = V0041OpenapiJobInfoRespJobsInnerTasksPerNode.from_dict(v0041_openapi_job_info_resp_jobs_inner_tasks_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.md b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.md new file mode 100644 index 0000000..c97a18d --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerTasksPerSocket + +Number of tasks invoked on each socket + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket import V0041OpenapiJobInfoRespJobsInnerTasksPerSocket + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerSocket from a JSON string +v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket_instance = V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket_dict = v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerSocket from a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket_from_dict = V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.from_dict(v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerTres.md b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerTres.md new file mode 100644 index 0000000..3d32d7a --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerTasksPerTres.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerTasksPerTres + +Number of tasks that can assess each GPU + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres import V0041OpenapiJobInfoRespJobsInnerTasksPerTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerTres from a JSON string +v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres_instance = V0041OpenapiJobInfoRespJobsInnerTasksPerTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerTasksPerTres.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres_dict = v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerTres from a dict +v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres_from_dict = V0041OpenapiJobInfoRespJobsInnerTasksPerTres.from_dict(v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.md b/docs/V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.md new file mode 100644 index 0000000..80da996 --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespJobsInnerThreadsPerCore + +Number of processor threads per CPU core required + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_threads_per_core import V0041OpenapiJobInfoRespJobsInnerThreadsPerCore + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespJobsInnerThreadsPerCore from a JSON string +v0041_openapi_job_info_resp_jobs_inner_threads_per_core_instance = V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_jobs_inner_threads_per_core_dict = v0041_openapi_job_info_resp_jobs_inner_threads_per_core_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespJobsInnerThreadsPerCore from a dict +v0041_openapi_job_info_resp_jobs_inner_threads_per_core_from_dict = V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.from_dict(v0041_openapi_job_info_resp_jobs_inner_threads_per_core_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespLastBackfill.md b/docs/V0041OpenapiJobInfoRespLastBackfill.md new file mode 100644 index 0000000..79c4e6a --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespLastBackfill.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespLastBackfill + +Time of last backfill scheduler run (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_last_backfill import V0041OpenapiJobInfoRespLastBackfill + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespLastBackfill from a JSON string +v0041_openapi_job_info_resp_last_backfill_instance = V0041OpenapiJobInfoRespLastBackfill.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespLastBackfill.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_last_backfill_dict = v0041_openapi_job_info_resp_last_backfill_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespLastBackfill from a dict +v0041_openapi_job_info_resp_last_backfill_from_dict = V0041OpenapiJobInfoRespLastBackfill.from_dict(v0041_openapi_job_info_resp_last_backfill_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobInfoRespLastUpdate.md b/docs/V0041OpenapiJobInfoRespLastUpdate.md new file mode 100644 index 0000000..b08a8bd --- /dev/null +++ b/docs/V0041OpenapiJobInfoRespLastUpdate.md @@ -0,0 +1,32 @@ +# V0041OpenapiJobInfoRespLastUpdate + +Time of last job change (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_info_resp_last_update import V0041OpenapiJobInfoRespLastUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobInfoRespLastUpdate from a JSON string +v0041_openapi_job_info_resp_last_update_instance = V0041OpenapiJobInfoRespLastUpdate.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobInfoRespLastUpdate.to_json()) + +# convert the object into a dict +v0041_openapi_job_info_resp_last_update_dict = v0041_openapi_job_info_resp_last_update_instance.to_dict() +# create an instance of V0041OpenapiJobInfoRespLastUpdate from a dict +v0041_openapi_job_info_resp_last_update_from_dict = V0041OpenapiJobInfoRespLastUpdate.from_dict(v0041_openapi_job_info_resp_last_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobPostResponse.md b/docs/V0041OpenapiJobPostResponse.md new file mode 100644 index 0000000..c5b434e --- /dev/null +++ b/docs/V0041OpenapiJobPostResponse.md @@ -0,0 +1,35 @@ +# V0041OpenapiJobPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List[V0041OpenapiJobPostResponseResultsInner]**](V0041OpenapiJobPostResponseResultsInner.md) | Job update results | [optional] +**job_id** | **str** | First updated Job ID - Use results instead | [optional] +**step_id** | **str** | First updated Step ID - Use results instead | [optional] +**job_submit_user_msg** | **str** | First updated Job submission user message - Use results instead | [optional] +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_post_response import V0041OpenapiJobPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobPostResponse from a JSON string +v0041_openapi_job_post_response_instance = V0041OpenapiJobPostResponse.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobPostResponse.to_json()) + +# convert the object into a dict +v0041_openapi_job_post_response_dict = v0041_openapi_job_post_response_instance.to_dict() +# create an instance of V0041OpenapiJobPostResponse from a dict +v0041_openapi_job_post_response_from_dict = V0041OpenapiJobPostResponse.from_dict(v0041_openapi_job_post_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobPostResponseResultsInner.md b/docs/V0041OpenapiJobPostResponseResultsInner.md new file mode 100644 index 0000000..36fa4f6 --- /dev/null +++ b/docs/V0041OpenapiJobPostResponseResultsInner.md @@ -0,0 +1,33 @@ +# V0041OpenapiJobPostResponseResultsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID for updated job | [optional] +**step_id** | **str** | Step ID for updated job | [optional] +**error** | **str** | Verbose update status or error | [optional] +**error_code** | **int** | Verbose update status or error | [optional] +**why** | **str** | Update response message | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_post_response_results_inner import V0041OpenapiJobPostResponseResultsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobPostResponseResultsInner from a JSON string +v0041_openapi_job_post_response_results_inner_instance = V0041OpenapiJobPostResponseResultsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobPostResponseResultsInner.to_json()) + +# convert the object into a dict +v0041_openapi_job_post_response_results_inner_dict = v0041_openapi_job_post_response_results_inner_instance.to_dict() +# create an instance of V0041OpenapiJobPostResponseResultsInner from a dict +v0041_openapi_job_post_response_results_inner_from_dict = V0041OpenapiJobPostResponseResultsInner.from_dict(v0041_openapi_job_post_response_results_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobSubmitResponse.md b/docs/V0041OpenapiJobSubmitResponse.md new file mode 100644 index 0000000..94d2da2 --- /dev/null +++ b/docs/V0041OpenapiJobSubmitResponse.md @@ -0,0 +1,35 @@ +# V0041OpenapiJobSubmitResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | [**V0041OpenapiJobSubmitResponseResult**](V0041OpenapiJobSubmitResponseResult.md) | | [optional] +**job_id** | **int** | Submitted Job ID | [optional] +**step_id** | **str** | Submitted Step ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_submit_response import V0041OpenapiJobSubmitResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobSubmitResponse from a JSON string +v0041_openapi_job_submit_response_instance = V0041OpenapiJobSubmitResponse.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobSubmitResponse.to_json()) + +# convert the object into a dict +v0041_openapi_job_submit_response_dict = v0041_openapi_job_submit_response_instance.to_dict() +# create an instance of V0041OpenapiJobSubmitResponse from a dict +v0041_openapi_job_submit_response_from_dict = V0041OpenapiJobSubmitResponse.from_dict(v0041_openapi_job_submit_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiJobSubmitResponseResult.md b/docs/V0041OpenapiJobSubmitResponseResult.md new file mode 100644 index 0000000..bd230fa --- /dev/null +++ b/docs/V0041OpenapiJobSubmitResponseResult.md @@ -0,0 +1,34 @@ +# V0041OpenapiJobSubmitResponseResult + +Job submission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | New job ID | [optional] +**step_id** | **str** | New job step ID | [optional] +**error_code** | **int** | Error code | [optional] +**error** | **str** | Error message | [optional] +**job_submit_user_msg** | **str** | Message to user from job_submit plugin | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_job_submit_response_result import V0041OpenapiJobSubmitResponseResult + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiJobSubmitResponseResult from a JSON string +v0041_openapi_job_submit_response_result_instance = V0041OpenapiJobSubmitResponseResult.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiJobSubmitResponseResult.to_json()) + +# convert the object into a dict +v0041_openapi_job_submit_response_result_dict = v0041_openapi_job_submit_response_result_instance.to_dict() +# create an instance of V0041OpenapiJobSubmitResponseResult from a dict +v0041_openapi_job_submit_response_result_from_dict = V0041OpenapiJobSubmitResponseResult.from_dict(v0041_openapi_job_submit_response_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiKillJobsResp.md b/docs/V0041OpenapiKillJobsResp.md new file mode 100644 index 0000000..543b93b --- /dev/null +++ b/docs/V0041OpenapiKillJobsResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiKillJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**List[V0041OpenapiKillJobsRespStatusInner]**](V0041OpenapiKillJobsRespStatusInner.md) | resultant status of signal request | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_kill_jobs_resp import V0041OpenapiKillJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiKillJobsResp from a JSON string +v0041_openapi_kill_jobs_resp_instance = V0041OpenapiKillJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiKillJobsResp.to_json()) + +# convert the object into a dict +v0041_openapi_kill_jobs_resp_dict = v0041_openapi_kill_jobs_resp_instance.to_dict() +# create an instance of V0041OpenapiKillJobsResp from a dict +v0041_openapi_kill_jobs_resp_from_dict = V0041OpenapiKillJobsResp.from_dict(v0041_openapi_kill_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiKillJobsRespStatusInner.md b/docs/V0041OpenapiKillJobsRespStatusInner.md new file mode 100644 index 0000000..3f462fa --- /dev/null +++ b/docs/V0041OpenapiKillJobsRespStatusInner.md @@ -0,0 +1,33 @@ +# V0041OpenapiKillJobsRespStatusInner + +List of jobs signal responses + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**V0041OpenapiKillJobsRespStatusInnerError**](V0041OpenapiKillJobsRespStatusInnerError.md) | | [optional] +**step_id** | **str** | Job or Step ID that signaling failed | +**job_id** | [**V0041OpenapiKillJobsRespStatusInnerJobId**](V0041OpenapiKillJobsRespStatusInnerJobId.md) | | +**federation** | [**V0041OpenapiKillJobsRespStatusInnerFederation**](V0041OpenapiKillJobsRespStatusInnerFederation.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner import V0041OpenapiKillJobsRespStatusInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiKillJobsRespStatusInner from a JSON string +v0041_openapi_kill_jobs_resp_status_inner_instance = V0041OpenapiKillJobsRespStatusInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiKillJobsRespStatusInner.to_json()) + +# convert the object into a dict +v0041_openapi_kill_jobs_resp_status_inner_dict = v0041_openapi_kill_jobs_resp_status_inner_instance.to_dict() +# create an instance of V0041OpenapiKillJobsRespStatusInner from a dict +v0041_openapi_kill_jobs_resp_status_inner_from_dict = V0041OpenapiKillJobsRespStatusInner.from_dict(v0041_openapi_kill_jobs_resp_status_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiKillJobsRespStatusInnerError.md b/docs/V0041OpenapiKillJobsRespStatusInnerError.md new file mode 100644 index 0000000..76cfab9 --- /dev/null +++ b/docs/V0041OpenapiKillJobsRespStatusInnerError.md @@ -0,0 +1,31 @@ +# V0041OpenapiKillJobsRespStatusInnerError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**string** | **str** | String error encountered signaling job | [optional] +**code** | **int** | Numeric error encountered signaling job | [optional] +**message** | **str** | Error message why signaling job failed | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiKillJobsRespStatusInnerError from a JSON string +v0041_openapi_kill_jobs_resp_status_inner_error_instance = V0041OpenapiKillJobsRespStatusInnerError.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiKillJobsRespStatusInnerError.to_json()) + +# convert the object into a dict +v0041_openapi_kill_jobs_resp_status_inner_error_dict = v0041_openapi_kill_jobs_resp_status_inner_error_instance.to_dict() +# create an instance of V0041OpenapiKillJobsRespStatusInnerError from a dict +v0041_openapi_kill_jobs_resp_status_inner_error_from_dict = V0041OpenapiKillJobsRespStatusInnerError.from_dict(v0041_openapi_kill_jobs_resp_status_inner_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiKillJobsRespStatusInnerFederation.md b/docs/V0041OpenapiKillJobsRespStatusInnerFederation.md new file mode 100644 index 0000000..1199f24 --- /dev/null +++ b/docs/V0041OpenapiKillJobsRespStatusInnerFederation.md @@ -0,0 +1,29 @@ +# V0041OpenapiKillJobsRespStatusInnerFederation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sibling** | **str** | Name of federation sibling (may be empty for non-federation) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiKillJobsRespStatusInnerFederation from a JSON string +v0041_openapi_kill_jobs_resp_status_inner_federation_instance = V0041OpenapiKillJobsRespStatusInnerFederation.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiKillJobsRespStatusInnerFederation.to_json()) + +# convert the object into a dict +v0041_openapi_kill_jobs_resp_status_inner_federation_dict = v0041_openapi_kill_jobs_resp_status_inner_federation_instance.to_dict() +# create an instance of V0041OpenapiKillJobsRespStatusInnerFederation from a dict +v0041_openapi_kill_jobs_resp_status_inner_federation_from_dict = V0041OpenapiKillJobsRespStatusInnerFederation.from_dict(v0041_openapi_kill_jobs_resp_status_inner_federation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiKillJobsRespStatusInnerJobId.md b/docs/V0041OpenapiKillJobsRespStatusInnerJobId.md new file mode 100644 index 0000000..0689654 --- /dev/null +++ b/docs/V0041OpenapiKillJobsRespStatusInnerJobId.md @@ -0,0 +1,32 @@ +# V0041OpenapiKillJobsRespStatusInnerJobId + +Job ID that signaling failed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_job_id import V0041OpenapiKillJobsRespStatusInnerJobId + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiKillJobsRespStatusInnerJobId from a JSON string +v0041_openapi_kill_jobs_resp_status_inner_job_id_instance = V0041OpenapiKillJobsRespStatusInnerJobId.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiKillJobsRespStatusInnerJobId.to_json()) + +# convert the object into a dict +v0041_openapi_kill_jobs_resp_status_inner_job_id_dict = v0041_openapi_kill_jobs_resp_status_inner_job_id_instance.to_dict() +# create an instance of V0041OpenapiKillJobsRespStatusInnerJobId from a dict +v0041_openapi_kill_jobs_resp_status_inner_job_id_from_dict = V0041OpenapiKillJobsRespStatusInnerJobId.from_dict(v0041_openapi_kill_jobs_resp_status_inner_job_id_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiLicensesResp.md b/docs/V0041OpenapiLicensesResp.md new file mode 100644 index 0000000..ab9094a --- /dev/null +++ b/docs/V0041OpenapiLicensesResp.md @@ -0,0 +1,33 @@ +# V0041OpenapiLicensesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**licenses** | [**List[V0041OpenapiLicensesRespLicensesInner]**](V0041OpenapiLicensesRespLicensesInner.md) | List of licenses | +**last_update** | [**V0041OpenapiLicensesRespLastUpdate**](V0041OpenapiLicensesRespLastUpdate.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_licenses_resp import V0041OpenapiLicensesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiLicensesResp from a JSON string +v0041_openapi_licenses_resp_instance = V0041OpenapiLicensesResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiLicensesResp.to_json()) + +# convert the object into a dict +v0041_openapi_licenses_resp_dict = v0041_openapi_licenses_resp_instance.to_dict() +# create an instance of V0041OpenapiLicensesResp from a dict +v0041_openapi_licenses_resp_from_dict = V0041OpenapiLicensesResp.from_dict(v0041_openapi_licenses_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiLicensesRespLastUpdate.md b/docs/V0041OpenapiLicensesRespLastUpdate.md new file mode 100644 index 0000000..677f5d0 --- /dev/null +++ b/docs/V0041OpenapiLicensesRespLastUpdate.md @@ -0,0 +1,32 @@ +# V0041OpenapiLicensesRespLastUpdate + +Time of last licenses change (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_licenses_resp_last_update import V0041OpenapiLicensesRespLastUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiLicensesRespLastUpdate from a JSON string +v0041_openapi_licenses_resp_last_update_instance = V0041OpenapiLicensesRespLastUpdate.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiLicensesRespLastUpdate.to_json()) + +# convert the object into a dict +v0041_openapi_licenses_resp_last_update_dict = v0041_openapi_licenses_resp_last_update_instance.to_dict() +# create an instance of V0041OpenapiLicensesRespLastUpdate from a dict +v0041_openapi_licenses_resp_last_update_from_dict = V0041OpenapiLicensesRespLastUpdate.from_dict(v0041_openapi_licenses_resp_last_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiLicensesRespLicensesInner.md b/docs/V0041OpenapiLicensesRespLicensesInner.md new file mode 100644 index 0000000..1578042 --- /dev/null +++ b/docs/V0041OpenapiLicensesRespLicensesInner.md @@ -0,0 +1,37 @@ +# V0041OpenapiLicensesRespLicensesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**license_name** | **str** | Name of the license | [optional] +**total** | **int** | Total number of licenses present | [optional] +**used** | **int** | Number of licenses in use | [optional] +**free** | **int** | Number of licenses currently available | [optional] +**remote** | **bool** | Indicates whether licenses are served by the database | [optional] +**reserved** | **int** | Number of licenses reserved | [optional] +**last_consumed** | **int** | Last known number of licenses that were consumed in the license manager (Remote Only) | [optional] +**last_deficit** | **int** | Number of \"missing licenses\" from the cluster's perspective | [optional] +**last_update** | **int** | When the license information was last updated (UNIX Timestamp) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_licenses_resp_licenses_inner import V0041OpenapiLicensesRespLicensesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiLicensesRespLicensesInner from a JSON string +v0041_openapi_licenses_resp_licenses_inner_instance = V0041OpenapiLicensesRespLicensesInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiLicensesRespLicensesInner.to_json()) + +# convert the object into a dict +v0041_openapi_licenses_resp_licenses_inner_dict = v0041_openapi_licenses_resp_licenses_inner_instance.to_dict() +# create an instance of V0041OpenapiLicensesRespLicensesInner from a dict +v0041_openapi_licenses_resp_licenses_inner_from_dict = V0041OpenapiLicensesRespLicensesInner.from_dict(v0041_openapi_licenses_resp_licenses_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesResp.md b/docs/V0041OpenapiNodesResp.md new file mode 100644 index 0000000..6fcda11 --- /dev/null +++ b/docs/V0041OpenapiNodesResp.md @@ -0,0 +1,33 @@ +# V0041OpenapiNodesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**List[V0041OpenapiNodesRespNodesInner]**](V0041OpenapiNodesRespNodesInner.md) | List of nodes | +**last_update** | [**V0041OpenapiNodesRespLastUpdate**](V0041OpenapiNodesRespLastUpdate.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp import V0041OpenapiNodesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesResp from a JSON string +v0041_openapi_nodes_resp_instance = V0041OpenapiNodesResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesResp.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_dict = v0041_openapi_nodes_resp_instance.to_dict() +# create an instance of V0041OpenapiNodesResp from a dict +v0041_openapi_nodes_resp_from_dict = V0041OpenapiNodesResp.from_dict(v0041_openapi_nodes_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespLastUpdate.md b/docs/V0041OpenapiNodesRespLastUpdate.md new file mode 100644 index 0000000..a34b4e8 --- /dev/null +++ b/docs/V0041OpenapiNodesRespLastUpdate.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespLastUpdate + +Time of last node change (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_last_update import V0041OpenapiNodesRespLastUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespLastUpdate from a JSON string +v0041_openapi_nodes_resp_last_update_instance = V0041OpenapiNodesRespLastUpdate.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespLastUpdate.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_last_update_dict = v0041_openapi_nodes_resp_last_update_instance.to_dict() +# create an instance of V0041OpenapiNodesRespLastUpdate from a dict +v0041_openapi_nodes_resp_last_update_from_dict = V0041OpenapiNodesRespLastUpdate.from_dict(v0041_openapi_nodes_resp_last_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInner.md b/docs/V0041OpenapiNodesRespNodesInner.md new file mode 100644 index 0000000..6104e4b --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInner.md @@ -0,0 +1,85 @@ +# V0041OpenapiNodesRespNodesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architecture** | **str** | Computer architecture | [optional] +**burstbuffer_network_address** | **str** | Alternate network path to be used for sbcast network traffic | [optional] +**boards** | **int** | Number of Baseboards in nodes with a baseboard controller | [optional] +**boot_time** | [**V0041OpenapiNodesRespNodesInnerBootTime**](V0041OpenapiNodesRespNodesInnerBootTime.md) | | [optional] +**cluster_name** | **str** | Cluster name (only set in federated environments) | [optional] +**cores** | **int** | Number of cores in a single physical processor socket | [optional] +**specialized_cores** | **int** | Number of cores reserved for system use | [optional] +**cpu_binding** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**cpu_load** | **int** | CPU load as reported by the OS | [optional] +**free_mem** | [**V0041OpenapiNodesRespNodesInnerFreeMem**](V0041OpenapiNodesRespNodesInnerFreeMem.md) | | [optional] +**cpus** | **int** | Total CPUs, including cores and threads | [optional] +**effective_cpus** | **int** | Number of effective CPUs (excluding specialized CPUs) | [optional] +**specialized_cpus** | **str** | Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd | [optional] +**energy** | [**V0041OpenapiNodesRespNodesInnerEnergy**](V0041OpenapiNodesRespNodesInnerEnergy.md) | | [optional] +**external_sensors** | **object** | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**power** | **object** | | [optional] +**features** | **List[str]** | Available features | [optional] +**active_features** | **List[str]** | Currently active features | [optional] +**gpu_spec** | **str** | CPU cores reserved for jobs that also use a GPU | [optional] +**gres** | **str** | Generic resources | [optional] +**gres_drained** | **str** | Drained generic resources | [optional] +**gres_used** | **str** | Generic resources currently in use | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**last_busy** | [**V0041OpenapiNodesRespNodesInnerLastBusy**](V0041OpenapiNodesRespNodesInnerLastBusy.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label | [optional] +**specialized_memory** | **int** | Combined memory limit, in MB, for Slurm compute node daemons | [optional] +**name** | **str** | NodeName | [optional] +**next_state_after_reboot** | **List[str]** | The state the node will be assigned after rebooting | [optional] +**address** | **str** | NodeAddr, used to establish a communication path | [optional] +**hostname** | **str** | NodeHostname | [optional] +**state** | **List[str]** | Node state(s) applicable to this node | [optional] +**operating_system** | **str** | Operating system reported by the node | [optional] +**owner** | **str** | User allowed to run jobs on this node (unset if no restriction) | [optional] +**partitions** | **List[str]** | Partitions containing this node | [optional] +**port** | **int** | TCP port number of the slurmd | [optional] +**real_memory** | **int** | Total memory in MB on the node | [optional] +**res_cores_per_gpu** | **int** | Number of CPU cores per GPU restricted to GPU jobs | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**reason** | **str** | Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state | [optional] +**reason_changed_at** | [**V0041OpenapiNodesRespNodesInnerReasonChangedAt**](V0041OpenapiNodesRespNodesInnerReasonChangedAt.md) | | [optional] +**reason_set_by_user** | **str** | User who set the reason | [optional] +**resume_after** | [**V0041OpenapiNodesRespNodesInnerResumeAfter**](V0041OpenapiNodesRespNodesInnerResumeAfter.md) | | [optional] +**reservation** | **str** | Name of reservation containing this node | [optional] +**alloc_memory** | **int** | Total memory in MB currently allocated for jobs | [optional] +**alloc_cpus** | **int** | Total number of CPUs currently allocated for jobs | [optional] +**alloc_idle_cpus** | **int** | Total number of idle CPUs | [optional] +**tres_used** | **str** | Trackable resources currently allocated for jobs | [optional] +**tres_weighted** | **float** | Ignored. Was weighted number of billable trackable resources allocated | [optional] +**slurmd_start_time** | [**V0041OpenapiNodesRespNodesInnerSlurmdStartTime**](V0041OpenapiNodesRespNodesInnerSlurmdStartTime.md) | | [optional] +**sockets** | **int** | Number of physical processor sockets/chips on the node | [optional] +**threads** | **int** | Number of logical threads in a single physical core | [optional] +**temporary_disk** | **int** | Total size in MB of temporary disk storage in TmpFS | [optional] +**weight** | **int** | Weight of the node for scheduling purposes | [optional] +**tres** | **str** | Configured trackable resources | [optional] +**version** | **str** | Slurmd version | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner import V0041OpenapiNodesRespNodesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInner from a JSON string +v0041_openapi_nodes_resp_nodes_inner_instance = V0041OpenapiNodesRespNodesInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInner.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_dict = v0041_openapi_nodes_resp_nodes_inner_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInner from a dict +v0041_openapi_nodes_resp_nodes_inner_from_dict = V0041OpenapiNodesRespNodesInner.from_dict(v0041_openapi_nodes_resp_nodes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerBootTime.md b/docs/V0041OpenapiNodesRespNodesInnerBootTime.md new file mode 100644 index 0000000..f502be2 --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerBootTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespNodesInnerBootTime + +Time when the node booted (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_boot_time import V0041OpenapiNodesRespNodesInnerBootTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerBootTime from a JSON string +v0041_openapi_nodes_resp_nodes_inner_boot_time_instance = V0041OpenapiNodesRespNodesInnerBootTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerBootTime.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_boot_time_dict = v0041_openapi_nodes_resp_nodes_inner_boot_time_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerBootTime from a dict +v0041_openapi_nodes_resp_nodes_inner_boot_time_from_dict = V0041OpenapiNodesRespNodesInnerBootTime.from_dict(v0041_openapi_nodes_resp_nodes_inner_boot_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerEnergy.md b/docs/V0041OpenapiNodesRespNodesInnerEnergy.md new file mode 100644 index 0000000..2451b63 --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerEnergy.md @@ -0,0 +1,35 @@ +# V0041OpenapiNodesRespNodesInnerEnergy + +Energy usage data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average_watts** | **int** | Average power consumption, in watts | [optional] +**base_consumed_energy** | **int** | The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules | [optional] +**consumed_energy** | **int** | The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules | [optional] +**current_watts** | [**V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts**](V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.md) | | [optional] +**previous_consumed_energy** | **int** | Previous value of consumed_energy | [optional] +**last_collected** | **int** | Time when energy data was last retrieved (UNIX timestamp) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy import V0041OpenapiNodesRespNodesInnerEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerEnergy from a JSON string +v0041_openapi_nodes_resp_nodes_inner_energy_instance = V0041OpenapiNodesRespNodesInnerEnergy.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerEnergy.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_energy_dict = v0041_openapi_nodes_resp_nodes_inner_energy_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerEnergy from a dict +v0041_openapi_nodes_resp_nodes_inner_energy_from_dict = V0041OpenapiNodesRespNodesInnerEnergy.from_dict(v0041_openapi_nodes_resp_nodes_inner_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.md b/docs/V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.md new file mode 100644 index 0000000..2c1d19e --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts + +The instantaneous power consumption at the time of the last node energy accounting sample, in watts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy_current_watts import V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts from a JSON string +v0041_openapi_nodes_resp_nodes_inner_energy_current_watts_instance = V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_energy_current_watts_dict = v0041_openapi_nodes_resp_nodes_inner_energy_current_watts_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts from a dict +v0041_openapi_nodes_resp_nodes_inner_energy_current_watts_from_dict = V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.from_dict(v0041_openapi_nodes_resp_nodes_inner_energy_current_watts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerFreeMem.md b/docs/V0041OpenapiNodesRespNodesInnerFreeMem.md new file mode 100644 index 0000000..eb0f5c4 --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerFreeMem.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespNodesInnerFreeMem + +Total memory in MB currently free as reported by the OS + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_free_mem import V0041OpenapiNodesRespNodesInnerFreeMem + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerFreeMem from a JSON string +v0041_openapi_nodes_resp_nodes_inner_free_mem_instance = V0041OpenapiNodesRespNodesInnerFreeMem.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerFreeMem.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_free_mem_dict = v0041_openapi_nodes_resp_nodes_inner_free_mem_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerFreeMem from a dict +v0041_openapi_nodes_resp_nodes_inner_free_mem_from_dict = V0041OpenapiNodesRespNodesInnerFreeMem.from_dict(v0041_openapi_nodes_resp_nodes_inner_free_mem_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerLastBusy.md b/docs/V0041OpenapiNodesRespNodesInnerLastBusy.md new file mode 100644 index 0000000..4151003 --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerLastBusy.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespNodesInnerLastBusy + +Time when the node was last busy (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_last_busy import V0041OpenapiNodesRespNodesInnerLastBusy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerLastBusy from a JSON string +v0041_openapi_nodes_resp_nodes_inner_last_busy_instance = V0041OpenapiNodesRespNodesInnerLastBusy.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerLastBusy.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_last_busy_dict = v0041_openapi_nodes_resp_nodes_inner_last_busy_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerLastBusy from a dict +v0041_openapi_nodes_resp_nodes_inner_last_busy_from_dict = V0041OpenapiNodesRespNodesInnerLastBusy.from_dict(v0041_openapi_nodes_resp_nodes_inner_last_busy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerReasonChangedAt.md b/docs/V0041OpenapiNodesRespNodesInnerReasonChangedAt.md new file mode 100644 index 0000000..1fc3fc7 --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerReasonChangedAt.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespNodesInnerReasonChangedAt + +When the reason changed (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_reason_changed_at import V0041OpenapiNodesRespNodesInnerReasonChangedAt + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerReasonChangedAt from a JSON string +v0041_openapi_nodes_resp_nodes_inner_reason_changed_at_instance = V0041OpenapiNodesRespNodesInnerReasonChangedAt.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerReasonChangedAt.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_reason_changed_at_dict = v0041_openapi_nodes_resp_nodes_inner_reason_changed_at_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerReasonChangedAt from a dict +v0041_openapi_nodes_resp_nodes_inner_reason_changed_at_from_dict = V0041OpenapiNodesRespNodesInnerReasonChangedAt.from_dict(v0041_openapi_nodes_resp_nodes_inner_reason_changed_at_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerResumeAfter.md b/docs/V0041OpenapiNodesRespNodesInnerResumeAfter.md new file mode 100644 index 0000000..4af9ecd --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerResumeAfter.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespNodesInnerResumeAfter + +Number of seconds after the node's state is updated to \"DOWN\" or \"DRAIN\" before scheduling a node state resume + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_resume_after import V0041OpenapiNodesRespNodesInnerResumeAfter + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerResumeAfter from a JSON string +v0041_openapi_nodes_resp_nodes_inner_resume_after_instance = V0041OpenapiNodesRespNodesInnerResumeAfter.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerResumeAfter.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_resume_after_dict = v0041_openapi_nodes_resp_nodes_inner_resume_after_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerResumeAfter from a dict +v0041_openapi_nodes_resp_nodes_inner_resume_after_from_dict = V0041OpenapiNodesRespNodesInnerResumeAfter.from_dict(v0041_openapi_nodes_resp_nodes_inner_resume_after_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiNodesRespNodesInnerSlurmdStartTime.md b/docs/V0041OpenapiNodesRespNodesInnerSlurmdStartTime.md new file mode 100644 index 0000000..31ee410 --- /dev/null +++ b/docs/V0041OpenapiNodesRespNodesInnerSlurmdStartTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiNodesRespNodesInnerSlurmdStartTime + +Time when the slurmd started (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time import V0041OpenapiNodesRespNodesInnerSlurmdStartTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiNodesRespNodesInnerSlurmdStartTime from a JSON string +v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time_instance = V0041OpenapiNodesRespNodesInnerSlurmdStartTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiNodesRespNodesInnerSlurmdStartTime.to_json()) + +# convert the object into a dict +v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time_dict = v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time_instance.to_dict() +# create an instance of V0041OpenapiNodesRespNodesInnerSlurmdStartTime from a dict +v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time_from_dict = V0041OpenapiNodesRespNodesInnerSlurmdStartTime.from_dict(v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionResp.md b/docs/V0041OpenapiPartitionResp.md new file mode 100644 index 0000000..852a5b0 --- /dev/null +++ b/docs/V0041OpenapiPartitionResp.md @@ -0,0 +1,33 @@ +# V0041OpenapiPartitionResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**partitions** | [**List[V0041OpenapiPartitionRespPartitionsInner]**](V0041OpenapiPartitionRespPartitionsInner.md) | List of partitions | +**last_update** | [**V0041OpenapiPartitionRespLastUpdate**](V0041OpenapiPartitionRespLastUpdate.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp import V0041OpenapiPartitionResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionResp from a JSON string +v0041_openapi_partition_resp_instance = V0041OpenapiPartitionResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionResp.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_dict = v0041_openapi_partition_resp_instance.to_dict() +# create an instance of V0041OpenapiPartitionResp from a dict +v0041_openapi_partition_resp_from_dict = V0041OpenapiPartitionResp.from_dict(v0041_openapi_partition_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespLastUpdate.md b/docs/V0041OpenapiPartitionRespLastUpdate.md new file mode 100644 index 0000000..c194773 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespLastUpdate.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespLastUpdate + +Time of last partition change (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_last_update import V0041OpenapiPartitionRespLastUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespLastUpdate from a JSON string +v0041_openapi_partition_resp_last_update_instance = V0041OpenapiPartitionRespLastUpdate.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespLastUpdate.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_last_update_dict = v0041_openapi_partition_resp_last_update_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespLastUpdate from a dict +v0041_openapi_partition_resp_last_update_from_dict = V0041OpenapiPartitionRespLastUpdate.from_dict(v0041_openapi_partition_resp_last_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInner.md b/docs/V0041OpenapiPartitionRespPartitionsInner.md new file mode 100644 index 0000000..bfa2de1 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInner.md @@ -0,0 +1,47 @@ +# V0041OpenapiPartitionRespPartitionsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**V0041OpenapiPartitionRespPartitionsInnerNodes**](V0041OpenapiPartitionRespPartitionsInnerNodes.md) | | [optional] +**accounts** | [**V0041OpenapiPartitionRespPartitionsInnerAccounts**](V0041OpenapiPartitionRespPartitionsInnerAccounts.md) | | [optional] +**groups** | [**V0041OpenapiPartitionRespPartitionsInnerGroups**](V0041OpenapiPartitionRespPartitionsInnerGroups.md) | | [optional] +**qos** | [**V0041OpenapiPartitionRespPartitionsInnerQos**](V0041OpenapiPartitionRespPartitionsInnerQos.md) | | [optional] +**alternate** | **str** | Alternate | [optional] +**tres** | [**V0041OpenapiPartitionRespPartitionsInnerTres**](V0041OpenapiPartitionRespPartitionsInnerTres.md) | | [optional] +**cluster** | **str** | Cluster name | [optional] +**select_type** | **List[str]** | Scheduler consumable resource selection type | [optional] +**cpus** | [**V0041OpenapiPartitionRespPartitionsInnerCpus**](V0041OpenapiPartitionRespPartitionsInnerCpus.md) | | [optional] +**defaults** | [**V0041OpenapiPartitionRespPartitionsInnerDefaults**](V0041OpenapiPartitionRespPartitionsInnerDefaults.md) | | [optional] +**grace_time** | **int** | GraceTime | [optional] +**maximums** | [**V0041OpenapiPartitionRespPartitionsInnerMaximums**](V0041OpenapiPartitionRespPartitionsInnerMaximums.md) | | [optional] +**minimums** | [**V0041OpenapiPartitionRespPartitionsInnerMinimums**](V0041OpenapiPartitionRespPartitionsInnerMinimums.md) | | [optional] +**name** | **str** | PartitionName | [optional] +**node_sets** | **str** | NodeSets | [optional] +**priority** | [**V0041OpenapiPartitionRespPartitionsInnerPriority**](V0041OpenapiPartitionRespPartitionsInnerPriority.md) | | [optional] +**timeouts** | [**V0041OpenapiPartitionRespPartitionsInnerTimeouts**](V0041OpenapiPartitionRespPartitionsInnerTimeouts.md) | | [optional] +**partition** | [**V0041OpenapiPartitionRespPartitionsInnerPartition**](V0041OpenapiPartitionRespPartitionsInnerPartition.md) | | [optional] +**suspend_time** | [**V0041OpenapiPartitionRespPartitionsInnerSuspendTime**](V0041OpenapiPartitionRespPartitionsInnerSuspendTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner import V0041OpenapiPartitionRespPartitionsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInner from a JSON string +v0041_openapi_partition_resp_partitions_inner_instance = V0041OpenapiPartitionRespPartitionsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInner.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_dict = v0041_openapi_partition_resp_partitions_inner_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInner from a dict +v0041_openapi_partition_resp_partitions_inner_from_dict = V0041OpenapiPartitionRespPartitionsInner.from_dict(v0041_openapi_partition_resp_partitions_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerAccounts.md b/docs/V0041OpenapiPartitionRespPartitionsInnerAccounts.md new file mode 100644 index 0000000..18f71c2 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerAccounts.md @@ -0,0 +1,30 @@ +# V0041OpenapiPartitionRespPartitionsInnerAccounts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **str** | AllowAccounts | [optional] +**deny** | **str** | DenyAccounts | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_accounts import V0041OpenapiPartitionRespPartitionsInnerAccounts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerAccounts from a JSON string +v0041_openapi_partition_resp_partitions_inner_accounts_instance = V0041OpenapiPartitionRespPartitionsInnerAccounts.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerAccounts.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_accounts_dict = v0041_openapi_partition_resp_partitions_inner_accounts_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerAccounts from a dict +v0041_openapi_partition_resp_partitions_inner_accounts_from_dict = V0041OpenapiPartitionRespPartitionsInnerAccounts.from_dict(v0041_openapi_partition_resp_partitions_inner_accounts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerCpus.md b/docs/V0041OpenapiPartitionRespPartitionsInnerCpus.md new file mode 100644 index 0000000..b5f1b24 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerCpus.md @@ -0,0 +1,30 @@ +# V0041OpenapiPartitionRespPartitionsInnerCpus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_binding** | **int** | CpuBind | [optional] +**total** | **int** | TotalCPUs | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_cpus import V0041OpenapiPartitionRespPartitionsInnerCpus + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerCpus from a JSON string +v0041_openapi_partition_resp_partitions_inner_cpus_instance = V0041OpenapiPartitionRespPartitionsInnerCpus.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerCpus.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_cpus_dict = v0041_openapi_partition_resp_partitions_inner_cpus_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerCpus from a dict +v0041_openapi_partition_resp_partitions_inner_cpus_from_dict = V0041OpenapiPartitionRespPartitionsInnerCpus.from_dict(v0041_openapi_partition_resp_partitions_inner_cpus_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerDefaults.md b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaults.md new file mode 100644 index 0000000..c962007 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaults.md @@ -0,0 +1,33 @@ +# V0041OpenapiPartitionRespPartitionsInnerDefaults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memory_per_cpu** | **int** | DefMemPerCPU or DefMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu**](V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.md) | | [optional] +**partition_memory_per_node** | [**V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode**](V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.md) | | [optional] +**time** | [**V0041OpenapiPartitionRespPartitionsInnerDefaultsTime**](V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.md) | | [optional] +**job** | **str** | JobDefaults | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults import V0041OpenapiPartitionRespPartitionsInnerDefaults + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaults from a JSON string +v0041_openapi_partition_resp_partitions_inner_defaults_instance = V0041OpenapiPartitionRespPartitionsInnerDefaults.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerDefaults.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_defaults_dict = v0041_openapi_partition_resp_partitions_inner_defaults_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaults from a dict +v0041_openapi_partition_resp_partitions_inner_defaults_from_dict = V0041OpenapiPartitionRespPartitionsInnerDefaults.from_dict(v0041_openapi_partition_resp_partitions_inner_defaults_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.md b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.md new file mode 100644 index 0000000..a86e830 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu + +DefMemPerCPU + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu from a JSON string +v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu_instance = V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu_dict = v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu from a dict +v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu_from_dict = V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.from_dict(v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.md b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.md new file mode 100644 index 0000000..3974e5d --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode + +DefMemPerNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode from a JSON string +v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node_instance = V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node_dict = v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode from a dict +v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node_from_dict = V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.from_dict(v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.md b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.md new file mode 100644 index 0000000..65a340c --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerDefaultsTime + +DefaultTime in minutes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_time import V0041OpenapiPartitionRespPartitionsInnerDefaultsTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsTime from a JSON string +v0041_openapi_partition_resp_partitions_inner_defaults_time_instance = V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_defaults_time_dict = v0041_openapi_partition_resp_partitions_inner_defaults_time_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsTime from a dict +v0041_openapi_partition_resp_partitions_inner_defaults_time_from_dict = V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.from_dict(v0041_openapi_partition_resp_partitions_inner_defaults_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerGroups.md b/docs/V0041OpenapiPartitionRespPartitionsInnerGroups.md new file mode 100644 index 0000000..5df9ec4 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerGroups.md @@ -0,0 +1,29 @@ +# V0041OpenapiPartitionRespPartitionsInnerGroups + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **str** | AllowGroups | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_groups import V0041OpenapiPartitionRespPartitionsInnerGroups + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerGroups from a JSON string +v0041_openapi_partition_resp_partitions_inner_groups_instance = V0041OpenapiPartitionRespPartitionsInnerGroups.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerGroups.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_groups_dict = v0041_openapi_partition_resp_partitions_inner_groups_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerGroups from a dict +v0041_openapi_partition_resp_partitions_inner_groups_from_dict = V0041OpenapiPartitionRespPartitionsInnerGroups.from_dict(v0041_openapi_partition_resp_partitions_inner_groups_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximums.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximums.md new file mode 100644 index 0000000..daac038 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximums.md @@ -0,0 +1,38 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximums + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus_per_node** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode**](V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.md) | | [optional] +**cpus_per_socket** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket**](V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.md) | | [optional] +**memory_per_cpu** | **int** | MaxMemPerCPU or MaxMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu**](V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.md) | | [optional] +**partition_memory_per_node** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode**](V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.md) | | [optional] +**nodes** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes**](V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.md) | | [optional] +**shares** | **int** | OverSubscribe | [optional] +**oversubscribe** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe**](V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md) | | [optional] +**time** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsTime**](V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.md) | | [optional] +**over_time_limit** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit**](V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums import V0041OpenapiPartitionRespPartitionsInnerMaximums + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximums from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_instance = V0041OpenapiPartitionRespPartitionsInnerMaximums.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximums.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_dict = v0041_openapi_partition_resp_partitions_inner_maximums_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximums from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximums.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.md new file mode 100644 index 0000000..cc12186 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode + +MaxCPUsPerNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node_dict = v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.md new file mode 100644 index 0000000..6bbfcf4 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket + +MaxCPUsPerSocket + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket_dict = v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.md new file mode 100644 index 0000000..02cfb74 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes + +MaxNodes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_nodes import V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_nodes_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_nodes_dict = v0041_openapi_partition_resp_partitions_inner_maximums_nodes_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_nodes_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.md new file mode 100644 index 0000000..158ff21 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit + +OverTimeLimit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit import V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit_dict = v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md new file mode 100644 index 0000000..02e3554 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md @@ -0,0 +1,30 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | **int** | Maximum number of jobs allowed to oversubscribe resources | [optional] +**flags** | **List[str]** | Flags applicable to the OverSubscribe setting | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe import V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe_dict = v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.md new file mode 100644 index 0000000..d9ac3b8 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu + +MaxMemPerCPU + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu_dict = v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.md new file mode 100644 index 0000000..8cc05b2 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode + +MaxMemPerNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node_dict = v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.md new file mode 100644 index 0000000..632a306 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerMaximumsTime + +MaxTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_time import V0041OpenapiPartitionRespPartitionsInnerMaximumsTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsTime from a JSON string +v0041_openapi_partition_resp_partitions_inner_maximums_time_instance = V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_maximums_time_dict = v0041_openapi_partition_resp_partitions_inner_maximums_time_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsTime from a dict +v0041_openapi_partition_resp_partitions_inner_maximums_time_from_dict = V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.from_dict(v0041_openapi_partition_resp_partitions_inner_maximums_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerMinimums.md b/docs/V0041OpenapiPartitionRespPartitionsInnerMinimums.md new file mode 100644 index 0000000..f92d772 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerMinimums.md @@ -0,0 +1,29 @@ +# V0041OpenapiPartitionRespPartitionsInnerMinimums + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | **int** | MinNodes | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_minimums import V0041OpenapiPartitionRespPartitionsInnerMinimums + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMinimums from a JSON string +v0041_openapi_partition_resp_partitions_inner_minimums_instance = V0041OpenapiPartitionRespPartitionsInnerMinimums.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerMinimums.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_minimums_dict = v0041_openapi_partition_resp_partitions_inner_minimums_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerMinimums from a dict +v0041_openapi_partition_resp_partitions_inner_minimums_from_dict = V0041OpenapiPartitionRespPartitionsInnerMinimums.from_dict(v0041_openapi_partition_resp_partitions_inner_minimums_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerNodes.md b/docs/V0041OpenapiPartitionRespPartitionsInnerNodes.md new file mode 100644 index 0000000..36b6ff2 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerNodes.md @@ -0,0 +1,31 @@ +# V0041OpenapiPartitionRespPartitionsInnerNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_allocation** | **str** | AllocNodes | [optional] +**configured** | **str** | Nodes | [optional] +**total** | **int** | TotalNodes | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_nodes import V0041OpenapiPartitionRespPartitionsInnerNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerNodes from a JSON string +v0041_openapi_partition_resp_partitions_inner_nodes_instance = V0041OpenapiPartitionRespPartitionsInnerNodes.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerNodes.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_nodes_dict = v0041_openapi_partition_resp_partitions_inner_nodes_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerNodes from a dict +v0041_openapi_partition_resp_partitions_inner_nodes_from_dict = V0041OpenapiPartitionRespPartitionsInnerNodes.from_dict(v0041_openapi_partition_resp_partitions_inner_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerPartition.md b/docs/V0041OpenapiPartitionRespPartitionsInnerPartition.md new file mode 100644 index 0000000..dd383a4 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerPartition.md @@ -0,0 +1,29 @@ +# V0041OpenapiPartitionRespPartitionsInnerPartition + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | **List[str]** | Current state(s) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_partition import V0041OpenapiPartitionRespPartitionsInnerPartition + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerPartition from a JSON string +v0041_openapi_partition_resp_partitions_inner_partition_instance = V0041OpenapiPartitionRespPartitionsInnerPartition.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerPartition.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_partition_dict = v0041_openapi_partition_resp_partitions_inner_partition_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerPartition from a dict +v0041_openapi_partition_resp_partitions_inner_partition_from_dict = V0041OpenapiPartitionRespPartitionsInnerPartition.from_dict(v0041_openapi_partition_resp_partitions_inner_partition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerPriority.md b/docs/V0041OpenapiPartitionRespPartitionsInnerPriority.md new file mode 100644 index 0000000..2bb978b --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerPriority.md @@ -0,0 +1,30 @@ +# V0041OpenapiPartitionRespPartitionsInnerPriority + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_factor** | **int** | PriorityJobFactor | [optional] +**tier** | **int** | PriorityTier | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_priority import V0041OpenapiPartitionRespPartitionsInnerPriority + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerPriority from a JSON string +v0041_openapi_partition_resp_partitions_inner_priority_instance = V0041OpenapiPartitionRespPartitionsInnerPriority.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerPriority.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_priority_dict = v0041_openapi_partition_resp_partitions_inner_priority_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerPriority from a dict +v0041_openapi_partition_resp_partitions_inner_priority_from_dict = V0041OpenapiPartitionRespPartitionsInnerPriority.from_dict(v0041_openapi_partition_resp_partitions_inner_priority_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerQos.md b/docs/V0041OpenapiPartitionRespPartitionsInnerQos.md new file mode 100644 index 0000000..6331ab5 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerQos.md @@ -0,0 +1,31 @@ +# V0041OpenapiPartitionRespPartitionsInnerQos + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **str** | AllowQOS | [optional] +**deny** | **str** | DenyQOS | [optional] +**assigned** | **str** | QOS | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_qos import V0041OpenapiPartitionRespPartitionsInnerQos + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerQos from a JSON string +v0041_openapi_partition_resp_partitions_inner_qos_instance = V0041OpenapiPartitionRespPartitionsInnerQos.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerQos.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_qos_dict = v0041_openapi_partition_resp_partitions_inner_qos_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerQos from a dict +v0041_openapi_partition_resp_partitions_inner_qos_from_dict = V0041OpenapiPartitionRespPartitionsInnerQos.from_dict(v0041_openapi_partition_resp_partitions_inner_qos_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerSuspendTime.md b/docs/V0041OpenapiPartitionRespPartitionsInnerSuspendTime.md new file mode 100644 index 0000000..259a2ff --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerSuspendTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerSuspendTime + +SuspendTime (GLOBAL if both set and infinite are false) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_suspend_time import V0041OpenapiPartitionRespPartitionsInnerSuspendTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerSuspendTime from a JSON string +v0041_openapi_partition_resp_partitions_inner_suspend_time_instance = V0041OpenapiPartitionRespPartitionsInnerSuspendTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerSuspendTime.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_suspend_time_dict = v0041_openapi_partition_resp_partitions_inner_suspend_time_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerSuspendTime from a dict +v0041_openapi_partition_resp_partitions_inner_suspend_time_from_dict = V0041OpenapiPartitionRespPartitionsInnerSuspendTime.from_dict(v0041_openapi_partition_resp_partitions_inner_suspend_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerTimeouts.md b/docs/V0041OpenapiPartitionRespPartitionsInnerTimeouts.md new file mode 100644 index 0000000..e20456a --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerTimeouts.md @@ -0,0 +1,30 @@ +# V0041OpenapiPartitionRespPartitionsInnerTimeouts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | [**V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume**](V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.md) | | [optional] +**suspend** | [**V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend**](V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts import V0041OpenapiPartitionRespPartitionsInnerTimeouts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeouts from a JSON string +v0041_openapi_partition_resp_partitions_inner_timeouts_instance = V0041OpenapiPartitionRespPartitionsInnerTimeouts.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerTimeouts.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_timeouts_dict = v0041_openapi_partition_resp_partitions_inner_timeouts_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeouts from a dict +v0041_openapi_partition_resp_partitions_inner_timeouts_from_dict = V0041OpenapiPartitionRespPartitionsInnerTimeouts.from_dict(v0041_openapi_partition_resp_partitions_inner_timeouts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.md b/docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.md new file mode 100644 index 0000000..39482e4 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume + +ResumeTimeout (GLOBAL if both set and infinite are false) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_resume import V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume from a JSON string +v0041_openapi_partition_resp_partitions_inner_timeouts_resume_instance = V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_timeouts_resume_dict = v0041_openapi_partition_resp_partitions_inner_timeouts_resume_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume from a dict +v0041_openapi_partition_resp_partitions_inner_timeouts_resume_from_dict = V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.from_dict(v0041_openapi_partition_resp_partitions_inner_timeouts_resume_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.md b/docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.md new file mode 100644 index 0000000..eae27a3 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.md @@ -0,0 +1,32 @@ +# V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend + +SuspendTimeout (GLOBAL if both set and infinite are false) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_suspend import V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend from a JSON string +v0041_openapi_partition_resp_partitions_inner_timeouts_suspend_instance = V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_timeouts_suspend_dict = v0041_openapi_partition_resp_partitions_inner_timeouts_suspend_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend from a dict +v0041_openapi_partition_resp_partitions_inner_timeouts_suspend_from_dict = V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.from_dict(v0041_openapi_partition_resp_partitions_inner_timeouts_suspend_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPartitionRespPartitionsInnerTres.md b/docs/V0041OpenapiPartitionRespPartitionsInnerTres.md new file mode 100644 index 0000000..bc64aa8 --- /dev/null +++ b/docs/V0041OpenapiPartitionRespPartitionsInnerTres.md @@ -0,0 +1,30 @@ +# V0041OpenapiPartitionRespPartitionsInnerTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billing_weights** | **str** | TRESBillingWeights | [optional] +**configured** | **str** | TRES | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_tres import V0041OpenapiPartitionRespPartitionsInnerTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTres from a JSON string +v0041_openapi_partition_resp_partitions_inner_tres_instance = V0041OpenapiPartitionRespPartitionsInnerTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPartitionRespPartitionsInnerTres.to_json()) + +# convert the object into a dict +v0041_openapi_partition_resp_partitions_inner_tres_dict = v0041_openapi_partition_resp_partitions_inner_tres_instance.to_dict() +# create an instance of V0041OpenapiPartitionRespPartitionsInnerTres from a dict +v0041_openapi_partition_resp_partitions_inner_tres_from_dict = V0041OpenapiPartitionRespPartitionsInnerTres.from_dict(v0041_openapi_partition_resp_partitions_inner_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPingArrayResp.md b/docs/V0041OpenapiPingArrayResp.md new file mode 100644 index 0000000..c2e0e62 --- /dev/null +++ b/docs/V0041OpenapiPingArrayResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiPingArrayResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pings** | [**List[V0041OpenapiPingArrayRespPingsInner]**](V0041OpenapiPingArrayRespPingsInner.md) | pings | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_ping_array_resp import V0041OpenapiPingArrayResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPingArrayResp from a JSON string +v0041_openapi_ping_array_resp_instance = V0041OpenapiPingArrayResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPingArrayResp.to_json()) + +# convert the object into a dict +v0041_openapi_ping_array_resp_dict = v0041_openapi_ping_array_resp_instance.to_dict() +# create an instance of V0041OpenapiPingArrayResp from a dict +v0041_openapi_ping_array_resp_from_dict = V0041OpenapiPingArrayResp.from_dict(v0041_openapi_ping_array_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiPingArrayRespPingsInner.md b/docs/V0041OpenapiPingArrayRespPingsInner.md new file mode 100644 index 0000000..ff4491f --- /dev/null +++ b/docs/V0041OpenapiPingArrayRespPingsInner.md @@ -0,0 +1,32 @@ +# V0041OpenapiPingArrayRespPingsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Target for ping | [optional] +**pinged** | **str** | Ping result | [optional] +**latency** | **int** | Number of microseconds it took to successfully ping or timeout | [optional] +**mode** | **str** | The operating mode of the responding slurmctld | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_ping_array_resp_pings_inner import V0041OpenapiPingArrayRespPingsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiPingArrayRespPingsInner from a JSON string +v0041_openapi_ping_array_resp_pings_inner_instance = V0041OpenapiPingArrayRespPingsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiPingArrayRespPingsInner.to_json()) + +# convert the object into a dict +v0041_openapi_ping_array_resp_pings_inner_dict = v0041_openapi_ping_array_resp_pings_inner_instance.to_dict() +# create an instance of V0041OpenapiPingArrayRespPingsInner from a dict +v0041_openapi_ping_array_resp_pings_inner_from_dict = V0041OpenapiPingArrayRespPingsInner.from_dict(v0041_openapi_ping_array_resp_pings_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationResp.md b/docs/V0041OpenapiReservationResp.md new file mode 100644 index 0000000..98768e9 --- /dev/null +++ b/docs/V0041OpenapiReservationResp.md @@ -0,0 +1,33 @@ +# V0041OpenapiReservationResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0041OpenapiReservationRespReservationsInner]**](V0041OpenapiReservationRespReservationsInner.md) | List of reservations | +**last_update** | [**V0041OpenapiReservationRespLastUpdate**](V0041OpenapiReservationRespLastUpdate.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp import V0041OpenapiReservationResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationResp from a JSON string +v0041_openapi_reservation_resp_instance = V0041OpenapiReservationResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationResp.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_dict = v0041_openapi_reservation_resp_instance.to_dict() +# create an instance of V0041OpenapiReservationResp from a dict +v0041_openapi_reservation_resp_from_dict = V0041OpenapiReservationResp.from_dict(v0041_openapi_reservation_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespLastUpdate.md b/docs/V0041OpenapiReservationRespLastUpdate.md new file mode 100644 index 0000000..9b32da9 --- /dev/null +++ b/docs/V0041OpenapiReservationRespLastUpdate.md @@ -0,0 +1,32 @@ +# V0041OpenapiReservationRespLastUpdate + +Time of last reservation change (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_last_update import V0041OpenapiReservationRespLastUpdate + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespLastUpdate from a JSON string +v0041_openapi_reservation_resp_last_update_instance = V0041OpenapiReservationRespLastUpdate.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespLastUpdate.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_last_update_dict = v0041_openapi_reservation_resp_last_update_instance.to_dict() +# create an instance of V0041OpenapiReservationRespLastUpdate from a dict +v0041_openapi_reservation_resp_last_update_from_dict = V0041OpenapiReservationRespLastUpdate.from_dict(v0041_openapi_reservation_resp_last_update_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespReservationsInner.md b/docs/V0041OpenapiReservationRespReservationsInner.md new file mode 100644 index 0000000..966084e --- /dev/null +++ b/docs/V0041OpenapiReservationRespReservationsInner.md @@ -0,0 +1,47 @@ +# V0041OpenapiReservationRespReservationsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **str** | Comma separated list of permitted accounts | [optional] +**burst_buffer** | **str** | BurstBuffer | [optional] +**core_count** | **int** | CoreCnt | [optional] +**core_specializations** | [**List[V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner]**](V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.md) | Reserved cores specification | [optional] +**end_time** | [**V0041OpenapiReservationRespReservationsInnerEndTime**](V0041OpenapiReservationRespReservationsInnerEndTime.md) | | [optional] +**features** | **str** | Features | [optional] +**flags** | **List[str]** | Flags associated with the reservation | [optional] +**groups** | **str** | Groups | [optional] +**licenses** | **str** | Licenses | [optional] +**max_start_delay** | **int** | MaxStartDelay in seconds | [optional] +**name** | **str** | ReservationName | [optional] +**node_count** | **int** | NodeCnt | [optional] +**node_list** | **str** | Nodes | [optional] +**partition** | **str** | PartitionName | [optional] +**purge_completed** | [**V0041OpenapiReservationRespReservationsInnerPurgeCompleted**](V0041OpenapiReservationRespReservationsInnerPurgeCompleted.md) | | [optional] +**start_time** | [**V0041OpenapiReservationRespReservationsInnerStartTime**](V0041OpenapiReservationRespReservationsInnerStartTime.md) | | [optional] +**watts** | [**V0041OpenapiReservationRespReservationsInnerWatts**](V0041OpenapiReservationRespReservationsInnerWatts.md) | | [optional] +**tres** | **str** | Comma separated list of required TRES | [optional] +**users** | **str** | Comma separated list of permitted users | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner import V0041OpenapiReservationRespReservationsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespReservationsInner from a JSON string +v0041_openapi_reservation_resp_reservations_inner_instance = V0041OpenapiReservationRespReservationsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespReservationsInner.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_reservations_inner_dict = v0041_openapi_reservation_resp_reservations_inner_instance.to_dict() +# create an instance of V0041OpenapiReservationRespReservationsInner from a dict +v0041_openapi_reservation_resp_reservations_inner_from_dict = V0041OpenapiReservationRespReservationsInner.from_dict(v0041_openapi_reservation_resp_reservations_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.md b/docs/V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.md new file mode 100644 index 0000000..1d4984e --- /dev/null +++ b/docs/V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.md @@ -0,0 +1,30 @@ +# V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node** | **str** | Name of reserved node | [optional] +**core** | **str** | IDs of reserved cores | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner import V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner from a JSON string +v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner_instance = V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner_dict = v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner_instance.to_dict() +# create an instance of V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner from a dict +v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner_from_dict = V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.from_dict(v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespReservationsInnerEndTime.md b/docs/V0041OpenapiReservationRespReservationsInnerEndTime.md new file mode 100644 index 0000000..f8acbaa --- /dev/null +++ b/docs/V0041OpenapiReservationRespReservationsInnerEndTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiReservationRespReservationsInnerEndTime + +EndTime (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_end_time import V0041OpenapiReservationRespReservationsInnerEndTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespReservationsInnerEndTime from a JSON string +v0041_openapi_reservation_resp_reservations_inner_end_time_instance = V0041OpenapiReservationRespReservationsInnerEndTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespReservationsInnerEndTime.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_reservations_inner_end_time_dict = v0041_openapi_reservation_resp_reservations_inner_end_time_instance.to_dict() +# create an instance of V0041OpenapiReservationRespReservationsInnerEndTime from a dict +v0041_openapi_reservation_resp_reservations_inner_end_time_from_dict = V0041OpenapiReservationRespReservationsInnerEndTime.from_dict(v0041_openapi_reservation_resp_reservations_inner_end_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespReservationsInnerPurgeCompleted.md b/docs/V0041OpenapiReservationRespReservationsInnerPurgeCompleted.md new file mode 100644 index 0000000..1f59a04 --- /dev/null +++ b/docs/V0041OpenapiReservationRespReservationsInnerPurgeCompleted.md @@ -0,0 +1,29 @@ +# V0041OpenapiReservationRespReservationsInnerPurgeCompleted + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime**](V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed import V0041OpenapiReservationRespReservationsInnerPurgeCompleted + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompleted from a JSON string +v0041_openapi_reservation_resp_reservations_inner_purge_completed_instance = V0041OpenapiReservationRespReservationsInnerPurgeCompleted.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespReservationsInnerPurgeCompleted.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_reservations_inner_purge_completed_dict = v0041_openapi_reservation_resp_reservations_inner_purge_completed_instance.to_dict() +# create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompleted from a dict +v0041_openapi_reservation_resp_reservations_inner_purge_completed_from_dict = V0041OpenapiReservationRespReservationsInnerPurgeCompleted.from_dict(v0041_openapi_reservation_resp_reservations_inner_purge_completed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.md b/docs/V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.md new file mode 100644 index 0000000..5d1fa72 --- /dev/null +++ b/docs/V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime + +If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed_time import V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime from a JSON string +v0041_openapi_reservation_resp_reservations_inner_purge_completed_time_instance = V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_reservations_inner_purge_completed_time_dict = v0041_openapi_reservation_resp_reservations_inner_purge_completed_time_instance.to_dict() +# create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime from a dict +v0041_openapi_reservation_resp_reservations_inner_purge_completed_time_from_dict = V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.from_dict(v0041_openapi_reservation_resp_reservations_inner_purge_completed_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespReservationsInnerStartTime.md b/docs/V0041OpenapiReservationRespReservationsInnerStartTime.md new file mode 100644 index 0000000..e1d52ad --- /dev/null +++ b/docs/V0041OpenapiReservationRespReservationsInnerStartTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiReservationRespReservationsInnerStartTime + +StartTime (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_start_time import V0041OpenapiReservationRespReservationsInnerStartTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespReservationsInnerStartTime from a JSON string +v0041_openapi_reservation_resp_reservations_inner_start_time_instance = V0041OpenapiReservationRespReservationsInnerStartTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespReservationsInnerStartTime.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_reservations_inner_start_time_dict = v0041_openapi_reservation_resp_reservations_inner_start_time_instance.to_dict() +# create an instance of V0041OpenapiReservationRespReservationsInnerStartTime from a dict +v0041_openapi_reservation_resp_reservations_inner_start_time_from_dict = V0041OpenapiReservationRespReservationsInnerStartTime.from_dict(v0041_openapi_reservation_resp_reservations_inner_start_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiReservationRespReservationsInnerWatts.md b/docs/V0041OpenapiReservationRespReservationsInnerWatts.md new file mode 100644 index 0000000..fb33dd8 --- /dev/null +++ b/docs/V0041OpenapiReservationRespReservationsInnerWatts.md @@ -0,0 +1,32 @@ +# V0041OpenapiReservationRespReservationsInnerWatts + +32 bit integer number with flags + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_watts import V0041OpenapiReservationRespReservationsInnerWatts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiReservationRespReservationsInnerWatts from a JSON string +v0041_openapi_reservation_resp_reservations_inner_watts_instance = V0041OpenapiReservationRespReservationsInnerWatts.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiReservationRespReservationsInnerWatts.to_json()) + +# convert the object into a dict +v0041_openapi_reservation_resp_reservations_inner_watts_dict = v0041_openapi_reservation_resp_reservations_inner_watts_instance.to_dict() +# create an instance of V0041OpenapiReservationRespReservationsInnerWatts from a dict +v0041_openapi_reservation_resp_reservations_inner_watts_from_dict = V0041OpenapiReservationRespReservationsInnerWatts.from_dict(v0041_openapi_reservation_resp_reservations_inner_watts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiResp.md b/docs/V0041OpenapiResp.md new file mode 100644 index 0000000..b0a8752 --- /dev/null +++ b/docs/V0041OpenapiResp.md @@ -0,0 +1,31 @@ +# V0041OpenapiResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiResp from a JSON string +v0041_openapi_resp_instance = V0041OpenapiResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiResp.to_json()) + +# convert the object into a dict +v0041_openapi_resp_dict = v0041_openapi_resp_instance.to_dict() +# create an instance of V0041OpenapiResp from a dict +v0041_openapi_resp_from_dict = V0041OpenapiResp.from_dict(v0041_openapi_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesResp.md b/docs/V0041OpenapiSharesResp.md new file mode 100644 index 0000000..0ab2f3b --- /dev/null +++ b/docs/V0041OpenapiSharesResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiSharesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**V0041OpenapiSharesRespShares**](V0041OpenapiSharesRespShares.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp import V0041OpenapiSharesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesResp from a JSON string +v0041_openapi_shares_resp_instance = V0041OpenapiSharesResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesResp.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_dict = v0041_openapi_shares_resp_instance.to_dict() +# create an instance of V0041OpenapiSharesResp from a dict +v0041_openapi_shares_resp_from_dict = V0041OpenapiSharesResp.from_dict(v0041_openapi_shares_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespErrorsInner.md b/docs/V0041OpenapiSharesRespErrorsInner.md new file mode 100644 index 0000000..62f1c89 --- /dev/null +++ b/docs/V0041OpenapiSharesRespErrorsInner.md @@ -0,0 +1,32 @@ +# V0041OpenapiSharesRespErrorsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form error description | [optional] +**error_number** | **int** | Slurm numeric error identifier | [optional] +**error** | **str** | Short form error description | [optional] +**source** | **str** | Source of error or where error was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespErrorsInner from a JSON string +v0041_openapi_shares_resp_errors_inner_instance = V0041OpenapiSharesRespErrorsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespErrorsInner.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_errors_inner_dict = v0041_openapi_shares_resp_errors_inner_instance.to_dict() +# create an instance of V0041OpenapiSharesRespErrorsInner from a dict +v0041_openapi_shares_resp_errors_inner_from_dict = V0041OpenapiSharesRespErrorsInner.from_dict(v0041_openapi_shares_resp_errors_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespMeta.md b/docs/V0041OpenapiSharesRespMeta.md new file mode 100644 index 0000000..5143cd5 --- /dev/null +++ b/docs/V0041OpenapiSharesRespMeta.md @@ -0,0 +1,33 @@ +# V0041OpenapiSharesRespMeta + +Slurm meta values + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plugin** | [**V0041OpenapiSharesRespMetaPlugin**](V0041OpenapiSharesRespMetaPlugin.md) | | [optional] +**client** | [**V0041OpenapiSharesRespMetaClient**](V0041OpenapiSharesRespMetaClient.md) | | [optional] +**command** | **List[str]** | CLI command (if applicable) | [optional] +**slurm** | [**V0041OpenapiSharesRespMetaSlurm**](V0041OpenapiSharesRespMetaSlurm.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespMeta from a JSON string +v0041_openapi_shares_resp_meta_instance = V0041OpenapiSharesRespMeta.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespMeta.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_meta_dict = v0041_openapi_shares_resp_meta_instance.to_dict() +# create an instance of V0041OpenapiSharesRespMeta from a dict +v0041_openapi_shares_resp_meta_from_dict = V0041OpenapiSharesRespMeta.from_dict(v0041_openapi_shares_resp_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespMetaClient.md b/docs/V0041OpenapiSharesRespMetaClient.md new file mode 100644 index 0000000..e6d4700 --- /dev/null +++ b/docs/V0041OpenapiSharesRespMetaClient.md @@ -0,0 +1,31 @@ +# V0041OpenapiSharesRespMetaClient + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | **str** | Client source description | [optional] +**user** | **str** | Client user (if known) | [optional] +**group** | **str** | Client group (if known) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespMetaClient from a JSON string +v0041_openapi_shares_resp_meta_client_instance = V0041OpenapiSharesRespMetaClient.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespMetaClient.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_meta_client_dict = v0041_openapi_shares_resp_meta_client_instance.to_dict() +# create an instance of V0041OpenapiSharesRespMetaClient from a dict +v0041_openapi_shares_resp_meta_client_from_dict = V0041OpenapiSharesRespMetaClient.from_dict(v0041_openapi_shares_resp_meta_client_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespMetaPlugin.md b/docs/V0041OpenapiSharesRespMetaPlugin.md new file mode 100644 index 0000000..c88a3f4 --- /dev/null +++ b/docs/V0041OpenapiSharesRespMetaPlugin.md @@ -0,0 +1,32 @@ +# V0041OpenapiSharesRespMetaPlugin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Slurm plugin type (if applicable) | [optional] +**name** | **str** | Slurm plugin name (if applicable) | [optional] +**data_parser** | **str** | Slurm data_parser plugin | [optional] +**accounting_storage** | **str** | Slurm accounting plugin | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespMetaPlugin from a JSON string +v0041_openapi_shares_resp_meta_plugin_instance = V0041OpenapiSharesRespMetaPlugin.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespMetaPlugin.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_meta_plugin_dict = v0041_openapi_shares_resp_meta_plugin_instance.to_dict() +# create an instance of V0041OpenapiSharesRespMetaPlugin from a dict +v0041_openapi_shares_resp_meta_plugin_from_dict = V0041OpenapiSharesRespMetaPlugin.from_dict(v0041_openapi_shares_resp_meta_plugin_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespMetaSlurm.md b/docs/V0041OpenapiSharesRespMetaSlurm.md new file mode 100644 index 0000000..56bbea1 --- /dev/null +++ b/docs/V0041OpenapiSharesRespMetaSlurm.md @@ -0,0 +1,31 @@ +# V0041OpenapiSharesRespMetaSlurm + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version** | [**V0041OpenapiSharesRespMetaSlurmVersion**](V0041OpenapiSharesRespMetaSlurmVersion.md) | | [optional] +**release** | **str** | Slurm release string | [optional] +**cluster** | **str** | Slurm cluster name | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespMetaSlurm from a JSON string +v0041_openapi_shares_resp_meta_slurm_instance = V0041OpenapiSharesRespMetaSlurm.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespMetaSlurm.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_meta_slurm_dict = v0041_openapi_shares_resp_meta_slurm_instance.to_dict() +# create an instance of V0041OpenapiSharesRespMetaSlurm from a dict +v0041_openapi_shares_resp_meta_slurm_from_dict = V0041OpenapiSharesRespMetaSlurm.from_dict(v0041_openapi_shares_resp_meta_slurm_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespMetaSlurmVersion.md b/docs/V0041OpenapiSharesRespMetaSlurmVersion.md new file mode 100644 index 0000000..904b49a --- /dev/null +++ b/docs/V0041OpenapiSharesRespMetaSlurmVersion.md @@ -0,0 +1,31 @@ +# V0041OpenapiSharesRespMetaSlurmVersion + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**major** | **str** | Slurm release major version | [optional] +**micro** | **str** | Slurm release micro version | [optional] +**minor** | **str** | Slurm release minor version | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm_version import V0041OpenapiSharesRespMetaSlurmVersion + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespMetaSlurmVersion from a JSON string +v0041_openapi_shares_resp_meta_slurm_version_instance = V0041OpenapiSharesRespMetaSlurmVersion.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespMetaSlurmVersion.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_meta_slurm_version_dict = v0041_openapi_shares_resp_meta_slurm_version_instance.to_dict() +# create an instance of V0041OpenapiSharesRespMetaSlurmVersion from a dict +v0041_openapi_shares_resp_meta_slurm_version_from_dict = V0041OpenapiSharesRespMetaSlurmVersion.from_dict(v0041_openapi_shares_resp_meta_slurm_version_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespShares.md b/docs/V0041OpenapiSharesRespShares.md new file mode 100644 index 0000000..d34e840 --- /dev/null +++ b/docs/V0041OpenapiSharesRespShares.md @@ -0,0 +1,31 @@ +# V0041OpenapiSharesRespShares + +fairshare info + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**List[V0041OpenapiSharesRespSharesSharesInner]**](V0041OpenapiSharesRespSharesSharesInner.md) | Association shares | [optional] +**total_shares** | **int** | Total number of shares | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares import V0041OpenapiSharesRespShares + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespShares from a JSON string +v0041_openapi_shares_resp_shares_instance = V0041OpenapiSharesRespShares.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespShares.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_dict = v0041_openapi_shares_resp_shares_instance.to_dict() +# create an instance of V0041OpenapiSharesRespShares from a dict +v0041_openapi_shares_resp_shares_from_dict = V0041OpenapiSharesRespShares.from_dict(v0041_openapi_shares_resp_shares_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInner.md b/docs/V0041OpenapiSharesRespSharesSharesInner.md new file mode 100644 index 0000000..6a69165 --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInner.md @@ -0,0 +1,41 @@ +# V0041OpenapiSharesRespSharesSharesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Association ID | [optional] +**cluster** | **str** | Cluster name | [optional] +**name** | **str** | Share name | [optional] +**parent** | **str** | Parent name | [optional] +**partition** | **str** | Partition name | [optional] +**shares_normalized** | [**V0041OpenapiSharesRespSharesSharesInnerSharesNormalized**](V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.md) | | [optional] +**shares** | [**V0041OpenapiSharesRespSharesSharesInnerShares**](V0041OpenapiSharesRespSharesSharesInnerShares.md) | | [optional] +**tres** | [**V0041OpenapiSharesRespSharesSharesInnerTres**](V0041OpenapiSharesRespSharesSharesInnerTres.md) | | [optional] +**effective_usage** | **float** | Effective, normalized usage | [optional] +**usage_normalized** | [**V0041OpenapiSharesRespSharesSharesInnerUsageNormalized**](V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.md) | | [optional] +**usage** | **int** | Measure of tresbillableunits usage | [optional] +**fairshare** | [**V0041OpenapiSharesRespSharesSharesInnerFairshare**](V0041OpenapiSharesRespSharesSharesInnerFairshare.md) | | [optional] +**type** | **List[str]** | User or account association | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner import V0041OpenapiSharesRespSharesSharesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInner from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_instance = V0041OpenapiSharesRespSharesSharesInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInner.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_dict = v0041_openapi_shares_resp_shares_shares_inner_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInner from a dict +v0041_openapi_shares_resp_shares_shares_inner_from_dict = V0041OpenapiSharesRespSharesSharesInner.from_dict(v0041_openapi_shares_resp_shares_shares_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerFairshare.md b/docs/V0041OpenapiSharesRespSharesSharesInnerFairshare.md new file mode 100644 index 0000000..e40088c --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerFairshare.md @@ -0,0 +1,30 @@ +# V0041OpenapiSharesRespSharesSharesInnerFairshare + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factor** | **float** | Fairshare factor | [optional] +**level** | **float** | Fairshare factor at this level; stored on an assoc as a long double, but that is not needed for display in sshare | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_fairshare import V0041OpenapiSharesRespSharesSharesInnerFairshare + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerFairshare from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_fairshare_instance = V0041OpenapiSharesRespSharesSharesInnerFairshare.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerFairshare.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_fairshare_dict = v0041_openapi_shares_resp_shares_shares_inner_fairshare_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerFairshare from a dict +v0041_openapi_shares_resp_shares_shares_inner_fairshare_from_dict = V0041OpenapiSharesRespSharesSharesInnerFairshare.from_dict(v0041_openapi_shares_resp_shares_shares_inner_fairshare_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerShares.md b/docs/V0041OpenapiSharesRespSharesSharesInnerShares.md new file mode 100644 index 0000000..79e1ecd --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerShares.md @@ -0,0 +1,32 @@ +# V0041OpenapiSharesRespSharesSharesInnerShares + +Number of shares allocated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares import V0041OpenapiSharesRespSharesSharesInnerShares + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerShares from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_shares_instance = V0041OpenapiSharesRespSharesSharesInnerShares.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerShares.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_shares_dict = v0041_openapi_shares_resp_shares_shares_inner_shares_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerShares from a dict +v0041_openapi_shares_resp_shares_shares_inner_shares_from_dict = V0041OpenapiSharesRespSharesSharesInnerShares.from_dict(v0041_openapi_shares_resp_shares_shares_inner_shares_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.md b/docs/V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.md new file mode 100644 index 0000000..e0752d7 --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.md @@ -0,0 +1,32 @@ +# V0041OpenapiSharesRespSharesSharesInnerSharesNormalized + +Normalized shares + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares_normalized import V0041OpenapiSharesRespSharesSharesInnerSharesNormalized + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerSharesNormalized from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_shares_normalized_instance = V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_shares_normalized_dict = v0041_openapi_shares_resp_shares_shares_inner_shares_normalized_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerSharesNormalized from a dict +v0041_openapi_shares_resp_shares_shares_inner_shares_normalized_from_dict = V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.from_dict(v0041_openapi_shares_resp_shares_shares_inner_shares_normalized_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerTres.md b/docs/V0041OpenapiSharesRespSharesSharesInnerTres.md new file mode 100644 index 0000000..6bdf5aa --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerTres.md @@ -0,0 +1,31 @@ +# V0041OpenapiSharesRespSharesSharesInnerTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**run_seconds** | [**List[V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner]**](V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md) | Currently running tres-secs = grp_used_tres_run_secs | [optional] +**group_minutes** | [**List[V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner]**](V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md) | TRES-minute limit | [optional] +**usage** | [**List[V0041OpenapiSharesRespSharesSharesInnerTresUsageInner]**](V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.md) | Measure of each TRES usage | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres import V0041OpenapiSharesRespSharesSharesInnerTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTres from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_tres_instance = V0041OpenapiSharesRespSharesSharesInnerTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerTres.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_dict = v0041_openapi_shares_resp_shares_shares_inner_tres_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTres from a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_from_dict = V0041OpenapiSharesRespSharesSharesInnerTres.from_dict(v0041_openapi_shares_resp_shares_shares_inner_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md b/docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md new file mode 100644 index 0000000..dfb27c9 --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.md @@ -0,0 +1,30 @@ +# V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | [**V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue**](V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_instance = V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_dict = v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner from a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_from_dict = V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.from_dict(v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.md b/docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.md new file mode 100644 index 0000000..8f86ba5 --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.md @@ -0,0 +1,32 @@ +# V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue + +TRES value + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value_instance = V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value_dict = v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue from a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value_from_dict = V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.from_dict(v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.md b/docs/V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.md new file mode 100644 index 0000000..c55f768 --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.md @@ -0,0 +1,30 @@ +# V0041OpenapiSharesRespSharesSharesInnerTresUsageInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | **float** | TRES value | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner import V0041OpenapiSharesRespSharesSharesInnerTresUsageInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTresUsageInner from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner_instance = V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner_dict = v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerTresUsageInner from a dict +v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner_from_dict = V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.from_dict(v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.md b/docs/V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.md new file mode 100644 index 0000000..dc525af --- /dev/null +++ b/docs/V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.md @@ -0,0 +1,32 @@ +# V0041OpenapiSharesRespSharesSharesInnerUsageNormalized + +Normalized usage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_usage_normalized import V0041OpenapiSharesRespSharesSharesInnerUsageNormalized + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespSharesSharesInnerUsageNormalized from a JSON string +v0041_openapi_shares_resp_shares_shares_inner_usage_normalized_instance = V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_shares_shares_inner_usage_normalized_dict = v0041_openapi_shares_resp_shares_shares_inner_usage_normalized_instance.to_dict() +# create an instance of V0041OpenapiSharesRespSharesSharesInnerUsageNormalized from a dict +v0041_openapi_shares_resp_shares_shares_inner_usage_normalized_from_dict = V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.from_dict(v0041_openapi_shares_resp_shares_shares_inner_usage_normalized_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSharesRespWarningsInner.md b/docs/V0041OpenapiSharesRespWarningsInner.md new file mode 100644 index 0000000..da64433 --- /dev/null +++ b/docs/V0041OpenapiSharesRespWarningsInner.md @@ -0,0 +1,30 @@ +# V0041OpenapiSharesRespWarningsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form warning description | [optional] +**source** | **str** | Source of warning or where warning was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSharesRespWarningsInner from a JSON string +v0041_openapi_shares_resp_warnings_inner_instance = V0041OpenapiSharesRespWarningsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSharesRespWarningsInner.to_json()) + +# convert the object into a dict +v0041_openapi_shares_resp_warnings_inner_dict = v0041_openapi_shares_resp_warnings_inner_instance.to_dict() +# create an instance of V0041OpenapiSharesRespWarningsInner from a dict +v0041_openapi_shares_resp_warnings_inner_from_dict = V0041OpenapiSharesRespWarningsInner.from_dict(v0041_openapi_shares_resp_warnings_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigResp.md b/docs/V0041OpenapiSlurmdbdConfigResp.md new file mode 100644 index 0000000..64a3b67 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigResp.md @@ -0,0 +1,39 @@ +# V0041OpenapiSlurmdbdConfigResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0041OpenapiSlurmdbdConfigRespClustersInner]**](V0041OpenapiSlurmdbdConfigRespClustersInner.md) | Clusters | [optional] +**tres** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | TRES | [optional] +**accounts** | [**List[V0041OpenapiSlurmdbdConfigRespAccountsInner]**](V0041OpenapiSlurmdbdConfigRespAccountsInner.md) | Accounts | [optional] +**users** | [**List[V0041OpenapiSlurmdbdConfigRespUsersInner]**](V0041OpenapiSlurmdbdConfigRespUsersInner.md) | Users | [optional] +**qos** | [**List[V0041OpenapiSlurmdbdConfigRespQosInner]**](V0041OpenapiSlurmdbdConfigRespQosInner.md) | QOS | [optional] +**wckeys** | [**List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner]**](V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md) | WCKeys | [optional] +**associations** | [**List[V0041OpenapiSlurmdbdConfigRespAssociationsInner]**](V0041OpenapiSlurmdbdConfigRespAssociationsInner.md) | Associations | [optional] +**instances** | [**List[V0041OpenapiSlurmdbdConfigRespInstancesInner]**](V0041OpenapiSlurmdbdConfigRespInstancesInner.md) | Instances | [optional] +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp import V0041OpenapiSlurmdbdConfigResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigResp from a JSON string +v0041_openapi_slurmdbd_config_resp_instance = V0041OpenapiSlurmdbdConfigResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigResp.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_dict = v0041_openapi_slurmdbd_config_resp_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigResp from a dict +v0041_openapi_slurmdbd_config_resp_from_dict = V0041OpenapiSlurmdbdConfigResp.from_dict(v0041_openapi_slurmdbd_config_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAccountsInner.md b/docs/V0041OpenapiSlurmdbdConfigRespAccountsInner.md new file mode 100644 index 0000000..9b94521 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAccountsInner.md @@ -0,0 +1,34 @@ +# V0041OpenapiSlurmdbdConfigRespAccountsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner]**](V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md) | Associations involving this account (only populated if requested) | [optional] +**coordinators** | [**List[V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner]**](V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md) | List of users that are a coordinator of this account (only populated if requested) | [optional] +**description** | **str** | Arbitrary string describing the account | +**name** | **str** | Account name | +**organization** | **str** | Organization to which the account belongs | +**flags** | **List[str]** | Flags associated with the account | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner import V0041OpenapiSlurmdbdConfigRespAccountsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInner from a JSON string +v0041_openapi_slurmdbd_config_resp_accounts_inner_instance = V0041OpenapiSlurmdbdConfigRespAccountsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAccountsInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_accounts_inner_dict = v0041_openapi_slurmdbd_config_resp_accounts_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInner from a dict +v0041_openapi_slurmdbd_config_resp_accounts_inner_from_dict = V0041OpenapiSlurmdbdConfigRespAccountsInner.from_dict(v0041_openapi_slurmdbd_config_resp_accounts_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md b/docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md new file mode 100644 index 0000000..2f43f2f --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md @@ -0,0 +1,33 @@ +# V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account | [optional] +**cluster** | **str** | Cluster | [optional] +**partition** | **str** | Partition | [optional] +**user** | **str** | User name | +**id** | **int** | Numeric association ID | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner from a JSON string +v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner_instance = V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner_dict = v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner from a dict +v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner_from_dict = V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.from_dict(v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md b/docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md new file mode 100644 index 0000000..21cc8f5 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | User name | +**direct** | **bool** | Indicates whether the coordinator was directly assigned to this account | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner from a JSON string +v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner_instance = V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner_dict = v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner from a dict +v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner_from_dict = V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.from_dict(v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInner.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInner.md new file mode 100644 index 0000000..a1094d7 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInner.md @@ -0,0 +1,45 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner]**](V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md) | Accounting records containing related resource usage | [optional] +**account** | **str** | Account | [optional] +**cluster** | **str** | Cluster name | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**default** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md) | | [optional] +**flags** | **List[str]** | Flags on the association | [optional] +**max** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.md) | | [optional] +**id** | **int** | Unique ID | [optional] +**is_default** | **bool** | Is default association for user | [optional] +**lineage** | **str** | Complete path up the hierarchy to the root association | [optional] +**min** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.md) | | [optional] +**parent_account** | **str** | Name of parent account | [optional] +**partition** | **str** | Partition name | [optional] +**priority** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md) | | [optional] +**qos** | **List[str]** | List of available QOS names | [optional] +**shares_raw** | **int** | Allocated shares used for fairshare calculation | [optional] +**user** | **str** | User name | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner import V0041OpenapiSlurmdbdConfigRespAssociationsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInner from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInner from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInner.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md new file mode 100644 index 0000000..f199f40 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | **str** | Default QOS | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_default_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_default_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_default_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_default_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_default_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.md new file mode 100644 index 0000000..f57acbd --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.md) | | [optional] +**tres** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.md) | | [optional] +**per** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.md new file mode 100644 index 0000000..8fe85c5 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.md) | | [optional] +**active** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.md) | | [optional] +**accruing** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.md new file mode 100644 index 0000000..0ddfa69 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing + +MaxJobsAccrue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.md new file mode 100644 index 0000000..1d39649 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive + +MaxJobs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.md new file mode 100644 index 0000000..1a6e507 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md) | | [optional] +**accruing** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md) | | [optional] +**submitted** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.md) | | [optional] +**wall_clock** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.md new file mode 100644 index 0000000..212afd2 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted + +GrpSubmitJobs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.md new file mode 100644 index 0000000..a444a1e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal + +MaxSubmitJobs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.md new file mode 100644 index 0000000..29b6139 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.md new file mode 100644 index 0000000..78ccf87 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wall_clock** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.md new file mode 100644 index 0000000..36b1dce --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | GrpTRES | [optional] +**group** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.md) | | [optional] +**minutes** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.md) | | [optional] +**per** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.md new file mode 100644 index 0000000..0df116e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minutes** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | GrpTRESMins | [optional] +**active** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | GrpTRESRunMins | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.md new file mode 100644 index 0000000..055b00d --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESMinsPerJob | [optional] +**per** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.md new file mode 100644 index 0000000..347f0bd --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESMinsPerJob | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.md new file mode 100644 index 0000000..00e4f9a --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESPerJob | [optional] +**node** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESPerNode | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.md new file mode 100644 index 0000000..5ffd539 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_min import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_min_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_min_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_min_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_min_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md new file mode 100644 index 0000000..f85ad17 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority + +Association priority factor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_priority import V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority from a JSON string +v0041_openapi_slurmdbd_config_resp_associations_inner_priority_instance = V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_priority_dict = v0041_openapi_slurmdbd_config_resp_associations_inner_priority_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority from a dict +v0041_openapi_slurmdbd_config_resp_associations_inner_priority_from_dict = V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.from_dict(v0041_openapi_slurmdbd_config_resp_associations_inner_priority_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespClustersInner.md b/docs/V0041OpenapiSlurmdbdConfigRespClustersInner.md new file mode 100644 index 0000000..f4ae839 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespClustersInner.md @@ -0,0 +1,36 @@ +# V0041OpenapiSlurmdbdConfigRespClustersInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller** | [**V0041OpenapiSlurmdbdConfigRespClustersInnerController**](V0041OpenapiSlurmdbdConfigRespClustersInnerController.md) | | [optional] +**flags** | **List[str]** | Flags | [optional] +**name** | **str** | ClusterName | [optional] +**nodes** | **str** | Node names | [optional] +**select_plugin** | **str** | | [optional] +**associations** | [**V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations**](V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.md) | | [optional] +**rpc_version** | **int** | RPC version used in the cluster | [optional] +**tres** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Trackable resources | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner import V0041OpenapiSlurmdbdConfigRespClustersInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInner from a JSON string +v0041_openapi_slurmdbd_config_resp_clusters_inner_instance = V0041OpenapiSlurmdbdConfigRespClustersInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespClustersInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_dict = v0041_openapi_slurmdbd_config_resp_clusters_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInner from a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_from_dict = V0041OpenapiSlurmdbdConfigRespClustersInner.from_dict(v0041_openapi_slurmdbd_config_resp_clusters_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.md b/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.md new file mode 100644 index 0000000..cc3b655 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**root** | [**V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot**](V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations from a JSON string +v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_instance = V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_dict = v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations from a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_from_dict = V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.from_dict(v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.md b/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.md new file mode 100644 index 0000000..ac3b1ac --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.md @@ -0,0 +1,34 @@ +# V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot + +Root association information + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account | [optional] +**cluster** | **str** | Cluster | [optional] +**partition** | **str** | Partition | [optional] +**user** | **str** | User name | +**id** | **int** | Numeric association ID | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot from a JSON string +v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root_instance = V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root_dict = v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot from a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root_from_dict = V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.from_dict(v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerController.md b/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerController.md new file mode 100644 index 0000000..f07815a --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespClustersInnerController.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespClustersInnerController + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **str** | ControlHost | [optional] +**port** | **int** | ControlPort | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerController from a JSON string +v0041_openapi_slurmdbd_config_resp_clusters_inner_controller_instance = V0041OpenapiSlurmdbdConfigRespClustersInnerController.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespClustersInnerController.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_controller_dict = v0041_openapi_slurmdbd_config_resp_clusters_inner_controller_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerController from a dict +v0041_openapi_slurmdbd_config_resp_clusters_inner_controller_from_dict = V0041OpenapiSlurmdbdConfigRespClustersInnerController.from_dict(v0041_openapi_slurmdbd_config_resp_clusters_inner_controller_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespInstancesInner.md b/docs/V0041OpenapiSlurmdbdConfigRespInstancesInner.md new file mode 100644 index 0000000..446bcde --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespInstancesInner.md @@ -0,0 +1,34 @@ +# V0041OpenapiSlurmdbdConfigRespInstancesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster** | **str** | Cluster name | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**node_name** | **str** | NodeName | [optional] +**time** | [**V0041OpenapiSlurmdbdConfigRespInstancesInnerTime**](V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner import V0041OpenapiSlurmdbdConfigRespInstancesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInner from a JSON string +v0041_openapi_slurmdbd_config_resp_instances_inner_instance = V0041OpenapiSlurmdbdConfigRespInstancesInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespInstancesInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_instances_inner_dict = v0041_openapi_slurmdbd_config_resp_instances_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInner from a dict +v0041_openapi_slurmdbd_config_resp_instances_inner_from_dict = V0041OpenapiSlurmdbdConfigRespInstancesInner.from_dict(v0041_openapi_slurmdbd_config_resp_instances_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md b/docs/V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md new file mode 100644 index 0000000..23c067f --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespInstancesInnerTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_end** | **int** | When the instance will end (UNIX timestamp) | [optional] +**time_start** | **int** | When the instance will start (UNIX timestamp) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner_time import V0041OpenapiSlurmdbdConfigRespInstancesInnerTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInnerTime from a JSON string +v0041_openapi_slurmdbd_config_resp_instances_inner_time_instance = V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_instances_inner_time_dict = v0041_openapi_slurmdbd_config_resp_instances_inner_time_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInnerTime from a dict +v0041_openapi_slurmdbd_config_resp_instances_inner_time_from_dict = V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.from_dict(v0041_openapi_slurmdbd_config_resp_instances_inner_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInner.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInner.md new file mode 100644 index 0000000..11b5242 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInner.md @@ -0,0 +1,37 @@ +# V0041OpenapiSlurmdbdConfigRespQosInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary description | [optional] +**flags** | **List[str]** | Flags, to avoid modifying current values specify NOT_SET | [optional] +**id** | **int** | Unique ID | [optional] +**limits** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimits**](V0041OpenapiSlurmdbdConfigRespQosInnerLimits.md) | | [optional] +**name** | **str** | Name | [optional] +**preempt** | [**V0041OpenapiSlurmdbdConfigRespQosInnerPreempt**](V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.md) | | [optional] +**priority** | [**V0041OpenapiSlurmdbdConfigRespQosInnerPriority**](V0041OpenapiSlurmdbdConfigRespQosInnerPriority.md) | | [optional] +**usage_factor** | [**V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor**](V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.md) | | [optional] +**usage_threshold** | [**V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold**](V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner import V0041OpenapiSlurmdbdConfigRespQosInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInner from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_instance = V0041OpenapiSlurmdbdConfigRespQosInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInner from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_from_dict = V0041OpenapiSlurmdbdConfigRespQosInner.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimits.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimits.md new file mode 100644 index 0000000..66a0f08 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimits.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grace_time** | **int** | GraceTime | [optional] +**max** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.md) | | [optional] +**factor** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.md) | | [optional] +**min** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits import V0041OpenapiSlurmdbdConfigRespQosInnerLimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimits from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimits.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimits.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimits from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimits.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.md new file mode 100644 index 0000000..063f86c --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor + +LimitFactor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.md new file mode 100644 index 0000000..c8a3614 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.md @@ -0,0 +1,33 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_jobs** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.md) | | [optional] +**tres** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.md) | | [optional] +**wall_clock** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.md) | | [optional] +**jobs** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.md) | | [optional] +**accruing** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.md new file mode 100644 index 0000000..b4c9437 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.md new file mode 100644 index 0000000..61526b3 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.md new file mode 100644 index 0000000..63bb590 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount + +MaxJobsAccruePerAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.md new file mode 100644 index 0000000..675c2b8 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser + +MaxJobsAccruePerUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.md new file mode 100644 index 0000000..1c013d5 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accruing** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md) | | [optional] +**count** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md new file mode 100644 index 0000000..d984867 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing + +GrpJobsAccrue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md new file mode 100644 index 0000000..f3df19e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount + +GrpJobs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.md new file mode 100644 index 0000000..5d0bbd4 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_jobs** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.md) | | [optional] +**per** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.md new file mode 100644 index 0000000..c506a32 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.md new file mode 100644 index 0000000..9d0b7af --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.md new file mode 100644 index 0000000..b225fa7 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount + +MaxJobsPerAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.md new file mode 100644 index 0000000..1e8c50f --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser + +MaxJobsPerUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.md new file mode 100644 index 0000000..3720f34 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.md new file mode 100644 index 0000000..2e41e74 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount + +MaxSubmitJobsPerAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.md new file mode 100644 index 0000000..3b8a097 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser + +MaxSubmitJobsPerUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.md new file mode 100644 index 0000000..dcbd2a7 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | GrpTRES | [optional] +**minutes** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.md) | | [optional] +**per** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.md new file mode 100644 index 0000000..8d77823 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.md new file mode 100644 index 0000000..3f7d9ec --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | GrpTRESRunMins | [optional] +**job** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESMinsPerJob | [optional] +**account** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESRunMinsPerAccount | [optional] +**user** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESRunMinsPerUser | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.md new file mode 100644 index 0000000..7696f14 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESPerAccount | [optional] +**job** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESPerJob | [optional] +**node** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESPerNode | [optional] +**user** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MaxTRESPerUser | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.md new file mode 100644 index 0000000..7eac3de --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.md new file mode 100644 index 0000000..006ff30 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md) | | [optional] +**job** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md new file mode 100644 index 0000000..9bdfb5f --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob + +MaxWallDurationPerJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md new file mode 100644 index 0000000..1870478 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos + +GrpWall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.md new file mode 100644 index 0000000..913dd82 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md) | | [optional] +**tres** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md new file mode 100644 index 0000000..a4f580a --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold + +MinPrioThreshold + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.md new file mode 100644 index 0000000..546ef11 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer**](V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.md new file mode 100644 index 0000000..50211a7 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | MinTRES | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per_instance = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.md new file mode 100644 index 0000000..85e884b --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerPreempt + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**list** | **List[str]** | Other QOS's this QOS can preempt | [optional] +**mode** | **List[str]** | PreemptMode | [optional] +**exempt_time** | [**V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime**](V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt import V0041OpenapiSlurmdbdConfigRespQosInnerPreempt + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreempt from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_instance = V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreempt from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.md new file mode 100644 index 0000000..8eed6bc --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime + +PreemptExemptTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time import V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time_instance = V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPriority.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPriority.md new file mode 100644 index 0000000..449379e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerPriority.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerPriority + +Priority + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_priority import V0041OpenapiSlurmdbdConfigRespQosInnerPriority + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPriority from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_priority_instance = V0041OpenapiSlurmdbdConfigRespQosInnerPriority.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerPriority.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_priority_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_priority_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPriority from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_priority_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerPriority.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_priority_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.md new file mode 100644 index 0000000..940a6ba --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor + +UsageFactor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor import V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor_instance = V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.md b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.md new file mode 100644 index 0000000..6c9e89a --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold + +UsageThreshold + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold from a JSON string +v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold_instance = V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold_dict = v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold from a dict +v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold_from_dict = V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.from_dict(v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespUsersInner.md b/docs/V0041OpenapiSlurmdbdConfigRespUsersInner.md new file mode 100644 index 0000000..6bf2982 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespUsersInner.md @@ -0,0 +1,36 @@ +# V0041OpenapiSlurmdbdConfigRespUsersInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**administrator_level** | **List[str]** | AdminLevel granted to the user | [optional] +**associations** | [**List[V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner]**](V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.md) | Associations created for this user | [optional] +**coordinators** | [**List[V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner]**](V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.md) | Accounts this user is a coordinator for | [optional] +**default** | [**V0041OpenapiSlurmdbdConfigRespUsersInnerDefault**](V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.md) | | [optional] +**flags** | **List[str]** | Flags associated with user | [optional] +**name** | **str** | User name | +**old_name** | **str** | Previous user name | [optional] +**wckeys** | [**List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner]**](V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md) | List of available WCKeys | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner import V0041OpenapiSlurmdbdConfigRespUsersInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInner from a JSON string +v0041_openapi_slurmdbd_config_resp_users_inner_instance = V0041OpenapiSlurmdbdConfigRespUsersInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespUsersInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_users_inner_dict = v0041_openapi_slurmdbd_config_resp_users_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInner from a dict +v0041_openapi_slurmdbd_config_resp_users_inner_from_dict = V0041OpenapiSlurmdbdConfigRespUsersInner.from_dict(v0041_openapi_slurmdbd_config_resp_users_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.md b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.md new file mode 100644 index 0000000..57aab0e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdConfigRespUsersInnerDefault + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Default Account | [optional] +**wckey** | **str** | Default WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_default import V0041OpenapiSlurmdbdConfigRespUsersInnerDefault + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerDefault from a JSON string +v0041_openapi_slurmdbd_config_resp_users_inner_default_instance = V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_users_inner_default_dict = v0041_openapi_slurmdbd_config_resp_users_inner_default_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerDefault from a dict +v0041_openapi_slurmdbd_config_resp_users_inner_default_from_dict = V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.from_dict(v0041_openapi_slurmdbd_config_resp_users_inner_default_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md new file mode 100644 index 0000000..68b13dd --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md @@ -0,0 +1,34 @@ +# V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner]**](V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md) | Accounting records containing related resource usage | [optional] +**cluster** | **str** | Cluster name | +**id** | **int** | Unique ID for this user-cluster-wckey combination | [optional] +**name** | **str** | WCKey name | +**user** | **str** | User name | +**flags** | **List[str]** | Flags associated with the WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner from a JSON string +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_instance = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_dict = v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner from a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_from_dict = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.from_dict(v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md new file mode 100644 index 0000000..f73ad25 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated**](V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.md) | | [optional] +**id** | **int** | Association ID or Workload characterization key ID | [optional] +**start** | **int** | When the record was started | [optional] +**tres** | [**V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES**](V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner from a JSON string +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_instance = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_dict = v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner from a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_from_dict = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.from_dict(v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.md b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.md new file mode 100644 index 0000000..0516e0a --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | Number of cpu seconds allocated | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated from a JSON string +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated_instance = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated_dict = v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated from a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated_from_dict = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.from_dict(v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.md b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.md new file mode 100644 index 0000000..76c1ba8 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.md @@ -0,0 +1,33 @@ +# V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES + +Trackable resources + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | TRES type (CPU, MEM, etc) | +**name** | **str** | TRES name (if applicable) | [optional] +**id** | **int** | ID used in database | [optional] +**count** | **int** | TRES count (0 if listed generically) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES from a JSON string +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres_instance = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres_dict = v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES from a dict +v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres_from_dict = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.from_dict(v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsResp.md b/docs/V0041OpenapiSlurmdbdJobsResp.md new file mode 100644 index 0000000..c7db057 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInner]**](V0041OpenapiSlurmdbdJobsRespJobsInner.md) | jobs | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp import V0041OpenapiSlurmdbdJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsResp from a JSON string +v0041_openapi_slurmdbd_jobs_resp_instance = V0041OpenapiSlurmdbdJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsResp.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_dict = v0041_openapi_slurmdbd_jobs_resp_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsResp from a dict +v0041_openapi_slurmdbd_jobs_resp_from_dict = V0041OpenapiSlurmdbdJobsResp.from_dict(v0041_openapi_slurmdbd_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInner.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInner.md new file mode 100644 index 0000000..2ed8f61 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInner.md @@ -0,0 +1,72 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account the job ran under | [optional] +**comment** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerComment**](V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md) | | [optional] +**allocation_nodes** | **int** | List of nodes allocated to the job | [optional] +**array** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerArray**](V0041OpenapiSlurmdbdJobsRespJobsInnerArray.md) | | [optional] +**association** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation**](V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.md) | | [optional] +**block** | **str** | The name of the block to be used (used with Blue Gene systems) | [optional] +**cluster** | **str** | Cluster name | [optional] +**constraints** | **str** | Feature(s) the job requested as a constraint | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**derived_exit_code** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCode**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.md) | | [optional] +**time** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTime**](V0041OpenapiSlurmdbdJobsRespJobsInnerTime.md) | | [optional] +**exit_code** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode**](V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**flags** | **List[str]** | Flags associated with the job | [optional] +**group** | **str** | Group ID of the user that owns the job | [optional] +**het** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerHet**](V0041OpenapiSlurmdbdJobsRespJobsInnerHet.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**name** | **str** | Job name | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mcs** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerMcs**](V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md) | | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**hold** | **bool** | Hold (true) or release (false) job | [optional] +**priority** | [**V0041JobDescMsgPriority**](V0041JobDescMsgPriority.md) | | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**required** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerRequired**](V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the job | [optional] +**reservation** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerReservation**](V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md) | | [optional] +**script** | **str** | Job batch script; only the first component in a HetJob is populated or honored | [optional] +**stdin_expanded** | **str** | Job stdin with expanded fields | [optional] +**stdout_expanded** | **str** | Job stdout with expanded fields | [optional] +**stderr_expanded** | **str** | Job stderr with expanded fields | [optional] +**stdout** | **str** | Path to stdout file | [optional] +**stderr** | **str** | Path to stderr file | [optional] +**stdin** | **str** | Path to stdin file | [optional] +**state** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerState**](V0041OpenapiSlurmdbdJobsRespJobsInnerState.md) | | [optional] +**steps** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.md) | Individual steps in the job | [optional] +**submit_line** | **str** | Command used to submit the job | [optional] +**tres** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTres**](V0041OpenapiSlurmdbdJobsRespJobsInnerTres.md) | | [optional] +**used_gres** | **str** | Generic resources used by job | [optional] +**user** | **str** | User that owns the job | [optional] +**wckey** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerWckey**](V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.md) | | [optional] +**working_directory** | **str** | Path to current working directory | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner import V0041OpenapiSlurmdbdJobsRespJobsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInner from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_instance = V0041OpenapiSlurmdbdJobsRespJobsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInner from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInner.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArray.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArray.md new file mode 100644 index 0000000..e5bef8c --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArray.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerArray + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID of job array, or 0 if N/A | [optional] +**limits** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits**](V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md) | | [optional] +**task_id** | [**V0041OpenapiJobInfoRespJobsInnerArrayTaskId**](V0041OpenapiJobInfoRespJobsInnerArrayTaskId.md) | | [optional] +**task** | **str** | String expression of task IDs in this record | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array import V0041OpenapiSlurmdbdJobsRespJobsInnerArray + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArray from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerArray.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerArray.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArray from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerArray.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md new file mode 100644 index 0000000..407e3cf --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax**](V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.md new file mode 100644 index 0000000..cd290a4 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**running** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning**](V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.md new file mode 100644 index 0000000..45f92b4 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tasks** | **int** | Maximum number of simultaneously running tasks, 0 if no limit | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.md new file mode 100644 index 0000000..7206f25 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.md @@ -0,0 +1,34 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation + +Unique identifier for the association + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account | [optional] +**cluster** | **str** | Cluster | [optional] +**partition** | **str** | Partition | [optional] +**user** | **str** | User name | +**id** | **int** | Numeric association ID | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association import V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md new file mode 100644 index 0000000..334620f --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerComment + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**administrator** | **str** | Arbitrary comment made by administrator | [optional] +**job** | **str** | Arbitrary comment made by user | [optional] +**system** | **str** | Arbitrary comment from slurmctld | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerComment from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerComment.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerComment.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerComment from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerComment.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md new file mode 100644 index 0000000..e5056d7 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode + +Exit code + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **List[str]** | Status given by return code | [optional] +**return_code** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.md) | | [optional] +**signal** | [**V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal**](V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code import V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerHet.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerHet.md new file mode 100644 index 0000000..bf713de --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerHet.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerHet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Heterogeneous job ID, if applicable | [optional] +**job_offset** | [**V0041OpenapiJobInfoRespJobsInnerHetJobOffset**](V0041OpenapiJobInfoRespJobsInnerHetJobOffset.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het import V0041OpenapiSlurmdbdJobsRespJobsInnerHet + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerHet from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerHet.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerHet.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerHet from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerHet.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md new file mode 100644 index 0000000..68a2ce5 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerMcs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label** | **str** | Multi-Category Security label on the job | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerMcs from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerMcs from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.md new file mode 100644 index 0000000..113f54a --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerRequired + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus** | **int** | Minimum number of CPUs required | [optional] +**memory_per_cpu** | [**V0041JobDescMsgMemoryPerCpu**](V0041JobDescMsgMemoryPerCpu.md) | | [optional] +**memory_per_node** | [**V0041OpenapiJobInfoRespJobsInnerMemoryPerNode**](V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required import V0041OpenapiSlurmdbdJobsRespJobsInnerRequired + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerRequired from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerRequired from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md new file mode 100644 index 0000000..f1342a3 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerReservation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Unique identifier of requested reservation | [optional] +**name** | **str** | Name of reservation to use | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation import V0041OpenapiSlurmdbdJobsRespJobsInnerReservation + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerReservation from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerReservation from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerState.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerState.md new file mode 100644 index 0000000..0000c94 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerState.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerState + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current** | **List[str]** | Current state | [optional] +**reason** | **str** | Reason for previous Pending or Failed state | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state import V0041OpenapiSlurmdbdJobsRespJobsInnerState + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerState from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerState.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerState.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerState from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerState.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.md new file mode 100644 index 0000000..55bca33 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.md @@ -0,0 +1,40 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.md) | | [optional] +**exit_code** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode**](V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.md) | | [optional] +**nodes** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.md) | | [optional] +**tasks** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md) | | [optional] +**pid** | **str** | Process ID | [optional] +**cpu** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the step | [optional] +**state** | **List[str]** | Current state | [optional] +**statistics** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.md) | | [optional] +**step** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md) | | [optional] +**task** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md) | | [optional] +**tres** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.md new file mode 100644 index 0000000..69385fa --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested_frequency** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.md) | | [optional] +**governor** | **str** | Requested CPU frequency governor in kHz | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.md new file mode 100644 index 0000000..4998296 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.md) | | [optional] +**max** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.md new file mode 100644 index 0000000..1e9fa41 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax + +Maximum requested CPU frequency in kHz + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.md new file mode 100644 index 0000000..dc2c34b --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin + +Minimum requested CPU frequency in kHz + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.md new file mode 100644 index 0000000..1e26bd8 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of nodes in the job step | [optional] +**range** | **str** | Node(s) allocated to the job step | [optional] +**list** | **List[str]** | List of nodes used by the step | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.md new file mode 100644 index 0000000..fc53cec --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md) | | [optional] +**energy** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md new file mode 100644 index 0000000..114cef5 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actual_frequency** | **int** | Average weighted CPU frequency of all tasks in kHz | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.md new file mode 100644 index 0000000..d7d3d2d --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumed** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.md new file mode 100644 index 0000000..c5bc414 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed + +Total energy consumed by all tasks in a job in joules + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md new file mode 100644 index 0000000..35a0d43 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Step ID | [optional] +**name** | **str** | Step name | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md new file mode 100644 index 0000000..9ecfb19 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**distribution** | **str** | The layout of the step was when it was running | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md new file mode 100644 index 0000000..f52998e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md @@ -0,0 +1,29 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Total number of tasks | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.md new file mode 100644 index 0000000..92b46f2 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.md @@ -0,0 +1,35 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**end** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.md) | | [optional] +**start** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.md) | | [optional] +**suspended** | **int** | Time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.md new file mode 100644 index 0000000..b3a7f04 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd + +End time (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.md new file mode 100644 index 0000000..0892576 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart + +Time execution began (UNIX timestamp) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md new file mode 100644 index 0000000..caaab4f --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | System CPU time used by the step in seconds | [optional] +**microseconds** | **int** | System CPU time used by the step in microseconds | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md new file mode 100644 index 0000000..3f9a860 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | Total CPU time used by the step in seconds | [optional] +**microseconds** | **int** | Total CPU time used by the step in microseconds | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md new file mode 100644 index 0000000..25e8c7c --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | User CPU time used by the step in seconds | [optional] +**microseconds** | **int** | User CPU time used by the step in microseconds | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.md new file mode 100644 index 0000000..953f373 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.md) | | [optional] +**consumed** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.md) | | [optional] +**allocated** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Trackable resources allocated to the step | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.md new file mode 100644 index 0000000..0ce2f84 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum TRES usage consumed among all tasks | [optional] +**min** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Minimum TRES usage consumed among all tasks | [optional] +**average** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Average TRES usage consumed among all tasks | [optional] +**total** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Total TRES usage consumed among all tasks | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.md new file mode 100644 index 0000000..a90d3a3 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum TRES usage requested among all tasks | [optional] +**min** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Minimum TRES usage requested among all tasks | [optional] +**average** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Average TRES usage requested among all tasks | [optional] +**total** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Total TRES usage requested among all tasks | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md new file mode 100644 index 0000000..e3786bf --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | TRES type (CPU, MEM, etc) | +**name** | **str** | TRES name (if applicable) | [optional] +**id** | **int** | ID used in database | [optional] +**count** | **int** | TRES count (0 if listed generically) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTime.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTime.md new file mode 100644 index 0000000..db22f7d --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTime.md @@ -0,0 +1,39 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**eligible** | **int** | Time when the job became eligible to run (UNIX timestamp) | [optional] +**end** | **int** | End time (UNIX timestamp) | [optional] +**planned** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.md) | | [optional] +**start** | **int** | Time execution began (UNIX timestamp) | [optional] +**submission** | **int** | Time when the job was submitted (UNIX timestamp) | [optional] +**suspended** | **int** | Total time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md) | | [optional] +**limit** | [**V0041JobDescMsgTimeLimit**](V0041JobDescMsgTimeLimit.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTime from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerTime.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTime from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerTime.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.md new file mode 100644 index 0000000..0015d89 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned + +Time required to start job after becoming eligible to run in seconds + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned import V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md new file mode 100644 index 0000000..6f9f62e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | System CPU time used by the job in seconds | [optional] +**microseconds** | **int** | System CPU time used by the job in microseconds | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md new file mode 100644 index 0000000..6feff96 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | Sum of System and User CPU time used by the job in seconds | [optional] +**microseconds** | **int** | Sum of System and User CPU time used by the job in microseconds | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md new file mode 100644 index 0000000..a7355c0 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | User CPU time used by the job in seconds | [optional] +**microseconds** | **int** | User CPU time used by the job in microseconds | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTres.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTres.md new file mode 100644 index 0000000..c3d7e18 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerTres.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Trackable resources allocated to the job | [optional] +**requested** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Trackable resources requested by job | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTres from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerTres.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerTres.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTres from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerTres.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.md b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.md new file mode 100644 index 0000000..8469dd7 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdJobsRespJobsInnerWckey + +Workload characterization key + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckey** | **str** | WCKey name | +**flags** | **List[str]** | Active flags | + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey import V0041OpenapiSlurmdbdJobsRespJobsInnerWckey + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerWckey from a JSON string +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey_instance = V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey_dict = v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerWckey from a dict +v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey_from_dict = V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.from_dict(v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdQosRemovedResp.md b/docs/V0041OpenapiSlurmdbdQosRemovedResp.md new file mode 100644 index 0000000..8fe133e --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdQosRemovedResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdQosRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_qos** | **List[str]** | removed QOS | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_removed_resp import V0041OpenapiSlurmdbdQosRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdQosRemovedResp from a JSON string +v0041_openapi_slurmdbd_qos_removed_resp_instance = V0041OpenapiSlurmdbdQosRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdQosRemovedResp.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_qos_removed_resp_dict = v0041_openapi_slurmdbd_qos_removed_resp_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdQosRemovedResp from a dict +v0041_openapi_slurmdbd_qos_removed_resp_from_dict = V0041OpenapiSlurmdbdQosRemovedResp.from_dict(v0041_openapi_slurmdbd_qos_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdQosResp.md b/docs/V0041OpenapiSlurmdbdQosResp.md new file mode 100644 index 0000000..eaf0b08 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdQosResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdQosResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0041OpenapiSlurmdbdConfigRespQosInner]**](V0041OpenapiSlurmdbdConfigRespQosInner.md) | List of QOS | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdQosResp from a JSON string +v0041_openapi_slurmdbd_qos_resp_instance = V0041OpenapiSlurmdbdQosResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdQosResp.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_qos_resp_dict = v0041_openapi_slurmdbd_qos_resp_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdQosResp from a dict +v0041_openapi_slurmdbd_qos_resp_from_dict = V0041OpenapiSlurmdbdQosResp.from_dict(v0041_openapi_slurmdbd_qos_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsResp.md b/docs/V0041OpenapiSlurmdbdStatsResp.md new file mode 100644 index 0000000..ab7f3a6 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdStatsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0041OpenapiSlurmdbdStatsRespStatistics**](V0041OpenapiSlurmdbdStatsRespStatistics.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp import V0041OpenapiSlurmdbdStatsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsResp from a JSON string +v0041_openapi_slurmdbd_stats_resp_instance = V0041OpenapiSlurmdbdStatsResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsResp.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_dict = v0041_openapi_slurmdbd_stats_resp_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsResp from a dict +v0041_openapi_slurmdbd_stats_resp_from_dict = V0041OpenapiSlurmdbdStatsResp.from_dict(v0041_openapi_slurmdbd_stats_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatistics.md b/docs/V0041OpenapiSlurmdbdStatsRespStatistics.md new file mode 100644 index 0000000..aec0385 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatistics.md @@ -0,0 +1,33 @@ +# V0041OpenapiSlurmdbdStatsRespStatistics + +statistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_start** | **int** | When data collection started (UNIX timestamp) | [optional] +**rollups** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollups**](V0041OpenapiSlurmdbdStatsRespStatisticsRollups.md) | | [optional] +**rpcs** | [**List[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner]**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.md) | List of RPCs sent to the slurmdbd | [optional] +**users** | [**List[V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner]**](V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.md) | List of users that issued RPCs | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics import V0041OpenapiSlurmdbdStatsRespStatistics + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatistics from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_instance = V0041OpenapiSlurmdbdStatsRespStatistics.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatistics.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_dict = v0041_openapi_slurmdbd_stats_resp_statistics_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatistics from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_from_dict = V0041OpenapiSlurmdbdStatsRespStatistics.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.md new file mode 100644 index 0000000..0e41bce --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rpc** | **str** | RPC type | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md new file mode 100644 index 0000000..261306b --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md @@ -0,0 +1,30 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average** | **int** | Average RPC processing time in microseconds | [optional] +**total** | **int** | Total RPC processing time in microseconds | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollups.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollups.md new file mode 100644 index 0000000..150fc2d --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollups.md @@ -0,0 +1,32 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRollups + +Rollup statistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hourly** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md) | | [optional] +**daily** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md) | | [optional] +**monthly** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups import V0041OpenapiSlurmdbdStatsRespStatisticsRollups + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollups from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRollups.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRollups.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rollups_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollups from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRollups.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rollups_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md new file mode 100644 index 0000000..02fc6e7 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of daily rollups since last_run | [optional] +**last_run** | **int** | Last time daily rollup ran (UNIX timestamp) | [optional] +**duration** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md new file mode 100644 index 0000000..185d971 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last** | **int** | Total time spent doing daily daily rollup (seconds) | [optional] +**max** | **int** | Longest daily rollup time (seconds) | [optional] +**time** | **int** | Total time spent doing daily rollups (seconds) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md new file mode 100644 index 0000000..37c9984 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of hourly rollups since last_run | [optional] +**last_run** | **int** | Last time hourly rollup ran (UNIX timestamp) | [optional] +**duration** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md new file mode 100644 index 0000000..f19dd3a --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last** | **int** | Total time spent doing last daily rollup (seconds) | [optional] +**max** | **int** | Longest hourly rollup time (seconds) | [optional] +**time** | **int** | Total time spent doing hourly rollups (seconds) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md new file mode 100644 index 0000000..7443d7b --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of monthly rollups since last_run | [optional] +**last_run** | **int** | Last time monthly rollup ran (UNIX timestamp) | [optional] +**duration** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md new file mode 100644 index 0000000..0b2a021 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last** | **int** | Total time spent doing monthly daily rollup (seconds) | [optional] +**max** | **int** | Longest monthly rollup time (seconds) | [optional] +**time** | **int** | Total time spent doing monthly rollups (seconds) | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration_instance = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration_dict = v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.md b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.md new file mode 100644 index 0000000..d6a5700 --- /dev/null +++ b/docs/V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.md @@ -0,0 +1,31 @@ +# V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **str** | User ID | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_users_inner import V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner from a JSON string +v0041_openapi_slurmdbd_stats_resp_statistics_users_inner_instance = V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.to_json()) + +# convert the object into a dict +v0041_openapi_slurmdbd_stats_resp_statistics_users_inner_dict = v0041_openapi_slurmdbd_stats_resp_statistics_users_inner_instance.to_dict() +# create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner from a dict +v0041_openapi_slurmdbd_stats_resp_statistics_users_inner_from_dict = V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.from_dict(v0041_openapi_slurmdbd_stats_resp_statistics_users_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiTresResp.md b/docs/V0041OpenapiTresResp.md new file mode 100644 index 0000000..b411bf1 --- /dev/null +++ b/docs/V0041OpenapiTresResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiTresResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tres** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | TRES | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_tres_resp import V0041OpenapiTresResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiTresResp from a JSON string +v0041_openapi_tres_resp_instance = V0041OpenapiTresResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiTresResp.to_json()) + +# convert the object into a dict +v0041_openapi_tres_resp_dict = v0041_openapi_tres_resp_instance.to_dict() +# create an instance of V0041OpenapiTresResp from a dict +v0041_openapi_tres_resp_from_dict = V0041OpenapiTresResp.from_dict(v0041_openapi_tres_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondResp.md b/docs/V0041OpenapiUsersAddCondResp.md new file mode 100644 index 0000000..420a328 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondResp.md @@ -0,0 +1,33 @@ +# V0041OpenapiUsersAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0041OpenapiUsersAddCondRespAssociationCondition**](V0041OpenapiUsersAddCondRespAssociationCondition.md) | | +**user** | [**V0041OpenapiUsersAddCondRespUser**](V0041OpenapiUsersAddCondRespUser.md) | | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp import V0041OpenapiUsersAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondResp from a JSON string +v0041_openapi_users_add_cond_resp_instance = V0041OpenapiUsersAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondResp.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_dict = v0041_openapi_users_add_cond_resp_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondResp from a dict +v0041_openapi_users_add_cond_resp_from_dict = V0041OpenapiUsersAddCondResp.from_dict(v0041_openapi_users_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationCondition.md b/docs/V0041OpenapiUsersAddCondRespAssociationCondition.md new file mode 100644 index 0000000..4c7db42 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationCondition.md @@ -0,0 +1,35 @@ +# V0041OpenapiUsersAddCondRespAssociationCondition + +Filters to select associations for users + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | CSV accounts list | [optional] +**association** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociation**](V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md) | | [optional] +**clusters** | **List[str]** | CSV clusters list | [optional] +**partitions** | **List[str]** | CSV partitions list | [optional] +**users** | **List[str]** | CSV users list | +**wckeys** | **List[str]** | CSV WCKeys list | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition import V0041OpenapiUsersAddCondRespAssociationCondition + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationCondition from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_instance = V0041OpenapiUsersAddCondRespAssociationCondition.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationCondition.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_dict = v0041_openapi_users_add_cond_resp_association_condition_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationCondition from a dict +v0041_openapi_users_add_cond_resp_association_condition_from_dict = V0041OpenapiUsersAddCondRespAssociationCondition.from_dict(v0041_openapi_users_add_cond_resp_association_condition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md new file mode 100644 index 0000000..c47f250 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociation.md @@ -0,0 +1,51 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociation + +Association limits and options + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**defaultqos** | **str** | Default QOS | [optional] +**grpjobs** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.md) | | [optional] +**grpjobsaccrue** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.md) | | [optional] +**grpsubmitjobs** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.md) | | [optional] +**grptres** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum number of TRES able to be allocated by running jobs in this association and its children | [optional] +**grptresmins** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Total number of TRES minutes that can possibly be used by past, present and future jobs in this association and its children | [optional] +**grptresrunmins** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum number of TRES minutes able to be allocated by running jobs in this association and its children | [optional] +**grpwall** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.md) | | [optional] +**maxjobs** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.md) | | [optional] +**maxjobsaccrue** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.md) | | [optional] +**maxsubmitjobs** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.md) | | [optional] +**maxtresminsperjob** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum number of TRES minutes each job is able to use in this association | [optional] +**maxtresrunmins** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum number of TRES minutes able to be allocated by running jobs in this association | [optional] +**maxtresperjob** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum number of TRES each job is able to use in this association | [optional] +**maxtrespernode** | [**List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.md) | Maximum number of TRES each node is able to use | [optional] +**maxwalldurationperjob** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.md) | | [optional] +**minpriothresh** | [**V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh**](V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.md) | | [optional] +**parent** | **str** | Name of parent account | [optional] +**priority** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.md) | | [optional] +**qoslevel** | **List[str]** | List of available QOS names | [optional] +**fairshare** | **int** | Allocated shares used for fairshare calculation | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association import V0041OpenapiUsersAddCondRespAssociationConditionAssociation + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociation from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociation.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociation.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_dict = v0041_openapi_users_add_cond_resp_association_condition_association_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociation from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociation.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.md new file mode 100644 index 0000000..15986e0 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs + +Maximum number of running jobs in this association and its children + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs_dict = v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.md new file mode 100644 index 0000000..b2cc356 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue + +Maximum number of pending jobs able to accrue age priority in this association and its children + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue_dict = v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.md new file mode 100644 index 0000000..e504223 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs + +Maximum number of jobs which can be in a pending or running state at any time in this association and its children + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs_dict = v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.md new file mode 100644 index 0000000..876a6d8 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall + +Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpwall import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_grpwall_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpwall_dict = v0041_openapi_users_add_cond_resp_association_condition_association_grpwall_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_grpwall_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_grpwall_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.md new file mode 100644 index 0000000..e40ef93 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs + +Maximum number of running jobs per user in this association + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs_dict = v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.md new file mode 100644 index 0000000..7bcfb28 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue + +Maximum number of pending jobs able to accrue age priority at any given time in this association + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue_dict = v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.md new file mode 100644 index 0000000..c116ff0 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs + +Maximum number of jobs which can be in a pending or running state at any time in this association + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs_dict = v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.md new file mode 100644 index 0000000..6d916ac --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob + +Maximum wall clock time each job is able to use in this association + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob_dict = v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.md b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.md new file mode 100644 index 0000000..54d308b --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh + +Minimum priority required to reserve resources when scheduling + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh from a JSON string +v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh_instance = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh_dict = v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh from a dict +v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh_from_dict = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.from_dict(v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespStr.md b/docs/V0041OpenapiUsersAddCondRespStr.md new file mode 100644 index 0000000..158182c --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_users** | **str** | added_users | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_str import V0041OpenapiUsersAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespStr from a JSON string +v0041_openapi_users_add_cond_resp_str_instance = V0041OpenapiUsersAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespStr.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_str_dict = v0041_openapi_users_add_cond_resp_str_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespStr from a dict +v0041_openapi_users_add_cond_resp_str_from_dict = V0041OpenapiUsersAddCondRespStr.from_dict(v0041_openapi_users_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersAddCondRespUser.md b/docs/V0041OpenapiUsersAddCondRespUser.md new file mode 100644 index 0000000..86ea4c5 --- /dev/null +++ b/docs/V0041OpenapiUsersAddCondRespUser.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersAddCondRespUser + +Admin level of user, DefaultAccount, DefaultWCKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminlevel** | **List[str]** | AdminLevel granted to the user | [optional] +**defaultaccount** | **str** | Default account | [optional] +**defaultwckey** | **str** | Default WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_user import V0041OpenapiUsersAddCondRespUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersAddCondRespUser from a JSON string +v0041_openapi_users_add_cond_resp_user_instance = V0041OpenapiUsersAddCondRespUser.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersAddCondRespUser.to_json()) + +# convert the object into a dict +v0041_openapi_users_add_cond_resp_user_dict = v0041_openapi_users_add_cond_resp_user_instance.to_dict() +# create an instance of V0041OpenapiUsersAddCondRespUser from a dict +v0041_openapi_users_add_cond_resp_user_from_dict = V0041OpenapiUsersAddCondRespUser.from_dict(v0041_openapi_users_add_cond_resp_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiUsersResp.md b/docs/V0041OpenapiUsersResp.md new file mode 100644 index 0000000..35a046f --- /dev/null +++ b/docs/V0041OpenapiUsersResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiUsersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V0041OpenapiSlurmdbdConfigRespUsersInner]**](V0041OpenapiSlurmdbdConfigRespUsersInner.md) | users | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiUsersResp from a JSON string +v0041_openapi_users_resp_instance = V0041OpenapiUsersResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiUsersResp.to_json()) + +# convert the object into a dict +v0041_openapi_users_resp_dict = v0041_openapi_users_resp_instance.to_dict() +# create an instance of V0041OpenapiUsersResp from a dict +v0041_openapi_users_resp_from_dict = V0041OpenapiUsersResp.from_dict(v0041_openapi_users_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiWckeyRemovedResp.md b/docs/V0041OpenapiWckeyRemovedResp.md new file mode 100644 index 0000000..c2b12a2 --- /dev/null +++ b/docs/V0041OpenapiWckeyRemovedResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiWckeyRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_wckeys** | **List[str]** | deleted wckeys | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_wckey_removed_resp import V0041OpenapiWckeyRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiWckeyRemovedResp from a JSON string +v0041_openapi_wckey_removed_resp_instance = V0041OpenapiWckeyRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiWckeyRemovedResp.to_json()) + +# convert the object into a dict +v0041_openapi_wckey_removed_resp_dict = v0041_openapi_wckey_removed_resp_instance.to_dict() +# create an instance of V0041OpenapiWckeyRemovedResp from a dict +v0041_openapi_wckey_removed_resp_from_dict = V0041OpenapiWckeyRemovedResp.from_dict(v0041_openapi_wckey_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041OpenapiWckeyResp.md b/docs/V0041OpenapiWckeyResp.md new file mode 100644 index 0000000..a9be575 --- /dev/null +++ b/docs/V0041OpenapiWckeyResp.md @@ -0,0 +1,32 @@ +# V0041OpenapiWckeyResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckeys** | [**List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner]**](V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.md) | wckeys | +**meta** | [**V0041OpenapiSharesRespMeta**](V0041OpenapiSharesRespMeta.md) | | [optional] +**errors** | [**List[V0041OpenapiSharesRespErrorsInner]**](V0041OpenapiSharesRespErrorsInner.md) | Query errors | [optional] +**warnings** | [**List[V0041OpenapiSharesRespWarningsInner]**](V0041OpenapiSharesRespWarningsInner.md) | Query warnings | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041OpenapiWckeyResp from a JSON string +v0041_openapi_wckey_resp_instance = V0041OpenapiWckeyResp.from_json(json) +# print the JSON string representation of the object +print(V0041OpenapiWckeyResp.to_json()) + +# convert the object into a dict +v0041_openapi_wckey_resp_dict = v0041_openapi_wckey_resp_instance.to_dict() +# create an instance of V0041OpenapiWckeyResp from a dict +v0041_openapi_wckey_resp_from_dict = V0041OpenapiWckeyResp.from_dict(v0041_openapi_wckey_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041UpdateNodeMsg.md b/docs/V0041UpdateNodeMsg.md new file mode 100644 index 0000000..6312613 --- /dev/null +++ b/docs/V0041UpdateNodeMsg.md @@ -0,0 +1,42 @@ +# V0041UpdateNodeMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**cpu_bind** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**features** | **List[str]** | Available features | [optional] +**features_act** | **List[str]** | Currently active features | [optional] +**gres** | **str** | Generic resources | [optional] +**address** | **List[str]** | NodeAddr, used to establish a communication path | [optional] +**hostname** | **List[str]** | NodeHostname | [optional] +**name** | **List[str]** | NodeName | [optional] +**state** | **List[str]** | New state to assign to the node | [optional] +**reason** | **str** | Reason for node being DOWN or DRAINING | [optional] +**reason_uid** | **str** | User ID to associate with the reason (needed if user root is sending message) | [optional] +**resume_after** | [**V0041UpdateNodeMsgResumeAfter**](V0041UpdateNodeMsgResumeAfter.md) | | [optional] +**weight** | [**V0041UpdateNodeMsgWeight**](V0041UpdateNodeMsgWeight.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_update_node_msg import V0041UpdateNodeMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041UpdateNodeMsg from a JSON string +v0041_update_node_msg_instance = V0041UpdateNodeMsg.from_json(json) +# print the JSON string representation of the object +print(V0041UpdateNodeMsg.to_json()) + +# convert the object into a dict +v0041_update_node_msg_dict = v0041_update_node_msg_instance.to_dict() +# create an instance of V0041UpdateNodeMsg from a dict +v0041_update_node_msg_from_dict = V0041UpdateNodeMsg.from_dict(v0041_update_node_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041UpdateNodeMsgResumeAfter.md b/docs/V0041UpdateNodeMsgResumeAfter.md new file mode 100644 index 0000000..1970b0f --- /dev/null +++ b/docs/V0041UpdateNodeMsgResumeAfter.md @@ -0,0 +1,32 @@ +# V0041UpdateNodeMsgResumeAfter + +Number of seconds after which to automatically resume DOWN or DRAINED node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_update_node_msg_resume_after import V0041UpdateNodeMsgResumeAfter + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041UpdateNodeMsgResumeAfter from a JSON string +v0041_update_node_msg_resume_after_instance = V0041UpdateNodeMsgResumeAfter.from_json(json) +# print the JSON string representation of the object +print(V0041UpdateNodeMsgResumeAfter.to_json()) + +# convert the object into a dict +v0041_update_node_msg_resume_after_dict = v0041_update_node_msg_resume_after_instance.to_dict() +# create an instance of V0041UpdateNodeMsgResumeAfter from a dict +v0041_update_node_msg_resume_after_from_dict = V0041UpdateNodeMsgResumeAfter.from_dict(v0041_update_node_msg_resume_after_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0041UpdateNodeMsgWeight.md b/docs/V0041UpdateNodeMsgWeight.md new file mode 100644 index 0000000..a7c1c8c --- /dev/null +++ b/docs/V0041UpdateNodeMsgWeight.md @@ -0,0 +1,32 @@ +# V0041UpdateNodeMsgWeight + +Weight of the node for scheduling purposes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0041_update_node_msg_weight import V0041UpdateNodeMsgWeight + +# TODO update the JSON string below +json = "{}" +# create an instance of V0041UpdateNodeMsgWeight from a JSON string +v0041_update_node_msg_weight_instance = V0041UpdateNodeMsgWeight.from_json(json) +# print the JSON string representation of the object +print(V0041UpdateNodeMsgWeight.to_json()) + +# convert the object into a dict +v0041_update_node_msg_weight_dict = v0041_update_node_msg_weight_instance.to_dict() +# create an instance of V0041UpdateNodeMsgWeight from a dict +v0041_update_node_msg_weight_from_dict = V0041UpdateNodeMsgWeight.from_dict(v0041_update_node_msg_weight_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Account.md b/docs/V0042Account.md new file mode 100644 index 0000000..80173e2 --- /dev/null +++ b/docs/V0042Account.md @@ -0,0 +1,34 @@ +# V0042Account + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0042AssocShort]**](V0042AssocShort.md) | | [optional] +**coordinators** | [**List[V0042Coord]**](V0042Coord.md) | | [optional] +**description** | **str** | Arbitrary string describing the account | +**name** | **str** | Account name | +**organization** | **str** | Organization to which the account belongs | +**flags** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_account import V0042Account + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Account from a JSON string +v0042_account_instance = V0042Account.from_json(json) +# print the JSON string representation of the object +print(V0042Account.to_json()) + +# convert the object into a dict +v0042_account_dict = v0042_account_instance.to_dict() +# create an instance of V0042Account from a dict +v0042_account_from_dict = V0042Account.from_dict(v0042_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AccountShort.md b/docs/V0042AccountShort.md new file mode 100644 index 0000000..50142e6 --- /dev/null +++ b/docs/V0042AccountShort.md @@ -0,0 +1,30 @@ +# V0042AccountShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary string describing the account | [optional] +**organization** | **str** | Organization to which the account belongs | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_account_short import V0042AccountShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AccountShort from a JSON string +v0042_account_short_instance = V0042AccountShort.from_json(json) +# print the JSON string representation of the object +print(V0042AccountShort.to_json()) + +# convert the object into a dict +v0042_account_short_dict = v0042_account_short_instance.to_dict() +# create an instance of V0042AccountShort from a dict +v0042_account_short_from_dict = V0042AccountShort.from_dict(v0042_account_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Accounting.md b/docs/V0042Accounting.md new file mode 100644 index 0000000..6ddf67c --- /dev/null +++ b/docs/V0042Accounting.md @@ -0,0 +1,33 @@ +# V0042Accounting + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**V0044AccountingAllocated**](V0044AccountingAllocated.md) | | [optional] +**id** | **int** | Association ID or Workload characterization key ID | [optional] +**id_alt** | **int** | Alternate ID (not currently used) | [optional] +**start** | **int** | When the record was started (UNIX timestamp) | [optional] +**tres** | [**V0042Tres**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_accounting import V0042Accounting + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Accounting from a JSON string +v0042_accounting_instance = V0042Accounting.from_json(json) +# print the JSON string representation of the object +print(V0042Accounting.to_json()) + +# convert the object into a dict +v0042_accounting_dict = v0042_accounting_instance.to_dict() +# create an instance of V0042Accounting from a dict +v0042_accounting_from_dict = V0042Accounting.from_dict(v0042_accounting_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AccountsAddCond.md b/docs/V0042AccountsAddCond.md new file mode 100644 index 0000000..aeb5ac0 --- /dev/null +++ b/docs/V0042AccountsAddCond.md @@ -0,0 +1,31 @@ +# V0042AccountsAddCond + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | +**association** | [**V0042AssocRecSet**](V0042AssocRecSet.md) | | [optional] +**clusters** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_accounts_add_cond import V0042AccountsAddCond + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AccountsAddCond from a JSON string +v0042_accounts_add_cond_instance = V0042AccountsAddCond.from_json(json) +# print the JSON string representation of the object +print(V0042AccountsAddCond.to_json()) + +# convert the object into a dict +v0042_accounts_add_cond_dict = v0042_accounts_add_cond_instance.to_dict() +# create an instance of V0042AccountsAddCond from a dict +v0042_accounts_add_cond_from_dict = V0042AccountsAddCond.from_dict(v0042_accounts_add_cond_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AcctGatherEnergy.md b/docs/V0042AcctGatherEnergy.md new file mode 100644 index 0000000..5566611 --- /dev/null +++ b/docs/V0042AcctGatherEnergy.md @@ -0,0 +1,34 @@ +# V0042AcctGatherEnergy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average_watts** | **int** | Average power consumption, in watts | [optional] +**base_consumed_energy** | **int** | The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules | [optional] +**consumed_energy** | **int** | The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules | [optional] +**current_watts** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**previous_consumed_energy** | **int** | Previous value of consumed_energy | [optional] +**last_collected** | **int** | Time when energy data was last retrieved (UNIX timestamp) | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_acct_gather_energy import V0042AcctGatherEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AcctGatherEnergy from a JSON string +v0042_acct_gather_energy_instance = V0042AcctGatherEnergy.from_json(json) +# print the JSON string representation of the object +print(V0042AcctGatherEnergy.to_json()) + +# convert the object into a dict +v0042_acct_gather_energy_dict = v0042_acct_gather_energy_instance.to_dict() +# create an instance of V0042AcctGatherEnergy from a dict +v0042_acct_gather_energy_from_dict = V0042AcctGatherEnergy.from_dict(v0042_acct_gather_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Assoc.md b/docs/V0042Assoc.md new file mode 100644 index 0000000..c9e27d4 --- /dev/null +++ b/docs/V0042Assoc.md @@ -0,0 +1,45 @@ +# V0042Assoc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0042Accounting]**](V0042Accounting.md) | | [optional] +**account** | **str** | Account name | [optional] +**cluster** | **str** | Cluster name | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**default** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md) | | [optional] +**flags** | **List[str]** | | [optional] +**max** | [**V0042AssocMax**](V0042AssocMax.md) | | [optional] +**id** | **int** | Unique ID | [optional] +**is_default** | **bool** | Is default association for user | [optional] +**lineage** | **str** | Complete path up the hierarchy to the root association | [optional] +**min** | [**V0042AssocMin**](V0042AssocMin.md) | | [optional] +**parent_account** | **str** | Name of parent account | [optional] +**partition** | **str** | Partition name | [optional] +**priority** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**qos** | **List[str]** | List of QOS names | [optional] +**shares_raw** | **int** | Allocated shares used for fairshare calculation | [optional] +**user** | **str** | User name | + +## Example + +```python +from slurmrest_python.models.v0042_assoc import V0042Assoc + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Assoc from a JSON string +v0042_assoc_instance = V0042Assoc.from_json(json) +# print the JSON string representation of the object +print(V0042Assoc.to_json()) + +# convert the object into a dict +v0042_assoc_dict = v0042_assoc_instance.to_dict() +# create an instance of V0042Assoc from a dict +v0042_assoc_from_dict = V0042Assoc.from_dict(v0042_assoc_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMax.md b/docs/V0042AssocMax.md new file mode 100644 index 0000000..99cd03b --- /dev/null +++ b/docs/V0042AssocMax.md @@ -0,0 +1,31 @@ +# V0042AssocMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**V0042AssocMaxJobs**](V0042AssocMaxJobs.md) | | [optional] +**tres** | [**V0042AssocMaxTres**](V0042AssocMaxTres.md) | | [optional] +**per** | [**V0042AssocMaxPer**](V0042AssocMaxPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max import V0042AssocMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMax from a JSON string +v0042_assoc_max_instance = V0042AssocMax.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMax.to_json()) + +# convert the object into a dict +v0042_assoc_max_dict = v0042_assoc_max_instance.to_dict() +# create an instance of V0042AssocMax from a dict +v0042_assoc_max_from_dict = V0042AssocMax.from_dict(v0042_assoc_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxJobs.md b/docs/V0042AssocMaxJobs.md new file mode 100644 index 0000000..45b235d --- /dev/null +++ b/docs/V0042AssocMaxJobs.md @@ -0,0 +1,32 @@ +# V0042AssocMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0042AssocMaxJobsPer**](V0042AssocMaxJobsPer.md) | | [optional] +**active** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**accruing** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**total** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_jobs import V0042AssocMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxJobs from a JSON string +v0042_assoc_max_jobs_instance = V0042AssocMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxJobs.to_json()) + +# convert the object into a dict +v0042_assoc_max_jobs_dict = v0042_assoc_max_jobs_instance.to_dict() +# create an instance of V0042AssocMaxJobs from a dict +v0042_assoc_max_jobs_from_dict = V0042AssocMaxJobs.from_dict(v0042_assoc_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxJobsPer.md b/docs/V0042AssocMaxJobsPer.md new file mode 100644 index 0000000..3c6d064 --- /dev/null +++ b/docs/V0042AssocMaxJobsPer.md @@ -0,0 +1,32 @@ +# V0042AssocMaxJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**accruing** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**submitted** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**wall_clock** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_jobs_per import V0042AssocMaxJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxJobsPer from a JSON string +v0042_assoc_max_jobs_per_instance = V0042AssocMaxJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxJobsPer.to_json()) + +# convert the object into a dict +v0042_assoc_max_jobs_per_dict = v0042_assoc_max_jobs_per_instance.to_dict() +# create an instance of V0042AssocMaxJobsPer from a dict +v0042_assoc_max_jobs_per_from_dict = V0042AssocMaxJobsPer.from_dict(v0042_assoc_max_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxPer.md b/docs/V0042AssocMaxPer.md new file mode 100644 index 0000000..1a68491 --- /dev/null +++ b/docs/V0042AssocMaxPer.md @@ -0,0 +1,29 @@ +# V0042AssocMaxPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0042AssocMaxPerAccount**](V0042AssocMaxPerAccount.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_per import V0042AssocMaxPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxPer from a JSON string +v0042_assoc_max_per_instance = V0042AssocMaxPer.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxPer.to_json()) + +# convert the object into a dict +v0042_assoc_max_per_dict = v0042_assoc_max_per_instance.to_dict() +# create an instance of V0042AssocMaxPer from a dict +v0042_assoc_max_per_from_dict = V0042AssocMaxPer.from_dict(v0042_assoc_max_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxPerAccount.md b/docs/V0042AssocMaxPerAccount.md new file mode 100644 index 0000000..d2f5999 --- /dev/null +++ b/docs/V0042AssocMaxPerAccount.md @@ -0,0 +1,29 @@ +# V0042AssocMaxPerAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wall_clock** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_per_account import V0042AssocMaxPerAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxPerAccount from a JSON string +v0042_assoc_max_per_account_instance = V0042AssocMaxPerAccount.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxPerAccount.to_json()) + +# convert the object into a dict +v0042_assoc_max_per_account_dict = v0042_assoc_max_per_account_instance.to_dict() +# create an instance of V0042AssocMaxPerAccount from a dict +v0042_assoc_max_per_account_from_dict = V0042AssocMaxPerAccount.from_dict(v0042_assoc_max_per_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxTres.md b/docs/V0042AssocMaxTres.md new file mode 100644 index 0000000..6778411 --- /dev/null +++ b/docs/V0042AssocMaxTres.md @@ -0,0 +1,32 @@ +# V0042AssocMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**group** | [**V0042AssocMaxTresGroup**](V0042AssocMaxTresGroup.md) | | [optional] +**minutes** | [**V0042AssocMaxTresMinutes**](V0042AssocMaxTresMinutes.md) | | [optional] +**per** | [**V0042AssocMaxTresPer**](V0042AssocMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_tres import V0042AssocMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxTres from a JSON string +v0042_assoc_max_tres_instance = V0042AssocMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxTres.to_json()) + +# convert the object into a dict +v0042_assoc_max_tres_dict = v0042_assoc_max_tres_instance.to_dict() +# create an instance of V0042AssocMaxTres from a dict +v0042_assoc_max_tres_from_dict = V0042AssocMaxTres.from_dict(v0042_assoc_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxTresGroup.md b/docs/V0042AssocMaxTresGroup.md new file mode 100644 index 0000000..7bdb376 --- /dev/null +++ b/docs/V0042AssocMaxTresGroup.md @@ -0,0 +1,30 @@ +# V0042AssocMaxTresGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minutes** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**active** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_tres_group import V0042AssocMaxTresGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxTresGroup from a JSON string +v0042_assoc_max_tres_group_instance = V0042AssocMaxTresGroup.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxTresGroup.to_json()) + +# convert the object into a dict +v0042_assoc_max_tres_group_dict = v0042_assoc_max_tres_group_instance.to_dict() +# create an instance of V0042AssocMaxTresGroup from a dict +v0042_assoc_max_tres_group_from_dict = V0042AssocMaxTresGroup.from_dict(v0042_assoc_max_tres_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxTresMinutes.md b/docs/V0042AssocMaxTresMinutes.md new file mode 100644 index 0000000..a79a20c --- /dev/null +++ b/docs/V0042AssocMaxTresMinutes.md @@ -0,0 +1,30 @@ +# V0042AssocMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**per** | [**V0042QosLimitsMinTresPer**](V0042QosLimitsMinTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_tres_minutes import V0042AssocMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxTresMinutes from a JSON string +v0042_assoc_max_tres_minutes_instance = V0042AssocMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxTresMinutes.to_json()) + +# convert the object into a dict +v0042_assoc_max_tres_minutes_dict = v0042_assoc_max_tres_minutes_instance.to_dict() +# create an instance of V0042AssocMaxTresMinutes from a dict +v0042_assoc_max_tres_minutes_from_dict = V0042AssocMaxTresMinutes.from_dict(v0042_assoc_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMaxTresPer.md b/docs/V0042AssocMaxTresPer.md new file mode 100644 index 0000000..136c336 --- /dev/null +++ b/docs/V0042AssocMaxTresPer.md @@ -0,0 +1,30 @@ +# V0042AssocMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**node** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_max_tres_per import V0042AssocMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMaxTresPer from a JSON string +v0042_assoc_max_tres_per_instance = V0042AssocMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMaxTresPer.to_json()) + +# convert the object into a dict +v0042_assoc_max_tres_per_dict = v0042_assoc_max_tres_per_instance.to_dict() +# create an instance of V0042AssocMaxTresPer from a dict +v0042_assoc_max_tres_per_from_dict = V0042AssocMaxTresPer.from_dict(v0042_assoc_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocMin.md b/docs/V0042AssocMin.md new file mode 100644 index 0000000..2c7880e --- /dev/null +++ b/docs/V0042AssocMin.md @@ -0,0 +1,29 @@ +# V0042AssocMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_min import V0042AssocMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocMin from a JSON string +v0042_assoc_min_instance = V0042AssocMin.from_json(json) +# print the JSON string representation of the object +print(V0042AssocMin.to_json()) + +# convert the object into a dict +v0042_assoc_min_dict = v0042_assoc_min_instance.to_dict() +# create an instance of V0042AssocMin from a dict +v0042_assoc_min_from_dict = V0042AssocMin.from_dict(v0042_assoc_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocRecSet.md b/docs/V0042AssocRecSet.md new file mode 100644 index 0000000..0bc6c43 --- /dev/null +++ b/docs/V0042AssocRecSet.md @@ -0,0 +1,50 @@ +# V0042AssocRecSet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**defaultqos** | **str** | Default QOS | [optional] +**grpjobs** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**grpjobsaccrue** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**grpsubmitjobs** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**grptres** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**grptresmins** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**grptresrunmins** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**grpwall** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**maxjobs** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**maxjobsaccrue** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**maxsubmitjobs** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**maxtresminsperjob** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**maxtresrunmins** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**maxtresperjob** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**maxtrespernode** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**maxwalldurationperjob** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**minpriothresh** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**parent** | **str** | Name of parent account | [optional] +**priority** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**qoslevel** | **List[str]** | List of QOS names | [optional] +**fairshare** | **int** | Allocated shares used for fairshare calculation | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_rec_set import V0042AssocRecSet + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocRecSet from a JSON string +v0042_assoc_rec_set_instance = V0042AssocRecSet.from_json(json) +# print the JSON string representation of the object +print(V0042AssocRecSet.to_json()) + +# convert the object into a dict +v0042_assoc_rec_set_dict = v0042_assoc_rec_set_instance.to_dict() +# create an instance of V0042AssocRecSet from a dict +v0042_assoc_rec_set_from_dict = V0042AssocRecSet.from_dict(v0042_assoc_rec_set_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocSharesObjWrap.md b/docs/V0042AssocSharesObjWrap.md new file mode 100644 index 0000000..962a39c --- /dev/null +++ b/docs/V0042AssocSharesObjWrap.md @@ -0,0 +1,41 @@ +# V0042AssocSharesObjWrap + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Association ID | [optional] +**cluster** | **str** | Cluster name | [optional] +**name** | **str** | Share name | [optional] +**parent** | **str** | Parent name | [optional] +**partition** | **str** | Partition name | [optional] +**shares_normalized** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] +**shares** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**tres** | [**V0042AssocSharesObjWrapTres**](V0042AssocSharesObjWrapTres.md) | | [optional] +**effective_usage** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] +**usage_normalized** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] +**usage** | **int** | Measure of tresbillableunits usage | [optional] +**fairshare** | [**V0042AssocSharesObjWrapFairshare**](V0042AssocSharesObjWrapFairshare.md) | | [optional] +**type** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_shares_obj_wrap import V0042AssocSharesObjWrap + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocSharesObjWrap from a JSON string +v0042_assoc_shares_obj_wrap_instance = V0042AssocSharesObjWrap.from_json(json) +# print the JSON string representation of the object +print(V0042AssocSharesObjWrap.to_json()) + +# convert the object into a dict +v0042_assoc_shares_obj_wrap_dict = v0042_assoc_shares_obj_wrap_instance.to_dict() +# create an instance of V0042AssocSharesObjWrap from a dict +v0042_assoc_shares_obj_wrap_from_dict = V0042AssocSharesObjWrap.from_dict(v0042_assoc_shares_obj_wrap_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocSharesObjWrapFairshare.md b/docs/V0042AssocSharesObjWrapFairshare.md new file mode 100644 index 0000000..0a1aafa --- /dev/null +++ b/docs/V0042AssocSharesObjWrapFairshare.md @@ -0,0 +1,30 @@ +# V0042AssocSharesObjWrapFairshare + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factor** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] +**level** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_fairshare import V0042AssocSharesObjWrapFairshare + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocSharesObjWrapFairshare from a JSON string +v0042_assoc_shares_obj_wrap_fairshare_instance = V0042AssocSharesObjWrapFairshare.from_json(json) +# print the JSON string representation of the object +print(V0042AssocSharesObjWrapFairshare.to_json()) + +# convert the object into a dict +v0042_assoc_shares_obj_wrap_fairshare_dict = v0042_assoc_shares_obj_wrap_fairshare_instance.to_dict() +# create an instance of V0042AssocSharesObjWrapFairshare from a dict +v0042_assoc_shares_obj_wrap_fairshare_from_dict = V0042AssocSharesObjWrapFairshare.from_dict(v0042_assoc_shares_obj_wrap_fairshare_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocSharesObjWrapTres.md b/docs/V0042AssocSharesObjWrapTres.md new file mode 100644 index 0000000..02e92cb --- /dev/null +++ b/docs/V0042AssocSharesObjWrapTres.md @@ -0,0 +1,31 @@ +# V0042AssocSharesObjWrapTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**run_seconds** | [**List[V0042SharesUint64Tres]**](V0042SharesUint64Tres.md) | | [optional] +**group_minutes** | [**List[V0042SharesUint64Tres]**](V0042SharesUint64Tres.md) | | [optional] +**usage** | [**List[V0042SharesFloat128Tres]**](V0042SharesFloat128Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_tres import V0042AssocSharesObjWrapTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocSharesObjWrapTres from a JSON string +v0042_assoc_shares_obj_wrap_tres_instance = V0042AssocSharesObjWrapTres.from_json(json) +# print the JSON string representation of the object +print(V0042AssocSharesObjWrapTres.to_json()) + +# convert the object into a dict +v0042_assoc_shares_obj_wrap_tres_dict = v0042_assoc_shares_obj_wrap_tres_instance.to_dict() +# create an instance of V0042AssocSharesObjWrapTres from a dict +v0042_assoc_shares_obj_wrap_tres_from_dict = V0042AssocSharesObjWrapTres.from_dict(v0042_assoc_shares_obj_wrap_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042AssocShort.md b/docs/V0042AssocShort.md new file mode 100644 index 0000000..7f43f73 --- /dev/null +++ b/docs/V0042AssocShort.md @@ -0,0 +1,33 @@ +# V0042AssocShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account name | [optional] +**cluster** | **str** | Cluster name | [optional] +**partition** | **str** | Partition name | [optional] +**user** | **str** | User name | +**id** | **int** | Numeric association ID | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042AssocShort from a JSON string +v0042_assoc_short_instance = V0042AssocShort.from_json(json) +# print the JSON string representation of the object +print(V0042AssocShort.to_json()) + +# convert the object into a dict +v0042_assoc_short_dict = v0042_assoc_short_instance.to_dict() +# create an instance of V0042AssocShort from a dict +v0042_assoc_short_from_dict = V0042AssocShort.from_dict(v0042_assoc_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042BfExitFields.md b/docs/V0042BfExitFields.md new file mode 100644 index 0000000..956c112 --- /dev/null +++ b/docs/V0042BfExitFields.md @@ -0,0 +1,34 @@ +# V0042BfExitFields + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**bf_max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**bf_max_job_test** | **int** | Reached number of jobs allowed to be tested | [optional] +**bf_max_time** | **int** | Reached maximum allowed scheduler time | [optional] +**bf_node_space_size** | **int** | Reached table size limit | [optional] +**state_changed** | **int** | System state changed | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_bf_exit_fields import V0042BfExitFields + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042BfExitFields from a JSON string +v0042_bf_exit_fields_instance = V0042BfExitFields.from_json(json) +# print the JSON string representation of the object +print(V0042BfExitFields.to_json()) + +# convert the object into a dict +v0042_bf_exit_fields_dict = v0042_bf_exit_fields_instance.to_dict() +# create an instance of V0042BfExitFields from a dict +v0042_bf_exit_fields_from_dict = V0042BfExitFields.from_dict(v0042_bf_exit_fields_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ClusterRec.md b/docs/V0042ClusterRec.md new file mode 100644 index 0000000..0fb460d --- /dev/null +++ b/docs/V0042ClusterRec.md @@ -0,0 +1,36 @@ +# V0042ClusterRec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller** | [**V0041OpenapiSlurmdbdConfigRespClustersInnerController**](V0041OpenapiSlurmdbdConfigRespClustersInnerController.md) | | [optional] +**flags** | **List[str]** | | [optional] +**name** | **str** | ClusterName | [optional] +**nodes** | **str** | Node names | [optional] +**select_plugin** | **str** | | [optional] +**associations** | [**V0042ClusterRecAssociations**](V0042ClusterRecAssociations.md) | | [optional] +**rpc_version** | **int** | RPC version used in the cluster | [optional] +**tres** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_cluster_rec import V0042ClusterRec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ClusterRec from a JSON string +v0042_cluster_rec_instance = V0042ClusterRec.from_json(json) +# print the JSON string representation of the object +print(V0042ClusterRec.to_json()) + +# convert the object into a dict +v0042_cluster_rec_dict = v0042_cluster_rec_instance.to_dict() +# create an instance of V0042ClusterRec from a dict +v0042_cluster_rec_from_dict = V0042ClusterRec.from_dict(v0042_cluster_rec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ClusterRecAssociations.md b/docs/V0042ClusterRecAssociations.md new file mode 100644 index 0000000..f74043a --- /dev/null +++ b/docs/V0042ClusterRecAssociations.md @@ -0,0 +1,29 @@ +# V0042ClusterRecAssociations + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**root** | [**V0042AssocShort**](V0042AssocShort.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_cluster_rec_associations import V0042ClusterRecAssociations + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ClusterRecAssociations from a JSON string +v0042_cluster_rec_associations_instance = V0042ClusterRecAssociations.from_json(json) +# print the JSON string representation of the object +print(V0042ClusterRecAssociations.to_json()) + +# convert the object into a dict +v0042_cluster_rec_associations_dict = v0042_cluster_rec_associations_instance.to_dict() +# create an instance of V0042ClusterRecAssociations from a dict +v0042_cluster_rec_associations_from_dict = V0042ClusterRecAssociations.from_dict(v0042_cluster_rec_associations_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ControllerPing.md b/docs/V0042ControllerPing.md new file mode 100644 index 0000000..863f063 --- /dev/null +++ b/docs/V0042ControllerPing.md @@ -0,0 +1,34 @@ +# V0042ControllerPing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Target for ping | [optional] +**pinged** | **str** | Ping result | [optional] +**responding** | **bool** | If ping RPC responded with pong from controller | +**latency** | **int** | Number of microseconds it took to successfully ping or timeout | [optional] +**mode** | **str** | The operating mode of the responding slurmctld | [optional] +**primary** | **bool** | Is responding slurmctld the primary controller | + +## Example + +```python +from slurmrest_python.models.v0042_controller_ping import V0042ControllerPing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ControllerPing from a JSON string +v0042_controller_ping_instance = V0042ControllerPing.from_json(json) +# print the JSON string representation of the object +print(V0042ControllerPing.to_json()) + +# convert the object into a dict +v0042_controller_ping_dict = v0042_controller_ping_instance.to_dict() +# create an instance of V0042ControllerPing from a dict +v0042_controller_ping_from_dict = V0042ControllerPing.from_dict(v0042_controller_ping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Coord.md b/docs/V0042Coord.md new file mode 100644 index 0000000..0ac1d9c --- /dev/null +++ b/docs/V0042Coord.md @@ -0,0 +1,30 @@ +# V0042Coord + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | User name | +**direct** | **bool** | Indicates whether the coordinator was directly assigned to this account | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_coord import V0042Coord + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Coord from a JSON string +v0042_coord_instance = V0042Coord.from_json(json) +# print the JSON string representation of the object +print(V0042Coord.to_json()) + +# convert the object into a dict +v0042_coord_dict = v0042_coord_instance.to_dict() +# create an instance of V0042Coord from a dict +v0042_coord_from_dict = V0042Coord.from_dict(v0042_coord_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042CronEntry.md b/docs/V0042CronEntry.md new file mode 100644 index 0000000..fa876e2 --- /dev/null +++ b/docs/V0042CronEntry.md @@ -0,0 +1,37 @@ +# V0042CronEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flags** | **List[str]** | | [optional] +**minute** | **str** | Ranged string specifying eligible minute values (e.g. 0-10,50) | [optional] +**hour** | **str** | Ranged string specifying eligible hour values (e.g. 0-5,23) | [optional] +**day_of_month** | **str** | Ranged string specifying eligible day of month values (e.g. 0-10,29) | [optional] +**month** | **str** | Ranged string specifying eligible month values (e.g. 0-5,12) | [optional] +**day_of_week** | **str** | Ranged string specifying eligible day of week values (e.g.0-3,7) | [optional] +**specification** | **str** | Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week | [optional] +**command** | **str** | Command to run | [optional] +**line** | [**V0041JobDescMsgCrontabLine**](V0041JobDescMsgCrontabLine.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_cron_entry import V0042CronEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042CronEntry from a JSON string +v0042_cron_entry_instance = V0042CronEntry.from_json(json) +# print the JSON string representation of the object +print(V0042CronEntry.to_json()) + +# convert the object into a dict +v0042_cron_entry_dict = v0042_cron_entry_instance.to_dict() +# create an instance of V0042CronEntry from a dict +v0042_cron_entry_from_dict = V0042CronEntry.from_dict(v0042_cron_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Float64NoValStruct.md b/docs/V0042Float64NoValStruct.md new file mode 100644 index 0000000..e01c086 --- /dev/null +++ b/docs/V0042Float64NoValStruct.md @@ -0,0 +1,31 @@ +# V0042Float64NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Float64NoValStruct from a JSON string +v0042_float64_no_val_struct_instance = V0042Float64NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0042Float64NoValStruct.to_json()) + +# convert the object into a dict +v0042_float64_no_val_struct_dict = v0042_float64_no_val_struct_instance.to_dict() +# create an instance of V0042Float64NoValStruct from a dict +v0042_float64_no_val_struct_from_dict = V0042Float64NoValStruct.from_dict(v0042_float64_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Instance.md b/docs/V0042Instance.md new file mode 100644 index 0000000..d9f503c --- /dev/null +++ b/docs/V0042Instance.md @@ -0,0 +1,34 @@ +# V0042Instance + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster** | **str** | Cluster name | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**node_name** | **str** | NodeName | [optional] +**time** | [**V0041OpenapiSlurmdbdConfigRespInstancesInnerTime**](V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_instance import V0042Instance + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Instance from a JSON string +v0042_instance_instance = V0042Instance.from_json(json) +# print the JSON string representation of the object +print(V0042Instance.to_json()) + +# convert the object into a dict +v0042_instance_dict = v0042_instance_instance.to_dict() +# create an instance of V0042Instance from a dict +v0042_instance_from_dict = V0042Instance.from_dict(v0042_instance_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Job.md b/docs/V0042Job.md new file mode 100644 index 0000000..8650bf4 --- /dev/null +++ b/docs/V0042Job.md @@ -0,0 +1,74 @@ +# V0042Job + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account the job ran under | [optional] +**comment** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerComment**](V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md) | | [optional] +**allocation_nodes** | **int** | List of nodes allocated to the job | [optional] +**array** | [**V0042JobArray**](V0042JobArray.md) | | [optional] +**association** | [**V0042AssocShort**](V0042AssocShort.md) | | [optional] +**block** | **str** | The name of the block to be used (used with Blue Gene systems) | [optional] +**cluster** | **str** | Cluster name | [optional] +**constraints** | **str** | Feature(s) the job requested as a constraint | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**derived_exit_code** | [**V0042ProcessExitCodeVerbose**](V0042ProcessExitCodeVerbose.md) | | [optional] +**time** | [**V0042JobTime**](V0042JobTime.md) | | [optional] +**exit_code** | [**V0042ProcessExitCodeVerbose**](V0042ProcessExitCodeVerbose.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**flags** | **List[str]** | | [optional] +**group** | **str** | Group ID of the user that owns the job | [optional] +**het** | [**V0042JobHet**](V0042JobHet.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**name** | **str** | Job name | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mcs** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerMcs**](V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md) | | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**hold** | **bool** | Hold (true) or release (false) job | [optional] +**priority** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**qosreq** | **str** | Requested QOS | [optional] +**required** | [**V0042JobRequired**](V0042JobRequired.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the job | [optional] +**restart_cnt** | **int** | How many times this job has been requeued/restarted | [optional] +**reservation** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerReservation**](V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.md) | | [optional] +**script** | **str** | Job batch script; only the first component in a HetJob is populated or honored | [optional] +**stdin_expanded** | **str** | Job stdin with expanded fields | [optional] +**stdout_expanded** | **str** | Job stdout with expanded fields | [optional] +**stderr_expanded** | **str** | Job stderr with expanded fields | [optional] +**stdout** | **str** | Path to stdout file | [optional] +**stderr** | **str** | Path to stderr file | [optional] +**stdin** | **str** | Path to stdin file | [optional] +**state** | [**V0042JobState**](V0042JobState.md) | | [optional] +**steps** | [**List[V0042Step]**](V0042Step.md) | | [optional] +**submit_line** | **str** | Command used to submit the job | [optional] +**tres** | [**V0042JobTres**](V0042JobTres.md) | | [optional] +**used_gres** | **str** | Generic resources used by job | [optional] +**user** | **str** | User that owns the job | [optional] +**wckey** | [**V0042WckeyTagStruct**](V0042WckeyTagStruct.md) | | [optional] +**working_directory** | **str** | Path to current working directory | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job import V0042Job + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Job from a JSON string +v0042_job_instance = V0042Job.from_json(json) +# print the JSON string representation of the object +print(V0042Job.to_json()) + +# convert the object into a dict +v0042_job_dict = v0042_job_instance.to_dict() +# create an instance of V0042Job from a dict +v0042_job_from_dict = V0042Job.from_dict(v0042_job_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobAllocReq.md b/docs/V0042JobAllocReq.md new file mode 100644 index 0000000..86aaf29 --- /dev/null +++ b/docs/V0042JobAllocReq.md @@ -0,0 +1,30 @@ +# V0042JobAllocReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hetjob** | [**List[V0042JobDescMsg]**](V0042JobDescMsg.md) | | [optional] +**job** | [**V0042JobDescMsg**](V0042JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_alloc_req import V0042JobAllocReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobAllocReq from a JSON string +v0042_job_alloc_req_instance = V0042JobAllocReq.from_json(json) +# print the JSON string representation of the object +print(V0042JobAllocReq.to_json()) + +# convert the object into a dict +v0042_job_alloc_req_dict = v0042_job_alloc_req_instance.to_dict() +# create an instance of V0042JobAllocReq from a dict +v0042_job_alloc_req_from_dict = V0042JobAllocReq.from_dict(v0042_job_alloc_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobArray.md b/docs/V0042JobArray.md new file mode 100644 index 0000000..ce96a5b --- /dev/null +++ b/docs/V0042JobArray.md @@ -0,0 +1,32 @@ +# V0042JobArray + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID of job array, or 0 if N/A | [optional] +**limits** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits**](V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md) | | [optional] +**task_id** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**task** | **str** | String expression of task IDs in this record | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_array import V0042JobArray + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobArray from a JSON string +v0042_job_array_instance = V0042JobArray.from_json(json) +# print the JSON string representation of the object +print(V0042JobArray.to_json()) + +# convert the object into a dict +v0042_job_array_dict = v0042_job_array_instance.to_dict() +# create an instance of V0042JobArray from a dict +v0042_job_array_from_dict = V0042JobArray.from_dict(v0042_job_array_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobArrayResponseMsgEntry.md b/docs/V0042JobArrayResponseMsgEntry.md new file mode 100644 index 0000000..c8b4775 --- /dev/null +++ b/docs/V0042JobArrayResponseMsgEntry.md @@ -0,0 +1,33 @@ +# V0042JobArrayResponseMsgEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID for updated job | [optional] +**step_id** | **str** | Step ID for updated job | [optional] +**error** | **str** | Verbose update status or error | [optional] +**error_code** | **int** | Verbose update status or error | [optional] +**why** | **str** | Update response message | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_array_response_msg_entry import V0042JobArrayResponseMsgEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobArrayResponseMsgEntry from a JSON string +v0042_job_array_response_msg_entry_instance = V0042JobArrayResponseMsgEntry.from_json(json) +# print the JSON string representation of the object +print(V0042JobArrayResponseMsgEntry.to_json()) + +# convert the object into a dict +v0042_job_array_response_msg_entry_dict = v0042_job_array_response_msg_entry_instance.to_dict() +# create an instance of V0042JobArrayResponseMsgEntry from a dict +v0042_job_array_response_msg_entry_from_dict = V0042JobArrayResponseMsgEntry.from_dict(v0042_job_array_response_msg_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobDescMsg.md b/docs/V0042JobDescMsg.md new file mode 100644 index 0000000..b5b5047 --- /dev/null +++ b/docs/V0042JobDescMsg.md @@ -0,0 +1,143 @@ +# V0042JobDescMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**account_gather_frequency** | **str** | Job accounting and profiling sampling intervals in seconds | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocation_node_list** | **str** | Local node making the resource allocation | [optional] +**allocation_node_port** | **int** | Port to send allocation confirmation to | [optional] +**argv** | **List[str]** | | [optional] +**array** | **str** | Job array index value specification | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**begin_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**flags** | **List[str]** | | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**clusters** | **str** | Clusters that a federated job can run on | [optional] +**cluster_constraint** | **str** | Required features that a federated cluster must have to have a sibling job submitted to it | [optional] +**comment** | **str** | Arbitrary comment made by user | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**core_specification** | **int** | Specialized core count | [optional] +**thread_specification** | **int** | Specialized thread count | [optional] +**cpu_binding** | **str** | Method for binding tasks to allocated CPUs | [optional] +**cpu_binding_flags** | **List[str]** | | [optional] +**cpu_frequency** | **str** | Requested CPU frequency range <p1>[-p2][:p3] | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**crontab** | [**V0042CronEntry**](V0042CronEntry.md) | | [optional] +**deadline** | **int** | Latest time that the job may start (UNIX timestamp) | [optional] +**delay_boot** | **int** | Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**end_time** | **int** | Expected end time (UNIX timestamp) | [optional] +**environment** | **List[str]** | | [optional] +**rlimits** | [**V0042JobDescMsgRlimits**](V0042JobDescMsgRlimits.md) | | [optional] +**excluded_nodes** | **List[str]** | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**constraints** | **str** | Comma separated list of features that are required | [optional] +**group_id** | **str** | Group ID of the user that owns the job | [optional] +**hetjob_group** | **int** | Unique sequence number applied to this component of the heterogeneous job | [optional] +**immediate** | **bool** | If true, exit if resources are not available within the time period specified | [optional] +**job_id** | **int** | Job ID | [optional] +**kill_on_node_fail** | **bool** | If true, kill job on node failure | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mail_type** | **List[str]** | | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_binding** | **str** | Binding map for map/mask_cpu | [optional] +**memory_binding_type** | **List[str]** | | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for job step | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks** | **int** | Number of tasks | [optional] +**oom_kill_step** | **int** | Kill whole step in case of OOM in one of the tasks | [optional] +**open_mode** | **List[str]** | | [optional] +**reserve_ports** | **int** | Port to send various notification msg to | [optional] +**overcommit** | **bool** | Overcommit resources | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**distribution_plane_size** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**power_flags** | **List[object]** | | [optional] +**prefer** | **str** | Comma separated list of features that are preferred but not required | [optional] +**hold** | **bool** | Hold (true) or release (false) job | [optional] +**priority** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**profile** | **List[str]** | | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **List[str]** | | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**reservation** | **str** | Name of reservation to use | [optional] +**script** | **str** | Job batch script; only the first component in a HetJob is populated or honored | [optional] +**shared** | **List[str]** | | [optional] +**site_factor** | **int** | Site-specific priority factor | [optional] +**spank_environment** | **List[str]** | | [optional] +**distribution** | **str** | Layout | [optional] +**time_limit** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**time_minimum** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma separated list of TRES=# values to be allocated for every job | [optional] +**tres_per_node** | **str** | Comma separated list of TRES=# values to be allocated for every node | [optional] +**tres_per_socket** | **str** | Comma separated list of TRES=# values to be allocated for every socket | [optional] +**tres_per_task** | **str** | Comma separated list of TRES=# values to be allocated for every task | [optional] +**user_id** | **str** | User ID that owns the job | [optional] +**wait_all_nodes** | **bool** | If true, wait to start until after all nodes have booted | [optional] +**kill_warning_flags** | **List[str]** | | [optional] +**kill_warning_signal** | **str** | Signal to send when approaching end time (e.g. \"10\" or \"USR1\") | [optional] +**kill_warning_delay** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] +**cpus_per_task** | **int** | Number of CPUs required by each task | [optional] +**minimum_cpus** | **int** | Minimum number of CPUs required | [optional] +**maximum_cpus** | **int** | Maximum number of CPUs required | [optional] +**nodes** | **str** | Node count range specification (e.g. 1-15:4) | [optional] +**minimum_nodes** | **int** | Minimum node count | [optional] +**maximum_nodes** | **int** | Maximum node count | [optional] +**minimum_boards_per_node** | **int** | Boards per node required | [optional] +**minimum_sockets_per_board** | **int** | Sockets per board required | [optional] +**sockets_per_node** | **int** | Sockets per node required | [optional] +**threads_per_core** | **int** | Threads per core required | [optional] +**tasks_per_node** | **int** | Number of tasks to invoke on each node | [optional] +**tasks_per_socket** | **int** | Number of tasks to invoke on each socket | [optional] +**tasks_per_core** | **int** | Number of tasks to invoke on each core | [optional] +**tasks_per_board** | **int** | Number of tasks to invoke on each board | [optional] +**ntasks_per_tres** | **int** | Number of tasks that can access each GPU | [optional] +**minimum_cpus_per_node** | **int** | Minimum number of CPUs per node | [optional] +**memory_per_cpu** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**temporary_disk_per_node** | **int** | Minimum tmp disk space required per node | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**required_switches** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**segment_size** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**wait_for_switch** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**x11** | **List[str]** | | [optional] +**x11_magic_cookie** | **str** | Magic cookie for X11 forwarding | [optional] +**x11_target_host** | **str** | Hostname or UNIX socket if x11_target_port=0 | [optional] +**x11_target_port** | **int** | TCP port | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobDescMsg from a JSON string +v0042_job_desc_msg_instance = V0042JobDescMsg.from_json(json) +# print the JSON string representation of the object +print(V0042JobDescMsg.to_json()) + +# convert the object into a dict +v0042_job_desc_msg_dict = v0042_job_desc_msg_instance.to_dict() +# create an instance of V0042JobDescMsg from a dict +v0042_job_desc_msg_from_dict = V0042JobDescMsg.from_dict(v0042_job_desc_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobDescMsgRlimits.md b/docs/V0042JobDescMsgRlimits.md new file mode 100644 index 0000000..e358518 --- /dev/null +++ b/docs/V0042JobDescMsgRlimits.md @@ -0,0 +1,38 @@ +# V0042JobDescMsgRlimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**fsize** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**data** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**stack** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**core** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**rss** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**nproc** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**nofile** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**memlock** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**var_as** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_desc_msg_rlimits import V0042JobDescMsgRlimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobDescMsgRlimits from a JSON string +v0042_job_desc_msg_rlimits_instance = V0042JobDescMsgRlimits.from_json(json) +# print the JSON string representation of the object +print(V0042JobDescMsgRlimits.to_json()) + +# convert the object into a dict +v0042_job_desc_msg_rlimits_dict = v0042_job_desc_msg_rlimits_instance.to_dict() +# create an instance of V0042JobDescMsgRlimits from a dict +v0042_job_desc_msg_rlimits_from_dict = V0042JobDescMsgRlimits.from_dict(v0042_job_desc_msg_rlimits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobHet.md b/docs/V0042JobHet.md new file mode 100644 index 0000000..347cb2f --- /dev/null +++ b/docs/V0042JobHet.md @@ -0,0 +1,30 @@ +# V0042JobHet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Heterogeneous job ID, if applicable | [optional] +**job_offset** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_het import V0042JobHet + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobHet from a JSON string +v0042_job_het_instance = V0042JobHet.from_json(json) +# print the JSON string representation of the object +print(V0042JobHet.to_json()) + +# convert the object into a dict +v0042_job_het_dict = v0042_job_het_instance.to_dict() +# create an instance of V0042JobHet from a dict +v0042_job_het_from_dict = V0042JobHet.from_dict(v0042_job_het_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobInfo.md b/docs/V0042JobInfo.md new file mode 100644 index 0000000..098bc71 --- /dev/null +++ b/docs/V0042JobInfo.md @@ -0,0 +1,156 @@ +# V0042JobInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**accrue_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocating_node** | **str** | Local node making the resource allocation | [optional] +**array_job_id** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**array_task_id** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**array_max_tasks** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**array_task_string** | **str** | String expression of task IDs in this record | [optional] +**association_id** | **int** | Unique identifier for the association | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**batch_flag** | **bool** | True if batch job | [optional] +**batch_host** | **str** | Name of host running batch script | [optional] +**flags** | **List[str]** | | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**burst_buffer_state** | **str** | Burst buffer state details | [optional] +**cluster** | **str** | Cluster name | [optional] +**cluster_features** | **str** | List of required cluster features | [optional] +**command** | **str** | Executed command | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**core_spec** | **int** | Specialized core count | [optional] +**thread_spec** | **int** | Specialized thread count | [optional] +**cores_per_socket** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**billable_tres** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] +**cpus_per_task** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**cpu_frequency_minimum** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**cpu_frequency_maximum** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**cpu_frequency_governor** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**cron** | **str** | Time specification for scrontab job | [optional] +**deadline** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**delay_boot** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**derived_exit_code** | [**V0042ProcessExitCodeVerbose**](V0042ProcessExitCodeVerbose.md) | | [optional] +**eligible_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**end_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**excluded_nodes** | **str** | Comma separated list of nodes that may not be used | [optional] +**exit_code** | [**V0042ProcessExitCodeVerbose**](V0042ProcessExitCodeVerbose.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**features** | **str** | Comma separated list of features that are required | [optional] +**federation_origin** | **str** | Origin cluster's name (when using federation) | [optional] +**federation_siblings_active** | **str** | Active sibling job names | [optional] +**federation_siblings_viable** | **str** | Viable sibling job names | [optional] +**gres_detail** | **List[str]** | | [optional] +**group_id** | **int** | Group ID of the user that owns the job | [optional] +**group_name** | **str** | Group name of the user that owns the job | [optional] +**het_job_id** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**het_job_id_set** | **str** | Job ID range for all heterogeneous job components | [optional] +**het_job_offset** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**job_resources** | [**V0042JobRes**](V0042JobRes.md) | | [optional] +**job_size_str** | **List[str]** | | [optional] +**job_state** | **List[str]** | | [optional] +**last_sched_evaluation** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mail_type** | **List[str]** | | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**max_cpus** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**max_nodes** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for the job | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks_per_core** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**tasks_per_tres** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**tasks_per_node** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**tasks_per_socket** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**tasks_per_board** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**cpus** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**node_count** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**tasks** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**prefer** | **str** | Feature(s) the job requested but that are not required | [optional] +**memory_per_cpu** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**minimum_cpus_per_node** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**minimum_tmp_disk_per_node** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**power** | [**V0041OpenapiJobInfoRespJobsInnerPower**](V0041OpenapiJobInfoRespJobsInnerPower.md) | | [optional] +**preempt_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**preemptable_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**pre_sus_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**hold** | **bool** | Hold (true) or release (false) job | [optional] +**priority** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**priority_by_partition** | [**List[V0042PartPrio]**](V0042PartPrio.md) | | [optional] +**profile** | **List[str]** | | [optional] +**qos** | **str** | Quality of Service assigned to the job, if pending the QOS requested | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **str** | Comma separated list of required nodes | [optional] +**required_switches** | **int** | Maximum number of switches | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**resize_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**restart_cnt** | **int** | Number of job restarts | [optional] +**resv_name** | **str** | Name of reservation to use | [optional] +**scheduled_nodes** | **str** | List of nodes scheduled to be used for the job | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**shared** | **List[str]** | | [optional] +**sockets_per_board** | **int** | Number of sockets per board required | [optional] +**sockets_per_node** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**start_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**state_description** | **str** | Optional details for state_reason | [optional] +**state_reason** | **str** | Reason for current Pending or Failed state | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**submit_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**suspend_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**system_comment** | **str** | Arbitrary comment from slurmctld | [optional] +**time_limit** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**time_minimum** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**threads_per_core** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma separated list of TRES=# values to be allocated per job | [optional] +**tres_per_node** | **str** | Comma separated list of TRES=# values to be allocated per node | [optional] +**tres_per_socket** | **str** | Comma separated list of TRES=# values to be allocated per socket | [optional] +**tres_per_task** | **str** | Comma separated list of TRES=# values to be allocated per task | [optional] +**tres_req_str** | **str** | TRES requested by the job | [optional] +**tres_alloc_str** | **str** | TRES used by the job | [optional] +**user_id** | **int** | User ID that owns the job | [optional] +**user_name** | **str** | User name that owns the job | [optional] +**maximum_switch_wait_time** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_info import V0042JobInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobInfo from a JSON string +v0042_job_info_instance = V0042JobInfo.from_json(json) +# print the JSON string representation of the object +print(V0042JobInfo.to_json()) + +# convert the object into a dict +v0042_job_info_dict = v0042_job_info_instance.to_dict() +# create an instance of V0042JobInfo from a dict +v0042_job_info_from_dict = V0042JobInfo.from_dict(v0042_job_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobRequired.md b/docs/V0042JobRequired.md new file mode 100644 index 0000000..fe04f5c --- /dev/null +++ b/docs/V0042JobRequired.md @@ -0,0 +1,31 @@ +# V0042JobRequired + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus** | **int** | Minimum number of CPUs required | [optional] +**memory_per_cpu** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_required import V0042JobRequired + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobRequired from a JSON string +v0042_job_required_instance = V0042JobRequired.from_json(json) +# print the JSON string representation of the object +print(V0042JobRequired.to_json()) + +# convert the object into a dict +v0042_job_required_dict = v0042_job_required_instance.to_dict() +# create an instance of V0042JobRequired from a dict +v0042_job_required_from_dict = V0042JobRequired.from_dict(v0042_job_required_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobRes.md b/docs/V0042JobRes.md new file mode 100644 index 0000000..87598a4 --- /dev/null +++ b/docs/V0042JobRes.md @@ -0,0 +1,32 @@ +# V0042JobRes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**select_type** | **List[str]** | | +**nodes** | [**V0042JobResNodes**](V0042JobResNodes.md) | | [optional] +**cpus** | **int** | Number of allocated CPUs | +**threads_per_core** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0042_job_res import V0042JobRes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobRes from a JSON string +v0042_job_res_instance = V0042JobRes.from_json(json) +# print the JSON string representation of the object +print(V0042JobRes.to_json()) + +# convert the object into a dict +v0042_job_res_dict = v0042_job_res_instance.to_dict() +# create an instance of V0042JobRes from a dict +v0042_job_res_from_dict = V0042JobRes.from_dict(v0042_job_res_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobResCore.md b/docs/V0042JobResCore.md new file mode 100644 index 0000000..25a7b39 --- /dev/null +++ b/docs/V0042JobResCore.md @@ -0,0 +1,30 @@ +# V0042JobResCore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**status** | **List[str]** | | + +## Example + +```python +from slurmrest_python.models.v0042_job_res_core import V0042JobResCore + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobResCore from a JSON string +v0042_job_res_core_instance = V0042JobResCore.from_json(json) +# print the JSON string representation of the object +print(V0042JobResCore.to_json()) + +# convert the object into a dict +v0042_job_res_core_dict = v0042_job_res_core_instance.to_dict() +# create an instance of V0042JobResCore from a dict +v0042_job_res_core_from_dict = V0042JobResCore.from_dict(v0042_job_res_core_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobResNode.md b/docs/V0042JobResNode.md new file mode 100644 index 0000000..8723b0e --- /dev/null +++ b/docs/V0042JobResNode.md @@ -0,0 +1,33 @@ +# V0042JobResNode + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Node index | +**name** | **str** | Node name | +**cpus** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md) | | [optional] +**memory** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md) | | [optional] +**sockets** | [**List[V0042JobResSocket]**](V0042JobResSocket.md) | | + +## Example + +```python +from slurmrest_python.models.v0042_job_res_node import V0042JobResNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobResNode from a JSON string +v0042_job_res_node_instance = V0042JobResNode.from_json(json) +# print the JSON string representation of the object +print(V0042JobResNode.to_json()) + +# convert the object into a dict +v0042_job_res_node_dict = v0042_job_res_node_instance.to_dict() +# create an instance of V0042JobResNode from a dict +v0042_job_res_node_from_dict = V0042JobResNode.from_dict(v0042_job_res_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobResNodes.md b/docs/V0042JobResNodes.md new file mode 100644 index 0000000..5daa7a8 --- /dev/null +++ b/docs/V0042JobResNodes.md @@ -0,0 +1,33 @@ +# V0042JobResNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of allocated nodes | [optional] +**select_type** | **List[str]** | | [optional] +**list** | **str** | Node(s) allocated to the job | [optional] +**whole** | **bool** | Whether whole nodes were allocated | [optional] +**allocation** | [**List[V0042JobResNode]**](V0042JobResNode.md) | Job resources for a node | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_res_nodes import V0042JobResNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobResNodes from a JSON string +v0042_job_res_nodes_instance = V0042JobResNodes.from_json(json) +# print the JSON string representation of the object +print(V0042JobResNodes.to_json()) + +# convert the object into a dict +v0042_job_res_nodes_dict = v0042_job_res_nodes_instance.to_dict() +# create an instance of V0042JobResNodes from a dict +v0042_job_res_nodes_from_dict = V0042JobResNodes.from_dict(v0042_job_res_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobResSocket.md b/docs/V0042JobResSocket.md new file mode 100644 index 0000000..cf1108f --- /dev/null +++ b/docs/V0042JobResSocket.md @@ -0,0 +1,30 @@ +# V0042JobResSocket + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**cores** | [**List[V0042JobResCore]**](V0042JobResCore.md) | | + +## Example + +```python +from slurmrest_python.models.v0042_job_res_socket import V0042JobResSocket + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobResSocket from a JSON string +v0042_job_res_socket_instance = V0042JobResSocket.from_json(json) +# print the JSON string representation of the object +print(V0042JobResSocket.to_json()) + +# convert the object into a dict +v0042_job_res_socket_dict = v0042_job_res_socket_instance.to_dict() +# create an instance of V0042JobResSocket from a dict +v0042_job_res_socket_from_dict = V0042JobResSocket.from_dict(v0042_job_res_socket_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobState.md b/docs/V0042JobState.md new file mode 100644 index 0000000..e35bed5 --- /dev/null +++ b/docs/V0042JobState.md @@ -0,0 +1,30 @@ +# V0042JobState + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current** | **List[str]** | | [optional] +**reason** | **str** | Reason for previous Pending or Failed state | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_state import V0042JobState + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobState from a JSON string +v0042_job_state_instance = V0042JobState.from_json(json) +# print the JSON string representation of the object +print(V0042JobState.to_json()) + +# convert the object into a dict +v0042_job_state_dict = v0042_job_state_instance.to_dict() +# create an instance of V0042JobState from a dict +v0042_job_state_from_dict = V0042JobState.from_dict(v0042_job_state_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobSubmitReq.md b/docs/V0042JobSubmitReq.md new file mode 100644 index 0000000..eac9195 --- /dev/null +++ b/docs/V0042JobSubmitReq.md @@ -0,0 +1,31 @@ +# V0042JobSubmitReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**script** | **str** | Job batch script contents; Same as the script field in jobs[0] or job. | [optional] +**jobs** | [**List[V0042JobDescMsg]**](V0042JobDescMsg.md) | | [optional] +**job** | [**V0042JobDescMsg**](V0042JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_submit_req import V0042JobSubmitReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobSubmitReq from a JSON string +v0042_job_submit_req_instance = V0042JobSubmitReq.from_json(json) +# print the JSON string representation of the object +print(V0042JobSubmitReq.to_json()) + +# convert the object into a dict +v0042_job_submit_req_dict = v0042_job_submit_req_instance.to_dict() +# create an instance of V0042JobSubmitReq from a dict +v0042_job_submit_req_from_dict = V0042JobSubmitReq.from_dict(v0042_job_submit_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobTime.md b/docs/V0042JobTime.md new file mode 100644 index 0000000..66d3801 --- /dev/null +++ b/docs/V0042JobTime.md @@ -0,0 +1,39 @@ +# V0042JobTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**eligible** | **int** | Time when the job became eligible to run (UNIX timestamp) | [optional] +**end** | **int** | End time (UNIX timestamp) | [optional] +**planned** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**start** | **int** | Time execution began (UNIX timestamp) | [optional] +**submission** | **int** | Time when the job was submitted (UNIX timestamp) | [optional] +**suspended** | **int** | Total time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md) | | [optional] +**limit** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_time import V0042JobTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobTime from a JSON string +v0042_job_time_instance = V0042JobTime.from_json(json) +# print the JSON string representation of the object +print(V0042JobTime.to_json()) + +# convert the object into a dict +v0042_job_time_dict = v0042_job_time_instance.to_dict() +# create an instance of V0042JobTime from a dict +v0042_job_time_from_dict = V0042JobTime.from_dict(v0042_job_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042JobTres.md b/docs/V0042JobTres.md new file mode 100644 index 0000000..0e507b7 --- /dev/null +++ b/docs/V0042JobTres.md @@ -0,0 +1,30 @@ +# V0042JobTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**requested** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_job_tres import V0042JobTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042JobTres from a JSON string +v0042_job_tres_instance = V0042JobTres.from_json(json) +# print the JSON string representation of the object +print(V0042JobTres.to_json()) + +# convert the object into a dict +v0042_job_tres_dict = v0042_job_tres_instance.to_dict() +# create an instance of V0042JobTres from a dict +v0042_job_tres_from_dict = V0042JobTres.from_dict(v0042_job_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042KillJobsMsg.md b/docs/V0042KillJobsMsg.md new file mode 100644 index 0000000..75435b1 --- /dev/null +++ b/docs/V0042KillJobsMsg.md @@ -0,0 +1,41 @@ +# V0042KillJobsMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Filter jobs to a specific account | [optional] +**flags** | **List[str]** | | [optional] +**job_name** | **str** | Filter jobs to a specific name | [optional] +**jobs** | **List[str]** | | [optional] +**partition** | **str** | Filter jobs to a specific partition | [optional] +**qos** | **str** | Filter jobs to a specific QOS | [optional] +**reservation** | **str** | Filter jobs to a specific reservation | [optional] +**signal** | **str** | Signal to send to jobs | [optional] +**job_state** | **List[str]** | | [optional] +**user_id** | **str** | Filter jobs to a specific numeric user id | [optional] +**user_name** | **str** | Filter jobs to a specific user name | [optional] +**wckey** | **str** | Filter jobs to a specific wckey | [optional] +**nodes** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_kill_jobs_msg import V0042KillJobsMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042KillJobsMsg from a JSON string +v0042_kill_jobs_msg_instance = V0042KillJobsMsg.from_json(json) +# print the JSON string representation of the object +print(V0042KillJobsMsg.to_json()) + +# convert the object into a dict +v0042_kill_jobs_msg_dict = v0042_kill_jobs_msg_instance.to_dict() +# create an instance of V0042KillJobsMsg from a dict +v0042_kill_jobs_msg_from_dict = V0042KillJobsMsg.from_dict(v0042_kill_jobs_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042KillJobsRespJob.md b/docs/V0042KillJobsRespJob.md new file mode 100644 index 0000000..0862394 --- /dev/null +++ b/docs/V0042KillJobsRespJob.md @@ -0,0 +1,32 @@ +# V0042KillJobsRespJob + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**V0041OpenapiKillJobsRespStatusInnerError**](V0041OpenapiKillJobsRespStatusInnerError.md) | | [optional] +**step_id** | **str** | Job or Step ID that signaling failed | +**job_id** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | +**federation** | [**V0041OpenapiKillJobsRespStatusInnerFederation**](V0041OpenapiKillJobsRespStatusInnerFederation.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_kill_jobs_resp_job import V0042KillJobsRespJob + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042KillJobsRespJob from a JSON string +v0042_kill_jobs_resp_job_instance = V0042KillJobsRespJob.from_json(json) +# print the JSON string representation of the object +print(V0042KillJobsRespJob.to_json()) + +# convert the object into a dict +v0042_kill_jobs_resp_job_dict = v0042_kill_jobs_resp_job_instance.to_dict() +# create an instance of V0042KillJobsRespJob from a dict +v0042_kill_jobs_resp_job_from_dict = V0042KillJobsRespJob.from_dict(v0042_kill_jobs_resp_job_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042License.md b/docs/V0042License.md new file mode 100644 index 0000000..624d9d4 --- /dev/null +++ b/docs/V0042License.md @@ -0,0 +1,37 @@ +# V0042License + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**license_name** | **str** | Name of the license | [optional] +**total** | **int** | Total number of licenses present | [optional] +**used** | **int** | Number of licenses in use | [optional] +**free** | **int** | Number of licenses currently available | [optional] +**remote** | **bool** | Indicates whether licenses are served by the database | [optional] +**reserved** | **int** | Number of licenses reserved | [optional] +**last_consumed** | **int** | Last known number of licenses that were consumed in the license manager (Remote Only) | [optional] +**last_deficit** | **int** | Number of \"missing licenses\" from the cluster's perspective | [optional] +**last_update** | **int** | When the license information was last updated (UNIX Timestamp) | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_license import V0042License + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042License from a JSON string +v0042_license_instance = V0042License.from_json(json) +# print the JSON string representation of the object +print(V0042License.to_json()) + +# convert the object into a dict +v0042_license_dict = v0042_license_instance.to_dict() +# create an instance of V0042License from a dict +v0042_license_from_dict = V0042License.from_dict(v0042_license_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Node.md b/docs/V0042Node.md new file mode 100644 index 0000000..e6c1887 --- /dev/null +++ b/docs/V0042Node.md @@ -0,0 +1,85 @@ +# V0042Node + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architecture** | **str** | Computer architecture | [optional] +**burstbuffer_network_address** | **str** | Alternate network path to be used for sbcast network traffic | [optional] +**boards** | **int** | Number of Baseboards in nodes with a baseboard controller | [optional] +**boot_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**cluster_name** | **str** | Cluster name (only set in federated environments) | [optional] +**cores** | **int** | Number of cores in a single physical processor socket | [optional] +**specialized_cores** | **int** | Number of cores reserved for system use | [optional] +**cpu_binding** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**cpu_load** | **int** | CPU load as reported by the OS | [optional] +**free_mem** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**cpus** | **int** | Total CPUs, including cores and threads | [optional] +**effective_cpus** | **int** | Number of effective CPUs (excluding specialized CPUs) | [optional] +**specialized_cpus** | **str** | Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd | [optional] +**energy** | [**V0042AcctGatherEnergy**](V0042AcctGatherEnergy.md) | | [optional] +**external_sensors** | **object** | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**power** | **object** | | [optional] +**features** | **List[str]** | | [optional] +**active_features** | **List[str]** | | [optional] +**gpu_spec** | **str** | CPU cores reserved for jobs that also use a GPU | [optional] +**gres** | **str** | Generic resources | [optional] +**gres_drained** | **str** | Drained generic resources | [optional] +**gres_used** | **str** | Generic resources currently in use | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**last_busy** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label | [optional] +**specialized_memory** | **int** | Combined memory limit, in MB, for Slurm compute node daemons | [optional] +**name** | **str** | NodeName | [optional] +**next_state_after_reboot** | **List[str]** | | [optional] +**address** | **str** | NodeAddr, used to establish a communication path | [optional] +**hostname** | **str** | NodeHostname | [optional] +**state** | **List[str]** | | [optional] +**operating_system** | **str** | Operating system reported by the node | [optional] +**owner** | **str** | User allowed to run jobs on this node (unset if no restriction) | [optional] +**partitions** | **List[str]** | | [optional] +**port** | **int** | TCP port number of the slurmd | [optional] +**real_memory** | **int** | Total memory in MB on the node | [optional] +**res_cores_per_gpu** | **int** | Number of CPU cores per GPU restricted to GPU jobs | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**reason** | **str** | Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state | [optional] +**reason_changed_at** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**reason_set_by_user** | **str** | User who set the reason | [optional] +**resume_after** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**reservation** | **str** | Name of reservation containing this node | [optional] +**alloc_memory** | **int** | Total memory in MB currently allocated for jobs | [optional] +**alloc_cpus** | **int** | Total number of CPUs currently allocated for jobs | [optional] +**alloc_idle_cpus** | **int** | Total number of idle CPUs | [optional] +**tres_used** | **str** | Trackable resources currently allocated for jobs | [optional] +**tres_weighted** | **float** | Ignored. Was weighted number of billable trackable resources allocated | [optional] +**slurmd_start_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**sockets** | **int** | Number of physical processor sockets/chips on the node | [optional] +**threads** | **int** | Number of logical threads in a single physical core | [optional] +**temporary_disk** | **int** | Total size in MB of temporary disk storage in TmpFS | [optional] +**weight** | **int** | Weight of the node for scheduling purposes | [optional] +**tres** | **str** | Configured trackable resources | [optional] +**version** | **str** | Slurmd version | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_node import V0042Node + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Node from a JSON string +v0042_node_instance = V0042Node.from_json(json) +# print the JSON string representation of the object +print(V0042Node.to_json()) + +# convert the object into a dict +v0042_node_dict = v0042_node_instance.to_dict() +# create an instance of V0042Node from a dict +v0042_node_from_dict = V0042Node.from_dict(v0042_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiAccountsAddCondResp.md b/docs/V0042OpenapiAccountsAddCondResp.md new file mode 100644 index 0000000..2f4d81f --- /dev/null +++ b/docs/V0042OpenapiAccountsAddCondResp.md @@ -0,0 +1,33 @@ +# V0042OpenapiAccountsAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0042AccountsAddCond**](V0042AccountsAddCond.md) | | [optional] +**account** | [**V0042AccountShort**](V0042AccountShort.md) | | [optional] +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp import V0042OpenapiAccountsAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiAccountsAddCondResp from a JSON string +v0042_openapi_accounts_add_cond_resp_instance = V0042OpenapiAccountsAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiAccountsAddCondResp.to_json()) + +# convert the object into a dict +v0042_openapi_accounts_add_cond_resp_dict = v0042_openapi_accounts_add_cond_resp_instance.to_dict() +# create an instance of V0042OpenapiAccountsAddCondResp from a dict +v0042_openapi_accounts_add_cond_resp_from_dict = V0042OpenapiAccountsAddCondResp.from_dict(v0042_openapi_accounts_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiAccountsAddCondRespStr.md b/docs/V0042OpenapiAccountsAddCondRespStr.md new file mode 100644 index 0000000..687531a --- /dev/null +++ b/docs/V0042OpenapiAccountsAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0042OpenapiAccountsAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_accounts** | **str** | added_accounts | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp_str import V0042OpenapiAccountsAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiAccountsAddCondRespStr from a JSON string +v0042_openapi_accounts_add_cond_resp_str_instance = V0042OpenapiAccountsAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiAccountsAddCondRespStr.to_json()) + +# convert the object into a dict +v0042_openapi_accounts_add_cond_resp_str_dict = v0042_openapi_accounts_add_cond_resp_str_instance.to_dict() +# create an instance of V0042OpenapiAccountsAddCondRespStr from a dict +v0042_openapi_accounts_add_cond_resp_str_from_dict = V0042OpenapiAccountsAddCondRespStr.from_dict(v0042_openapi_accounts_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiAccountsRemovedResp.md b/docs/V0042OpenapiAccountsRemovedResp.md new file mode 100644 index 0000000..91157c8 --- /dev/null +++ b/docs/V0042OpenapiAccountsRemovedResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiAccountsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_accounts** | **List[str]** | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_accounts_removed_resp import V0042OpenapiAccountsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiAccountsRemovedResp from a JSON string +v0042_openapi_accounts_removed_resp_instance = V0042OpenapiAccountsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiAccountsRemovedResp.to_json()) + +# convert the object into a dict +v0042_openapi_accounts_removed_resp_dict = v0042_openapi_accounts_removed_resp_instance.to_dict() +# create an instance of V0042OpenapiAccountsRemovedResp from a dict +v0042_openapi_accounts_removed_resp_from_dict = V0042OpenapiAccountsRemovedResp.from_dict(v0042_openapi_accounts_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiAccountsResp.md b/docs/V0042OpenapiAccountsResp.md new file mode 100644 index 0000000..658b1e4 --- /dev/null +++ b/docs/V0042OpenapiAccountsResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiAccountsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**List[V0042Account]**](V0042Account.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiAccountsResp from a JSON string +v0042_openapi_accounts_resp_instance = V0042OpenapiAccountsResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiAccountsResp.to_json()) + +# convert the object into a dict +v0042_openapi_accounts_resp_dict = v0042_openapi_accounts_resp_instance.to_dict() +# create an instance of V0042OpenapiAccountsResp from a dict +v0042_openapi_accounts_resp_from_dict = V0042OpenapiAccountsResp.from_dict(v0042_openapi_accounts_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiAssocsRemovedResp.md b/docs/V0042OpenapiAssocsRemovedResp.md new file mode 100644 index 0000000..74ced6d --- /dev/null +++ b/docs/V0042OpenapiAssocsRemovedResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiAssocsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_associations** | **List[str]** | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_assocs_removed_resp import V0042OpenapiAssocsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiAssocsRemovedResp from a JSON string +v0042_openapi_assocs_removed_resp_instance = V0042OpenapiAssocsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiAssocsRemovedResp.to_json()) + +# convert the object into a dict +v0042_openapi_assocs_removed_resp_dict = v0042_openapi_assocs_removed_resp_instance.to_dict() +# create an instance of V0042OpenapiAssocsRemovedResp from a dict +v0042_openapi_assocs_removed_resp_from_dict = V0042OpenapiAssocsRemovedResp.from_dict(v0042_openapi_assocs_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiAssocsResp.md b/docs/V0042OpenapiAssocsResp.md new file mode 100644 index 0000000..bd35367 --- /dev/null +++ b/docs/V0042OpenapiAssocsResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiAssocsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0042Assoc]**](V0042Assoc.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiAssocsResp from a JSON string +v0042_openapi_assocs_resp_instance = V0042OpenapiAssocsResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiAssocsResp.to_json()) + +# convert the object into a dict +v0042_openapi_assocs_resp_dict = v0042_openapi_assocs_resp_instance.to_dict() +# create an instance of V0042OpenapiAssocsResp from a dict +v0042_openapi_assocs_resp_from_dict = V0042OpenapiAssocsResp.from_dict(v0042_openapi_assocs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiClustersRemovedResp.md b/docs/V0042OpenapiClustersRemovedResp.md new file mode 100644 index 0000000..79b3aeb --- /dev/null +++ b/docs/V0042OpenapiClustersRemovedResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiClustersRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_clusters** | **List[str]** | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_clusters_removed_resp import V0042OpenapiClustersRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiClustersRemovedResp from a JSON string +v0042_openapi_clusters_removed_resp_instance = V0042OpenapiClustersRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiClustersRemovedResp.to_json()) + +# convert the object into a dict +v0042_openapi_clusters_removed_resp_dict = v0042_openapi_clusters_removed_resp_instance.to_dict() +# create an instance of V0042OpenapiClustersRemovedResp from a dict +v0042_openapi_clusters_removed_resp_from_dict = V0042OpenapiClustersRemovedResp.from_dict(v0042_openapi_clusters_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiClustersResp.md b/docs/V0042OpenapiClustersResp.md new file mode 100644 index 0000000..c90891c --- /dev/null +++ b/docs/V0042OpenapiClustersResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiClustersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0042ClusterRec]**](V0042ClusterRec.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiClustersResp from a JSON string +v0042_openapi_clusters_resp_instance = V0042OpenapiClustersResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiClustersResp.to_json()) + +# convert the object into a dict +v0042_openapi_clusters_resp_dict = v0042_openapi_clusters_resp_instance.to_dict() +# create an instance of V0042OpenapiClustersResp from a dict +v0042_openapi_clusters_resp_from_dict = V0042OpenapiClustersResp.from_dict(v0042_openapi_clusters_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiDiagResp.md b/docs/V0042OpenapiDiagResp.md new file mode 100644 index 0000000..05d8a40 --- /dev/null +++ b/docs/V0042OpenapiDiagResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiDiagResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0042StatsMsg**](V0042StatsMsg.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_diag_resp import V0042OpenapiDiagResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiDiagResp from a JSON string +v0042_openapi_diag_resp_instance = V0042OpenapiDiagResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiDiagResp.to_json()) + +# convert the object into a dict +v0042_openapi_diag_resp_dict = v0042_openapi_diag_resp_instance.to_dict() +# create an instance of V0042OpenapiDiagResp from a dict +v0042_openapi_diag_resp_from_dict = V0042OpenapiDiagResp.from_dict(v0042_openapi_diag_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiError.md b/docs/V0042OpenapiError.md new file mode 100644 index 0000000..68b0e34 --- /dev/null +++ b/docs/V0042OpenapiError.md @@ -0,0 +1,32 @@ +# V0042OpenapiError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form error description | [optional] +**error_number** | **int** | Slurm numeric error identifier | [optional] +**error** | **str** | Short form error description | [optional] +**source** | **str** | Source of error or where error was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiError from a JSON string +v0042_openapi_error_instance = V0042OpenapiError.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiError.to_json()) + +# convert the object into a dict +v0042_openapi_error_dict = v0042_openapi_error_instance.to_dict() +# create an instance of V0042OpenapiError from a dict +v0042_openapi_error_from_dict = V0042OpenapiError.from_dict(v0042_openapi_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiInstancesResp.md b/docs/V0042OpenapiInstancesResp.md new file mode 100644 index 0000000..c2db385 --- /dev/null +++ b/docs/V0042OpenapiInstancesResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiInstancesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**instances** | [**List[V0042Instance]**](V0042Instance.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_instances_resp import V0042OpenapiInstancesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiInstancesResp from a JSON string +v0042_openapi_instances_resp_instance = V0042OpenapiInstancesResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiInstancesResp.to_json()) + +# convert the object into a dict +v0042_openapi_instances_resp_dict = v0042_openapi_instances_resp_instance.to_dict() +# create an instance of V0042OpenapiInstancesResp from a dict +v0042_openapi_instances_resp_from_dict = V0042OpenapiInstancesResp.from_dict(v0042_openapi_instances_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiJobAllocResp.md b/docs/V0042OpenapiJobAllocResp.md new file mode 100644 index 0000000..a278bdb --- /dev/null +++ b/docs/V0042OpenapiJobAllocResp.md @@ -0,0 +1,33 @@ +# V0042OpenapiJobAllocResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Submitted Job ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_job_alloc_resp import V0042OpenapiJobAllocResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiJobAllocResp from a JSON string +v0042_openapi_job_alloc_resp_instance = V0042OpenapiJobAllocResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiJobAllocResp.to_json()) + +# convert the object into a dict +v0042_openapi_job_alloc_resp_dict = v0042_openapi_job_alloc_resp_instance.to_dict() +# create an instance of V0042OpenapiJobAllocResp from a dict +v0042_openapi_job_alloc_resp_from_dict = V0042OpenapiJobAllocResp.from_dict(v0042_openapi_job_alloc_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiJobInfoResp.md b/docs/V0042OpenapiJobInfoResp.md new file mode 100644 index 0000000..cfb96db --- /dev/null +++ b/docs/V0042OpenapiJobInfoResp.md @@ -0,0 +1,34 @@ +# V0042OpenapiJobInfoResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0042JobInfo]**](V0042JobInfo.md) | | +**last_backfill** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | +**last_update** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiJobInfoResp from a JSON string +v0042_openapi_job_info_resp_instance = V0042OpenapiJobInfoResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiJobInfoResp.to_json()) + +# convert the object into a dict +v0042_openapi_job_info_resp_dict = v0042_openapi_job_info_resp_instance.to_dict() +# create an instance of V0042OpenapiJobInfoResp from a dict +v0042_openapi_job_info_resp_from_dict = V0042OpenapiJobInfoResp.from_dict(v0042_openapi_job_info_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiJobPostResponse.md b/docs/V0042OpenapiJobPostResponse.md new file mode 100644 index 0000000..f9b3fb6 --- /dev/null +++ b/docs/V0042OpenapiJobPostResponse.md @@ -0,0 +1,32 @@ +# V0042OpenapiJobPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List[V0042JobArrayResponseMsgEntry]**](V0042JobArrayResponseMsgEntry.md) | | [optional] +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_job_post_response import V0042OpenapiJobPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiJobPostResponse from a JSON string +v0042_openapi_job_post_response_instance = V0042OpenapiJobPostResponse.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiJobPostResponse.to_json()) + +# convert the object into a dict +v0042_openapi_job_post_response_dict = v0042_openapi_job_post_response_instance.to_dict() +# create an instance of V0042OpenapiJobPostResponse from a dict +v0042_openapi_job_post_response_from_dict = V0042OpenapiJobPostResponse.from_dict(v0042_openapi_job_post_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiJobSubmitResponse.md b/docs/V0042OpenapiJobSubmitResponse.md new file mode 100644 index 0000000..1a6b3c8 --- /dev/null +++ b/docs/V0042OpenapiJobSubmitResponse.md @@ -0,0 +1,34 @@ +# V0042OpenapiJobSubmitResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | submitted Job ID | [optional] +**step_id** | **str** | submitted Step ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_job_submit_response import V0042OpenapiJobSubmitResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiJobSubmitResponse from a JSON string +v0042_openapi_job_submit_response_instance = V0042OpenapiJobSubmitResponse.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiJobSubmitResponse.to_json()) + +# convert the object into a dict +v0042_openapi_job_submit_response_dict = v0042_openapi_job_submit_response_instance.to_dict() +# create an instance of V0042OpenapiJobSubmitResponse from a dict +v0042_openapi_job_submit_response_from_dict = V0042OpenapiJobSubmitResponse.from_dict(v0042_openapi_job_submit_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiKillJobResp.md b/docs/V0042OpenapiKillJobResp.md new file mode 100644 index 0000000..0582c8f --- /dev/null +++ b/docs/V0042OpenapiKillJobResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiKillJobResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**List[V0042KillJobsRespJob]**](V0042KillJobsRespJob.md) | List of jobs signal responses | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_kill_job_resp import V0042OpenapiKillJobResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiKillJobResp from a JSON string +v0042_openapi_kill_job_resp_instance = V0042OpenapiKillJobResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiKillJobResp.to_json()) + +# convert the object into a dict +v0042_openapi_kill_job_resp_dict = v0042_openapi_kill_job_resp_instance.to_dict() +# create an instance of V0042OpenapiKillJobResp from a dict +v0042_openapi_kill_job_resp_from_dict = V0042OpenapiKillJobResp.from_dict(v0042_openapi_kill_job_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiKillJobsResp.md b/docs/V0042OpenapiKillJobsResp.md new file mode 100644 index 0000000..fbd3823 --- /dev/null +++ b/docs/V0042OpenapiKillJobsResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiKillJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**List[V0042KillJobsRespJob]**](V0042KillJobsRespJob.md) | List of jobs signal responses | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_kill_jobs_resp import V0042OpenapiKillJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiKillJobsResp from a JSON string +v0042_openapi_kill_jobs_resp_instance = V0042OpenapiKillJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiKillJobsResp.to_json()) + +# convert the object into a dict +v0042_openapi_kill_jobs_resp_dict = v0042_openapi_kill_jobs_resp_instance.to_dict() +# create an instance of V0042OpenapiKillJobsResp from a dict +v0042_openapi_kill_jobs_resp_from_dict = V0042OpenapiKillJobsResp.from_dict(v0042_openapi_kill_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiLicensesResp.md b/docs/V0042OpenapiLicensesResp.md new file mode 100644 index 0000000..9bc7cc0 --- /dev/null +++ b/docs/V0042OpenapiLicensesResp.md @@ -0,0 +1,33 @@ +# V0042OpenapiLicensesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**licenses** | [**List[V0042License]**](V0042License.md) | | +**last_update** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_licenses_resp import V0042OpenapiLicensesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiLicensesResp from a JSON string +v0042_openapi_licenses_resp_instance = V0042OpenapiLicensesResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiLicensesResp.to_json()) + +# convert the object into a dict +v0042_openapi_licenses_resp_dict = v0042_openapi_licenses_resp_instance.to_dict() +# create an instance of V0042OpenapiLicensesResp from a dict +v0042_openapi_licenses_resp_from_dict = V0042OpenapiLicensesResp.from_dict(v0042_openapi_licenses_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiMeta.md b/docs/V0042OpenapiMeta.md new file mode 100644 index 0000000..fce9391 --- /dev/null +++ b/docs/V0042OpenapiMeta.md @@ -0,0 +1,32 @@ +# V0042OpenapiMeta + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plugin** | [**V0041OpenapiSharesRespMetaPlugin**](V0041OpenapiSharesRespMetaPlugin.md) | | [optional] +**client** | [**V0041OpenapiSharesRespMetaClient**](V0041OpenapiSharesRespMetaClient.md) | | [optional] +**command** | **List[str]** | | [optional] +**slurm** | [**V0041OpenapiSharesRespMetaSlurm**](V0041OpenapiSharesRespMetaSlurm.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiMeta from a JSON string +v0042_openapi_meta_instance = V0042OpenapiMeta.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiMeta.to_json()) + +# convert the object into a dict +v0042_openapi_meta_dict = v0042_openapi_meta_instance.to_dict() +# create an instance of V0042OpenapiMeta from a dict +v0042_openapi_meta_from_dict = V0042OpenapiMeta.from_dict(v0042_openapi_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiNodesResp.md b/docs/V0042OpenapiNodesResp.md new file mode 100644 index 0000000..79e798a --- /dev/null +++ b/docs/V0042OpenapiNodesResp.md @@ -0,0 +1,33 @@ +# V0042OpenapiNodesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**List[V0042Node]**](V0042Node.md) | | +**last_update** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_nodes_resp import V0042OpenapiNodesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiNodesResp from a JSON string +v0042_openapi_nodes_resp_instance = V0042OpenapiNodesResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiNodesResp.to_json()) + +# convert the object into a dict +v0042_openapi_nodes_resp_dict = v0042_openapi_nodes_resp_instance.to_dict() +# create an instance of V0042OpenapiNodesResp from a dict +v0042_openapi_nodes_resp_from_dict = V0042OpenapiNodesResp.from_dict(v0042_openapi_nodes_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiPartitionResp.md b/docs/V0042OpenapiPartitionResp.md new file mode 100644 index 0000000..952c5bd --- /dev/null +++ b/docs/V0042OpenapiPartitionResp.md @@ -0,0 +1,33 @@ +# V0042OpenapiPartitionResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**partitions** | [**List[V0042PartitionInfo]**](V0042PartitionInfo.md) | | +**last_update** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_partition_resp import V0042OpenapiPartitionResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiPartitionResp from a JSON string +v0042_openapi_partition_resp_instance = V0042OpenapiPartitionResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiPartitionResp.to_json()) + +# convert the object into a dict +v0042_openapi_partition_resp_dict = v0042_openapi_partition_resp_instance.to_dict() +# create an instance of V0042OpenapiPartitionResp from a dict +v0042_openapi_partition_resp_from_dict = V0042OpenapiPartitionResp.from_dict(v0042_openapi_partition_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiPingArrayResp.md b/docs/V0042OpenapiPingArrayResp.md new file mode 100644 index 0000000..691fe24 --- /dev/null +++ b/docs/V0042OpenapiPingArrayResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiPingArrayResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pings** | [**List[V0042ControllerPing]**](V0042ControllerPing.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_ping_array_resp import V0042OpenapiPingArrayResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiPingArrayResp from a JSON string +v0042_openapi_ping_array_resp_instance = V0042OpenapiPingArrayResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiPingArrayResp.to_json()) + +# convert the object into a dict +v0042_openapi_ping_array_resp_dict = v0042_openapi_ping_array_resp_instance.to_dict() +# create an instance of V0042OpenapiPingArrayResp from a dict +v0042_openapi_ping_array_resp_from_dict = V0042OpenapiPingArrayResp.from_dict(v0042_openapi_ping_array_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiReservationResp.md b/docs/V0042OpenapiReservationResp.md new file mode 100644 index 0000000..6f58b0d --- /dev/null +++ b/docs/V0042OpenapiReservationResp.md @@ -0,0 +1,33 @@ +# V0042OpenapiReservationResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0042ReservationInfo]**](V0042ReservationInfo.md) | | +**last_update** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_reservation_resp import V0042OpenapiReservationResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiReservationResp from a JSON string +v0042_openapi_reservation_resp_instance = V0042OpenapiReservationResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiReservationResp.to_json()) + +# convert the object into a dict +v0042_openapi_reservation_resp_dict = v0042_openapi_reservation_resp_instance.to_dict() +# create an instance of V0042OpenapiReservationResp from a dict +v0042_openapi_reservation_resp_from_dict = V0042OpenapiReservationResp.from_dict(v0042_openapi_reservation_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiResp.md b/docs/V0042OpenapiResp.md new file mode 100644 index 0000000..580a61d --- /dev/null +++ b/docs/V0042OpenapiResp.md @@ -0,0 +1,31 @@ +# V0042OpenapiResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiResp from a JSON string +v0042_openapi_resp_instance = V0042OpenapiResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiResp.to_json()) + +# convert the object into a dict +v0042_openapi_resp_dict = v0042_openapi_resp_instance.to_dict() +# create an instance of V0042OpenapiResp from a dict +v0042_openapi_resp_from_dict = V0042OpenapiResp.from_dict(v0042_openapi_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiSharesResp.md b/docs/V0042OpenapiSharesResp.md new file mode 100644 index 0000000..b23aa79 --- /dev/null +++ b/docs/V0042OpenapiSharesResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiSharesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**V0042SharesRespMsg**](V0042SharesRespMsg.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_shares_resp import V0042OpenapiSharesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiSharesResp from a JSON string +v0042_openapi_shares_resp_instance = V0042OpenapiSharesResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiSharesResp.to_json()) + +# convert the object into a dict +v0042_openapi_shares_resp_dict = v0042_openapi_shares_resp_instance.to_dict() +# create an instance of V0042OpenapiSharesResp from a dict +v0042_openapi_shares_resp_from_dict = V0042OpenapiSharesResp.from_dict(v0042_openapi_shares_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiSlurmdbdConfigResp.md b/docs/V0042OpenapiSlurmdbdConfigResp.md new file mode 100644 index 0000000..cae8626 --- /dev/null +++ b/docs/V0042OpenapiSlurmdbdConfigResp.md @@ -0,0 +1,39 @@ +# V0042OpenapiSlurmdbdConfigResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0042ClusterRec]**](V0042ClusterRec.md) | | [optional] +**tres** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**accounts** | [**List[V0042Account]**](V0042Account.md) | | [optional] +**users** | [**List[V0042User]**](V0042User.md) | | [optional] +**qos** | [**List[V0042Qos]**](V0042Qos.md) | | [optional] +**wckeys** | [**List[V0042Wckey]**](V0042Wckey.md) | | [optional] +**associations** | [**List[V0042Assoc]**](V0042Assoc.md) | | [optional] +**instances** | [**List[V0042Instance]**](V0042Instance.md) | | [optional] +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_slurmdbd_config_resp import V0042OpenapiSlurmdbdConfigResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiSlurmdbdConfigResp from a JSON string +v0042_openapi_slurmdbd_config_resp_instance = V0042OpenapiSlurmdbdConfigResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiSlurmdbdConfigResp.to_json()) + +# convert the object into a dict +v0042_openapi_slurmdbd_config_resp_dict = v0042_openapi_slurmdbd_config_resp_instance.to_dict() +# create an instance of V0042OpenapiSlurmdbdConfigResp from a dict +v0042_openapi_slurmdbd_config_resp_from_dict = V0042OpenapiSlurmdbdConfigResp.from_dict(v0042_openapi_slurmdbd_config_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiSlurmdbdJobsResp.md b/docs/V0042OpenapiSlurmdbdJobsResp.md new file mode 100644 index 0000000..d4607b2 --- /dev/null +++ b/docs/V0042OpenapiSlurmdbdJobsResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiSlurmdbdJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0042Job]**](V0042Job.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_slurmdbd_jobs_resp import V0042OpenapiSlurmdbdJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiSlurmdbdJobsResp from a JSON string +v0042_openapi_slurmdbd_jobs_resp_instance = V0042OpenapiSlurmdbdJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiSlurmdbdJobsResp.to_json()) + +# convert the object into a dict +v0042_openapi_slurmdbd_jobs_resp_dict = v0042_openapi_slurmdbd_jobs_resp_instance.to_dict() +# create an instance of V0042OpenapiSlurmdbdJobsResp from a dict +v0042_openapi_slurmdbd_jobs_resp_from_dict = V0042OpenapiSlurmdbdJobsResp.from_dict(v0042_openapi_slurmdbd_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiSlurmdbdPingResp.md b/docs/V0042OpenapiSlurmdbdPingResp.md new file mode 100644 index 0000000..2d6230a --- /dev/null +++ b/docs/V0042OpenapiSlurmdbdPingResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiSlurmdbdPingResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pings** | [**List[V0042SlurmdbdPing]**](V0042SlurmdbdPing.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_slurmdbd_ping_resp import V0042OpenapiSlurmdbdPingResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiSlurmdbdPingResp from a JSON string +v0042_openapi_slurmdbd_ping_resp_instance = V0042OpenapiSlurmdbdPingResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiSlurmdbdPingResp.to_json()) + +# convert the object into a dict +v0042_openapi_slurmdbd_ping_resp_dict = v0042_openapi_slurmdbd_ping_resp_instance.to_dict() +# create an instance of V0042OpenapiSlurmdbdPingResp from a dict +v0042_openapi_slurmdbd_ping_resp_from_dict = V0042OpenapiSlurmdbdPingResp.from_dict(v0042_openapi_slurmdbd_ping_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiSlurmdbdQosRemovedResp.md b/docs/V0042OpenapiSlurmdbdQosRemovedResp.md new file mode 100644 index 0000000..66a4347 --- /dev/null +++ b/docs/V0042OpenapiSlurmdbdQosRemovedResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiSlurmdbdQosRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_qos** | **List[str]** | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_removed_resp import V0042OpenapiSlurmdbdQosRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiSlurmdbdQosRemovedResp from a JSON string +v0042_openapi_slurmdbd_qos_removed_resp_instance = V0042OpenapiSlurmdbdQosRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiSlurmdbdQosRemovedResp.to_json()) + +# convert the object into a dict +v0042_openapi_slurmdbd_qos_removed_resp_dict = v0042_openapi_slurmdbd_qos_removed_resp_instance.to_dict() +# create an instance of V0042OpenapiSlurmdbdQosRemovedResp from a dict +v0042_openapi_slurmdbd_qos_removed_resp_from_dict = V0042OpenapiSlurmdbdQosRemovedResp.from_dict(v0042_openapi_slurmdbd_qos_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiSlurmdbdQosResp.md b/docs/V0042OpenapiSlurmdbdQosResp.md new file mode 100644 index 0000000..f9cdac0 --- /dev/null +++ b/docs/V0042OpenapiSlurmdbdQosResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiSlurmdbdQosResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0042Qos]**](V0042Qos.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiSlurmdbdQosResp from a JSON string +v0042_openapi_slurmdbd_qos_resp_instance = V0042OpenapiSlurmdbdQosResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiSlurmdbdQosResp.to_json()) + +# convert the object into a dict +v0042_openapi_slurmdbd_qos_resp_dict = v0042_openapi_slurmdbd_qos_resp_instance.to_dict() +# create an instance of V0042OpenapiSlurmdbdQosResp from a dict +v0042_openapi_slurmdbd_qos_resp_from_dict = V0042OpenapiSlurmdbdQosResp.from_dict(v0042_openapi_slurmdbd_qos_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiSlurmdbdStatsResp.md b/docs/V0042OpenapiSlurmdbdStatsResp.md new file mode 100644 index 0000000..844d7d7 --- /dev/null +++ b/docs/V0042OpenapiSlurmdbdStatsResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiSlurmdbdStatsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0042StatsRec**](V0042StatsRec.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_slurmdbd_stats_resp import V0042OpenapiSlurmdbdStatsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiSlurmdbdStatsResp from a JSON string +v0042_openapi_slurmdbd_stats_resp_instance = V0042OpenapiSlurmdbdStatsResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiSlurmdbdStatsResp.to_json()) + +# convert the object into a dict +v0042_openapi_slurmdbd_stats_resp_dict = v0042_openapi_slurmdbd_stats_resp_instance.to_dict() +# create an instance of V0042OpenapiSlurmdbdStatsResp from a dict +v0042_openapi_slurmdbd_stats_resp_from_dict = V0042OpenapiSlurmdbdStatsResp.from_dict(v0042_openapi_slurmdbd_stats_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiTresResp.md b/docs/V0042OpenapiTresResp.md new file mode 100644 index 0000000..3dc9430 --- /dev/null +++ b/docs/V0042OpenapiTresResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiTresResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tres** | [**List[V0042Tres]**](V0042Tres.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_tres_resp import V0042OpenapiTresResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiTresResp from a JSON string +v0042_openapi_tres_resp_instance = V0042OpenapiTresResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiTresResp.to_json()) + +# convert the object into a dict +v0042_openapi_tres_resp_dict = v0042_openapi_tres_resp_instance.to_dict() +# create an instance of V0042OpenapiTresResp from a dict +v0042_openapi_tres_resp_from_dict = V0042OpenapiTresResp.from_dict(v0042_openapi_tres_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiUsersAddCondResp.md b/docs/V0042OpenapiUsersAddCondResp.md new file mode 100644 index 0000000..f56c2c7 --- /dev/null +++ b/docs/V0042OpenapiUsersAddCondResp.md @@ -0,0 +1,33 @@ +# V0042OpenapiUsersAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0042UsersAddCond**](V0042UsersAddCond.md) | | +**user** | [**V0042UserShort**](V0042UserShort.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_users_add_cond_resp import V0042OpenapiUsersAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiUsersAddCondResp from a JSON string +v0042_openapi_users_add_cond_resp_instance = V0042OpenapiUsersAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiUsersAddCondResp.to_json()) + +# convert the object into a dict +v0042_openapi_users_add_cond_resp_dict = v0042_openapi_users_add_cond_resp_instance.to_dict() +# create an instance of V0042OpenapiUsersAddCondResp from a dict +v0042_openapi_users_add_cond_resp_from_dict = V0042OpenapiUsersAddCondResp.from_dict(v0042_openapi_users_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiUsersAddCondRespStr.md b/docs/V0042OpenapiUsersAddCondRespStr.md new file mode 100644 index 0000000..0447078 --- /dev/null +++ b/docs/V0042OpenapiUsersAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0042OpenapiUsersAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_users** | **str** | added_users | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_users_add_cond_resp_str import V0042OpenapiUsersAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiUsersAddCondRespStr from a JSON string +v0042_openapi_users_add_cond_resp_str_instance = V0042OpenapiUsersAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiUsersAddCondRespStr.to_json()) + +# convert the object into a dict +v0042_openapi_users_add_cond_resp_str_dict = v0042_openapi_users_add_cond_resp_str_instance.to_dict() +# create an instance of V0042OpenapiUsersAddCondRespStr from a dict +v0042_openapi_users_add_cond_resp_str_from_dict = V0042OpenapiUsersAddCondRespStr.from_dict(v0042_openapi_users_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiUsersResp.md b/docs/V0042OpenapiUsersResp.md new file mode 100644 index 0000000..b58c9c8 --- /dev/null +++ b/docs/V0042OpenapiUsersResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiUsersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V0042User]**](V0042User.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiUsersResp from a JSON string +v0042_openapi_users_resp_instance = V0042OpenapiUsersResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiUsersResp.to_json()) + +# convert the object into a dict +v0042_openapi_users_resp_dict = v0042_openapi_users_resp_instance.to_dict() +# create an instance of V0042OpenapiUsersResp from a dict +v0042_openapi_users_resp_from_dict = V0042OpenapiUsersResp.from_dict(v0042_openapi_users_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiWarning.md b/docs/V0042OpenapiWarning.md new file mode 100644 index 0000000..a5a8fb2 --- /dev/null +++ b/docs/V0042OpenapiWarning.md @@ -0,0 +1,30 @@ +# V0042OpenapiWarning + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form warning description | [optional] +**source** | **str** | Source of warning or where warning was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiWarning from a JSON string +v0042_openapi_warning_instance = V0042OpenapiWarning.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiWarning.to_json()) + +# convert the object into a dict +v0042_openapi_warning_dict = v0042_openapi_warning_instance.to_dict() +# create an instance of V0042OpenapiWarning from a dict +v0042_openapi_warning_from_dict = V0042OpenapiWarning.from_dict(v0042_openapi_warning_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiWckeyRemovedResp.md b/docs/V0042OpenapiWckeyRemovedResp.md new file mode 100644 index 0000000..4b514c1 --- /dev/null +++ b/docs/V0042OpenapiWckeyRemovedResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiWckeyRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_wckeys** | **List[str]** | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_wckey_removed_resp import V0042OpenapiWckeyRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiWckeyRemovedResp from a JSON string +v0042_openapi_wckey_removed_resp_instance = V0042OpenapiWckeyRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiWckeyRemovedResp.to_json()) + +# convert the object into a dict +v0042_openapi_wckey_removed_resp_dict = v0042_openapi_wckey_removed_resp_instance.to_dict() +# create an instance of V0042OpenapiWckeyRemovedResp from a dict +v0042_openapi_wckey_removed_resp_from_dict = V0042OpenapiWckeyRemovedResp.from_dict(v0042_openapi_wckey_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042OpenapiWckeyResp.md b/docs/V0042OpenapiWckeyResp.md new file mode 100644 index 0000000..09a66b0 --- /dev/null +++ b/docs/V0042OpenapiWckeyResp.md @@ -0,0 +1,32 @@ +# V0042OpenapiWckeyResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckeys** | [**List[V0042Wckey]**](V0042Wckey.md) | | +**meta** | [**V0042OpenapiMeta**](V0042OpenapiMeta.md) | | [optional] +**errors** | [**List[V0042OpenapiError]**](V0042OpenapiError.md) | | [optional] +**warnings** | [**List[V0042OpenapiWarning]**](V0042OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042OpenapiWckeyResp from a JSON string +v0042_openapi_wckey_resp_instance = V0042OpenapiWckeyResp.from_json(json) +# print the JSON string representation of the object +print(V0042OpenapiWckeyResp.to_json()) + +# convert the object into a dict +v0042_openapi_wckey_resp_dict = v0042_openapi_wckey_resp_instance.to_dict() +# create an instance of V0042OpenapiWckeyResp from a dict +v0042_openapi_wckey_resp_from_dict = V0042OpenapiWckeyResp.from_dict(v0042_openapi_wckey_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042PartPrio.md b/docs/V0042PartPrio.md new file mode 100644 index 0000000..2888ec1 --- /dev/null +++ b/docs/V0042PartPrio.md @@ -0,0 +1,30 @@ +# V0042PartPrio + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**partition** | **str** | Partition name | [optional] +**priority** | **int** | Prospective job priority if it runs in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_part_prio import V0042PartPrio + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042PartPrio from a JSON string +v0042_part_prio_instance = V0042PartPrio.from_json(json) +# print the JSON string representation of the object +print(V0042PartPrio.to_json()) + +# convert the object into a dict +v0042_part_prio_dict = v0042_part_prio_instance.to_dict() +# create an instance of V0042PartPrio from a dict +v0042_part_prio_from_dict = V0042PartPrio.from_dict(v0042_part_prio_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042PartitionInfo.md b/docs/V0042PartitionInfo.md new file mode 100644 index 0000000..b1fb26f --- /dev/null +++ b/docs/V0042PartitionInfo.md @@ -0,0 +1,47 @@ +# V0042PartitionInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**V0041OpenapiPartitionRespPartitionsInnerNodes**](V0041OpenapiPartitionRespPartitionsInnerNodes.md) | | [optional] +**accounts** | [**V0041OpenapiPartitionRespPartitionsInnerAccounts**](V0041OpenapiPartitionRespPartitionsInnerAccounts.md) | | [optional] +**groups** | [**V0041OpenapiPartitionRespPartitionsInnerGroups**](V0041OpenapiPartitionRespPartitionsInnerGroups.md) | | [optional] +**qos** | [**V0041OpenapiPartitionRespPartitionsInnerQos**](V0041OpenapiPartitionRespPartitionsInnerQos.md) | | [optional] +**alternate** | **str** | Alternate | [optional] +**tres** | [**V0041OpenapiPartitionRespPartitionsInnerTres**](V0041OpenapiPartitionRespPartitionsInnerTres.md) | | [optional] +**cluster** | **str** | Cluster name | [optional] +**select_type** | **List[str]** | | [optional] +**cpus** | [**V0041OpenapiPartitionRespPartitionsInnerCpus**](V0041OpenapiPartitionRespPartitionsInnerCpus.md) | | [optional] +**defaults** | [**V0042PartitionInfoDefaults**](V0042PartitionInfoDefaults.md) | | [optional] +**grace_time** | **int** | GraceTime | [optional] +**maximums** | [**V0042PartitionInfoMaximums**](V0042PartitionInfoMaximums.md) | | [optional] +**minimums** | [**V0041OpenapiPartitionRespPartitionsInnerMinimums**](V0041OpenapiPartitionRespPartitionsInnerMinimums.md) | | [optional] +**name** | **str** | PartitionName | [optional] +**node_sets** | **str** | NodeSets | [optional] +**priority** | [**V0041OpenapiPartitionRespPartitionsInnerPriority**](V0041OpenapiPartitionRespPartitionsInnerPriority.md) | | [optional] +**timeouts** | [**V0042PartitionInfoTimeouts**](V0042PartitionInfoTimeouts.md) | | [optional] +**partition** | [**V0042PartitionInfoPartition**](V0042PartitionInfoPartition.md) | | [optional] +**suspend_time** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_partition_info import V0042PartitionInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042PartitionInfo from a JSON string +v0042_partition_info_instance = V0042PartitionInfo.from_json(json) +# print the JSON string representation of the object +print(V0042PartitionInfo.to_json()) + +# convert the object into a dict +v0042_partition_info_dict = v0042_partition_info_instance.to_dict() +# create an instance of V0042PartitionInfo from a dict +v0042_partition_info_from_dict = V0042PartitionInfo.from_dict(v0042_partition_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042PartitionInfoDefaults.md b/docs/V0042PartitionInfoDefaults.md new file mode 100644 index 0000000..e869ff2 --- /dev/null +++ b/docs/V0042PartitionInfoDefaults.md @@ -0,0 +1,33 @@ +# V0042PartitionInfoDefaults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memory_per_cpu** | **int** | DefMemPerCPU or DefMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**partition_memory_per_node** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**time** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**job** | **str** | JobDefaults | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_partition_info_defaults import V0042PartitionInfoDefaults + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042PartitionInfoDefaults from a JSON string +v0042_partition_info_defaults_instance = V0042PartitionInfoDefaults.from_json(json) +# print the JSON string representation of the object +print(V0042PartitionInfoDefaults.to_json()) + +# convert the object into a dict +v0042_partition_info_defaults_dict = v0042_partition_info_defaults_instance.to_dict() +# create an instance of V0042PartitionInfoDefaults from a dict +v0042_partition_info_defaults_from_dict = V0042PartitionInfoDefaults.from_dict(v0042_partition_info_defaults_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042PartitionInfoMaximums.md b/docs/V0042PartitionInfoMaximums.md new file mode 100644 index 0000000..be99e4f --- /dev/null +++ b/docs/V0042PartitionInfoMaximums.md @@ -0,0 +1,38 @@ +# V0042PartitionInfoMaximums + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus_per_node** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**cpus_per_socket** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**memory_per_cpu** | **int** | MaxMemPerCPU or MaxMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**partition_memory_per_node** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**nodes** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**shares** | **int** | OverSubscribe | [optional] +**oversubscribe** | [**V0042PartitionInfoMaximumsOversubscribe**](V0042PartitionInfoMaximumsOversubscribe.md) | | [optional] +**time** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**over_time_limit** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_partition_info_maximums import V0042PartitionInfoMaximums + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042PartitionInfoMaximums from a JSON string +v0042_partition_info_maximums_instance = V0042PartitionInfoMaximums.from_json(json) +# print the JSON string representation of the object +print(V0042PartitionInfoMaximums.to_json()) + +# convert the object into a dict +v0042_partition_info_maximums_dict = v0042_partition_info_maximums_instance.to_dict() +# create an instance of V0042PartitionInfoMaximums from a dict +v0042_partition_info_maximums_from_dict = V0042PartitionInfoMaximums.from_dict(v0042_partition_info_maximums_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042PartitionInfoMaximumsOversubscribe.md b/docs/V0042PartitionInfoMaximumsOversubscribe.md new file mode 100644 index 0000000..730aa9d --- /dev/null +++ b/docs/V0042PartitionInfoMaximumsOversubscribe.md @@ -0,0 +1,30 @@ +# V0042PartitionInfoMaximumsOversubscribe + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | **int** | Maximum number of jobs allowed to oversubscribe resources | [optional] +**flags** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_partition_info_maximums_oversubscribe import V0042PartitionInfoMaximumsOversubscribe + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042PartitionInfoMaximumsOversubscribe from a JSON string +v0042_partition_info_maximums_oversubscribe_instance = V0042PartitionInfoMaximumsOversubscribe.from_json(json) +# print the JSON string representation of the object +print(V0042PartitionInfoMaximumsOversubscribe.to_json()) + +# convert the object into a dict +v0042_partition_info_maximums_oversubscribe_dict = v0042_partition_info_maximums_oversubscribe_instance.to_dict() +# create an instance of V0042PartitionInfoMaximumsOversubscribe from a dict +v0042_partition_info_maximums_oversubscribe_from_dict = V0042PartitionInfoMaximumsOversubscribe.from_dict(v0042_partition_info_maximums_oversubscribe_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042PartitionInfoPartition.md b/docs/V0042PartitionInfoPartition.md new file mode 100644 index 0000000..f8dab79 --- /dev/null +++ b/docs/V0042PartitionInfoPartition.md @@ -0,0 +1,29 @@ +# V0042PartitionInfoPartition + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_partition_info_partition import V0042PartitionInfoPartition + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042PartitionInfoPartition from a JSON string +v0042_partition_info_partition_instance = V0042PartitionInfoPartition.from_json(json) +# print the JSON string representation of the object +print(V0042PartitionInfoPartition.to_json()) + +# convert the object into a dict +v0042_partition_info_partition_dict = v0042_partition_info_partition_instance.to_dict() +# create an instance of V0042PartitionInfoPartition from a dict +v0042_partition_info_partition_from_dict = V0042PartitionInfoPartition.from_dict(v0042_partition_info_partition_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042PartitionInfoTimeouts.md b/docs/V0042PartitionInfoTimeouts.md new file mode 100644 index 0000000..52b6877 --- /dev/null +++ b/docs/V0042PartitionInfoTimeouts.md @@ -0,0 +1,30 @@ +# V0042PartitionInfoTimeouts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**suspend** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_partition_info_timeouts import V0042PartitionInfoTimeouts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042PartitionInfoTimeouts from a JSON string +v0042_partition_info_timeouts_instance = V0042PartitionInfoTimeouts.from_json(json) +# print the JSON string representation of the object +print(V0042PartitionInfoTimeouts.to_json()) + +# convert the object into a dict +v0042_partition_info_timeouts_dict = v0042_partition_info_timeouts_instance.to_dict() +# create an instance of V0042PartitionInfoTimeouts from a dict +v0042_partition_info_timeouts_from_dict = V0042PartitionInfoTimeouts.from_dict(v0042_partition_info_timeouts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ProcessExitCodeVerbose.md b/docs/V0042ProcessExitCodeVerbose.md new file mode 100644 index 0000000..92f991d --- /dev/null +++ b/docs/V0042ProcessExitCodeVerbose.md @@ -0,0 +1,31 @@ +# V0042ProcessExitCodeVerbose + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **List[str]** | | [optional] +**return_code** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**signal** | [**V0042ProcessExitCodeVerboseSignal**](V0042ProcessExitCodeVerboseSignal.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_process_exit_code_verbose import V0042ProcessExitCodeVerbose + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ProcessExitCodeVerbose from a JSON string +v0042_process_exit_code_verbose_instance = V0042ProcessExitCodeVerbose.from_json(json) +# print the JSON string representation of the object +print(V0042ProcessExitCodeVerbose.to_json()) + +# convert the object into a dict +v0042_process_exit_code_verbose_dict = v0042_process_exit_code_verbose_instance.to_dict() +# create an instance of V0042ProcessExitCodeVerbose from a dict +v0042_process_exit_code_verbose_from_dict = V0042ProcessExitCodeVerbose.from_dict(v0042_process_exit_code_verbose_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ProcessExitCodeVerboseSignal.md b/docs/V0042ProcessExitCodeVerboseSignal.md new file mode 100644 index 0000000..58c26b0 --- /dev/null +++ b/docs/V0042ProcessExitCodeVerboseSignal.md @@ -0,0 +1,30 @@ +# V0042ProcessExitCodeVerboseSignal + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**V0042Uint16NoValStruct**](V0042Uint16NoValStruct.md) | | [optional] +**name** | **str** | Signal sent to process (name) | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_process_exit_code_verbose_signal import V0042ProcessExitCodeVerboseSignal + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ProcessExitCodeVerboseSignal from a JSON string +v0042_process_exit_code_verbose_signal_instance = V0042ProcessExitCodeVerboseSignal.from_json(json) +# print the JSON string representation of the object +print(V0042ProcessExitCodeVerboseSignal.to_json()) + +# convert the object into a dict +v0042_process_exit_code_verbose_signal_dict = v0042_process_exit_code_verbose_signal_instance.to_dict() +# create an instance of V0042ProcessExitCodeVerboseSignal from a dict +v0042_process_exit_code_verbose_signal_from_dict = V0042ProcessExitCodeVerboseSignal.from_dict(v0042_process_exit_code_verbose_signal_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Qos.md b/docs/V0042Qos.md new file mode 100644 index 0000000..fe31ce8 --- /dev/null +++ b/docs/V0042Qos.md @@ -0,0 +1,37 @@ +# V0042Qos + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary description | [optional] +**flags** | **List[str]** | | [optional] +**id** | **int** | Unique ID | [optional] +**limits** | [**V0042QosLimits**](V0042QosLimits.md) | | [optional] +**name** | **str** | Name | [optional] +**preempt** | [**V0042QosPreempt**](V0042QosPreempt.md) | | [optional] +**priority** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**usage_factor** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] +**usage_threshold** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos import V0042Qos + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Qos from a JSON string +v0042_qos_instance = V0042Qos.from_json(json) +# print the JSON string representation of the object +print(V0042Qos.to_json()) + +# convert the object into a dict +v0042_qos_dict = v0042_qos_instance.to_dict() +# create an instance of V0042Qos from a dict +v0042_qos_from_dict = V0042Qos.from_dict(v0042_qos_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimits.md b/docs/V0042QosLimits.md new file mode 100644 index 0000000..4c44793 --- /dev/null +++ b/docs/V0042QosLimits.md @@ -0,0 +1,32 @@ +# V0042QosLimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grace_time** | **int** | GraceTime | [optional] +**max** | [**V0042QosLimitsMax**](V0042QosLimitsMax.md) | | [optional] +**factor** | [**V0042Float64NoValStruct**](V0042Float64NoValStruct.md) | | [optional] +**min** | [**V0042QosLimitsMin**](V0042QosLimitsMin.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits import V0042QosLimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimits from a JSON string +v0042_qos_limits_instance = V0042QosLimits.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimits.to_json()) + +# convert the object into a dict +v0042_qos_limits_dict = v0042_qos_limits_instance.to_dict() +# create an instance of V0042QosLimits from a dict +v0042_qos_limits_from_dict = V0042QosLimits.from_dict(v0042_qos_limits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMax.md b/docs/V0042QosLimitsMax.md new file mode 100644 index 0000000..fbfac62 --- /dev/null +++ b/docs/V0042QosLimitsMax.md @@ -0,0 +1,33 @@ +# V0042QosLimitsMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_jobs** | [**V0042QosLimitsMaxActiveJobs**](V0042QosLimitsMaxActiveJobs.md) | | [optional] +**jobs** | [**V0042QosLimitsMaxJobs**](V0042QosLimitsMaxJobs.md) | | [optional] +**tres** | [**V0042QosLimitsMaxTres**](V0042QosLimitsMaxTres.md) | | [optional] +**wall_clock** | [**V0042QosLimitsMaxWallClock**](V0042QosLimitsMaxWallClock.md) | | [optional] +**accruing** | [**V0042QosLimitsMaxJobsActiveJobs**](V0042QosLimitsMaxJobsActiveJobs.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max import V0042QosLimitsMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMax from a JSON string +v0042_qos_limits_max_instance = V0042QosLimitsMax.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMax.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_dict = v0042_qos_limits_max_instance.to_dict() +# create an instance of V0042QosLimitsMax from a dict +v0042_qos_limits_max_from_dict = V0042QosLimitsMax.from_dict(v0042_qos_limits_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxActiveJobs.md b/docs/V0042QosLimitsMaxActiveJobs.md new file mode 100644 index 0000000..50d66a8 --- /dev/null +++ b/docs/V0042QosLimitsMaxActiveJobs.md @@ -0,0 +1,30 @@ +# V0042QosLimitsMaxActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accruing** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**count** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_active_jobs import V0042QosLimitsMaxActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxActiveJobs from a JSON string +v0042_qos_limits_max_active_jobs_instance = V0042QosLimitsMaxActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxActiveJobs.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_active_jobs_dict = v0042_qos_limits_max_active_jobs_instance.to_dict() +# create an instance of V0042QosLimitsMaxActiveJobs from a dict +v0042_qos_limits_max_active_jobs_from_dict = V0042QosLimitsMaxActiveJobs.from_dict(v0042_qos_limits_max_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxJobs.md b/docs/V0042QosLimitsMaxJobs.md new file mode 100644 index 0000000..3057b92 --- /dev/null +++ b/docs/V0042QosLimitsMaxJobs.md @@ -0,0 +1,31 @@ +# V0042QosLimitsMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**active_jobs** | [**V0042QosLimitsMaxJobsActiveJobs**](V0042QosLimitsMaxJobsActiveJobs.md) | | [optional] +**per** | [**V0042QosLimitsMaxJobsActiveJobsPer**](V0042QosLimitsMaxJobsActiveJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_jobs import V0042QosLimitsMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxJobs from a JSON string +v0042_qos_limits_max_jobs_instance = V0042QosLimitsMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxJobs.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_jobs_dict = v0042_qos_limits_max_jobs_instance.to_dict() +# create an instance of V0042QosLimitsMaxJobs from a dict +v0042_qos_limits_max_jobs_from_dict = V0042QosLimitsMaxJobs.from_dict(v0042_qos_limits_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxJobsActiveJobs.md b/docs/V0042QosLimitsMaxJobsActiveJobs.md new file mode 100644 index 0000000..600f141 --- /dev/null +++ b/docs/V0042QosLimitsMaxJobsActiveJobs.md @@ -0,0 +1,29 @@ +# V0042QosLimitsMaxJobsActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0042QosLimitsMaxJobsActiveJobsPer**](V0042QosLimitsMaxJobsActiveJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs import V0042QosLimitsMaxJobsActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxJobsActiveJobs from a JSON string +v0042_qos_limits_max_jobs_active_jobs_instance = V0042QosLimitsMaxJobsActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxJobsActiveJobs.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_jobs_active_jobs_dict = v0042_qos_limits_max_jobs_active_jobs_instance.to_dict() +# create an instance of V0042QosLimitsMaxJobsActiveJobs from a dict +v0042_qos_limits_max_jobs_active_jobs_from_dict = V0042QosLimitsMaxJobsActiveJobs.from_dict(v0042_qos_limits_max_jobs_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxJobsActiveJobsPer.md b/docs/V0042QosLimitsMaxJobsActiveJobsPer.md new file mode 100644 index 0000000..6662c1b --- /dev/null +++ b/docs/V0042QosLimitsMaxJobsActiveJobsPer.md @@ -0,0 +1,30 @@ +# V0042QosLimitsMaxJobsActiveJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**user** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs_per import V0042QosLimitsMaxJobsActiveJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxJobsActiveJobsPer from a JSON string +v0042_qos_limits_max_jobs_active_jobs_per_instance = V0042QosLimitsMaxJobsActiveJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxJobsActiveJobsPer.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_jobs_active_jobs_per_dict = v0042_qos_limits_max_jobs_active_jobs_per_instance.to_dict() +# create an instance of V0042QosLimitsMaxJobsActiveJobsPer from a dict +v0042_qos_limits_max_jobs_active_jobs_per_from_dict = V0042QosLimitsMaxJobsActiveJobsPer.from_dict(v0042_qos_limits_max_jobs_active_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxTres.md b/docs/V0042QosLimitsMaxTres.md new file mode 100644 index 0000000..ebed53d --- /dev/null +++ b/docs/V0042QosLimitsMaxTres.md @@ -0,0 +1,31 @@ +# V0042QosLimitsMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**minutes** | [**V0042QosLimitsMaxTresMinutes**](V0042QosLimitsMaxTresMinutes.md) | | [optional] +**per** | [**V0042QosLimitsMaxTresPer**](V0042QosLimitsMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_tres import V0042QosLimitsMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxTres from a JSON string +v0042_qos_limits_max_tres_instance = V0042QosLimitsMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxTres.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_tres_dict = v0042_qos_limits_max_tres_instance.to_dict() +# create an instance of V0042QosLimitsMaxTres from a dict +v0042_qos_limits_max_tres_from_dict = V0042QosLimitsMaxTres.from_dict(v0042_qos_limits_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxTresMinutes.md b/docs/V0042QosLimitsMaxTresMinutes.md new file mode 100644 index 0000000..3378f38 --- /dev/null +++ b/docs/V0042QosLimitsMaxTresMinutes.md @@ -0,0 +1,30 @@ +# V0042QosLimitsMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**per** | [**V0042QosLimitsMaxTresMinutesPer**](V0042QosLimitsMaxTresMinutesPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes import V0042QosLimitsMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxTresMinutes from a JSON string +v0042_qos_limits_max_tres_minutes_instance = V0042QosLimitsMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxTresMinutes.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_tres_minutes_dict = v0042_qos_limits_max_tres_minutes_instance.to_dict() +# create an instance of V0042QosLimitsMaxTresMinutes from a dict +v0042_qos_limits_max_tres_minutes_from_dict = V0042QosLimitsMaxTresMinutes.from_dict(v0042_qos_limits_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxTresMinutesPer.md b/docs/V0042QosLimitsMaxTresMinutesPer.md new file mode 100644 index 0000000..bb4e601 --- /dev/null +++ b/docs/V0042QosLimitsMaxTresMinutesPer.md @@ -0,0 +1,32 @@ +# V0042QosLimitsMaxTresMinutesPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**job** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**account** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**user** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes_per import V0042QosLimitsMaxTresMinutesPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxTresMinutesPer from a JSON string +v0042_qos_limits_max_tres_minutes_per_instance = V0042QosLimitsMaxTresMinutesPer.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxTresMinutesPer.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_tres_minutes_per_dict = v0042_qos_limits_max_tres_minutes_per_instance.to_dict() +# create an instance of V0042QosLimitsMaxTresMinutesPer from a dict +v0042_qos_limits_max_tres_minutes_per_from_dict = V0042QosLimitsMaxTresMinutesPer.from_dict(v0042_qos_limits_max_tres_minutes_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxTresPer.md b/docs/V0042QosLimitsMaxTresPer.md new file mode 100644 index 0000000..cc05c59 --- /dev/null +++ b/docs/V0042QosLimitsMaxTresPer.md @@ -0,0 +1,32 @@ +# V0042QosLimitsMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**job** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**node** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**user** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_tres_per import V0042QosLimitsMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxTresPer from a JSON string +v0042_qos_limits_max_tres_per_instance = V0042QosLimitsMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxTresPer.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_tres_per_dict = v0042_qos_limits_max_tres_per_instance.to_dict() +# create an instance of V0042QosLimitsMaxTresPer from a dict +v0042_qos_limits_max_tres_per_from_dict = V0042QosLimitsMaxTresPer.from_dict(v0042_qos_limits_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxWallClock.md b/docs/V0042QosLimitsMaxWallClock.md new file mode 100644 index 0000000..33f981d --- /dev/null +++ b/docs/V0042QosLimitsMaxWallClock.md @@ -0,0 +1,29 @@ +# V0042QosLimitsMaxWallClock + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0042QosLimitsMaxWallClockPer**](V0042QosLimitsMaxWallClockPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_wall_clock import V0042QosLimitsMaxWallClock + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxWallClock from a JSON string +v0042_qos_limits_max_wall_clock_instance = V0042QosLimitsMaxWallClock.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxWallClock.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_wall_clock_dict = v0042_qos_limits_max_wall_clock_instance.to_dict() +# create an instance of V0042QosLimitsMaxWallClock from a dict +v0042_qos_limits_max_wall_clock_from_dict = V0042QosLimitsMaxWallClock.from_dict(v0042_qos_limits_max_wall_clock_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMaxWallClockPer.md b/docs/V0042QosLimitsMaxWallClockPer.md new file mode 100644 index 0000000..d4ef107 --- /dev/null +++ b/docs/V0042QosLimitsMaxWallClockPer.md @@ -0,0 +1,30 @@ +# V0042QosLimitsMaxWallClockPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**job** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_max_wall_clock_per import V0042QosLimitsMaxWallClockPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMaxWallClockPer from a JSON string +v0042_qos_limits_max_wall_clock_per_instance = V0042QosLimitsMaxWallClockPer.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMaxWallClockPer.to_json()) + +# convert the object into a dict +v0042_qos_limits_max_wall_clock_per_dict = v0042_qos_limits_max_wall_clock_per_instance.to_dict() +# create an instance of V0042QosLimitsMaxWallClockPer from a dict +v0042_qos_limits_max_wall_clock_per_from_dict = V0042QosLimitsMaxWallClockPer.from_dict(v0042_qos_limits_max_wall_clock_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMin.md b/docs/V0042QosLimitsMin.md new file mode 100644 index 0000000..748d80e --- /dev/null +++ b/docs/V0042QosLimitsMin.md @@ -0,0 +1,30 @@ +# V0042QosLimitsMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**tres** | [**V0042QosLimitsMinTres**](V0042QosLimitsMinTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_min import V0042QosLimitsMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMin from a JSON string +v0042_qos_limits_min_instance = V0042QosLimitsMin.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMin.to_json()) + +# convert the object into a dict +v0042_qos_limits_min_dict = v0042_qos_limits_min_instance.to_dict() +# create an instance of V0042QosLimitsMin from a dict +v0042_qos_limits_min_from_dict = V0042QosLimitsMin.from_dict(v0042_qos_limits_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMinTres.md b/docs/V0042QosLimitsMinTres.md new file mode 100644 index 0000000..3d757a5 --- /dev/null +++ b/docs/V0042QosLimitsMinTres.md @@ -0,0 +1,29 @@ +# V0042QosLimitsMinTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0042QosLimitsMinTresPer**](V0042QosLimitsMinTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_min_tres import V0042QosLimitsMinTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMinTres from a JSON string +v0042_qos_limits_min_tres_instance = V0042QosLimitsMinTres.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMinTres.to_json()) + +# convert the object into a dict +v0042_qos_limits_min_tres_dict = v0042_qos_limits_min_tres_instance.to_dict() +# create an instance of V0042QosLimitsMinTres from a dict +v0042_qos_limits_min_tres_from_dict = V0042QosLimitsMinTres.from_dict(v0042_qos_limits_min_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosLimitsMinTresPer.md b/docs/V0042QosLimitsMinTresPer.md new file mode 100644 index 0000000..5615d84 --- /dev/null +++ b/docs/V0042QosLimitsMinTresPer.md @@ -0,0 +1,29 @@ +# V0042QosLimitsMinTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_limits_min_tres_per import V0042QosLimitsMinTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosLimitsMinTresPer from a JSON string +v0042_qos_limits_min_tres_per_instance = V0042QosLimitsMinTresPer.from_json(json) +# print the JSON string representation of the object +print(V0042QosLimitsMinTresPer.to_json()) + +# convert the object into a dict +v0042_qos_limits_min_tres_per_dict = v0042_qos_limits_min_tres_per_instance.to_dict() +# create an instance of V0042QosLimitsMinTresPer from a dict +v0042_qos_limits_min_tres_per_from_dict = V0042QosLimitsMinTresPer.from_dict(v0042_qos_limits_min_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042QosPreempt.md b/docs/V0042QosPreempt.md new file mode 100644 index 0000000..219295f --- /dev/null +++ b/docs/V0042QosPreempt.md @@ -0,0 +1,31 @@ +# V0042QosPreempt + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**list** | **List[str]** | | [optional] +**mode** | **List[str]** | | [optional] +**exempt_time** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_qos_preempt import V0042QosPreempt + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042QosPreempt from a JSON string +v0042_qos_preempt_instance = V0042QosPreempt.from_json(json) +# print the JSON string representation of the object +print(V0042QosPreempt.to_json()) + +# convert the object into a dict +v0042_qos_preempt_dict = v0042_qos_preempt_instance.to_dict() +# create an instance of V0042QosPreempt from a dict +v0042_qos_preempt_from_dict = V0042QosPreempt.from_dict(v0042_qos_preempt_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ReservationCoreSpec.md b/docs/V0042ReservationCoreSpec.md new file mode 100644 index 0000000..2a59419 --- /dev/null +++ b/docs/V0042ReservationCoreSpec.md @@ -0,0 +1,30 @@ +# V0042ReservationCoreSpec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node** | **str** | Name of reserved node | [optional] +**core** | **str** | IDs of reserved cores | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_reservation_core_spec import V0042ReservationCoreSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ReservationCoreSpec from a JSON string +v0042_reservation_core_spec_instance = V0042ReservationCoreSpec.from_json(json) +# print the JSON string representation of the object +print(V0042ReservationCoreSpec.to_json()) + +# convert the object into a dict +v0042_reservation_core_spec_dict = v0042_reservation_core_spec_instance.to_dict() +# create an instance of V0042ReservationCoreSpec from a dict +v0042_reservation_core_spec_from_dict = V0042ReservationCoreSpec.from_dict(v0042_reservation_core_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ReservationInfo.md b/docs/V0042ReservationInfo.md new file mode 100644 index 0000000..8864fd7 --- /dev/null +++ b/docs/V0042ReservationInfo.md @@ -0,0 +1,47 @@ +# V0042ReservationInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **str** | Comma separated list of permitted accounts | [optional] +**burst_buffer** | **str** | BurstBuffer | [optional] +**core_count** | **int** | CoreCnt | [optional] +**core_specializations** | [**List[V0042ReservationCoreSpec]**](V0042ReservationCoreSpec.md) | | [optional] +**end_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**features** | **str** | Features | [optional] +**flags** | **List[str]** | | [optional] +**groups** | **str** | Groups | [optional] +**licenses** | **str** | Licenses | [optional] +**max_start_delay** | **int** | MaxStartDelay in seconds | [optional] +**name** | **str** | ReservationName | [optional] +**node_count** | **int** | NodeCnt | [optional] +**node_list** | **str** | Nodes | [optional] +**partition** | **str** | PartitionName | [optional] +**purge_completed** | [**V0042ReservationInfoPurgeCompleted**](V0042ReservationInfoPurgeCompleted.md) | | [optional] +**start_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**watts** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**tres** | **str** | Comma separated list of required TRES | [optional] +**users** | **str** | Comma separated list of permitted users | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_reservation_info import V0042ReservationInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ReservationInfo from a JSON string +v0042_reservation_info_instance = V0042ReservationInfo.from_json(json) +# print the JSON string representation of the object +print(V0042ReservationInfo.to_json()) + +# convert the object into a dict +v0042_reservation_info_dict = v0042_reservation_info_instance.to_dict() +# create an instance of V0042ReservationInfo from a dict +v0042_reservation_info_from_dict = V0042ReservationInfo.from_dict(v0042_reservation_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ReservationInfoPurgeCompleted.md b/docs/V0042ReservationInfoPurgeCompleted.md new file mode 100644 index 0000000..08636b0 --- /dev/null +++ b/docs/V0042ReservationInfoPurgeCompleted.md @@ -0,0 +1,29 @@ +# V0042ReservationInfoPurgeCompleted + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_reservation_info_purge_completed import V0042ReservationInfoPurgeCompleted + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ReservationInfoPurgeCompleted from a JSON string +v0042_reservation_info_purge_completed_instance = V0042ReservationInfoPurgeCompleted.from_json(json) +# print the JSON string representation of the object +print(V0042ReservationInfoPurgeCompleted.to_json()) + +# convert the object into a dict +v0042_reservation_info_purge_completed_dict = v0042_reservation_info_purge_completed_instance.to_dict() +# create an instance of V0042ReservationInfoPurgeCompleted from a dict +v0042_reservation_info_purge_completed_from_dict = V0042ReservationInfoPurgeCompleted.from_dict(v0042_reservation_info_purge_completed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042RollupStats.md b/docs/V0042RollupStats.md new file mode 100644 index 0000000..4a27a44 --- /dev/null +++ b/docs/V0042RollupStats.md @@ -0,0 +1,31 @@ +# V0042RollupStats + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hourly** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.md) | | [optional] +**daily** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.md) | | [optional] +**monthly** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_rollup_stats import V0042RollupStats + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042RollupStats from a JSON string +v0042_rollup_stats_instance = V0042RollupStats.from_json(json) +# print the JSON string representation of the object +print(V0042RollupStats.to_json()) + +# convert the object into a dict +v0042_rollup_stats_dict = v0042_rollup_stats_instance.to_dict() +# create an instance of V0042RollupStats from a dict +v0042_rollup_stats_from_dict = V0042RollupStats.from_dict(v0042_rollup_stats_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042ScheduleExitFields.md b/docs/V0042ScheduleExitFields.md new file mode 100644 index 0000000..d347175 --- /dev/null +++ b/docs/V0042ScheduleExitFields.md @@ -0,0 +1,34 @@ +# V0042ScheduleExitFields + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**default_queue_depth** | **int** | Reached number of jobs allowed to be tested | [optional] +**max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**max_rpc_cnt** | **int** | Reached RPC limit | [optional] +**max_sched_time** | **int** | Reached maximum allowed scheduler time | [optional] +**licenses** | **int** | Blocked on licenses | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_schedule_exit_fields import V0042ScheduleExitFields + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042ScheduleExitFields from a JSON string +v0042_schedule_exit_fields_instance = V0042ScheduleExitFields.from_json(json) +# print the JSON string representation of the object +print(V0042ScheduleExitFields.to_json()) + +# convert the object into a dict +v0042_schedule_exit_fields_dict = v0042_schedule_exit_fields_instance.to_dict() +# create an instance of V0042ScheduleExitFields from a dict +v0042_schedule_exit_fields_from_dict = V0042ScheduleExitFields.from_dict(v0042_schedule_exit_fields_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042SharesFloat128Tres.md b/docs/V0042SharesFloat128Tres.md new file mode 100644 index 0000000..780a314 --- /dev/null +++ b/docs/V0042SharesFloat128Tres.md @@ -0,0 +1,30 @@ +# V0042SharesFloat128Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | **float** | TRES value | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_shares_float128_tres import V0042SharesFloat128Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042SharesFloat128Tres from a JSON string +v0042_shares_float128_tres_instance = V0042SharesFloat128Tres.from_json(json) +# print the JSON string representation of the object +print(V0042SharesFloat128Tres.to_json()) + +# convert the object into a dict +v0042_shares_float128_tres_dict = v0042_shares_float128_tres_instance.to_dict() +# create an instance of V0042SharesFloat128Tres from a dict +v0042_shares_float128_tres_from_dict = V0042SharesFloat128Tres.from_dict(v0042_shares_float128_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042SharesRespMsg.md b/docs/V0042SharesRespMsg.md new file mode 100644 index 0000000..3f71390 --- /dev/null +++ b/docs/V0042SharesRespMsg.md @@ -0,0 +1,30 @@ +# V0042SharesRespMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**List[V0042AssocSharesObjWrap]**](V0042AssocSharesObjWrap.md) | | [optional] +**total_shares** | **int** | Total number of shares | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_shares_resp_msg import V0042SharesRespMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042SharesRespMsg from a JSON string +v0042_shares_resp_msg_instance = V0042SharesRespMsg.from_json(json) +# print the JSON string representation of the object +print(V0042SharesRespMsg.to_json()) + +# convert the object into a dict +v0042_shares_resp_msg_dict = v0042_shares_resp_msg_instance.to_dict() +# create an instance of V0042SharesRespMsg from a dict +v0042_shares_resp_msg_from_dict = V0042SharesRespMsg.from_dict(v0042_shares_resp_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042SharesUint64Tres.md b/docs/V0042SharesUint64Tres.md new file mode 100644 index 0000000..4673ac2 --- /dev/null +++ b/docs/V0042SharesUint64Tres.md @@ -0,0 +1,30 @@ +# V0042SharesUint64Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_shares_uint64_tres import V0042SharesUint64Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042SharesUint64Tres from a JSON string +v0042_shares_uint64_tres_instance = V0042SharesUint64Tres.from_json(json) +# print the JSON string representation of the object +print(V0042SharesUint64Tres.to_json()) + +# convert the object into a dict +v0042_shares_uint64_tres_dict = v0042_shares_uint64_tres_instance.to_dict() +# create an instance of V0042SharesUint64Tres from a dict +v0042_shares_uint64_tres_from_dict = V0042SharesUint64Tres.from_dict(v0042_shares_uint64_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042SlurmdbdPing.md b/docs/V0042SlurmdbdPing.md new file mode 100644 index 0000000..05e3d34 --- /dev/null +++ b/docs/V0042SlurmdbdPing.md @@ -0,0 +1,32 @@ +# V0042SlurmdbdPing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Target for ping | +**responding** | **bool** | If ping RPC responded with pong from slurmdbd | +**latency** | **int** | Number of microseconds it took to successfully ping or timeout | +**primary** | **bool** | Is responding slurmdbd the primary controller | + +## Example + +```python +from slurmrest_python.models.v0042_slurmdbd_ping import V0042SlurmdbdPing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042SlurmdbdPing from a JSON string +v0042_slurmdbd_ping_instance = V0042SlurmdbdPing.from_json(json) +# print the JSON string representation of the object +print(V0042SlurmdbdPing.to_json()) + +# convert the object into a dict +v0042_slurmdbd_ping_dict = v0042_slurmdbd_ping_instance.to_dict() +# create an instance of V0042SlurmdbdPing from a dict +v0042_slurmdbd_ping_from_dict = V0042SlurmdbdPing.from_dict(v0042_slurmdbd_ping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsMsg.md b/docs/V0042StatsMsg.md new file mode 100644 index 0000000..366eeef --- /dev/null +++ b/docs/V0042StatsMsg.md @@ -0,0 +1,82 @@ +# V0042StatsMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parts_packed** | **int** | Zero if only RPC statistic included | [optional] +**req_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**req_time_start** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**server_thread_count** | **int** | Number of current active slurmctld threads | [optional] +**agent_queue_size** | **int** | Number of enqueued outgoing RPC requests in an internal retry list | [optional] +**agent_count** | **int** | Number of agent threads | [optional] +**agent_thread_count** | **int** | Total number of active threads created by all agent threads | [optional] +**dbd_agent_queue_size** | **int** | Number of messages for SlurmDBD that are queued | [optional] +**gettimeofday_latency** | **int** | Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup | [optional] +**schedule_cycle_max** | **int** | Max time of any scheduling cycle in microseconds since last reset | [optional] +**schedule_cycle_last** | **int** | Time in microseconds for last scheduling cycle | [optional] +**schedule_cycle_sum** | **int** | Total run time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_total** | **int** | Number of scheduling cycles since last reset | [optional] +**schedule_cycle_mean** | **int** | Mean time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_mean_depth** | **int** | Mean of the number of jobs processed in a scheduling cycle | [optional] +**schedule_cycle_per_minute** | **int** | Number of scheduling executions per minute | [optional] +**schedule_cycle_depth** | **int** | Total number of jobs processed in scheduling cycles | [optional] +**schedule_exit** | [**V0042ScheduleExitFields**](V0042ScheduleExitFields.md) | | [optional] +**schedule_queue_length** | **int** | Number of jobs pending in queue | [optional] +**jobs_submitted** | **int** | Number of jobs submitted since last reset | [optional] +**jobs_started** | **int** | Number of jobs started since last reset | [optional] +**jobs_completed** | **int** | Number of jobs completed since last reset | [optional] +**jobs_canceled** | **int** | Number of jobs canceled since the last reset | [optional] +**jobs_failed** | **int** | Number of jobs failed due to slurmd or other internal issues since last reset | [optional] +**jobs_pending** | **int** | Number of jobs pending at the time of listed in job_state_ts | [optional] +**jobs_running** | **int** | Number of jobs running at the time of listed in job_state_ts | [optional] +**job_states_ts** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**bf_backfilled_jobs** | **int** | Number of jobs started through backfilling since last slurm start | [optional] +**bf_last_backfilled_jobs** | **int** | Number of jobs started through backfilling since last reset | [optional] +**bf_backfilled_het_jobs** | **int** | Number of heterogeneous job components started through backfilling since last Slurm start | [optional] +**bf_cycle_counter** | **int** | Number of backfill scheduling cycles since last reset | [optional] +**bf_cycle_mean** | **int** | Mean time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean** | **int** | Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean_try** | **int** | The subset of Depth Mean that the backfill scheduler attempted to schedule | [optional] +**bf_cycle_sum** | **int** | Total time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_cycle_last** | **int** | Execution time in microseconds of last backfill scheduling cycle | [optional] +**bf_cycle_max** | **int** | Execution time in microseconds of longest backfill scheduling cycle | [optional] +**bf_exit** | [**V0042BfExitFields**](V0042BfExitFields.md) | | [optional] +**bf_last_depth** | **int** | Number of processed jobs during last backfilling scheduling cycle | [optional] +**bf_last_depth_try** | **int** | Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources | [optional] +**bf_depth_sum** | **int** | Total number of jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_try_sum** | **int** | Subset of bf_depth_sum that the backfill scheduler attempted to schedule | [optional] +**bf_queue_len** | **int** | Number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_mean** | **int** | Mean number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_sum** | **int** | Total number of jobs pending to be processed by backfilling algorithm since last reset | [optional] +**bf_table_size** | **int** | Number of different time slots tested by the backfill scheduler in its last iteration | [optional] +**bf_table_size_sum** | **int** | Total number of different time slots tested by the backfill scheduler | [optional] +**bf_table_size_mean** | **int** | Mean number of different time slots tested by the backfill scheduler | [optional] +**bf_when_last_cycle** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**bf_active** | **bool** | Backfill scheduler currently running | [optional] +**rpcs_by_message_type** | [**List[V0042StatsMsgRpcType]**](V0042StatsMsgRpcType.md) | RPCs by type | [optional] +**rpcs_by_user** | [**List[V0042StatsMsgRpcUser]**](V0042StatsMsgRpcUser.md) | RPCs by user | [optional] +**pending_rpcs** | [**List[V0042StatsMsgRpcQueue]**](V0042StatsMsgRpcQueue.md) | Pending RPCs | [optional] +**pending_rpcs_by_hostlist** | [**List[V0042StatsMsgRpcDump]**](V0042StatsMsgRpcDump.md) | Pending RPCs by hostlist | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_stats_msg import V0042StatsMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsMsg from a JSON string +v0042_stats_msg_instance = V0042StatsMsg.from_json(json) +# print the JSON string representation of the object +print(V0042StatsMsg.to_json()) + +# convert the object into a dict +v0042_stats_msg_dict = v0042_stats_msg_instance.to_dict() +# create an instance of V0042StatsMsg from a dict +v0042_stats_msg_from_dict = V0042StatsMsg.from_dict(v0042_stats_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsMsgRpcDump.md b/docs/V0042StatsMsgRpcDump.md new file mode 100644 index 0000000..5aa9b22 --- /dev/null +++ b/docs/V0042StatsMsgRpcDump.md @@ -0,0 +1,31 @@ +# V0042StatsMsgRpcDump + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string | +**count** | **List[str]** | | + +## Example + +```python +from slurmrest_python.models.v0042_stats_msg_rpc_dump import V0042StatsMsgRpcDump + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsMsgRpcDump from a JSON string +v0042_stats_msg_rpc_dump_instance = V0042StatsMsgRpcDump.from_json(json) +# print the JSON string representation of the object +print(V0042StatsMsgRpcDump.to_json()) + +# convert the object into a dict +v0042_stats_msg_rpc_dump_dict = v0042_stats_msg_rpc_dump_instance.to_dict() +# create an instance of V0042StatsMsgRpcDump from a dict +v0042_stats_msg_rpc_dump_from_dict = V0042StatsMsgRpcDump.from_dict(v0042_stats_msg_rpc_dump_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsMsgRpcQueue.md b/docs/V0042StatsMsgRpcQueue.md new file mode 100644 index 0000000..f1d4674 --- /dev/null +++ b/docs/V0042StatsMsgRpcQueue.md @@ -0,0 +1,31 @@ +# V0042StatsMsgRpcQueue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string | +**count** | **int** | Number of pending RPCs queued | + +## Example + +```python +from slurmrest_python.models.v0042_stats_msg_rpc_queue import V0042StatsMsgRpcQueue + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsMsgRpcQueue from a JSON string +v0042_stats_msg_rpc_queue_instance = V0042StatsMsgRpcQueue.from_json(json) +# print the JSON string representation of the object +print(V0042StatsMsgRpcQueue.to_json()) + +# convert the object into a dict +v0042_stats_msg_rpc_queue_dict = v0042_stats_msg_rpc_queue_instance.to_dict() +# create an instance of V0042StatsMsgRpcQueue from a dict +v0042_stats_msg_rpc_queue_from_dict = V0042StatsMsgRpcQueue.from_dict(v0042_stats_msg_rpc_queue_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsMsgRpcType.md b/docs/V0042StatsMsgRpcType.md new file mode 100644 index 0000000..4554234 --- /dev/null +++ b/docs/V0042StatsMsgRpcType.md @@ -0,0 +1,37 @@ +# V0042StatsMsgRpcType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string | +**count** | **int** | Number of RPCs received | +**queued** | **int** | Number of RPCs queued | +**dropped** | **int** | Number of RPCs dropped | +**cycle_last** | **int** | Number of RPCs processed within the last RPC queue cycle | +**cycle_max** | **int** | Maximum number of RPCs processed within a RPC queue cycle since start | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0042_stats_msg_rpc_type import V0042StatsMsgRpcType + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsMsgRpcType from a JSON string +v0042_stats_msg_rpc_type_instance = V0042StatsMsgRpcType.from_json(json) +# print the JSON string representation of the object +print(V0042StatsMsgRpcType.to_json()) + +# convert the object into a dict +v0042_stats_msg_rpc_type_dict = v0042_stats_msg_rpc_type_instance.to_dict() +# create an instance of V0042StatsMsgRpcType from a dict +v0042_stats_msg_rpc_type_from_dict = V0042StatsMsgRpcType.from_dict(v0042_stats_msg_rpc_type_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsMsgRpcUser.md b/docs/V0042StatsMsgRpcUser.md new file mode 100644 index 0000000..da372a5 --- /dev/null +++ b/docs/V0042StatsMsgRpcUser.md @@ -0,0 +1,33 @@ +# V0042StatsMsgRpcUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **int** | User ID (numeric) | +**user** | **str** | User name | +**count** | **int** | Number of RPCs received | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0042_stats_msg_rpc_user import V0042StatsMsgRpcUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsMsgRpcUser from a JSON string +v0042_stats_msg_rpc_user_instance = V0042StatsMsgRpcUser.from_json(json) +# print the JSON string representation of the object +print(V0042StatsMsgRpcUser.to_json()) + +# convert the object into a dict +v0042_stats_msg_rpc_user_dict = v0042_stats_msg_rpc_user_instance.to_dict() +# create an instance of V0042StatsMsgRpcUser from a dict +v0042_stats_msg_rpc_user_from_dict = V0042StatsMsgRpcUser.from_dict(v0042_stats_msg_rpc_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsRec.md b/docs/V0042StatsRec.md new file mode 100644 index 0000000..0a4a8fa --- /dev/null +++ b/docs/V0042StatsRec.md @@ -0,0 +1,32 @@ +# V0042StatsRec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_start** | **int** | When data collection started (UNIX timestamp) | [optional] +**rollups** | [**V0042RollupStats**](V0042RollupStats.md) | | [optional] +**rpcs** | [**List[V0042StatsRpc]**](V0042StatsRpc.md) | | [optional] +**users** | [**List[V0042StatsUser]**](V0042StatsUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_stats_rec import V0042StatsRec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsRec from a JSON string +v0042_stats_rec_instance = V0042StatsRec.from_json(json) +# print the JSON string representation of the object +print(V0042StatsRec.to_json()) + +# convert the object into a dict +v0042_stats_rec_dict = v0042_stats_rec_instance.to_dict() +# create an instance of V0042StatsRec from a dict +v0042_stats_rec_from_dict = V0042StatsRec.from_dict(v0042_stats_rec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsRpc.md b/docs/V0042StatsRpc.md new file mode 100644 index 0000000..0f7cca4 --- /dev/null +++ b/docs/V0042StatsRpc.md @@ -0,0 +1,31 @@ +# V0042StatsRpc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rpc** | **str** | RPC type | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_stats_rpc import V0042StatsRpc + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsRpc from a JSON string +v0042_stats_rpc_instance = V0042StatsRpc.from_json(json) +# print the JSON string representation of the object +print(V0042StatsRpc.to_json()) + +# convert the object into a dict +v0042_stats_rpc_dict = v0042_stats_rpc_instance.to_dict() +# create an instance of V0042StatsRpc from a dict +v0042_stats_rpc_from_dict = V0042StatsRpc.from_dict(v0042_stats_rpc_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StatsUser.md b/docs/V0042StatsUser.md new file mode 100644 index 0000000..5f7136c --- /dev/null +++ b/docs/V0042StatsUser.md @@ -0,0 +1,31 @@ +# V0042StatsUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **str** | User ID | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_stats_user import V0042StatsUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StatsUser from a JSON string +v0042_stats_user_instance = V0042StatsUser.from_json(json) +# print the JSON string representation of the object +print(V0042StatsUser.to_json()) + +# convert the object into a dict +v0042_stats_user_dict = v0042_stats_user_instance.to_dict() +# create an instance of V0042StatsUser from a dict +v0042_stats_user_from_dict = V0042StatsUser.from_dict(v0042_stats_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Step.md b/docs/V0042Step.md new file mode 100644 index 0000000..4f34fe0 --- /dev/null +++ b/docs/V0042Step.md @@ -0,0 +1,40 @@ +# V0042Step + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0042StepTime**](V0042StepTime.md) | | [optional] +**exit_code** | [**V0042ProcessExitCodeVerbose**](V0042ProcessExitCodeVerbose.md) | | [optional] +**nodes** | [**V0042StepNodes**](V0042StepNodes.md) | | [optional] +**tasks** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md) | | [optional] +**pid** | **str** | Deprecated; Process ID | [optional] +**cpu** | [**V0042StepCPU**](V0042StepCPU.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the step | [optional] +**state** | **List[str]** | | [optional] +**statistics** | [**V0042StepStatistics**](V0042StepStatistics.md) | | [optional] +**step** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.md) | | [optional] +**task** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md) | | [optional] +**tres** | [**V0042StepTres**](V0042StepTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step import V0042Step + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Step from a JSON string +v0042_step_instance = V0042Step.from_json(json) +# print the JSON string representation of the object +print(V0042Step.to_json()) + +# convert the object into a dict +v0042_step_dict = v0042_step_instance.to_dict() +# create an instance of V0042Step from a dict +v0042_step_from_dict = V0042Step.from_dict(v0042_step_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepCPU.md b/docs/V0042StepCPU.md new file mode 100644 index 0000000..e731e0b --- /dev/null +++ b/docs/V0042StepCPU.md @@ -0,0 +1,30 @@ +# V0042StepCPU + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested_frequency** | [**V0042StepCPURequestedFrequency**](V0042StepCPURequestedFrequency.md) | | [optional] +**governor** | **str** | Requested CPU frequency governor in kHz | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_cpu import V0042StepCPU + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepCPU from a JSON string +v0042_step_cpu_instance = V0042StepCPU.from_json(json) +# print the JSON string representation of the object +print(V0042StepCPU.to_json()) + +# convert the object into a dict +v0042_step_cpu_dict = v0042_step_cpu_instance.to_dict() +# create an instance of V0042StepCPU from a dict +v0042_step_cpu_from_dict = V0042StepCPU.from_dict(v0042_step_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepCPURequestedFrequency.md b/docs/V0042StepCPURequestedFrequency.md new file mode 100644 index 0000000..75bce9d --- /dev/null +++ b/docs/V0042StepCPURequestedFrequency.md @@ -0,0 +1,30 @@ +# V0042StepCPURequestedFrequency + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**max** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_cpu_requested_frequency import V0042StepCPURequestedFrequency + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepCPURequestedFrequency from a JSON string +v0042_step_cpu_requested_frequency_instance = V0042StepCPURequestedFrequency.from_json(json) +# print the JSON string representation of the object +print(V0042StepCPURequestedFrequency.to_json()) + +# convert the object into a dict +v0042_step_cpu_requested_frequency_dict = v0042_step_cpu_requested_frequency_instance.to_dict() +# create an instance of V0042StepCPURequestedFrequency from a dict +v0042_step_cpu_requested_frequency_from_dict = V0042StepCPURequestedFrequency.from_dict(v0042_step_cpu_requested_frequency_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepNodes.md b/docs/V0042StepNodes.md new file mode 100644 index 0000000..98ce709 --- /dev/null +++ b/docs/V0042StepNodes.md @@ -0,0 +1,31 @@ +# V0042StepNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of nodes in the job step | [optional] +**range** | **str** | Node(s) allocated to the job step | [optional] +**list** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_nodes import V0042StepNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepNodes from a JSON string +v0042_step_nodes_instance = V0042StepNodes.from_json(json) +# print the JSON string representation of the object +print(V0042StepNodes.to_json()) + +# convert the object into a dict +v0042_step_nodes_dict = v0042_step_nodes_instance.to_dict() +# create an instance of V0042StepNodes from a dict +v0042_step_nodes_from_dict = V0042StepNodes.from_dict(v0042_step_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepStatistics.md b/docs/V0042StepStatistics.md new file mode 100644 index 0000000..30a1570 --- /dev/null +++ b/docs/V0042StepStatistics.md @@ -0,0 +1,30 @@ +# V0042StepStatistics + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md) | | [optional] +**energy** | [**V0042StepStatisticsEnergy**](V0042StepStatisticsEnergy.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_statistics import V0042StepStatistics + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepStatistics from a JSON string +v0042_step_statistics_instance = V0042StepStatistics.from_json(json) +# print the JSON string representation of the object +print(V0042StepStatistics.to_json()) + +# convert the object into a dict +v0042_step_statistics_dict = v0042_step_statistics_instance.to_dict() +# create an instance of V0042StepStatistics from a dict +v0042_step_statistics_from_dict = V0042StepStatistics.from_dict(v0042_step_statistics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepStatisticsEnergy.md b/docs/V0042StepStatisticsEnergy.md new file mode 100644 index 0000000..f4a2185 --- /dev/null +++ b/docs/V0042StepStatisticsEnergy.md @@ -0,0 +1,29 @@ +# V0042StepStatisticsEnergy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumed** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_statistics_energy import V0042StepStatisticsEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepStatisticsEnergy from a JSON string +v0042_step_statistics_energy_instance = V0042StepStatisticsEnergy.from_json(json) +# print the JSON string representation of the object +print(V0042StepStatisticsEnergy.to_json()) + +# convert the object into a dict +v0042_step_statistics_energy_dict = v0042_step_statistics_energy_instance.to_dict() +# create an instance of V0042StepStatisticsEnergy from a dict +v0042_step_statistics_energy_from_dict = V0042StepStatisticsEnergy.from_dict(v0042_step_statistics_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepTime.md b/docs/V0042StepTime.md new file mode 100644 index 0000000..b661fcc --- /dev/null +++ b/docs/V0042StepTime.md @@ -0,0 +1,35 @@ +# V0042StepTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**end** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**start** | [**V0042Uint64NoValStruct**](V0042Uint64NoValStruct.md) | | [optional] +**suspended** | **int** | Total time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_time import V0042StepTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepTime from a JSON string +v0042_step_time_instance = V0042StepTime.from_json(json) +# print the JSON string representation of the object +print(V0042StepTime.to_json()) + +# convert the object into a dict +v0042_step_time_dict = v0042_step_time_instance.to_dict() +# create an instance of V0042StepTime from a dict +v0042_step_time_from_dict = V0042StepTime.from_dict(v0042_step_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepTres.md b/docs/V0042StepTres.md new file mode 100644 index 0000000..9083871 --- /dev/null +++ b/docs/V0042StepTres.md @@ -0,0 +1,31 @@ +# V0042StepTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested** | [**V0042StepTresRequested**](V0042StepTresRequested.md) | | [optional] +**consumed** | [**V0042StepTresConsumed**](V0042StepTresConsumed.md) | | [optional] +**allocated** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_tres import V0042StepTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepTres from a JSON string +v0042_step_tres_instance = V0042StepTres.from_json(json) +# print the JSON string representation of the object +print(V0042StepTres.to_json()) + +# convert the object into a dict +v0042_step_tres_dict = v0042_step_tres_instance.to_dict() +# create an instance of V0042StepTres from a dict +v0042_step_tres_from_dict = V0042StepTres.from_dict(v0042_step_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepTresConsumed.md b/docs/V0042StepTresConsumed.md new file mode 100644 index 0000000..161f8fa --- /dev/null +++ b/docs/V0042StepTresConsumed.md @@ -0,0 +1,32 @@ +# V0042StepTresConsumed + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**min** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**average** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**total** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_tres_consumed import V0042StepTresConsumed + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepTresConsumed from a JSON string +v0042_step_tres_consumed_instance = V0042StepTresConsumed.from_json(json) +# print the JSON string representation of the object +print(V0042StepTresConsumed.to_json()) + +# convert the object into a dict +v0042_step_tres_consumed_dict = v0042_step_tres_consumed_instance.to_dict() +# create an instance of V0042StepTresConsumed from a dict +v0042_step_tres_consumed_from_dict = V0042StepTresConsumed.from_dict(v0042_step_tres_consumed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042StepTresRequested.md b/docs/V0042StepTresRequested.md new file mode 100644 index 0000000..e43cd8a --- /dev/null +++ b/docs/V0042StepTresRequested.md @@ -0,0 +1,32 @@ +# V0042StepTresRequested + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**min** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**average** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] +**total** | [**List[V0042Tres]**](V0042Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_step_tres_requested import V0042StepTresRequested + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042StepTresRequested from a JSON string +v0042_step_tres_requested_instance = V0042StepTresRequested.from_json(json) +# print the JSON string representation of the object +print(V0042StepTresRequested.to_json()) + +# convert the object into a dict +v0042_step_tres_requested_dict = v0042_step_tres_requested_instance.to_dict() +# create an instance of V0042StepTresRequested from a dict +v0042_step_tres_requested_from_dict = V0042StepTresRequested.from_dict(v0042_step_tres_requested_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Tres.md b/docs/V0042Tres.md new file mode 100644 index 0000000..80fef88 --- /dev/null +++ b/docs/V0042Tres.md @@ -0,0 +1,32 @@ +# V0042Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | TRES type (CPU, MEM, etc) | +**name** | **str** | TRES name (if applicable) | [optional] +**id** | **int** | ID used in the database | [optional] +**count** | **int** | TRES count (0 if listed generically) | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_tres import V0042Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Tres from a JSON string +v0042_tres_instance = V0042Tres.from_json(json) +# print the JSON string representation of the object +print(V0042Tres.to_json()) + +# convert the object into a dict +v0042_tres_dict = v0042_tres_instance.to_dict() +# create an instance of V0042Tres from a dict +v0042_tres_from_dict = V0042Tres.from_dict(v0042_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Uint16NoValStruct.md b/docs/V0042Uint16NoValStruct.md new file mode 100644 index 0000000..fb8dee3 --- /dev/null +++ b/docs/V0042Uint16NoValStruct.md @@ -0,0 +1,31 @@ +# V0042Uint16NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Uint16NoValStruct from a JSON string +v0042_uint16_no_val_struct_instance = V0042Uint16NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0042Uint16NoValStruct.to_json()) + +# convert the object into a dict +v0042_uint16_no_val_struct_dict = v0042_uint16_no_val_struct_instance.to_dict() +# create an instance of V0042Uint16NoValStruct from a dict +v0042_uint16_no_val_struct_from_dict = V0042Uint16NoValStruct.from_dict(v0042_uint16_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Uint32NoValStruct.md b/docs/V0042Uint32NoValStruct.md new file mode 100644 index 0000000..558fc15 --- /dev/null +++ b/docs/V0042Uint32NoValStruct.md @@ -0,0 +1,31 @@ +# V0042Uint32NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Uint32NoValStruct from a JSON string +v0042_uint32_no_val_struct_instance = V0042Uint32NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0042Uint32NoValStruct.to_json()) + +# convert the object into a dict +v0042_uint32_no_val_struct_dict = v0042_uint32_no_val_struct_instance.to_dict() +# create an instance of V0042Uint32NoValStruct from a dict +v0042_uint32_no_val_struct_from_dict = V0042Uint32NoValStruct.from_dict(v0042_uint32_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Uint64NoValStruct.md b/docs/V0042Uint64NoValStruct.md new file mode 100644 index 0000000..9e97c15 --- /dev/null +++ b/docs/V0042Uint64NoValStruct.md @@ -0,0 +1,31 @@ +# V0042Uint64NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Uint64NoValStruct from a JSON string +v0042_uint64_no_val_struct_instance = V0042Uint64NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0042Uint64NoValStruct.to_json()) + +# convert the object into a dict +v0042_uint64_no_val_struct_dict = v0042_uint64_no_val_struct_instance.to_dict() +# create an instance of V0042Uint64NoValStruct from a dict +v0042_uint64_no_val_struct_from_dict = V0042Uint64NoValStruct.from_dict(v0042_uint64_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042UpdateNodeMsg.md b/docs/V0042UpdateNodeMsg.md new file mode 100644 index 0000000..9da16b6 --- /dev/null +++ b/docs/V0042UpdateNodeMsg.md @@ -0,0 +1,42 @@ +# V0042UpdateNodeMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**cpu_bind** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**features** | **List[str]** | | [optional] +**features_act** | **List[str]** | | [optional] +**gres** | **str** | Generic resources | [optional] +**address** | **List[str]** | | [optional] +**hostname** | **List[str]** | | [optional] +**name** | **List[str]** | | [optional] +**state** | **List[str]** | | [optional] +**reason** | **str** | Reason for node being DOWN or DRAINING | [optional] +**reason_uid** | **str** | User ID to associate with the reason (needed if user root is sending message) | [optional] +**resume_after** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] +**weight** | [**V0042Uint32NoValStruct**](V0042Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_update_node_msg import V0042UpdateNodeMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042UpdateNodeMsg from a JSON string +v0042_update_node_msg_instance = V0042UpdateNodeMsg.from_json(json) +# print the JSON string representation of the object +print(V0042UpdateNodeMsg.to_json()) + +# convert the object into a dict +v0042_update_node_msg_dict = v0042_update_node_msg_instance.to_dict() +# create an instance of V0042UpdateNodeMsg from a dict +v0042_update_node_msg_from_dict = V0042UpdateNodeMsg.from_dict(v0042_update_node_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042User.md b/docs/V0042User.md new file mode 100644 index 0000000..a3ee655 --- /dev/null +++ b/docs/V0042User.md @@ -0,0 +1,36 @@ +# V0042User + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**administrator_level** | **List[str]** | | [optional] +**associations** | [**List[V0042AssocShort]**](V0042AssocShort.md) | | [optional] +**coordinators** | [**List[V0042Coord]**](V0042Coord.md) | | [optional] +**default** | [**V0042UserDefault**](V0042UserDefault.md) | | [optional] +**flags** | **List[str]** | | [optional] +**name** | **str** | User name | +**old_name** | **str** | Previous user name | [optional] +**wckeys** | [**List[V0042Wckey]**](V0042Wckey.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_user import V0042User + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042User from a JSON string +v0042_user_instance = V0042User.from_json(json) +# print the JSON string representation of the object +print(V0042User.to_json()) + +# convert the object into a dict +v0042_user_dict = v0042_user_instance.to_dict() +# create an instance of V0042User from a dict +v0042_user_from_dict = V0042User.from_dict(v0042_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042UserDefault.md b/docs/V0042UserDefault.md new file mode 100644 index 0000000..65cee8b --- /dev/null +++ b/docs/V0042UserDefault.md @@ -0,0 +1,30 @@ +# V0042UserDefault + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Default account | [optional] +**wckey** | **str** | Default WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_user_default import V0042UserDefault + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042UserDefault from a JSON string +v0042_user_default_instance = V0042UserDefault.from_json(json) +# print the JSON string representation of the object +print(V0042UserDefault.to_json()) + +# convert the object into a dict +v0042_user_default_dict = v0042_user_default_instance.to_dict() +# create an instance of V0042UserDefault from a dict +v0042_user_default_from_dict = V0042UserDefault.from_dict(v0042_user_default_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042UserShort.md b/docs/V0042UserShort.md new file mode 100644 index 0000000..599b5f7 --- /dev/null +++ b/docs/V0042UserShort.md @@ -0,0 +1,31 @@ +# V0042UserShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminlevel** | **List[str]** | | [optional] +**defaultaccount** | **str** | Default account | [optional] +**defaultwckey** | **str** | Default WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_user_short import V0042UserShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042UserShort from a JSON string +v0042_user_short_instance = V0042UserShort.from_json(json) +# print the JSON string representation of the object +print(V0042UserShort.to_json()) + +# convert the object into a dict +v0042_user_short_dict = v0042_user_short_instance.to_dict() +# create an instance of V0042UserShort from a dict +v0042_user_short_from_dict = V0042UserShort.from_dict(v0042_user_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042UsersAddCond.md b/docs/V0042UsersAddCond.md new file mode 100644 index 0000000..b7d3ba1 --- /dev/null +++ b/docs/V0042UsersAddCond.md @@ -0,0 +1,34 @@ +# V0042UsersAddCond + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | [optional] +**association** | [**V0042AssocRecSet**](V0042AssocRecSet.md) | | [optional] +**clusters** | **List[str]** | | [optional] +**partitions** | **List[str]** | | [optional] +**users** | **List[str]** | | +**wckeys** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_users_add_cond import V0042UsersAddCond + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042UsersAddCond from a JSON string +v0042_users_add_cond_instance = V0042UsersAddCond.from_json(json) +# print the JSON string representation of the object +print(V0042UsersAddCond.to_json()) + +# convert the object into a dict +v0042_users_add_cond_dict = v0042_users_add_cond_instance.to_dict() +# create an instance of V0042UsersAddCond from a dict +v0042_users_add_cond_from_dict = V0042UsersAddCond.from_dict(v0042_users_add_cond_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042Wckey.md b/docs/V0042Wckey.md new file mode 100644 index 0000000..2459c9c --- /dev/null +++ b/docs/V0042Wckey.md @@ -0,0 +1,34 @@ +# V0042Wckey + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0042Accounting]**](V0042Accounting.md) | | [optional] +**cluster** | **str** | Cluster name | +**id** | **int** | Unique ID for this user-cluster-wckey combination | [optional] +**name** | **str** | WCKey name | +**user** | **str** | User name | +**flags** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0042_wckey import V0042Wckey + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042Wckey from a JSON string +v0042_wckey_instance = V0042Wckey.from_json(json) +# print the JSON string representation of the object +print(V0042Wckey.to_json()) + +# convert the object into a dict +v0042_wckey_dict = v0042_wckey_instance.to_dict() +# create an instance of V0042Wckey from a dict +v0042_wckey_from_dict = V0042Wckey.from_dict(v0042_wckey_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0042WckeyTagStruct.md b/docs/V0042WckeyTagStruct.md new file mode 100644 index 0000000..159e8dc --- /dev/null +++ b/docs/V0042WckeyTagStruct.md @@ -0,0 +1,30 @@ +# V0042WckeyTagStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckey** | **str** | WCKey name | +**flags** | **List[str]** | | + +## Example + +```python +from slurmrest_python.models.v0042_wckey_tag_struct import V0042WckeyTagStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0042WckeyTagStruct from a JSON string +v0042_wckey_tag_struct_instance = V0042WckeyTagStruct.from_json(json) +# print the JSON string representation of the object +print(V0042WckeyTagStruct.to_json()) + +# convert the object into a dict +v0042_wckey_tag_struct_dict = v0042_wckey_tag_struct_instance.to_dict() +# create an instance of V0042WckeyTagStruct from a dict +v0042_wckey_tag_struct_from_dict = V0042WckeyTagStruct.from_dict(v0042_wckey_tag_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Account.md b/docs/V0043Account.md new file mode 100644 index 0000000..7f70e5e --- /dev/null +++ b/docs/V0043Account.md @@ -0,0 +1,34 @@ +# V0043Account + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0043AssocShort]**](V0043AssocShort.md) | | [optional] +**coordinators** | [**List[V0043Coord]**](V0043Coord.md) | | [optional] +**description** | **str** | Arbitrary string describing the account | +**name** | **str** | Account name | +**organization** | **str** | Organization to which the account belongs | +**flags** | **List[str]** | Flags associated with this account | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_account import V0043Account + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Account from a JSON string +v0043_account_instance = V0043Account.from_json(json) +# print the JSON string representation of the object +print(V0043Account.to_json()) + +# convert the object into a dict +v0043_account_dict = v0043_account_instance.to_dict() +# create an instance of V0043Account from a dict +v0043_account_from_dict = V0043Account.from_dict(v0043_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AccountShort.md b/docs/V0043AccountShort.md new file mode 100644 index 0000000..3e1c895 --- /dev/null +++ b/docs/V0043AccountShort.md @@ -0,0 +1,30 @@ +# V0043AccountShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary string describing the account | [optional] +**organization** | **str** | Organization to which the account belongs | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_account_short import V0043AccountShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AccountShort from a JSON string +v0043_account_short_instance = V0043AccountShort.from_json(json) +# print the JSON string representation of the object +print(V0043AccountShort.to_json()) + +# convert the object into a dict +v0043_account_short_dict = v0043_account_short_instance.to_dict() +# create an instance of V0043AccountShort from a dict +v0043_account_short_from_dict = V0043AccountShort.from_dict(v0043_account_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Accounting.md b/docs/V0043Accounting.md new file mode 100644 index 0000000..ac024c5 --- /dev/null +++ b/docs/V0043Accounting.md @@ -0,0 +1,33 @@ +# V0043Accounting + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**V0044AccountingAllocated**](V0044AccountingAllocated.md) | | [optional] +**id** | **int** | Association ID or Workload characterization key ID | [optional] +**id_alt** | **int** | Alternate ID (not currently used) | [optional] +**start** | **int** | When the record was started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**tres** | [**V0043Tres**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_accounting import V0043Accounting + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Accounting from a JSON string +v0043_accounting_instance = V0043Accounting.from_json(json) +# print the JSON string representation of the object +print(V0043Accounting.to_json()) + +# convert the object into a dict +v0043_accounting_dict = v0043_accounting_instance.to_dict() +# create an instance of V0043Accounting from a dict +v0043_accounting_from_dict = V0043Accounting.from_dict(v0043_accounting_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AccountsAddCond.md b/docs/V0043AccountsAddCond.md new file mode 100644 index 0000000..193e7b7 --- /dev/null +++ b/docs/V0043AccountsAddCond.md @@ -0,0 +1,31 @@ +# V0043AccountsAddCond + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | +**association** | [**V0043AssocRecSet**](V0043AssocRecSet.md) | | [optional] +**clusters** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_accounts_add_cond import V0043AccountsAddCond + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AccountsAddCond from a JSON string +v0043_accounts_add_cond_instance = V0043AccountsAddCond.from_json(json) +# print the JSON string representation of the object +print(V0043AccountsAddCond.to_json()) + +# convert the object into a dict +v0043_accounts_add_cond_dict = v0043_accounts_add_cond_instance.to_dict() +# create an instance of V0043AccountsAddCond from a dict +v0043_accounts_add_cond_from_dict = V0043AccountsAddCond.from_dict(v0043_accounts_add_cond_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AcctGatherEnergy.md b/docs/V0043AcctGatherEnergy.md new file mode 100644 index 0000000..de86173 --- /dev/null +++ b/docs/V0043AcctGatherEnergy.md @@ -0,0 +1,34 @@ +# V0043AcctGatherEnergy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average_watts** | **int** | Average power consumption, in watts | [optional] +**base_consumed_energy** | **int** | The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules | [optional] +**consumed_energy** | **int** | The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules | [optional] +**current_watts** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**previous_consumed_energy** | **int** | Previous value of consumed_energy | [optional] +**last_collected** | **int** | Time when energy data was last retrieved (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_acct_gather_energy import V0043AcctGatherEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AcctGatherEnergy from a JSON string +v0043_acct_gather_energy_instance = V0043AcctGatherEnergy.from_json(json) +# print the JSON string representation of the object +print(V0043AcctGatherEnergy.to_json()) + +# convert the object into a dict +v0043_acct_gather_energy_dict = v0043_acct_gather_energy_instance.to_dict() +# create an instance of V0043AcctGatherEnergy from a dict +v0043_acct_gather_energy_from_dict = V0043AcctGatherEnergy.from_dict(v0043_acct_gather_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Assoc.md b/docs/V0043Assoc.md new file mode 100644 index 0000000..f0a3b52 --- /dev/null +++ b/docs/V0043Assoc.md @@ -0,0 +1,45 @@ +# V0043Assoc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0043Accounting]**](V0043Accounting.md) | | [optional] +**account** | **str** | Account name | [optional] +**cluster** | **str** | Cluster name | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**default** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md) | | [optional] +**flags** | **List[str]** | Flags on the association | [optional] +**max** | [**V0043AssocMax**](V0043AssocMax.md) | | [optional] +**id** | **int** | Unique ID (Association ID) | [optional] +**is_default** | **bool** | Is default association for user | [optional] +**lineage** | **str** | Complete path up the hierarchy to the root association | [optional] +**min** | [**V0043AssocMin**](V0043AssocMin.md) | | [optional] +**parent_account** | **str** | Name of parent account | [optional] +**partition** | **str** | Partition name | [optional] +**priority** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**qos** | **List[str]** | List of QOS names | [optional] +**shares_raw** | **int** | Allocated shares used for fairshare calculation | [optional] +**user** | **str** | User name | + +## Example + +```python +from slurmrest_python.models.v0043_assoc import V0043Assoc + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Assoc from a JSON string +v0043_assoc_instance = V0043Assoc.from_json(json) +# print the JSON string representation of the object +print(V0043Assoc.to_json()) + +# convert the object into a dict +v0043_assoc_dict = v0043_assoc_instance.to_dict() +# create an instance of V0043Assoc from a dict +v0043_assoc_from_dict = V0043Assoc.from_dict(v0043_assoc_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMax.md b/docs/V0043AssocMax.md new file mode 100644 index 0000000..f96a96d --- /dev/null +++ b/docs/V0043AssocMax.md @@ -0,0 +1,31 @@ +# V0043AssocMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**V0043AssocMaxJobs**](V0043AssocMaxJobs.md) | | [optional] +**tres** | [**V0043AssocMaxTres**](V0043AssocMaxTres.md) | | [optional] +**per** | [**V0043AssocMaxPer**](V0043AssocMaxPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max import V0043AssocMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMax from a JSON string +v0043_assoc_max_instance = V0043AssocMax.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMax.to_json()) + +# convert the object into a dict +v0043_assoc_max_dict = v0043_assoc_max_instance.to_dict() +# create an instance of V0043AssocMax from a dict +v0043_assoc_max_from_dict = V0043AssocMax.from_dict(v0043_assoc_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxJobs.md b/docs/V0043AssocMaxJobs.md new file mode 100644 index 0000000..0017f72 --- /dev/null +++ b/docs/V0043AssocMaxJobs.md @@ -0,0 +1,32 @@ +# V0043AssocMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0043AssocMaxJobsPer**](V0043AssocMaxJobsPer.md) | | [optional] +**active** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**accruing** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**total** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_jobs import V0043AssocMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxJobs from a JSON string +v0043_assoc_max_jobs_instance = V0043AssocMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxJobs.to_json()) + +# convert the object into a dict +v0043_assoc_max_jobs_dict = v0043_assoc_max_jobs_instance.to_dict() +# create an instance of V0043AssocMaxJobs from a dict +v0043_assoc_max_jobs_from_dict = V0043AssocMaxJobs.from_dict(v0043_assoc_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxJobsPer.md b/docs/V0043AssocMaxJobsPer.md new file mode 100644 index 0000000..ab37e17 --- /dev/null +++ b/docs/V0043AssocMaxJobsPer.md @@ -0,0 +1,32 @@ +# V0043AssocMaxJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**accruing** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**submitted** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**wall_clock** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_jobs_per import V0043AssocMaxJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxJobsPer from a JSON string +v0043_assoc_max_jobs_per_instance = V0043AssocMaxJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxJobsPer.to_json()) + +# convert the object into a dict +v0043_assoc_max_jobs_per_dict = v0043_assoc_max_jobs_per_instance.to_dict() +# create an instance of V0043AssocMaxJobsPer from a dict +v0043_assoc_max_jobs_per_from_dict = V0043AssocMaxJobsPer.from_dict(v0043_assoc_max_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxPer.md b/docs/V0043AssocMaxPer.md new file mode 100644 index 0000000..9fc349e --- /dev/null +++ b/docs/V0043AssocMaxPer.md @@ -0,0 +1,29 @@ +# V0043AssocMaxPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0043AssocMaxPerAccount**](V0043AssocMaxPerAccount.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_per import V0043AssocMaxPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxPer from a JSON string +v0043_assoc_max_per_instance = V0043AssocMaxPer.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxPer.to_json()) + +# convert the object into a dict +v0043_assoc_max_per_dict = v0043_assoc_max_per_instance.to_dict() +# create an instance of V0043AssocMaxPer from a dict +v0043_assoc_max_per_from_dict = V0043AssocMaxPer.from_dict(v0043_assoc_max_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxPerAccount.md b/docs/V0043AssocMaxPerAccount.md new file mode 100644 index 0000000..ba0a6af --- /dev/null +++ b/docs/V0043AssocMaxPerAccount.md @@ -0,0 +1,29 @@ +# V0043AssocMaxPerAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wall_clock** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_per_account import V0043AssocMaxPerAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxPerAccount from a JSON string +v0043_assoc_max_per_account_instance = V0043AssocMaxPerAccount.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxPerAccount.to_json()) + +# convert the object into a dict +v0043_assoc_max_per_account_dict = v0043_assoc_max_per_account_instance.to_dict() +# create an instance of V0043AssocMaxPerAccount from a dict +v0043_assoc_max_per_account_from_dict = V0043AssocMaxPerAccount.from_dict(v0043_assoc_max_per_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxTres.md b/docs/V0043AssocMaxTres.md new file mode 100644 index 0000000..b1c21d0 --- /dev/null +++ b/docs/V0043AssocMaxTres.md @@ -0,0 +1,32 @@ +# V0043AssocMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**group** | [**V0043AssocMaxTresGroup**](V0043AssocMaxTresGroup.md) | | [optional] +**minutes** | [**V0043AssocMaxTresMinutes**](V0043AssocMaxTresMinutes.md) | | [optional] +**per** | [**V0043AssocMaxTresPer**](V0043AssocMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_tres import V0043AssocMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxTres from a JSON string +v0043_assoc_max_tres_instance = V0043AssocMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxTres.to_json()) + +# convert the object into a dict +v0043_assoc_max_tres_dict = v0043_assoc_max_tres_instance.to_dict() +# create an instance of V0043AssocMaxTres from a dict +v0043_assoc_max_tres_from_dict = V0043AssocMaxTres.from_dict(v0043_assoc_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxTresGroup.md b/docs/V0043AssocMaxTresGroup.md new file mode 100644 index 0000000..a0cb757 --- /dev/null +++ b/docs/V0043AssocMaxTresGroup.md @@ -0,0 +1,30 @@ +# V0043AssocMaxTresGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minutes** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**active** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_tres_group import V0043AssocMaxTresGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxTresGroup from a JSON string +v0043_assoc_max_tres_group_instance = V0043AssocMaxTresGroup.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxTresGroup.to_json()) + +# convert the object into a dict +v0043_assoc_max_tres_group_dict = v0043_assoc_max_tres_group_instance.to_dict() +# create an instance of V0043AssocMaxTresGroup from a dict +v0043_assoc_max_tres_group_from_dict = V0043AssocMaxTresGroup.from_dict(v0043_assoc_max_tres_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxTresMinutes.md b/docs/V0043AssocMaxTresMinutes.md new file mode 100644 index 0000000..0983c52 --- /dev/null +++ b/docs/V0043AssocMaxTresMinutes.md @@ -0,0 +1,30 @@ +# V0043AssocMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**per** | [**V0043QosLimitsMinTresPer**](V0043QosLimitsMinTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_tres_minutes import V0043AssocMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxTresMinutes from a JSON string +v0043_assoc_max_tres_minutes_instance = V0043AssocMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxTresMinutes.to_json()) + +# convert the object into a dict +v0043_assoc_max_tres_minutes_dict = v0043_assoc_max_tres_minutes_instance.to_dict() +# create an instance of V0043AssocMaxTresMinutes from a dict +v0043_assoc_max_tres_minutes_from_dict = V0043AssocMaxTresMinutes.from_dict(v0043_assoc_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMaxTresPer.md b/docs/V0043AssocMaxTresPer.md new file mode 100644 index 0000000..515777c --- /dev/null +++ b/docs/V0043AssocMaxTresPer.md @@ -0,0 +1,30 @@ +# V0043AssocMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**node** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_max_tres_per import V0043AssocMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMaxTresPer from a JSON string +v0043_assoc_max_tres_per_instance = V0043AssocMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMaxTresPer.to_json()) + +# convert the object into a dict +v0043_assoc_max_tres_per_dict = v0043_assoc_max_tres_per_instance.to_dict() +# create an instance of V0043AssocMaxTresPer from a dict +v0043_assoc_max_tres_per_from_dict = V0043AssocMaxTresPer.from_dict(v0043_assoc_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocMin.md b/docs/V0043AssocMin.md new file mode 100644 index 0000000..53118e4 --- /dev/null +++ b/docs/V0043AssocMin.md @@ -0,0 +1,29 @@ +# V0043AssocMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_min import V0043AssocMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocMin from a JSON string +v0043_assoc_min_instance = V0043AssocMin.from_json(json) +# print the JSON string representation of the object +print(V0043AssocMin.to_json()) + +# convert the object into a dict +v0043_assoc_min_dict = v0043_assoc_min_instance.to_dict() +# create an instance of V0043AssocMin from a dict +v0043_assoc_min_from_dict = V0043AssocMin.from_dict(v0043_assoc_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocRecSet.md b/docs/V0043AssocRecSet.md new file mode 100644 index 0000000..29471de --- /dev/null +++ b/docs/V0043AssocRecSet.md @@ -0,0 +1,50 @@ +# V0043AssocRecSet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**defaultqos** | **str** | Default QOS | [optional] +**grpjobs** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**grpjobsaccrue** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**grpsubmitjobs** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**grptres** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**grptresmins** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**grptresrunmins** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**grpwall** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**maxjobs** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**maxjobsaccrue** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**maxsubmitjobs** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**maxtresminsperjob** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**maxtresrunmins** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**maxtresperjob** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**maxtrespernode** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**maxwalldurationperjob** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**minpriothresh** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**parent** | **str** | Name of parent account | [optional] +**priority** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**qoslevel** | **List[str]** | List of QOS names | [optional] +**fairshare** | **int** | Allocated shares used for fairshare calculation | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_rec_set import V0043AssocRecSet + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocRecSet from a JSON string +v0043_assoc_rec_set_instance = V0043AssocRecSet.from_json(json) +# print the JSON string representation of the object +print(V0043AssocRecSet.to_json()) + +# convert the object into a dict +v0043_assoc_rec_set_dict = v0043_assoc_rec_set_instance.to_dict() +# create an instance of V0043AssocRecSet from a dict +v0043_assoc_rec_set_from_dict = V0043AssocRecSet.from_dict(v0043_assoc_rec_set_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocSharesObjWrap.md b/docs/V0043AssocSharesObjWrap.md new file mode 100644 index 0000000..abe0aa9 --- /dev/null +++ b/docs/V0043AssocSharesObjWrap.md @@ -0,0 +1,41 @@ +# V0043AssocSharesObjWrap + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Association ID | [optional] +**cluster** | **str** | Cluster name | [optional] +**name** | **str** | Share name | [optional] +**parent** | **str** | Parent name | [optional] +**partition** | **str** | Partition name | [optional] +**shares_normalized** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] +**shares** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**tres** | [**V0043AssocSharesObjWrapTres**](V0043AssocSharesObjWrapTres.md) | | [optional] +**effective_usage** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] +**usage_normalized** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] +**usage** | **int** | Measure of tresbillableunits usage | [optional] +**fairshare** | [**V0043AssocSharesObjWrapFairshare**](V0043AssocSharesObjWrapFairshare.md) | | [optional] +**type** | **List[str]** | User or account association | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_shares_obj_wrap import V0043AssocSharesObjWrap + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocSharesObjWrap from a JSON string +v0043_assoc_shares_obj_wrap_instance = V0043AssocSharesObjWrap.from_json(json) +# print the JSON string representation of the object +print(V0043AssocSharesObjWrap.to_json()) + +# convert the object into a dict +v0043_assoc_shares_obj_wrap_dict = v0043_assoc_shares_obj_wrap_instance.to_dict() +# create an instance of V0043AssocSharesObjWrap from a dict +v0043_assoc_shares_obj_wrap_from_dict = V0043AssocSharesObjWrap.from_dict(v0043_assoc_shares_obj_wrap_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocSharesObjWrapFairshare.md b/docs/V0043AssocSharesObjWrapFairshare.md new file mode 100644 index 0000000..b51a8d6 --- /dev/null +++ b/docs/V0043AssocSharesObjWrapFairshare.md @@ -0,0 +1,30 @@ +# V0043AssocSharesObjWrapFairshare + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factor** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] +**level** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_fairshare import V0043AssocSharesObjWrapFairshare + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocSharesObjWrapFairshare from a JSON string +v0043_assoc_shares_obj_wrap_fairshare_instance = V0043AssocSharesObjWrapFairshare.from_json(json) +# print the JSON string representation of the object +print(V0043AssocSharesObjWrapFairshare.to_json()) + +# convert the object into a dict +v0043_assoc_shares_obj_wrap_fairshare_dict = v0043_assoc_shares_obj_wrap_fairshare_instance.to_dict() +# create an instance of V0043AssocSharesObjWrapFairshare from a dict +v0043_assoc_shares_obj_wrap_fairshare_from_dict = V0043AssocSharesObjWrapFairshare.from_dict(v0043_assoc_shares_obj_wrap_fairshare_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocSharesObjWrapTres.md b/docs/V0043AssocSharesObjWrapTres.md new file mode 100644 index 0000000..8bc1454 --- /dev/null +++ b/docs/V0043AssocSharesObjWrapTres.md @@ -0,0 +1,31 @@ +# V0043AssocSharesObjWrapTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**run_seconds** | [**List[V0043SharesUint64Tres]**](V0043SharesUint64Tres.md) | | [optional] +**group_minutes** | [**List[V0043SharesUint64Tres]**](V0043SharesUint64Tres.md) | | [optional] +**usage** | [**List[V0043SharesFloat128Tres]**](V0043SharesFloat128Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_tres import V0043AssocSharesObjWrapTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocSharesObjWrapTres from a JSON string +v0043_assoc_shares_obj_wrap_tres_instance = V0043AssocSharesObjWrapTres.from_json(json) +# print the JSON string representation of the object +print(V0043AssocSharesObjWrapTres.to_json()) + +# convert the object into a dict +v0043_assoc_shares_obj_wrap_tres_dict = v0043_assoc_shares_obj_wrap_tres_instance.to_dict() +# create an instance of V0043AssocSharesObjWrapTres from a dict +v0043_assoc_shares_obj_wrap_tres_from_dict = V0043AssocSharesObjWrapTres.from_dict(v0043_assoc_shares_obj_wrap_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043AssocShort.md b/docs/V0043AssocShort.md new file mode 100644 index 0000000..1224c33 --- /dev/null +++ b/docs/V0043AssocShort.md @@ -0,0 +1,33 @@ +# V0043AssocShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account name | [optional] +**cluster** | **str** | Cluster name | [optional] +**partition** | **str** | Partition name | [optional] +**user** | **str** | User name | +**id** | **int** | Numeric association ID | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043AssocShort from a JSON string +v0043_assoc_short_instance = V0043AssocShort.from_json(json) +# print the JSON string representation of the object +print(V0043AssocShort.to_json()) + +# convert the object into a dict +v0043_assoc_short_dict = v0043_assoc_short_instance.to_dict() +# create an instance of V0043AssocShort from a dict +v0043_assoc_short_from_dict = V0043AssocShort.from_dict(v0043_assoc_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043BfExitFields.md b/docs/V0043BfExitFields.md new file mode 100644 index 0000000..cb4e2c1 --- /dev/null +++ b/docs/V0043BfExitFields.md @@ -0,0 +1,34 @@ +# V0043BfExitFields + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**bf_max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**bf_max_job_test** | **int** | Reached number of jobs allowed to be tested | [optional] +**bf_max_time** | **int** | Reached maximum allowed scheduler time | [optional] +**bf_node_space_size** | **int** | Reached table size limit | [optional] +**state_changed** | **int** | System state changed | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_bf_exit_fields import V0043BfExitFields + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043BfExitFields from a JSON string +v0043_bf_exit_fields_instance = V0043BfExitFields.from_json(json) +# print the JSON string representation of the object +print(V0043BfExitFields.to_json()) + +# convert the object into a dict +v0043_bf_exit_fields_dict = v0043_bf_exit_fields_instance.to_dict() +# create an instance of V0043BfExitFields from a dict +v0043_bf_exit_fields_from_dict = V0043BfExitFields.from_dict(v0043_bf_exit_fields_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ClusterRec.md b/docs/V0043ClusterRec.md new file mode 100644 index 0000000..e358aa0 --- /dev/null +++ b/docs/V0043ClusterRec.md @@ -0,0 +1,36 @@ +# V0043ClusterRec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller** | [**V0041OpenapiSlurmdbdConfigRespClustersInnerController**](V0041OpenapiSlurmdbdConfigRespClustersInnerController.md) | | [optional] +**flags** | **List[str]** | Flags | [optional] +**name** | **str** | ClusterName | [optional] +**nodes** | **str** | Node names | [optional] +**select_plugin** | **str** | | [optional] +**associations** | [**V0043ClusterRecAssociations**](V0043ClusterRecAssociations.md) | | [optional] +**rpc_version** | **int** | RPC version used in the cluster | [optional] +**tres** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_cluster_rec import V0043ClusterRec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ClusterRec from a JSON string +v0043_cluster_rec_instance = V0043ClusterRec.from_json(json) +# print the JSON string representation of the object +print(V0043ClusterRec.to_json()) + +# convert the object into a dict +v0043_cluster_rec_dict = v0043_cluster_rec_instance.to_dict() +# create an instance of V0043ClusterRec from a dict +v0043_cluster_rec_from_dict = V0043ClusterRec.from_dict(v0043_cluster_rec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ClusterRecAssociations.md b/docs/V0043ClusterRecAssociations.md new file mode 100644 index 0000000..96d95e4 --- /dev/null +++ b/docs/V0043ClusterRecAssociations.md @@ -0,0 +1,29 @@ +# V0043ClusterRecAssociations + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**root** | [**V0043AssocShort**](V0043AssocShort.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_cluster_rec_associations import V0043ClusterRecAssociations + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ClusterRecAssociations from a JSON string +v0043_cluster_rec_associations_instance = V0043ClusterRecAssociations.from_json(json) +# print the JSON string representation of the object +print(V0043ClusterRecAssociations.to_json()) + +# convert the object into a dict +v0043_cluster_rec_associations_dict = v0043_cluster_rec_associations_instance.to_dict() +# create an instance of V0043ClusterRecAssociations from a dict +v0043_cluster_rec_associations_from_dict = V0043ClusterRecAssociations.from_dict(v0043_cluster_rec_associations_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ControllerPing.md b/docs/V0043ControllerPing.md new file mode 100644 index 0000000..c814bf5 --- /dev/null +++ b/docs/V0043ControllerPing.md @@ -0,0 +1,34 @@ +# V0043ControllerPing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Target for ping | [optional] +**pinged** | **str** | Ping result | [optional] +**responding** | **bool** | If ping RPC responded with pong from controller | +**latency** | **int** | Number of microseconds it took to successfully ping or timeout | [optional] +**mode** | **str** | The operating mode of the responding slurmctld | [optional] +**primary** | **bool** | Is responding slurmctld the primary controller (Is responding slurmctld the primary controller) | + +## Example + +```python +from slurmrest_python.models.v0043_controller_ping import V0043ControllerPing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ControllerPing from a JSON string +v0043_controller_ping_instance = V0043ControllerPing.from_json(json) +# print the JSON string representation of the object +print(V0043ControllerPing.to_json()) + +# convert the object into a dict +v0043_controller_ping_dict = v0043_controller_ping_instance.to_dict() +# create an instance of V0043ControllerPing from a dict +v0043_controller_ping_from_dict = V0043ControllerPing.from_dict(v0043_controller_ping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Coord.md b/docs/V0043Coord.md new file mode 100644 index 0000000..3fd991c --- /dev/null +++ b/docs/V0043Coord.md @@ -0,0 +1,30 @@ +# V0043Coord + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | User name | +**direct** | **bool** | Indicates whether the coordinator was directly assigned to this account | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_coord import V0043Coord + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Coord from a JSON string +v0043_coord_instance = V0043Coord.from_json(json) +# print the JSON string representation of the object +print(V0043Coord.to_json()) + +# convert the object into a dict +v0043_coord_dict = v0043_coord_instance.to_dict() +# create an instance of V0043Coord from a dict +v0043_coord_from_dict = V0043Coord.from_dict(v0043_coord_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043CronEntry.md b/docs/V0043CronEntry.md new file mode 100644 index 0000000..daaa3d7 --- /dev/null +++ b/docs/V0043CronEntry.md @@ -0,0 +1,37 @@ +# V0043CronEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flags** | **List[str]** | Flags | [optional] +**minute** | **str** | Ranged string specifying eligible minute values (e.g. 0-10,50) | [optional] +**hour** | **str** | Ranged string specifying eligible hour values (e.g. 0-5,23) | [optional] +**day_of_month** | **str** | Ranged string specifying eligible day of month values (e.g. 0-10,29) | [optional] +**month** | **str** | Ranged string specifying eligible month values (e.g. 0-5,12) | [optional] +**day_of_week** | **str** | Ranged string specifying eligible day of week values (e.g.0-3,7) | [optional] +**specification** | **str** | Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week | [optional] +**command** | **str** | Command to run | [optional] +**line** | [**V0041JobDescMsgCrontabLine**](V0041JobDescMsgCrontabLine.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_cron_entry import V0043CronEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043CronEntry from a JSON string +v0043_cron_entry_instance = V0043CronEntry.from_json(json) +# print the JSON string representation of the object +print(V0043CronEntry.to_json()) + +# convert the object into a dict +v0043_cron_entry_dict = v0043_cron_entry_instance.to_dict() +# create an instance of V0043CronEntry from a dict +v0043_cron_entry_from_dict = V0043CronEntry.from_dict(v0043_cron_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Float64NoValStruct.md b/docs/V0043Float64NoValStruct.md new file mode 100644 index 0000000..0c4aacc --- /dev/null +++ b/docs/V0043Float64NoValStruct.md @@ -0,0 +1,31 @@ +# V0043Float64NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Float64NoValStruct from a JSON string +v0043_float64_no_val_struct_instance = V0043Float64NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0043Float64NoValStruct.to_json()) + +# convert the object into a dict +v0043_float64_no_val_struct_dict = v0043_float64_no_val_struct_instance.to_dict() +# create an instance of V0043Float64NoValStruct from a dict +v0043_float64_no_val_struct_from_dict = V0043Float64NoValStruct.from_dict(v0043_float64_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Instance.md b/docs/V0043Instance.md new file mode 100644 index 0000000..cb9add4 --- /dev/null +++ b/docs/V0043Instance.md @@ -0,0 +1,34 @@ +# V0043Instance + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster** | **str** | Cluster name | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**node_name** | **str** | NodeName | [optional] +**time** | [**V0044InstanceTime**](V0044InstanceTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_instance import V0043Instance + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Instance from a JSON string +v0043_instance_instance = V0043Instance.from_json(json) +# print the JSON string representation of the object +print(V0043Instance.to_json()) + +# convert the object into a dict +v0043_instance_dict = v0043_instance_instance.to_dict() +# create an instance of V0043Instance from a dict +v0043_instance_from_dict = V0043Instance.from_dict(v0043_instance_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Job.md b/docs/V0043Job.md new file mode 100644 index 0000000..b14991c --- /dev/null +++ b/docs/V0043Job.md @@ -0,0 +1,75 @@ +# V0043Job + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account the job ran under | [optional] +**comment** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerComment**](V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md) | | [optional] +**allocation_nodes** | **int** | List of nodes allocated to the job | [optional] +**array** | [**V0043JobArray**](V0043JobArray.md) | | [optional] +**association** | [**V0043AssocShort**](V0043AssocShort.md) | | [optional] +**block** | **str** | The name of the block to be used (used with Blue Gene systems) | [optional] +**cluster** | **str** | Cluster name | [optional] +**constraints** | **str** | Feature(s) the job requested as a constraint | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**derived_exit_code** | [**V0043ProcessExitCodeVerbose**](V0043ProcessExitCodeVerbose.md) | | [optional] +**time** | [**V0043JobTime**](V0043JobTime.md) | | [optional] +**exit_code** | [**V0043ProcessExitCodeVerbose**](V0043ProcessExitCodeVerbose.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**flags** | **List[str]** | Flags associated with this job | [optional] +**group** | **str** | Group ID of the user that owns the job | [optional] +**het** | [**V0043JobHet**](V0043JobHet.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**name** | **str** | Job name | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mcs** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerMcs**](V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md) | | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**hold** | **bool** | Hold (true) or release (false) job (Job held) | [optional] +**priority** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**qosreq** | **str** | Requested QOS | [optional] +**required** | [**V0043JobRequired**](V0043JobRequired.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the job | [optional] +**restart_cnt** | **int** | How many times this job has been requeued/restarted | [optional] +**reservation** | [**V0044JobReservation**](V0044JobReservation.md) | | [optional] +**script** | **str** | Job batch script; only the first component in a HetJob is populated or honored | [optional] +**segment_size** | **int** | Requested segment size | [optional] +**stdin_expanded** | **str** | Job stdin with expanded fields | [optional] +**stdout_expanded** | **str** | Job stdout with expanded fields | [optional] +**stderr_expanded** | **str** | Job stderr with expanded fields | [optional] +**stdout** | **str** | Path to stdout file | [optional] +**stderr** | **str** | Path to stderr file | [optional] +**stdin** | **str** | Path to stdin file | [optional] +**state** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerState**](V0041OpenapiSlurmdbdJobsRespJobsInnerState.md) | | [optional] +**steps** | [**List[V0043Step]**](V0043Step.md) | | [optional] +**submit_line** | **str** | Command used to submit the job | [optional] +**tres** | [**V0043JobTres**](V0043JobTres.md) | | [optional] +**used_gres** | **str** | Generic resources used by job | [optional] +**user** | **str** | User that owns the job | [optional] +**wckey** | [**V0043WckeyTagStruct**](V0043WckeyTagStruct.md) | | [optional] +**working_directory** | **str** | Path to current working directory | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job import V0043Job + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Job from a JSON string +v0043_job_instance = V0043Job.from_json(json) +# print the JSON string representation of the object +print(V0043Job.to_json()) + +# convert the object into a dict +v0043_job_dict = v0043_job_instance.to_dict() +# create an instance of V0043Job from a dict +v0043_job_from_dict = V0043Job.from_dict(v0043_job_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobAllocReq.md b/docs/V0043JobAllocReq.md new file mode 100644 index 0000000..76e16c1 --- /dev/null +++ b/docs/V0043JobAllocReq.md @@ -0,0 +1,30 @@ +# V0043JobAllocReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hetjob** | [**List[V0043JobDescMsg]**](V0043JobDescMsg.md) | | [optional] +**job** | [**V0043JobDescMsg**](V0043JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_alloc_req import V0043JobAllocReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobAllocReq from a JSON string +v0043_job_alloc_req_instance = V0043JobAllocReq.from_json(json) +# print the JSON string representation of the object +print(V0043JobAllocReq.to_json()) + +# convert the object into a dict +v0043_job_alloc_req_dict = v0043_job_alloc_req_instance.to_dict() +# create an instance of V0043JobAllocReq from a dict +v0043_job_alloc_req_from_dict = V0043JobAllocReq.from_dict(v0043_job_alloc_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobArray.md b/docs/V0043JobArray.md new file mode 100644 index 0000000..27c15e0 --- /dev/null +++ b/docs/V0043JobArray.md @@ -0,0 +1,32 @@ +# V0043JobArray + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID of job array, or 0 if N/A | [optional] +**limits** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits**](V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md) | | [optional] +**task_id** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**task** | **str** | String expression of task IDs in this record | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_array import V0043JobArray + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobArray from a JSON string +v0043_job_array_instance = V0043JobArray.from_json(json) +# print the JSON string representation of the object +print(V0043JobArray.to_json()) + +# convert the object into a dict +v0043_job_array_dict = v0043_job_array_instance.to_dict() +# create an instance of V0043JobArray from a dict +v0043_job_array_from_dict = V0043JobArray.from_dict(v0043_job_array_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobArrayResponseMsgEntry.md b/docs/V0043JobArrayResponseMsgEntry.md new file mode 100644 index 0000000..9055c4d --- /dev/null +++ b/docs/V0043JobArrayResponseMsgEntry.md @@ -0,0 +1,33 @@ +# V0043JobArrayResponseMsgEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID for updated job | [optional] +**step_id** | **str** | Step ID for updated job | [optional] +**error** | **str** | Verbose update status or error | [optional] +**error_code** | **int** | Verbose update status or error | [optional] +**why** | **str** | Update response message | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_array_response_msg_entry import V0043JobArrayResponseMsgEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobArrayResponseMsgEntry from a JSON string +v0043_job_array_response_msg_entry_instance = V0043JobArrayResponseMsgEntry.from_json(json) +# print the JSON string representation of the object +print(V0043JobArrayResponseMsgEntry.to_json()) + +# convert the object into a dict +v0043_job_array_response_msg_entry_dict = v0043_job_array_response_msg_entry_instance.to_dict() +# create an instance of V0043JobArrayResponseMsgEntry from a dict +v0043_job_array_response_msg_entry_from_dict = V0043JobArrayResponseMsgEntry.from_dict(v0043_job_array_response_msg_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobDescMsg.md b/docs/V0043JobDescMsg.md new file mode 100644 index 0000000..4b53698 --- /dev/null +++ b/docs/V0043JobDescMsg.md @@ -0,0 +1,143 @@ +# V0043JobDescMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**account_gather_frequency** | **str** | Job accounting and profiling sampling intervals in seconds | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocation_node_list** | **str** | Local node making the resource allocation | [optional] +**allocation_node_port** | **int** | Port to send allocation confirmation to | [optional] +**argv** | **List[str]** | | [optional] +**array** | **str** | Job array index value specification | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**begin_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**flags** | **List[str]** | Job flags | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**clusters** | **str** | Clusters that a federated job can run on | [optional] +**cluster_constraint** | **str** | Required features that a federated cluster must have to have a sibling job submitted to it | [optional] +**comment** | **str** | Arbitrary comment made by user | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**core_specification** | **int** | Specialized core count | [optional] +**thread_specification** | **int** | Specialized thread count | [optional] +**cpu_binding** | **str** | Method for binding tasks to allocated CPUs | [optional] +**cpu_binding_flags** | **List[str]** | Flags for CPU binding | [optional] +**cpu_frequency** | **str** | Requested CPU frequency range <p1>[-p2][:p3] | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**crontab** | [**V0043CronEntry**](V0043CronEntry.md) | | [optional] +**deadline** | **int** | Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**delay_boot** | **int** | Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**end_time** | **int** | Expected end time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**environment** | **List[str]** | | [optional] +**rlimits** | [**V0043JobDescMsgRlimits**](V0043JobDescMsgRlimits.md) | | [optional] +**excluded_nodes** | **List[str]** | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**constraints** | **str** | Comma-separated list of features that are required | [optional] +**group_id** | **str** | Group ID of the user that owns the job | [optional] +**hetjob_group** | **int** | Unique sequence number applied to this component of the heterogeneous job | [optional] +**immediate** | **bool** | If true, exit if resources are not available within the time period specified | [optional] +**job_id** | **int** | Job ID | [optional] +**kill_on_node_fail** | **bool** | If true, kill job on node failure | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mail_type** | **List[str]** | Mail event type(s) | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_binding** | **str** | Binding map for map/mask_cpu | [optional] +**memory_binding_type** | **List[str]** | Method for binding tasks to memory | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for job step | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks** | **int** | Number of tasks | [optional] +**oom_kill_step** | **int** | Kill whole step in case of OOM in one of the tasks | [optional] +**open_mode** | **List[str]** | Open mode used for stdout and stderr files | [optional] +**reserve_ports** | **int** | Port to send various notification msg to | [optional] +**overcommit** | **bool** | Overcommit resources | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**distribution_plane_size** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**power_flags** | **List[object]** | | [optional] +**prefer** | **str** | Comma-separated list of features that are preferred but not required | [optional] +**hold** | **bool** | Hold (true) or release (false) job (Job held) | [optional] +**priority** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**profile** | **List[str]** | Profile used by the acct_gather_profile plugin | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **List[str]** | | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**reservation** | **str** | Name of reservation to use | [optional] +**script** | **str** | Job batch script; only the first component in a HetJob is populated or honored | [optional] +**shared** | **List[str]** | How the job can share resources with other jobs, if at all | [optional] +**site_factor** | **int** | Site-specific priority factor | [optional] +**spank_environment** | **List[str]** | | [optional] +**distribution** | **str** | Layout | [optional] +**time_limit** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**time_minimum** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma-separated list of TRES=# values to be allocated for every job | [optional] +**tres_per_node** | **str** | Comma-separated list of TRES=# values to be allocated for every node | [optional] +**tres_per_socket** | **str** | Comma-separated list of TRES=# values to be allocated for every socket | [optional] +**tres_per_task** | **str** | Comma-separated list of TRES=# values to be allocated for every task | [optional] +**user_id** | **str** | User ID that owns the job | [optional] +**wait_all_nodes** | **bool** | If true, wait to start until after all nodes have booted | [optional] +**kill_warning_flags** | **List[str]** | Flags related to job signals | [optional] +**kill_warning_signal** | **str** | Signal to send when approaching end time (e.g. \"10\" or \"USR1\") | [optional] +**kill_warning_delay** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] +**cpus_per_task** | **int** | Number of CPUs required by each task | [optional] +**minimum_cpus** | **int** | Minimum number of CPUs required | [optional] +**maximum_cpus** | **int** | Maximum number of CPUs required | [optional] +**nodes** | **str** | Node count range specification (e.g. 1-15:4) | [optional] +**minimum_nodes** | **int** | Minimum node count | [optional] +**maximum_nodes** | **int** | Maximum node count | [optional] +**minimum_boards_per_node** | **int** | Boards per node required | [optional] +**minimum_sockets_per_board** | **int** | Sockets per board required | [optional] +**sockets_per_node** | **int** | Sockets per node required | [optional] +**threads_per_core** | **int** | Threads per core required | [optional] +**tasks_per_node** | **int** | Number of tasks to invoke on each node | [optional] +**tasks_per_socket** | **int** | Number of tasks to invoke on each socket | [optional] +**tasks_per_core** | **int** | Number of tasks to invoke on each core | [optional] +**tasks_per_board** | **int** | Number of tasks to invoke on each board | [optional] +**ntasks_per_tres** | **int** | Number of tasks that can access each GPU | [optional] +**minimum_cpus_per_node** | **int** | Minimum number of CPUs per node | [optional] +**memory_per_cpu** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**temporary_disk_per_node** | **int** | Minimum tmp disk space required per node | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**required_switches** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**segment_size** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**wait_for_switch** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**x11** | **List[str]** | X11 forwarding options | [optional] +**x11_magic_cookie** | **str** | Magic cookie for X11 forwarding | [optional] +**x11_target_host** | **str** | Hostname or UNIX socket if x11_target_port=0 | [optional] +**x11_target_port** | **int** | TCP port | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobDescMsg from a JSON string +v0043_job_desc_msg_instance = V0043JobDescMsg.from_json(json) +# print the JSON string representation of the object +print(V0043JobDescMsg.to_json()) + +# convert the object into a dict +v0043_job_desc_msg_dict = v0043_job_desc_msg_instance.to_dict() +# create an instance of V0043JobDescMsg from a dict +v0043_job_desc_msg_from_dict = V0043JobDescMsg.from_dict(v0043_job_desc_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobDescMsgRlimits.md b/docs/V0043JobDescMsgRlimits.md new file mode 100644 index 0000000..82a616e --- /dev/null +++ b/docs/V0043JobDescMsgRlimits.md @@ -0,0 +1,38 @@ +# V0043JobDescMsgRlimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**fsize** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**data** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**stack** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**core** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**rss** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**nproc** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**nofile** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**memlock** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**var_as** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_desc_msg_rlimits import V0043JobDescMsgRlimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobDescMsgRlimits from a JSON string +v0043_job_desc_msg_rlimits_instance = V0043JobDescMsgRlimits.from_json(json) +# print the JSON string representation of the object +print(V0043JobDescMsgRlimits.to_json()) + +# convert the object into a dict +v0043_job_desc_msg_rlimits_dict = v0043_job_desc_msg_rlimits_instance.to_dict() +# create an instance of V0043JobDescMsgRlimits from a dict +v0043_job_desc_msg_rlimits_from_dict = V0043JobDescMsgRlimits.from_dict(v0043_job_desc_msg_rlimits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobHet.md b/docs/V0043JobHet.md new file mode 100644 index 0000000..415d085 --- /dev/null +++ b/docs/V0043JobHet.md @@ -0,0 +1,30 @@ +# V0043JobHet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Heterogeneous job ID, if applicable | [optional] +**job_offset** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_het import V0043JobHet + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobHet from a JSON string +v0043_job_het_instance = V0043JobHet.from_json(json) +# print the JSON string representation of the object +print(V0043JobHet.to_json()) + +# convert the object into a dict +v0043_job_het_dict = v0043_job_het_instance.to_dict() +# create an instance of V0043JobHet from a dict +v0043_job_het_from_dict = V0043JobHet.from_dict(v0043_job_het_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobInfo.md b/docs/V0043JobInfo.md new file mode 100644 index 0000000..9fe302e --- /dev/null +++ b/docs/V0043JobInfo.md @@ -0,0 +1,161 @@ +# V0043JobInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**accrue_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocating_node** | **str** | Local node making the resource allocation | [optional] +**array_job_id** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**array_task_id** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**array_max_tasks** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**array_task_string** | **str** | String expression of task IDs in this record | [optional] +**association_id** | **int** | Unique identifier for the association | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**batch_flag** | **bool** | True if batch job | [optional] +**batch_host** | **str** | Name of host running batch script | [optional] +**flags** | **List[str]** | Job flags | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**burst_buffer_state** | **str** | Burst buffer state details | [optional] +**cluster** | **str** | Cluster name | [optional] +**cluster_features** | **str** | List of required cluster features | [optional] +**command** | **str** | Executed command | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**core_spec** | **int** | Specialized core count | [optional] +**thread_spec** | **int** | Specialized thread count | [optional] +**cores_per_socket** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**billable_tres** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] +**cpus_per_task** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**cpu_frequency_minimum** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**cpu_frequency_maximum** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**cpu_frequency_governor** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**cron** | **str** | Time specification for scrontab job | [optional] +**deadline** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**delay_boot** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**derived_exit_code** | [**V0043ProcessExitCodeVerbose**](V0043ProcessExitCodeVerbose.md) | | [optional] +**eligible_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**end_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**excluded_nodes** | **str** | Comma-separated list of nodes that may not be used | [optional] +**exit_code** | [**V0043ProcessExitCodeVerbose**](V0043ProcessExitCodeVerbose.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**features** | **str** | Comma-separated list of features that are required | [optional] +**federation_origin** | **str** | Origin cluster's name (when using federation) | [optional] +**federation_siblings_active** | **str** | Active sibling job names | [optional] +**federation_siblings_viable** | **str** | Viable sibling job names | [optional] +**gres_detail** | **List[str]** | | [optional] +**group_id** | **int** | Group ID of the user that owns the job | [optional] +**group_name** | **str** | Group name of the user that owns the job | [optional] +**het_job_id** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**het_job_id_set** | **str** | Job ID range for all heterogeneous job components | [optional] +**het_job_offset** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**job_resources** | [**V0043JobRes**](V0043JobRes.md) | | [optional] +**job_size_str** | **List[str]** | | [optional] +**job_state** | **List[str]** | Current state | [optional] +**last_sched_evaluation** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**licenses_allocated** | **str** | License(s) allocated to the job | [optional] +**mail_type** | **List[str]** | Mail event type(s) | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**max_cpus** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**max_nodes** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for the job | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks_per_core** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**tasks_per_tres** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**tasks_per_node** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**tasks_per_socket** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**tasks_per_board** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**cpus** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**node_count** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**tasks** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**prefer** | **str** | Feature(s) the job requested but that are not required | [optional] +**memory_per_cpu** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**minimum_cpus_per_node** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**minimum_tmp_disk_per_node** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**power** | [**V0041OpenapiJobInfoRespJobsInnerPower**](V0041OpenapiJobInfoRespJobsInnerPower.md) | | [optional] +**preempt_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**preemptable_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**pre_sus_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**hold** | **bool** | Hold (true) or release (false) job (Job held) | [optional] +**priority** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**priority_by_partition** | [**List[V0043PartPrio]**](V0043PartPrio.md) | | [optional] +**profile** | **List[str]** | Profile used by the acct_gather_profile plugin | [optional] +**qos** | **str** | Quality of Service assigned to the job, if pending the QOS requested | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **str** | Comma-separated list of required nodes | [optional] +**required_switches** | **int** | Maximum number of switches | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**resize_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**restart_cnt** | **int** | Number of job restarts | [optional] +**resv_name** | **str** | Name of reservation to use | [optional] +**scheduled_nodes** | **str** | List of nodes scheduled to be used for the job | [optional] +**segment_size** | **int** | Requested segment size | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**shared** | **List[str]** | How the job can share resources with other jobs, if at all | [optional] +**sockets_per_board** | **int** | Number of sockets per board required | [optional] +**sockets_per_node** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**start_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**state_description** | **str** | Optional details for state_reason | [optional] +**state_reason** | **str** | Reason for current Pending or Failed state | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**stdin_expanded** | **str** | Job stdin with expanded fields | [optional] +**stdout_expanded** | **str** | Job stdout with expanded fields | [optional] +**stderr_expanded** | **str** | Job stderr with expanded fields | [optional] +**submit_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**suspend_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**system_comment** | **str** | Arbitrary comment from slurmctld | [optional] +**time_limit** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**time_minimum** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**threads_per_core** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma-separated list of TRES=# values to be allocated per job | [optional] +**tres_per_node** | **str** | Comma-separated list of TRES=# values to be allocated per node | [optional] +**tres_per_socket** | **str** | Comma-separated list of TRES=# values to be allocated per socket | [optional] +**tres_per_task** | **str** | Comma-separated list of TRES=# values to be allocated per task | [optional] +**tres_req_str** | **str** | TRES requested by the job | [optional] +**tres_alloc_str** | **str** | TRES used by the job | [optional] +**user_id** | **int** | User ID that owns the job | [optional] +**user_name** | **str** | User name that owns the job | [optional] +**maximum_switch_wait_time** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_info import V0043JobInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobInfo from a JSON string +v0043_job_info_instance = V0043JobInfo.from_json(json) +# print the JSON string representation of the object +print(V0043JobInfo.to_json()) + +# convert the object into a dict +v0043_job_info_dict = v0043_job_info_instance.to_dict() +# create an instance of V0043JobInfo from a dict +v0043_job_info_from_dict = V0043JobInfo.from_dict(v0043_job_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobRequired.md b/docs/V0043JobRequired.md new file mode 100644 index 0000000..b9d9cab --- /dev/null +++ b/docs/V0043JobRequired.md @@ -0,0 +1,31 @@ +# V0043JobRequired + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus** | **int** | Minimum number of CPUs required | [optional] +**memory_per_cpu** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_required import V0043JobRequired + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobRequired from a JSON string +v0043_job_required_instance = V0043JobRequired.from_json(json) +# print the JSON string representation of the object +print(V0043JobRequired.to_json()) + +# convert the object into a dict +v0043_job_required_dict = v0043_job_required_instance.to_dict() +# create an instance of V0043JobRequired from a dict +v0043_job_required_from_dict = V0043JobRequired.from_dict(v0043_job_required_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobRes.md b/docs/V0043JobRes.md new file mode 100644 index 0000000..b07742d --- /dev/null +++ b/docs/V0043JobRes.md @@ -0,0 +1,32 @@ +# V0043JobRes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**select_type** | **List[str]** | Scheduler consumable resource selection type | +**nodes** | [**V0043JobResNodes**](V0043JobResNodes.md) | | [optional] +**cpus** | **int** | Number of allocated CPUs | +**threads_per_core** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0043_job_res import V0043JobRes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobRes from a JSON string +v0043_job_res_instance = V0043JobRes.from_json(json) +# print the JSON string representation of the object +print(V0043JobRes.to_json()) + +# convert the object into a dict +v0043_job_res_dict = v0043_job_res_instance.to_dict() +# create an instance of V0043JobRes from a dict +v0043_job_res_from_dict = V0043JobRes.from_dict(v0043_job_res_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobResCore.md b/docs/V0043JobResCore.md new file mode 100644 index 0000000..40d8bc5 --- /dev/null +++ b/docs/V0043JobResCore.md @@ -0,0 +1,30 @@ +# V0043JobResCore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**status** | **List[str]** | Core status | + +## Example + +```python +from slurmrest_python.models.v0043_job_res_core import V0043JobResCore + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobResCore from a JSON string +v0043_job_res_core_instance = V0043JobResCore.from_json(json) +# print the JSON string representation of the object +print(V0043JobResCore.to_json()) + +# convert the object into a dict +v0043_job_res_core_dict = v0043_job_res_core_instance.to_dict() +# create an instance of V0043JobResCore from a dict +v0043_job_res_core_from_dict = V0043JobResCore.from_dict(v0043_job_res_core_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobResNode.md b/docs/V0043JobResNode.md new file mode 100644 index 0000000..51c9654 --- /dev/null +++ b/docs/V0043JobResNode.md @@ -0,0 +1,33 @@ +# V0043JobResNode + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Node index | +**name** | **str** | Node name | +**cpus** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md) | | [optional] +**memory** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md) | | [optional] +**sockets** | [**List[V0043JobResSocket]**](V0043JobResSocket.md) | | + +## Example + +```python +from slurmrest_python.models.v0043_job_res_node import V0043JobResNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobResNode from a JSON string +v0043_job_res_node_instance = V0043JobResNode.from_json(json) +# print the JSON string representation of the object +print(V0043JobResNode.to_json()) + +# convert the object into a dict +v0043_job_res_node_dict = v0043_job_res_node_instance.to_dict() +# create an instance of V0043JobResNode from a dict +v0043_job_res_node_from_dict = V0043JobResNode.from_dict(v0043_job_res_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobResNodes.md b/docs/V0043JobResNodes.md new file mode 100644 index 0000000..a341e31 --- /dev/null +++ b/docs/V0043JobResNodes.md @@ -0,0 +1,33 @@ +# V0043JobResNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of allocated nodes | [optional] +**select_type** | **List[str]** | Node scheduling selection method | [optional] +**list** | **str** | Node(s) allocated to the job | [optional] +**whole** | **bool** | Whether whole nodes were allocated | [optional] +**allocation** | [**List[V0043JobResNode]**](V0043JobResNode.md) | Job resources for a node | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_res_nodes import V0043JobResNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobResNodes from a JSON string +v0043_job_res_nodes_instance = V0043JobResNodes.from_json(json) +# print the JSON string representation of the object +print(V0043JobResNodes.to_json()) + +# convert the object into a dict +v0043_job_res_nodes_dict = v0043_job_res_nodes_instance.to_dict() +# create an instance of V0043JobResNodes from a dict +v0043_job_res_nodes_from_dict = V0043JobResNodes.from_dict(v0043_job_res_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobResSocket.md b/docs/V0043JobResSocket.md new file mode 100644 index 0000000..2f72b54 --- /dev/null +++ b/docs/V0043JobResSocket.md @@ -0,0 +1,30 @@ +# V0043JobResSocket + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**cores** | [**List[V0043JobResCore]**](V0043JobResCore.md) | | + +## Example + +```python +from slurmrest_python.models.v0043_job_res_socket import V0043JobResSocket + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobResSocket from a JSON string +v0043_job_res_socket_instance = V0043JobResSocket.from_json(json) +# print the JSON string representation of the object +print(V0043JobResSocket.to_json()) + +# convert the object into a dict +v0043_job_res_socket_dict = v0043_job_res_socket_instance.to_dict() +# create an instance of V0043JobResSocket from a dict +v0043_job_res_socket_from_dict = V0043JobResSocket.from_dict(v0043_job_res_socket_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobSubmitReq.md b/docs/V0043JobSubmitReq.md new file mode 100644 index 0000000..4145610 --- /dev/null +++ b/docs/V0043JobSubmitReq.md @@ -0,0 +1,31 @@ +# V0043JobSubmitReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**script** | **str** | Job batch script contents; Same as the script field in jobs[0] or job. | [optional] +**jobs** | [**List[V0043JobDescMsg]**](V0043JobDescMsg.md) | | [optional] +**job** | [**V0043JobDescMsg**](V0043JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_submit_req import V0043JobSubmitReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobSubmitReq from a JSON string +v0043_job_submit_req_instance = V0043JobSubmitReq.from_json(json) +# print the JSON string representation of the object +print(V0043JobSubmitReq.to_json()) + +# convert the object into a dict +v0043_job_submit_req_dict = v0043_job_submit_req_instance.to_dict() +# create an instance of V0043JobSubmitReq from a dict +v0043_job_submit_req_from_dict = V0043JobSubmitReq.from_dict(v0043_job_submit_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobTime.md b/docs/V0043JobTime.md new file mode 100644 index 0000000..6a67e03 --- /dev/null +++ b/docs/V0043JobTime.md @@ -0,0 +1,39 @@ +# V0043JobTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**eligible** | **int** | Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**end** | **int** | End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**planned** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**start** | **int** | Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**submission** | **int** | Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**suspended** | **int** | Total time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md) | | [optional] +**limit** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_time import V0043JobTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobTime from a JSON string +v0043_job_time_instance = V0043JobTime.from_json(json) +# print the JSON string representation of the object +print(V0043JobTime.to_json()) + +# convert the object into a dict +v0043_job_time_dict = v0043_job_time_instance.to_dict() +# create an instance of V0043JobTime from a dict +v0043_job_time_from_dict = V0043JobTime.from_dict(v0043_job_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043JobTres.md b/docs/V0043JobTres.md new file mode 100644 index 0000000..0d5c61d --- /dev/null +++ b/docs/V0043JobTres.md @@ -0,0 +1,30 @@ +# V0043JobTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**requested** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_job_tres import V0043JobTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043JobTres from a JSON string +v0043_job_tres_instance = V0043JobTres.from_json(json) +# print the JSON string representation of the object +print(V0043JobTres.to_json()) + +# convert the object into a dict +v0043_job_tres_dict = v0043_job_tres_instance.to_dict() +# create an instance of V0043JobTres from a dict +v0043_job_tres_from_dict = V0043JobTres.from_dict(v0043_job_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043KillJobsMsg.md b/docs/V0043KillJobsMsg.md new file mode 100644 index 0000000..efb13d4 --- /dev/null +++ b/docs/V0043KillJobsMsg.md @@ -0,0 +1,41 @@ +# V0043KillJobsMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Filter jobs to a specific account | [optional] +**flags** | **List[str]** | Filter jobs according to flags | [optional] +**job_name** | **str** | Filter jobs to a specific name | [optional] +**jobs** | **List[str]** | | [optional] +**partition** | **str** | Filter jobs to a specific partition | [optional] +**qos** | **str** | Filter jobs to a specific QOS | [optional] +**reservation** | **str** | Filter jobs to a specific reservation | [optional] +**signal** | **str** | Signal to send to jobs | [optional] +**job_state** | **List[str]** | Filter jobs to a specific state | [optional] +**user_id** | **str** | Filter jobs to a specific numeric user id | [optional] +**user_name** | **str** | Filter jobs to a specific user name | [optional] +**wckey** | **str** | Filter jobs to a specific wckey | [optional] +**nodes** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_kill_jobs_msg import V0043KillJobsMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043KillJobsMsg from a JSON string +v0043_kill_jobs_msg_instance = V0043KillJobsMsg.from_json(json) +# print the JSON string representation of the object +print(V0043KillJobsMsg.to_json()) + +# convert the object into a dict +v0043_kill_jobs_msg_dict = v0043_kill_jobs_msg_instance.to_dict() +# create an instance of V0043KillJobsMsg from a dict +v0043_kill_jobs_msg_from_dict = V0043KillJobsMsg.from_dict(v0043_kill_jobs_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043KillJobsRespJob.md b/docs/V0043KillJobsRespJob.md new file mode 100644 index 0000000..0e29f4a --- /dev/null +++ b/docs/V0043KillJobsRespJob.md @@ -0,0 +1,32 @@ +# V0043KillJobsRespJob + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**V0041OpenapiKillJobsRespStatusInnerError**](V0041OpenapiKillJobsRespStatusInnerError.md) | | [optional] +**step_id** | **str** | Job or Step ID that signaling failed | +**job_id** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | +**federation** | [**V0041OpenapiKillJobsRespStatusInnerFederation**](V0041OpenapiKillJobsRespStatusInnerFederation.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_kill_jobs_resp_job import V0043KillJobsRespJob + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043KillJobsRespJob from a JSON string +v0043_kill_jobs_resp_job_instance = V0043KillJobsRespJob.from_json(json) +# print the JSON string representation of the object +print(V0043KillJobsRespJob.to_json()) + +# convert the object into a dict +v0043_kill_jobs_resp_job_dict = v0043_kill_jobs_resp_job_instance.to_dict() +# create an instance of V0043KillJobsRespJob from a dict +v0043_kill_jobs_resp_job_from_dict = V0043KillJobsRespJob.from_dict(v0043_kill_jobs_resp_job_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043License.md b/docs/V0043License.md new file mode 100644 index 0000000..17896da --- /dev/null +++ b/docs/V0043License.md @@ -0,0 +1,37 @@ +# V0043License + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**license_name** | **str** | Name of the license | [optional] +**total** | **int** | Total number of licenses present | [optional] +**used** | **int** | Number of licenses in use | [optional] +**free** | **int** | Number of licenses currently available | [optional] +**remote** | **bool** | Indicates whether licenses are served by the database | [optional] +**reserved** | **int** | Number of licenses reserved | [optional] +**last_consumed** | **int** | Last known number of licenses that were consumed in the license manager (Remote Only) | [optional] +**last_deficit** | **int** | Number of \"missing licenses\" from the cluster's perspective | [optional] +**last_update** | **int** | When the license information was last updated (UNIX Timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_license import V0043License + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043License from a JSON string +v0043_license_instance = V0043License.from_json(json) +# print the JSON string representation of the object +print(V0043License.to_json()) + +# convert the object into a dict +v0043_license_dict = v0043_license_instance.to_dict() +# create an instance of V0043License from a dict +v0043_license_from_dict = V0043License.from_dict(v0043_license_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Node.md b/docs/V0043Node.md new file mode 100644 index 0000000..4c95b1f --- /dev/null +++ b/docs/V0043Node.md @@ -0,0 +1,88 @@ +# V0043Node + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architecture** | **str** | Computer architecture | [optional] +**burstbuffer_network_address** | **str** | Alternate network path to be used for sbcast network traffic | [optional] +**boards** | **int** | Number of Baseboards in nodes with a baseboard controller | [optional] +**boot_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**tls_cert_last_renewal** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**cert_flags** | **List[str]** | Certmgr status flags | [optional] +**cluster_name** | **str** | Cluster name (only set in federated environments) | [optional] +**cores** | **int** | Number of cores in a single physical processor socket | [optional] +**specialized_cores** | **int** | Number of cores reserved for system use | [optional] +**cpu_binding** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**cpu_load** | **int** | CPU load as reported by the OS | [optional] +**free_mem** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**cpus** | **int** | Total CPUs, including cores and threads | [optional] +**effective_cpus** | **int** | Number of effective CPUs (excluding specialized CPUs) | [optional] +**specialized_cpus** | **str** | Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd | [optional] +**energy** | [**V0043AcctGatherEnergy**](V0043AcctGatherEnergy.md) | | [optional] +**external_sensors** | **object** | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**power** | **object** | | [optional] +**features** | **List[str]** | | [optional] +**active_features** | **List[str]** | | [optional] +**gpu_spec** | **str** | CPU cores reserved for jobs that also use a GPU | [optional] +**gres** | **str** | Generic resources | [optional] +**gres_drained** | **str** | Drained generic resources | [optional] +**gres_used** | **str** | Generic resources currently in use | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**last_busy** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label | [optional] +**specialized_memory** | **int** | Combined memory limit, in MB, for Slurm compute node daemons | [optional] +**name** | **str** | NodeName | [optional] +**next_state_after_reboot** | **List[str]** | The state the node will be assigned after rebooting | [optional] +**address** | **str** | NodeAddr, used to establish a communication path | [optional] +**hostname** | **str** | NodeHostname | [optional] +**state** | **List[str]** | Node state(s) applicable to this node | [optional] +**operating_system** | **str** | Operating system reported by the node | [optional] +**owner** | **str** | User allowed to run jobs on this node (unset if no restriction) | [optional] +**partitions** | **List[str]** | | [optional] +**port** | **int** | TCP port number of the slurmd | [optional] +**real_memory** | **int** | Total memory in MB on the node | [optional] +**res_cores_per_gpu** | **int** | Number of CPU cores per GPU restricted to GPU jobs | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**reason** | **str** | Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state | [optional] +**reason_changed_at** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**reason_set_by_user** | **str** | User who set the reason | [optional] +**resume_after** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**reservation** | **str** | Name of reservation containing this node | [optional] +**alloc_memory** | **int** | Total memory in MB currently allocated for jobs | [optional] +**alloc_cpus** | **int** | Total number of CPUs currently allocated for jobs | [optional] +**alloc_idle_cpus** | **int** | Total number of idle CPUs | [optional] +**tres_used** | **str** | Trackable resources currently allocated for jobs | [optional] +**tres_weighted** | **float** | Ignored. Was weighted number of billable trackable resources allocated | [optional] +**slurmd_start_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**sockets** | **int** | Number of physical processor sockets/chips on the node | [optional] +**threads** | **int** | Number of logical threads in a single physical core | [optional] +**temporary_disk** | **int** | Total size in MB of temporary disk storage in TmpFS | [optional] +**weight** | **int** | Weight of the node for scheduling purposes | [optional] +**topology** | **str** | Topology | [optional] +**tres** | **str** | Configured trackable resources | [optional] +**version** | **str** | Slurmd version | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_node import V0043Node + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Node from a JSON string +v0043_node_instance = V0043Node.from_json(json) +# print the JSON string representation of the object +print(V0043Node.to_json()) + +# convert the object into a dict +v0043_node_dict = v0043_node_instance.to_dict() +# create an instance of V0043Node from a dict +v0043_node_from_dict = V0043Node.from_dict(v0043_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiAccountsAddCondResp.md b/docs/V0043OpenapiAccountsAddCondResp.md new file mode 100644 index 0000000..111066f --- /dev/null +++ b/docs/V0043OpenapiAccountsAddCondResp.md @@ -0,0 +1,33 @@ +# V0043OpenapiAccountsAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0043AccountsAddCond**](V0043AccountsAddCond.md) | | [optional] +**account** | [**V0043AccountShort**](V0043AccountShort.md) | | [optional] +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp import V0043OpenapiAccountsAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiAccountsAddCondResp from a JSON string +v0043_openapi_accounts_add_cond_resp_instance = V0043OpenapiAccountsAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiAccountsAddCondResp.to_json()) + +# convert the object into a dict +v0043_openapi_accounts_add_cond_resp_dict = v0043_openapi_accounts_add_cond_resp_instance.to_dict() +# create an instance of V0043OpenapiAccountsAddCondResp from a dict +v0043_openapi_accounts_add_cond_resp_from_dict = V0043OpenapiAccountsAddCondResp.from_dict(v0043_openapi_accounts_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiAccountsAddCondRespStr.md b/docs/V0043OpenapiAccountsAddCondRespStr.md new file mode 100644 index 0000000..42d2f53 --- /dev/null +++ b/docs/V0043OpenapiAccountsAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0043OpenapiAccountsAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_accounts** | **str** | added_accounts | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp_str import V0043OpenapiAccountsAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiAccountsAddCondRespStr from a JSON string +v0043_openapi_accounts_add_cond_resp_str_instance = V0043OpenapiAccountsAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiAccountsAddCondRespStr.to_json()) + +# convert the object into a dict +v0043_openapi_accounts_add_cond_resp_str_dict = v0043_openapi_accounts_add_cond_resp_str_instance.to_dict() +# create an instance of V0043OpenapiAccountsAddCondRespStr from a dict +v0043_openapi_accounts_add_cond_resp_str_from_dict = V0043OpenapiAccountsAddCondRespStr.from_dict(v0043_openapi_accounts_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiAccountsRemovedResp.md b/docs/V0043OpenapiAccountsRemovedResp.md new file mode 100644 index 0000000..90c02f9 --- /dev/null +++ b/docs/V0043OpenapiAccountsRemovedResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiAccountsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_accounts** | **List[str]** | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_accounts_removed_resp import V0043OpenapiAccountsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiAccountsRemovedResp from a JSON string +v0043_openapi_accounts_removed_resp_instance = V0043OpenapiAccountsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiAccountsRemovedResp.to_json()) + +# convert the object into a dict +v0043_openapi_accounts_removed_resp_dict = v0043_openapi_accounts_removed_resp_instance.to_dict() +# create an instance of V0043OpenapiAccountsRemovedResp from a dict +v0043_openapi_accounts_removed_resp_from_dict = V0043OpenapiAccountsRemovedResp.from_dict(v0043_openapi_accounts_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiAccountsResp.md b/docs/V0043OpenapiAccountsResp.md new file mode 100644 index 0000000..a6630dc --- /dev/null +++ b/docs/V0043OpenapiAccountsResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiAccountsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**List[V0043Account]**](V0043Account.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiAccountsResp from a JSON string +v0043_openapi_accounts_resp_instance = V0043OpenapiAccountsResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiAccountsResp.to_json()) + +# convert the object into a dict +v0043_openapi_accounts_resp_dict = v0043_openapi_accounts_resp_instance.to_dict() +# create an instance of V0043OpenapiAccountsResp from a dict +v0043_openapi_accounts_resp_from_dict = V0043OpenapiAccountsResp.from_dict(v0043_openapi_accounts_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiAssocsRemovedResp.md b/docs/V0043OpenapiAssocsRemovedResp.md new file mode 100644 index 0000000..e4cf239 --- /dev/null +++ b/docs/V0043OpenapiAssocsRemovedResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiAssocsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_associations** | **List[str]** | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_assocs_removed_resp import V0043OpenapiAssocsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiAssocsRemovedResp from a JSON string +v0043_openapi_assocs_removed_resp_instance = V0043OpenapiAssocsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiAssocsRemovedResp.to_json()) + +# convert the object into a dict +v0043_openapi_assocs_removed_resp_dict = v0043_openapi_assocs_removed_resp_instance.to_dict() +# create an instance of V0043OpenapiAssocsRemovedResp from a dict +v0043_openapi_assocs_removed_resp_from_dict = V0043OpenapiAssocsRemovedResp.from_dict(v0043_openapi_assocs_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiAssocsResp.md b/docs/V0043OpenapiAssocsResp.md new file mode 100644 index 0000000..db673f8 --- /dev/null +++ b/docs/V0043OpenapiAssocsResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiAssocsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0043Assoc]**](V0043Assoc.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiAssocsResp from a JSON string +v0043_openapi_assocs_resp_instance = V0043OpenapiAssocsResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiAssocsResp.to_json()) + +# convert the object into a dict +v0043_openapi_assocs_resp_dict = v0043_openapi_assocs_resp_instance.to_dict() +# create an instance of V0043OpenapiAssocsResp from a dict +v0043_openapi_assocs_resp_from_dict = V0043OpenapiAssocsResp.from_dict(v0043_openapi_assocs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiClustersRemovedResp.md b/docs/V0043OpenapiClustersRemovedResp.md new file mode 100644 index 0000000..1597c7e --- /dev/null +++ b/docs/V0043OpenapiClustersRemovedResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiClustersRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_clusters** | **List[str]** | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_clusters_removed_resp import V0043OpenapiClustersRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiClustersRemovedResp from a JSON string +v0043_openapi_clusters_removed_resp_instance = V0043OpenapiClustersRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiClustersRemovedResp.to_json()) + +# convert the object into a dict +v0043_openapi_clusters_removed_resp_dict = v0043_openapi_clusters_removed_resp_instance.to_dict() +# create an instance of V0043OpenapiClustersRemovedResp from a dict +v0043_openapi_clusters_removed_resp_from_dict = V0043OpenapiClustersRemovedResp.from_dict(v0043_openapi_clusters_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiClustersResp.md b/docs/V0043OpenapiClustersResp.md new file mode 100644 index 0000000..ab01f03 --- /dev/null +++ b/docs/V0043OpenapiClustersResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiClustersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0043ClusterRec]**](V0043ClusterRec.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiClustersResp from a JSON string +v0043_openapi_clusters_resp_instance = V0043OpenapiClustersResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiClustersResp.to_json()) + +# convert the object into a dict +v0043_openapi_clusters_resp_dict = v0043_openapi_clusters_resp_instance.to_dict() +# create an instance of V0043OpenapiClustersResp from a dict +v0043_openapi_clusters_resp_from_dict = V0043OpenapiClustersResp.from_dict(v0043_openapi_clusters_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiDiagResp.md b/docs/V0043OpenapiDiagResp.md new file mode 100644 index 0000000..d639ceb --- /dev/null +++ b/docs/V0043OpenapiDiagResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiDiagResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0043StatsMsg**](V0043StatsMsg.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_diag_resp import V0043OpenapiDiagResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiDiagResp from a JSON string +v0043_openapi_diag_resp_instance = V0043OpenapiDiagResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiDiagResp.to_json()) + +# convert the object into a dict +v0043_openapi_diag_resp_dict = v0043_openapi_diag_resp_instance.to_dict() +# create an instance of V0043OpenapiDiagResp from a dict +v0043_openapi_diag_resp_from_dict = V0043OpenapiDiagResp.from_dict(v0043_openapi_diag_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiError.md b/docs/V0043OpenapiError.md new file mode 100644 index 0000000..4aecd4c --- /dev/null +++ b/docs/V0043OpenapiError.md @@ -0,0 +1,32 @@ +# V0043OpenapiError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form error description | [optional] +**error_number** | **int** | Slurm numeric error identifier | [optional] +**error** | **str** | Short form error description | [optional] +**source** | **str** | Source of error or where error was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiError from a JSON string +v0043_openapi_error_instance = V0043OpenapiError.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiError.to_json()) + +# convert the object into a dict +v0043_openapi_error_dict = v0043_openapi_error_instance.to_dict() +# create an instance of V0043OpenapiError from a dict +v0043_openapi_error_from_dict = V0043OpenapiError.from_dict(v0043_openapi_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiInstancesResp.md b/docs/V0043OpenapiInstancesResp.md new file mode 100644 index 0000000..dc78c65 --- /dev/null +++ b/docs/V0043OpenapiInstancesResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiInstancesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**instances** | [**List[V0043Instance]**](V0043Instance.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_instances_resp import V0043OpenapiInstancesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiInstancesResp from a JSON string +v0043_openapi_instances_resp_instance = V0043OpenapiInstancesResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiInstancesResp.to_json()) + +# convert the object into a dict +v0043_openapi_instances_resp_dict = v0043_openapi_instances_resp_instance.to_dict() +# create an instance of V0043OpenapiInstancesResp from a dict +v0043_openapi_instances_resp_from_dict = V0043OpenapiInstancesResp.from_dict(v0043_openapi_instances_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiJobAllocResp.md b/docs/V0043OpenapiJobAllocResp.md new file mode 100644 index 0000000..f2398f3 --- /dev/null +++ b/docs/V0043OpenapiJobAllocResp.md @@ -0,0 +1,33 @@ +# V0043OpenapiJobAllocResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Submitted Job ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_job_alloc_resp import V0043OpenapiJobAllocResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiJobAllocResp from a JSON string +v0043_openapi_job_alloc_resp_instance = V0043OpenapiJobAllocResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiJobAllocResp.to_json()) + +# convert the object into a dict +v0043_openapi_job_alloc_resp_dict = v0043_openapi_job_alloc_resp_instance.to_dict() +# create an instance of V0043OpenapiJobAllocResp from a dict +v0043_openapi_job_alloc_resp_from_dict = V0043OpenapiJobAllocResp.from_dict(v0043_openapi_job_alloc_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiJobInfoResp.md b/docs/V0043OpenapiJobInfoResp.md new file mode 100644 index 0000000..7b452d4 --- /dev/null +++ b/docs/V0043OpenapiJobInfoResp.md @@ -0,0 +1,34 @@ +# V0043OpenapiJobInfoResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0043JobInfo]**](V0043JobInfo.md) | | +**last_backfill** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | +**last_update** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiJobInfoResp from a JSON string +v0043_openapi_job_info_resp_instance = V0043OpenapiJobInfoResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiJobInfoResp.to_json()) + +# convert the object into a dict +v0043_openapi_job_info_resp_dict = v0043_openapi_job_info_resp_instance.to_dict() +# create an instance of V0043OpenapiJobInfoResp from a dict +v0043_openapi_job_info_resp_from_dict = V0043OpenapiJobInfoResp.from_dict(v0043_openapi_job_info_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiJobPostResponse.md b/docs/V0043OpenapiJobPostResponse.md new file mode 100644 index 0000000..5e748fd --- /dev/null +++ b/docs/V0043OpenapiJobPostResponse.md @@ -0,0 +1,32 @@ +# V0043OpenapiJobPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List[V0043JobArrayResponseMsgEntry]**](V0043JobArrayResponseMsgEntry.md) | | [optional] +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_job_post_response import V0043OpenapiJobPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiJobPostResponse from a JSON string +v0043_openapi_job_post_response_instance = V0043OpenapiJobPostResponse.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiJobPostResponse.to_json()) + +# convert the object into a dict +v0043_openapi_job_post_response_dict = v0043_openapi_job_post_response_instance.to_dict() +# create an instance of V0043OpenapiJobPostResponse from a dict +v0043_openapi_job_post_response_from_dict = V0043OpenapiJobPostResponse.from_dict(v0043_openapi_job_post_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiJobSubmitResponse.md b/docs/V0043OpenapiJobSubmitResponse.md new file mode 100644 index 0000000..653eb1b --- /dev/null +++ b/docs/V0043OpenapiJobSubmitResponse.md @@ -0,0 +1,34 @@ +# V0043OpenapiJobSubmitResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | submitted Job ID | [optional] +**step_id** | **str** | submitted Step ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_job_submit_response import V0043OpenapiJobSubmitResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiJobSubmitResponse from a JSON string +v0043_openapi_job_submit_response_instance = V0043OpenapiJobSubmitResponse.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiJobSubmitResponse.to_json()) + +# convert the object into a dict +v0043_openapi_job_submit_response_dict = v0043_openapi_job_submit_response_instance.to_dict() +# create an instance of V0043OpenapiJobSubmitResponse from a dict +v0043_openapi_job_submit_response_from_dict = V0043OpenapiJobSubmitResponse.from_dict(v0043_openapi_job_submit_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiKillJobResp.md b/docs/V0043OpenapiKillJobResp.md new file mode 100644 index 0000000..7d58603 --- /dev/null +++ b/docs/V0043OpenapiKillJobResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiKillJobResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**List[V0043KillJobsRespJob]**](V0043KillJobsRespJob.md) | List of jobs signal responses | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_kill_job_resp import V0043OpenapiKillJobResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiKillJobResp from a JSON string +v0043_openapi_kill_job_resp_instance = V0043OpenapiKillJobResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiKillJobResp.to_json()) + +# convert the object into a dict +v0043_openapi_kill_job_resp_dict = v0043_openapi_kill_job_resp_instance.to_dict() +# create an instance of V0043OpenapiKillJobResp from a dict +v0043_openapi_kill_job_resp_from_dict = V0043OpenapiKillJobResp.from_dict(v0043_openapi_kill_job_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiKillJobsResp.md b/docs/V0043OpenapiKillJobsResp.md new file mode 100644 index 0000000..d4841ae --- /dev/null +++ b/docs/V0043OpenapiKillJobsResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiKillJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**List[V0043KillJobsRespJob]**](V0043KillJobsRespJob.md) | List of jobs signal responses | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_kill_jobs_resp import V0043OpenapiKillJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiKillJobsResp from a JSON string +v0043_openapi_kill_jobs_resp_instance = V0043OpenapiKillJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiKillJobsResp.to_json()) + +# convert the object into a dict +v0043_openapi_kill_jobs_resp_dict = v0043_openapi_kill_jobs_resp_instance.to_dict() +# create an instance of V0043OpenapiKillJobsResp from a dict +v0043_openapi_kill_jobs_resp_from_dict = V0043OpenapiKillJobsResp.from_dict(v0043_openapi_kill_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiLicensesResp.md b/docs/V0043OpenapiLicensesResp.md new file mode 100644 index 0000000..7b48779 --- /dev/null +++ b/docs/V0043OpenapiLicensesResp.md @@ -0,0 +1,33 @@ +# V0043OpenapiLicensesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**licenses** | [**List[V0043License]**](V0043License.md) | | +**last_update** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_licenses_resp import V0043OpenapiLicensesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiLicensesResp from a JSON string +v0043_openapi_licenses_resp_instance = V0043OpenapiLicensesResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiLicensesResp.to_json()) + +# convert the object into a dict +v0043_openapi_licenses_resp_dict = v0043_openapi_licenses_resp_instance.to_dict() +# create an instance of V0043OpenapiLicensesResp from a dict +v0043_openapi_licenses_resp_from_dict = V0043OpenapiLicensesResp.from_dict(v0043_openapi_licenses_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiMeta.md b/docs/V0043OpenapiMeta.md new file mode 100644 index 0000000..d38e5b2 --- /dev/null +++ b/docs/V0043OpenapiMeta.md @@ -0,0 +1,32 @@ +# V0043OpenapiMeta + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plugin** | [**V0041OpenapiSharesRespMetaPlugin**](V0041OpenapiSharesRespMetaPlugin.md) | | [optional] +**client** | [**V0041OpenapiSharesRespMetaClient**](V0041OpenapiSharesRespMetaClient.md) | | [optional] +**command** | **List[str]** | | [optional] +**slurm** | [**V0041OpenapiSharesRespMetaSlurm**](V0041OpenapiSharesRespMetaSlurm.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiMeta from a JSON string +v0043_openapi_meta_instance = V0043OpenapiMeta.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiMeta.to_json()) + +# convert the object into a dict +v0043_openapi_meta_dict = v0043_openapi_meta_instance.to_dict() +# create an instance of V0043OpenapiMeta from a dict +v0043_openapi_meta_from_dict = V0043OpenapiMeta.from_dict(v0043_openapi_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiNodesResp.md b/docs/V0043OpenapiNodesResp.md new file mode 100644 index 0000000..c6feac0 --- /dev/null +++ b/docs/V0043OpenapiNodesResp.md @@ -0,0 +1,33 @@ +# V0043OpenapiNodesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**List[V0043Node]**](V0043Node.md) | | +**last_update** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_nodes_resp import V0043OpenapiNodesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiNodesResp from a JSON string +v0043_openapi_nodes_resp_instance = V0043OpenapiNodesResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiNodesResp.to_json()) + +# convert the object into a dict +v0043_openapi_nodes_resp_dict = v0043_openapi_nodes_resp_instance.to_dict() +# create an instance of V0043OpenapiNodesResp from a dict +v0043_openapi_nodes_resp_from_dict = V0043OpenapiNodesResp.from_dict(v0043_openapi_nodes_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiPartitionResp.md b/docs/V0043OpenapiPartitionResp.md new file mode 100644 index 0000000..334c6ab --- /dev/null +++ b/docs/V0043OpenapiPartitionResp.md @@ -0,0 +1,33 @@ +# V0043OpenapiPartitionResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**partitions** | [**List[V0043PartitionInfo]**](V0043PartitionInfo.md) | | +**last_update** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_partition_resp import V0043OpenapiPartitionResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiPartitionResp from a JSON string +v0043_openapi_partition_resp_instance = V0043OpenapiPartitionResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiPartitionResp.to_json()) + +# convert the object into a dict +v0043_openapi_partition_resp_dict = v0043_openapi_partition_resp_instance.to_dict() +# create an instance of V0043OpenapiPartitionResp from a dict +v0043_openapi_partition_resp_from_dict = V0043OpenapiPartitionResp.from_dict(v0043_openapi_partition_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiPingArrayResp.md b/docs/V0043OpenapiPingArrayResp.md new file mode 100644 index 0000000..a572130 --- /dev/null +++ b/docs/V0043OpenapiPingArrayResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiPingArrayResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pings** | [**List[V0043ControllerPing]**](V0043ControllerPing.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_ping_array_resp import V0043OpenapiPingArrayResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiPingArrayResp from a JSON string +v0043_openapi_ping_array_resp_instance = V0043OpenapiPingArrayResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiPingArrayResp.to_json()) + +# convert the object into a dict +v0043_openapi_ping_array_resp_dict = v0043_openapi_ping_array_resp_instance.to_dict() +# create an instance of V0043OpenapiPingArrayResp from a dict +v0043_openapi_ping_array_resp_from_dict = V0043OpenapiPingArrayResp.from_dict(v0043_openapi_ping_array_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiReservationModResp.md b/docs/V0043OpenapiReservationModResp.md new file mode 100644 index 0000000..9bd3866 --- /dev/null +++ b/docs/V0043OpenapiReservationModResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiReservationModResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0043ReservationDescMsg]**](V0043ReservationDescMsg.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_reservation_mod_resp import V0043OpenapiReservationModResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiReservationModResp from a JSON string +v0043_openapi_reservation_mod_resp_instance = V0043OpenapiReservationModResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiReservationModResp.to_json()) + +# convert the object into a dict +v0043_openapi_reservation_mod_resp_dict = v0043_openapi_reservation_mod_resp_instance.to_dict() +# create an instance of V0043OpenapiReservationModResp from a dict +v0043_openapi_reservation_mod_resp_from_dict = V0043OpenapiReservationModResp.from_dict(v0043_openapi_reservation_mod_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiReservationResp.md b/docs/V0043OpenapiReservationResp.md new file mode 100644 index 0000000..f198af6 --- /dev/null +++ b/docs/V0043OpenapiReservationResp.md @@ -0,0 +1,33 @@ +# V0043OpenapiReservationResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0043ReservationInfo]**](V0043ReservationInfo.md) | | +**last_update** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_reservation_resp import V0043OpenapiReservationResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiReservationResp from a JSON string +v0043_openapi_reservation_resp_instance = V0043OpenapiReservationResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiReservationResp.to_json()) + +# convert the object into a dict +v0043_openapi_reservation_resp_dict = v0043_openapi_reservation_resp_instance.to_dict() +# create an instance of V0043OpenapiReservationResp from a dict +v0043_openapi_reservation_resp_from_dict = V0043OpenapiReservationResp.from_dict(v0043_openapi_reservation_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiResp.md b/docs/V0043OpenapiResp.md new file mode 100644 index 0000000..0ad550e --- /dev/null +++ b/docs/V0043OpenapiResp.md @@ -0,0 +1,31 @@ +# V0043OpenapiResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiResp from a JSON string +v0043_openapi_resp_instance = V0043OpenapiResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiResp.to_json()) + +# convert the object into a dict +v0043_openapi_resp_dict = v0043_openapi_resp_instance.to_dict() +# create an instance of V0043OpenapiResp from a dict +v0043_openapi_resp_from_dict = V0043OpenapiResp.from_dict(v0043_openapi_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiSharesResp.md b/docs/V0043OpenapiSharesResp.md new file mode 100644 index 0000000..fb30494 --- /dev/null +++ b/docs/V0043OpenapiSharesResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiSharesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**V0043SharesRespMsg**](V0043SharesRespMsg.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_shares_resp import V0043OpenapiSharesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiSharesResp from a JSON string +v0043_openapi_shares_resp_instance = V0043OpenapiSharesResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiSharesResp.to_json()) + +# convert the object into a dict +v0043_openapi_shares_resp_dict = v0043_openapi_shares_resp_instance.to_dict() +# create an instance of V0043OpenapiSharesResp from a dict +v0043_openapi_shares_resp_from_dict = V0043OpenapiSharesResp.from_dict(v0043_openapi_shares_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiSlurmdbdConfigResp.md b/docs/V0043OpenapiSlurmdbdConfigResp.md new file mode 100644 index 0000000..d2dcc32 --- /dev/null +++ b/docs/V0043OpenapiSlurmdbdConfigResp.md @@ -0,0 +1,39 @@ +# V0043OpenapiSlurmdbdConfigResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0043ClusterRec]**](V0043ClusterRec.md) | | [optional] +**tres** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**accounts** | [**List[V0043Account]**](V0043Account.md) | | [optional] +**users** | [**List[V0043User]**](V0043User.md) | | [optional] +**qos** | [**List[V0043Qos]**](V0043Qos.md) | | [optional] +**wckeys** | [**List[V0043Wckey]**](V0043Wckey.md) | | [optional] +**associations** | [**List[V0043Assoc]**](V0043Assoc.md) | | [optional] +**instances** | [**List[V0043Instance]**](V0043Instance.md) | | [optional] +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_slurmdbd_config_resp import V0043OpenapiSlurmdbdConfigResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiSlurmdbdConfigResp from a JSON string +v0043_openapi_slurmdbd_config_resp_instance = V0043OpenapiSlurmdbdConfigResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiSlurmdbdConfigResp.to_json()) + +# convert the object into a dict +v0043_openapi_slurmdbd_config_resp_dict = v0043_openapi_slurmdbd_config_resp_instance.to_dict() +# create an instance of V0043OpenapiSlurmdbdConfigResp from a dict +v0043_openapi_slurmdbd_config_resp_from_dict = V0043OpenapiSlurmdbdConfigResp.from_dict(v0043_openapi_slurmdbd_config_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiSlurmdbdJobsResp.md b/docs/V0043OpenapiSlurmdbdJobsResp.md new file mode 100644 index 0000000..18ae4f3 --- /dev/null +++ b/docs/V0043OpenapiSlurmdbdJobsResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiSlurmdbdJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0043Job]**](V0043Job.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_slurmdbd_jobs_resp import V0043OpenapiSlurmdbdJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiSlurmdbdJobsResp from a JSON string +v0043_openapi_slurmdbd_jobs_resp_instance = V0043OpenapiSlurmdbdJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiSlurmdbdJobsResp.to_json()) + +# convert the object into a dict +v0043_openapi_slurmdbd_jobs_resp_dict = v0043_openapi_slurmdbd_jobs_resp_instance.to_dict() +# create an instance of V0043OpenapiSlurmdbdJobsResp from a dict +v0043_openapi_slurmdbd_jobs_resp_from_dict = V0043OpenapiSlurmdbdJobsResp.from_dict(v0043_openapi_slurmdbd_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiSlurmdbdPingResp.md b/docs/V0043OpenapiSlurmdbdPingResp.md new file mode 100644 index 0000000..76371f6 --- /dev/null +++ b/docs/V0043OpenapiSlurmdbdPingResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiSlurmdbdPingResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pings** | [**List[V0043SlurmdbdPing]**](V0043SlurmdbdPing.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_slurmdbd_ping_resp import V0043OpenapiSlurmdbdPingResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiSlurmdbdPingResp from a JSON string +v0043_openapi_slurmdbd_ping_resp_instance = V0043OpenapiSlurmdbdPingResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiSlurmdbdPingResp.to_json()) + +# convert the object into a dict +v0043_openapi_slurmdbd_ping_resp_dict = v0043_openapi_slurmdbd_ping_resp_instance.to_dict() +# create an instance of V0043OpenapiSlurmdbdPingResp from a dict +v0043_openapi_slurmdbd_ping_resp_from_dict = V0043OpenapiSlurmdbdPingResp.from_dict(v0043_openapi_slurmdbd_ping_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiSlurmdbdQosRemovedResp.md b/docs/V0043OpenapiSlurmdbdQosRemovedResp.md new file mode 100644 index 0000000..4329bf3 --- /dev/null +++ b/docs/V0043OpenapiSlurmdbdQosRemovedResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiSlurmdbdQosRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_qos** | **List[str]** | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_removed_resp import V0043OpenapiSlurmdbdQosRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiSlurmdbdQosRemovedResp from a JSON string +v0043_openapi_slurmdbd_qos_removed_resp_instance = V0043OpenapiSlurmdbdQosRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiSlurmdbdQosRemovedResp.to_json()) + +# convert the object into a dict +v0043_openapi_slurmdbd_qos_removed_resp_dict = v0043_openapi_slurmdbd_qos_removed_resp_instance.to_dict() +# create an instance of V0043OpenapiSlurmdbdQosRemovedResp from a dict +v0043_openapi_slurmdbd_qos_removed_resp_from_dict = V0043OpenapiSlurmdbdQosRemovedResp.from_dict(v0043_openapi_slurmdbd_qos_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiSlurmdbdQosResp.md b/docs/V0043OpenapiSlurmdbdQosResp.md new file mode 100644 index 0000000..d3942a1 --- /dev/null +++ b/docs/V0043OpenapiSlurmdbdQosResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiSlurmdbdQosResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0043Qos]**](V0043Qos.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiSlurmdbdQosResp from a JSON string +v0043_openapi_slurmdbd_qos_resp_instance = V0043OpenapiSlurmdbdQosResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiSlurmdbdQosResp.to_json()) + +# convert the object into a dict +v0043_openapi_slurmdbd_qos_resp_dict = v0043_openapi_slurmdbd_qos_resp_instance.to_dict() +# create an instance of V0043OpenapiSlurmdbdQosResp from a dict +v0043_openapi_slurmdbd_qos_resp_from_dict = V0043OpenapiSlurmdbdQosResp.from_dict(v0043_openapi_slurmdbd_qos_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiSlurmdbdStatsResp.md b/docs/V0043OpenapiSlurmdbdStatsResp.md new file mode 100644 index 0000000..b496b7b --- /dev/null +++ b/docs/V0043OpenapiSlurmdbdStatsResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiSlurmdbdStatsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0043StatsRec**](V0043StatsRec.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_slurmdbd_stats_resp import V0043OpenapiSlurmdbdStatsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiSlurmdbdStatsResp from a JSON string +v0043_openapi_slurmdbd_stats_resp_instance = V0043OpenapiSlurmdbdStatsResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiSlurmdbdStatsResp.to_json()) + +# convert the object into a dict +v0043_openapi_slurmdbd_stats_resp_dict = v0043_openapi_slurmdbd_stats_resp_instance.to_dict() +# create an instance of V0043OpenapiSlurmdbdStatsResp from a dict +v0043_openapi_slurmdbd_stats_resp_from_dict = V0043OpenapiSlurmdbdStatsResp.from_dict(v0043_openapi_slurmdbd_stats_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiTresResp.md b/docs/V0043OpenapiTresResp.md new file mode 100644 index 0000000..aa485e7 --- /dev/null +++ b/docs/V0043OpenapiTresResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiTresResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tres** | [**List[V0043Tres]**](V0043Tres.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_tres_resp import V0043OpenapiTresResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiTresResp from a JSON string +v0043_openapi_tres_resp_instance = V0043OpenapiTresResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiTresResp.to_json()) + +# convert the object into a dict +v0043_openapi_tres_resp_dict = v0043_openapi_tres_resp_instance.to_dict() +# create an instance of V0043OpenapiTresResp from a dict +v0043_openapi_tres_resp_from_dict = V0043OpenapiTresResp.from_dict(v0043_openapi_tres_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiUsersAddCondResp.md b/docs/V0043OpenapiUsersAddCondResp.md new file mode 100644 index 0000000..bbeb3d1 --- /dev/null +++ b/docs/V0043OpenapiUsersAddCondResp.md @@ -0,0 +1,33 @@ +# V0043OpenapiUsersAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0043UsersAddCond**](V0043UsersAddCond.md) | | +**user** | [**V0043UserShort**](V0043UserShort.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_users_add_cond_resp import V0043OpenapiUsersAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiUsersAddCondResp from a JSON string +v0043_openapi_users_add_cond_resp_instance = V0043OpenapiUsersAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiUsersAddCondResp.to_json()) + +# convert the object into a dict +v0043_openapi_users_add_cond_resp_dict = v0043_openapi_users_add_cond_resp_instance.to_dict() +# create an instance of V0043OpenapiUsersAddCondResp from a dict +v0043_openapi_users_add_cond_resp_from_dict = V0043OpenapiUsersAddCondResp.from_dict(v0043_openapi_users_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiUsersAddCondRespStr.md b/docs/V0043OpenapiUsersAddCondRespStr.md new file mode 100644 index 0000000..86207fd --- /dev/null +++ b/docs/V0043OpenapiUsersAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0043OpenapiUsersAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_users** | **str** | added_users | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_users_add_cond_resp_str import V0043OpenapiUsersAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiUsersAddCondRespStr from a JSON string +v0043_openapi_users_add_cond_resp_str_instance = V0043OpenapiUsersAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiUsersAddCondRespStr.to_json()) + +# convert the object into a dict +v0043_openapi_users_add_cond_resp_str_dict = v0043_openapi_users_add_cond_resp_str_instance.to_dict() +# create an instance of V0043OpenapiUsersAddCondRespStr from a dict +v0043_openapi_users_add_cond_resp_str_from_dict = V0043OpenapiUsersAddCondRespStr.from_dict(v0043_openapi_users_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiUsersResp.md b/docs/V0043OpenapiUsersResp.md new file mode 100644 index 0000000..607beaa --- /dev/null +++ b/docs/V0043OpenapiUsersResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiUsersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V0043User]**](V0043User.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiUsersResp from a JSON string +v0043_openapi_users_resp_instance = V0043OpenapiUsersResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiUsersResp.to_json()) + +# convert the object into a dict +v0043_openapi_users_resp_dict = v0043_openapi_users_resp_instance.to_dict() +# create an instance of V0043OpenapiUsersResp from a dict +v0043_openapi_users_resp_from_dict = V0043OpenapiUsersResp.from_dict(v0043_openapi_users_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiWarning.md b/docs/V0043OpenapiWarning.md new file mode 100644 index 0000000..df876a0 --- /dev/null +++ b/docs/V0043OpenapiWarning.md @@ -0,0 +1,30 @@ +# V0043OpenapiWarning + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form warning description | [optional] +**source** | **str** | Source of warning or where warning was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiWarning from a JSON string +v0043_openapi_warning_instance = V0043OpenapiWarning.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiWarning.to_json()) + +# convert the object into a dict +v0043_openapi_warning_dict = v0043_openapi_warning_instance.to_dict() +# create an instance of V0043OpenapiWarning from a dict +v0043_openapi_warning_from_dict = V0043OpenapiWarning.from_dict(v0043_openapi_warning_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiWckeyRemovedResp.md b/docs/V0043OpenapiWckeyRemovedResp.md new file mode 100644 index 0000000..e88b0e4 --- /dev/null +++ b/docs/V0043OpenapiWckeyRemovedResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiWckeyRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_wckeys** | **List[str]** | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_wckey_removed_resp import V0043OpenapiWckeyRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiWckeyRemovedResp from a JSON string +v0043_openapi_wckey_removed_resp_instance = V0043OpenapiWckeyRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiWckeyRemovedResp.to_json()) + +# convert the object into a dict +v0043_openapi_wckey_removed_resp_dict = v0043_openapi_wckey_removed_resp_instance.to_dict() +# create an instance of V0043OpenapiWckeyRemovedResp from a dict +v0043_openapi_wckey_removed_resp_from_dict = V0043OpenapiWckeyRemovedResp.from_dict(v0043_openapi_wckey_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043OpenapiWckeyResp.md b/docs/V0043OpenapiWckeyResp.md new file mode 100644 index 0000000..4585a3c --- /dev/null +++ b/docs/V0043OpenapiWckeyResp.md @@ -0,0 +1,32 @@ +# V0043OpenapiWckeyResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckeys** | [**List[V0043Wckey]**](V0043Wckey.md) | | +**meta** | [**V0043OpenapiMeta**](V0043OpenapiMeta.md) | | [optional] +**errors** | [**List[V0043OpenapiError]**](V0043OpenapiError.md) | | [optional] +**warnings** | [**List[V0043OpenapiWarning]**](V0043OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043OpenapiWckeyResp from a JSON string +v0043_openapi_wckey_resp_instance = V0043OpenapiWckeyResp.from_json(json) +# print the JSON string representation of the object +print(V0043OpenapiWckeyResp.to_json()) + +# convert the object into a dict +v0043_openapi_wckey_resp_dict = v0043_openapi_wckey_resp_instance.to_dict() +# create an instance of V0043OpenapiWckeyResp from a dict +v0043_openapi_wckey_resp_from_dict = V0043OpenapiWckeyResp.from_dict(v0043_openapi_wckey_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043PartPrio.md b/docs/V0043PartPrio.md new file mode 100644 index 0000000..b699f85 --- /dev/null +++ b/docs/V0043PartPrio.md @@ -0,0 +1,30 @@ +# V0043PartPrio + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**partition** | **str** | Partition name | [optional] +**priority** | **int** | Prospective job priority if it runs in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_part_prio import V0043PartPrio + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043PartPrio from a JSON string +v0043_part_prio_instance = V0043PartPrio.from_json(json) +# print the JSON string representation of the object +print(V0043PartPrio.to_json()) + +# convert the object into a dict +v0043_part_prio_dict = v0043_part_prio_instance.to_dict() +# create an instance of V0043PartPrio from a dict +v0043_part_prio_from_dict = V0043PartPrio.from_dict(v0043_part_prio_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043PartitionInfo.md b/docs/V0043PartitionInfo.md new file mode 100644 index 0000000..c2b211b --- /dev/null +++ b/docs/V0043PartitionInfo.md @@ -0,0 +1,48 @@ +# V0043PartitionInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**V0044PartitionInfoNodes**](V0044PartitionInfoNodes.md) | | [optional] +**accounts** | [**V0044PartitionInfoAccounts**](V0044PartitionInfoAccounts.md) | | [optional] +**groups** | [**V0044PartitionInfoGroups**](V0044PartitionInfoGroups.md) | | [optional] +**qos** | [**V0044PartitionInfoQos**](V0044PartitionInfoQos.md) | | [optional] +**alternate** | **str** | Alternate - Partition name of alternate partition to be used if the state of this partition is DRAIN or INACTIVE | [optional] +**tres** | [**V0044PartitionInfoTres**](V0044PartitionInfoTres.md) | | [optional] +**cluster** | **str** | Cluster name | [optional] +**select_type** | **List[str]** | Scheduler consumable resource selection type | [optional] +**cpus** | [**V0044PartitionInfoCpus**](V0044PartitionInfoCpus.md) | | [optional] +**defaults** | [**V0043PartitionInfoDefaults**](V0043PartitionInfoDefaults.md) | | [optional] +**grace_time** | **int** | GraceTime - Grace time in seconds to be extended to a job which has been selected for preemption | [optional] +**maximums** | [**V0043PartitionInfoMaximums**](V0043PartitionInfoMaximums.md) | | [optional] +**minimums** | [**V0044PartitionInfoMinimums**](V0044PartitionInfoMinimums.md) | | [optional] +**name** | **str** | PartitionName - Name by which the partition may be referenced | [optional] +**node_sets** | **str** | NodeSets - Comma-separated list of nodesets which are associated with this partition | [optional] +**priority** | [**V0044PartitionInfoPriority**](V0044PartitionInfoPriority.md) | | [optional] +**timeouts** | [**V0043PartitionInfoTimeouts**](V0043PartitionInfoTimeouts.md) | | [optional] +**topology** | **str** | Topology - Name of the topology, defined in topology.yaml, used by jobs in this partition | [optional] +**partition** | [**V0041OpenapiPartitionRespPartitionsInnerPartition**](V0041OpenapiPartitionRespPartitionsInnerPartition.md) | | [optional] +**suspend_time** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_partition_info import V0043PartitionInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043PartitionInfo from a JSON string +v0043_partition_info_instance = V0043PartitionInfo.from_json(json) +# print the JSON string representation of the object +print(V0043PartitionInfo.to_json()) + +# convert the object into a dict +v0043_partition_info_dict = v0043_partition_info_instance.to_dict() +# create an instance of V0043PartitionInfo from a dict +v0043_partition_info_from_dict = V0043PartitionInfo.from_dict(v0043_partition_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043PartitionInfoDefaults.md b/docs/V0043PartitionInfoDefaults.md new file mode 100644 index 0000000..d11be91 --- /dev/null +++ b/docs/V0043PartitionInfoDefaults.md @@ -0,0 +1,33 @@ +# V0043PartitionInfoDefaults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memory_per_cpu** | **int** | Raw value for DefMemPerCPU or DefMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**partition_memory_per_node** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**time** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**job** | **str** | JobDefaults - Comma-separated list of job default values (this field is only used to set new defaults) | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_partition_info_defaults import V0043PartitionInfoDefaults + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043PartitionInfoDefaults from a JSON string +v0043_partition_info_defaults_instance = V0043PartitionInfoDefaults.from_json(json) +# print the JSON string representation of the object +print(V0043PartitionInfoDefaults.to_json()) + +# convert the object into a dict +v0043_partition_info_defaults_dict = v0043_partition_info_defaults_instance.to_dict() +# create an instance of V0043PartitionInfoDefaults from a dict +v0043_partition_info_defaults_from_dict = V0043PartitionInfoDefaults.from_dict(v0043_partition_info_defaults_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043PartitionInfoMaximums.md b/docs/V0043PartitionInfoMaximums.md new file mode 100644 index 0000000..063f810 --- /dev/null +++ b/docs/V0043PartitionInfoMaximums.md @@ -0,0 +1,38 @@ +# V0043PartitionInfoMaximums + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus_per_node** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**cpus_per_socket** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**memory_per_cpu** | **int** | Raw value for MaxMemPerCPU or MaxMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**partition_memory_per_node** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**nodes** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**shares** | **int** | OverSubscribe - Controls the ability of the partition to execute more than one job at a time on each resource | [optional] +**oversubscribe** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe**](V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md) | | [optional] +**time** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**over_time_limit** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_partition_info_maximums import V0043PartitionInfoMaximums + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043PartitionInfoMaximums from a JSON string +v0043_partition_info_maximums_instance = V0043PartitionInfoMaximums.from_json(json) +# print the JSON string representation of the object +print(V0043PartitionInfoMaximums.to_json()) + +# convert the object into a dict +v0043_partition_info_maximums_dict = v0043_partition_info_maximums_instance.to_dict() +# create an instance of V0043PartitionInfoMaximums from a dict +v0043_partition_info_maximums_from_dict = V0043PartitionInfoMaximums.from_dict(v0043_partition_info_maximums_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043PartitionInfoTimeouts.md b/docs/V0043PartitionInfoTimeouts.md new file mode 100644 index 0000000..71d7e9a --- /dev/null +++ b/docs/V0043PartitionInfoTimeouts.md @@ -0,0 +1,30 @@ +# V0043PartitionInfoTimeouts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**suspend** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_partition_info_timeouts import V0043PartitionInfoTimeouts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043PartitionInfoTimeouts from a JSON string +v0043_partition_info_timeouts_instance = V0043PartitionInfoTimeouts.from_json(json) +# print the JSON string representation of the object +print(V0043PartitionInfoTimeouts.to_json()) + +# convert the object into a dict +v0043_partition_info_timeouts_dict = v0043_partition_info_timeouts_instance.to_dict() +# create an instance of V0043PartitionInfoTimeouts from a dict +v0043_partition_info_timeouts_from_dict = V0043PartitionInfoTimeouts.from_dict(v0043_partition_info_timeouts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ProcessExitCodeVerbose.md b/docs/V0043ProcessExitCodeVerbose.md new file mode 100644 index 0000000..d8810f9 --- /dev/null +++ b/docs/V0043ProcessExitCodeVerbose.md @@ -0,0 +1,31 @@ +# V0043ProcessExitCodeVerbose + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **List[str]** | Status given by return code | [optional] +**return_code** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**signal** | [**V0043ProcessExitCodeVerboseSignal**](V0043ProcessExitCodeVerboseSignal.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_process_exit_code_verbose import V0043ProcessExitCodeVerbose + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ProcessExitCodeVerbose from a JSON string +v0043_process_exit_code_verbose_instance = V0043ProcessExitCodeVerbose.from_json(json) +# print the JSON string representation of the object +print(V0043ProcessExitCodeVerbose.to_json()) + +# convert the object into a dict +v0043_process_exit_code_verbose_dict = v0043_process_exit_code_verbose_instance.to_dict() +# create an instance of V0043ProcessExitCodeVerbose from a dict +v0043_process_exit_code_verbose_from_dict = V0043ProcessExitCodeVerbose.from_dict(v0043_process_exit_code_verbose_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ProcessExitCodeVerboseSignal.md b/docs/V0043ProcessExitCodeVerboseSignal.md new file mode 100644 index 0000000..4deadf1 --- /dev/null +++ b/docs/V0043ProcessExitCodeVerboseSignal.md @@ -0,0 +1,30 @@ +# V0043ProcessExitCodeVerboseSignal + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**V0043Uint16NoValStruct**](V0043Uint16NoValStruct.md) | | [optional] +**name** | **str** | Signal sent to process (name) | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_process_exit_code_verbose_signal import V0043ProcessExitCodeVerboseSignal + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ProcessExitCodeVerboseSignal from a JSON string +v0043_process_exit_code_verbose_signal_instance = V0043ProcessExitCodeVerboseSignal.from_json(json) +# print the JSON string representation of the object +print(V0043ProcessExitCodeVerboseSignal.to_json()) + +# convert the object into a dict +v0043_process_exit_code_verbose_signal_dict = v0043_process_exit_code_verbose_signal_instance.to_dict() +# create an instance of V0043ProcessExitCodeVerboseSignal from a dict +v0043_process_exit_code_verbose_signal_from_dict = V0043ProcessExitCodeVerboseSignal.from_dict(v0043_process_exit_code_verbose_signal_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Qos.md b/docs/V0043Qos.md new file mode 100644 index 0000000..42dd119 --- /dev/null +++ b/docs/V0043Qos.md @@ -0,0 +1,37 @@ +# V0043Qos + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary description | [optional] +**flags** | **List[str]** | Flags, to avoid modifying current values specify NOT_SET | [optional] +**id** | **int** | Unique ID | [optional] +**limits** | [**V0043QosLimits**](V0043QosLimits.md) | | [optional] +**name** | **str** | Name | [optional] +**preempt** | [**V0043QosPreempt**](V0043QosPreempt.md) | | [optional] +**priority** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**usage_factor** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] +**usage_threshold** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos import V0043Qos + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Qos from a JSON string +v0043_qos_instance = V0043Qos.from_json(json) +# print the JSON string representation of the object +print(V0043Qos.to_json()) + +# convert the object into a dict +v0043_qos_dict = v0043_qos_instance.to_dict() +# create an instance of V0043Qos from a dict +v0043_qos_from_dict = V0043Qos.from_dict(v0043_qos_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimits.md b/docs/V0043QosLimits.md new file mode 100644 index 0000000..5b7846d --- /dev/null +++ b/docs/V0043QosLimits.md @@ -0,0 +1,32 @@ +# V0043QosLimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grace_time** | **int** | GraceTime - Preemption grace time in seconds to be extended to a job which has been selected for preemption | [optional] +**max** | [**V0043QosLimitsMax**](V0043QosLimitsMax.md) | | [optional] +**factor** | [**V0043Float64NoValStruct**](V0043Float64NoValStruct.md) | | [optional] +**min** | [**V0043QosLimitsMin**](V0043QosLimitsMin.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits import V0043QosLimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimits from a JSON string +v0043_qos_limits_instance = V0043QosLimits.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimits.to_json()) + +# convert the object into a dict +v0043_qos_limits_dict = v0043_qos_limits_instance.to_dict() +# create an instance of V0043QosLimits from a dict +v0043_qos_limits_from_dict = V0043QosLimits.from_dict(v0043_qos_limits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMax.md b/docs/V0043QosLimitsMax.md new file mode 100644 index 0000000..48b1102 --- /dev/null +++ b/docs/V0043QosLimitsMax.md @@ -0,0 +1,33 @@ +# V0043QosLimitsMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_jobs** | [**V0043QosLimitsMaxActiveJobs**](V0043QosLimitsMaxActiveJobs.md) | | [optional] +**jobs** | [**V0043QosLimitsMaxJobs**](V0043QosLimitsMaxJobs.md) | | [optional] +**tres** | [**V0043QosLimitsMaxTres**](V0043QosLimitsMaxTres.md) | | [optional] +**wall_clock** | [**V0043QosLimitsMaxWallClock**](V0043QosLimitsMaxWallClock.md) | | [optional] +**accruing** | [**V0043QosLimitsMaxJobsActiveJobs**](V0043QosLimitsMaxJobsActiveJobs.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max import V0043QosLimitsMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMax from a JSON string +v0043_qos_limits_max_instance = V0043QosLimitsMax.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMax.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_dict = v0043_qos_limits_max_instance.to_dict() +# create an instance of V0043QosLimitsMax from a dict +v0043_qos_limits_max_from_dict = V0043QosLimitsMax.from_dict(v0043_qos_limits_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxActiveJobs.md b/docs/V0043QosLimitsMaxActiveJobs.md new file mode 100644 index 0000000..a464ea4 --- /dev/null +++ b/docs/V0043QosLimitsMaxActiveJobs.md @@ -0,0 +1,30 @@ +# V0043QosLimitsMaxActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accruing** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**count** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_active_jobs import V0043QosLimitsMaxActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxActiveJobs from a JSON string +v0043_qos_limits_max_active_jobs_instance = V0043QosLimitsMaxActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxActiveJobs.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_active_jobs_dict = v0043_qos_limits_max_active_jobs_instance.to_dict() +# create an instance of V0043QosLimitsMaxActiveJobs from a dict +v0043_qos_limits_max_active_jobs_from_dict = V0043QosLimitsMaxActiveJobs.from_dict(v0043_qos_limits_max_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxJobs.md b/docs/V0043QosLimitsMaxJobs.md new file mode 100644 index 0000000..e8a5e20 --- /dev/null +++ b/docs/V0043QosLimitsMaxJobs.md @@ -0,0 +1,31 @@ +# V0043QosLimitsMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**active_jobs** | [**V0043QosLimitsMaxJobsActiveJobs**](V0043QosLimitsMaxJobsActiveJobs.md) | | [optional] +**per** | [**V0043QosLimitsMaxJobsActiveJobsPer**](V0043QosLimitsMaxJobsActiveJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_jobs import V0043QosLimitsMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxJobs from a JSON string +v0043_qos_limits_max_jobs_instance = V0043QosLimitsMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxJobs.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_jobs_dict = v0043_qos_limits_max_jobs_instance.to_dict() +# create an instance of V0043QosLimitsMaxJobs from a dict +v0043_qos_limits_max_jobs_from_dict = V0043QosLimitsMaxJobs.from_dict(v0043_qos_limits_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxJobsActiveJobs.md b/docs/V0043QosLimitsMaxJobsActiveJobs.md new file mode 100644 index 0000000..eb311d1 --- /dev/null +++ b/docs/V0043QosLimitsMaxJobsActiveJobs.md @@ -0,0 +1,29 @@ +# V0043QosLimitsMaxJobsActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0043QosLimitsMaxJobsActiveJobsPer**](V0043QosLimitsMaxJobsActiveJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs import V0043QosLimitsMaxJobsActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxJobsActiveJobs from a JSON string +v0043_qos_limits_max_jobs_active_jobs_instance = V0043QosLimitsMaxJobsActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxJobsActiveJobs.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_jobs_active_jobs_dict = v0043_qos_limits_max_jobs_active_jobs_instance.to_dict() +# create an instance of V0043QosLimitsMaxJobsActiveJobs from a dict +v0043_qos_limits_max_jobs_active_jobs_from_dict = V0043QosLimitsMaxJobsActiveJobs.from_dict(v0043_qos_limits_max_jobs_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxJobsActiveJobsPer.md b/docs/V0043QosLimitsMaxJobsActiveJobsPer.md new file mode 100644 index 0000000..ca17f20 --- /dev/null +++ b/docs/V0043QosLimitsMaxJobsActiveJobsPer.md @@ -0,0 +1,30 @@ +# V0043QosLimitsMaxJobsActiveJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**user** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs_per import V0043QosLimitsMaxJobsActiveJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxJobsActiveJobsPer from a JSON string +v0043_qos_limits_max_jobs_active_jobs_per_instance = V0043QosLimitsMaxJobsActiveJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxJobsActiveJobsPer.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_jobs_active_jobs_per_dict = v0043_qos_limits_max_jobs_active_jobs_per_instance.to_dict() +# create an instance of V0043QosLimitsMaxJobsActiveJobsPer from a dict +v0043_qos_limits_max_jobs_active_jobs_per_from_dict = V0043QosLimitsMaxJobsActiveJobsPer.from_dict(v0043_qos_limits_max_jobs_active_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxTres.md b/docs/V0043QosLimitsMaxTres.md new file mode 100644 index 0000000..20e55b1 --- /dev/null +++ b/docs/V0043QosLimitsMaxTres.md @@ -0,0 +1,31 @@ +# V0043QosLimitsMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**minutes** | [**V0043QosLimitsMaxTresMinutes**](V0043QosLimitsMaxTresMinutes.md) | | [optional] +**per** | [**V0043QosLimitsMaxTresPer**](V0043QosLimitsMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_tres import V0043QosLimitsMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxTres from a JSON string +v0043_qos_limits_max_tres_instance = V0043QosLimitsMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxTres.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_tres_dict = v0043_qos_limits_max_tres_instance.to_dict() +# create an instance of V0043QosLimitsMaxTres from a dict +v0043_qos_limits_max_tres_from_dict = V0043QosLimitsMaxTres.from_dict(v0043_qos_limits_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxTresMinutes.md b/docs/V0043QosLimitsMaxTresMinutes.md new file mode 100644 index 0000000..c333299 --- /dev/null +++ b/docs/V0043QosLimitsMaxTresMinutes.md @@ -0,0 +1,30 @@ +# V0043QosLimitsMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**per** | [**V0043QosLimitsMaxTresMinutesPer**](V0043QosLimitsMaxTresMinutesPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes import V0043QosLimitsMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxTresMinutes from a JSON string +v0043_qos_limits_max_tres_minutes_instance = V0043QosLimitsMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxTresMinutes.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_tres_minutes_dict = v0043_qos_limits_max_tres_minutes_instance.to_dict() +# create an instance of V0043QosLimitsMaxTresMinutes from a dict +v0043_qos_limits_max_tres_minutes_from_dict = V0043QosLimitsMaxTresMinutes.from_dict(v0043_qos_limits_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxTresMinutesPer.md b/docs/V0043QosLimitsMaxTresMinutesPer.md new file mode 100644 index 0000000..34f38b2 --- /dev/null +++ b/docs/V0043QosLimitsMaxTresMinutesPer.md @@ -0,0 +1,32 @@ +# V0043QosLimitsMaxTresMinutesPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**job** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**account** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**user** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes_per import V0043QosLimitsMaxTresMinutesPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxTresMinutesPer from a JSON string +v0043_qos_limits_max_tres_minutes_per_instance = V0043QosLimitsMaxTresMinutesPer.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxTresMinutesPer.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_tres_minutes_per_dict = v0043_qos_limits_max_tres_minutes_per_instance.to_dict() +# create an instance of V0043QosLimitsMaxTresMinutesPer from a dict +v0043_qos_limits_max_tres_minutes_per_from_dict = V0043QosLimitsMaxTresMinutesPer.from_dict(v0043_qos_limits_max_tres_minutes_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxTresPer.md b/docs/V0043QosLimitsMaxTresPer.md new file mode 100644 index 0000000..29a0c45 --- /dev/null +++ b/docs/V0043QosLimitsMaxTresPer.md @@ -0,0 +1,32 @@ +# V0043QosLimitsMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**job** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**node** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**user** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_tres_per import V0043QosLimitsMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxTresPer from a JSON string +v0043_qos_limits_max_tres_per_instance = V0043QosLimitsMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxTresPer.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_tres_per_dict = v0043_qos_limits_max_tres_per_instance.to_dict() +# create an instance of V0043QosLimitsMaxTresPer from a dict +v0043_qos_limits_max_tres_per_from_dict = V0043QosLimitsMaxTresPer.from_dict(v0043_qos_limits_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxWallClock.md b/docs/V0043QosLimitsMaxWallClock.md new file mode 100644 index 0000000..2628f1b --- /dev/null +++ b/docs/V0043QosLimitsMaxWallClock.md @@ -0,0 +1,29 @@ +# V0043QosLimitsMaxWallClock + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0043QosLimitsMaxWallClockPer**](V0043QosLimitsMaxWallClockPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_wall_clock import V0043QosLimitsMaxWallClock + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxWallClock from a JSON string +v0043_qos_limits_max_wall_clock_instance = V0043QosLimitsMaxWallClock.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxWallClock.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_wall_clock_dict = v0043_qos_limits_max_wall_clock_instance.to_dict() +# create an instance of V0043QosLimitsMaxWallClock from a dict +v0043_qos_limits_max_wall_clock_from_dict = V0043QosLimitsMaxWallClock.from_dict(v0043_qos_limits_max_wall_clock_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMaxWallClockPer.md b/docs/V0043QosLimitsMaxWallClockPer.md new file mode 100644 index 0000000..7df86ac --- /dev/null +++ b/docs/V0043QosLimitsMaxWallClockPer.md @@ -0,0 +1,30 @@ +# V0043QosLimitsMaxWallClockPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**job** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_max_wall_clock_per import V0043QosLimitsMaxWallClockPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMaxWallClockPer from a JSON string +v0043_qos_limits_max_wall_clock_per_instance = V0043QosLimitsMaxWallClockPer.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMaxWallClockPer.to_json()) + +# convert the object into a dict +v0043_qos_limits_max_wall_clock_per_dict = v0043_qos_limits_max_wall_clock_per_instance.to_dict() +# create an instance of V0043QosLimitsMaxWallClockPer from a dict +v0043_qos_limits_max_wall_clock_per_from_dict = V0043QosLimitsMaxWallClockPer.from_dict(v0043_qos_limits_max_wall_clock_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMin.md b/docs/V0043QosLimitsMin.md new file mode 100644 index 0000000..368ca72 --- /dev/null +++ b/docs/V0043QosLimitsMin.md @@ -0,0 +1,30 @@ +# V0043QosLimitsMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**tres** | [**V0043QosLimitsMinTres**](V0043QosLimitsMinTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_min import V0043QosLimitsMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMin from a JSON string +v0043_qos_limits_min_instance = V0043QosLimitsMin.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMin.to_json()) + +# convert the object into a dict +v0043_qos_limits_min_dict = v0043_qos_limits_min_instance.to_dict() +# create an instance of V0043QosLimitsMin from a dict +v0043_qos_limits_min_from_dict = V0043QosLimitsMin.from_dict(v0043_qos_limits_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMinTres.md b/docs/V0043QosLimitsMinTres.md new file mode 100644 index 0000000..afb18a3 --- /dev/null +++ b/docs/V0043QosLimitsMinTres.md @@ -0,0 +1,29 @@ +# V0043QosLimitsMinTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0043QosLimitsMinTresPer**](V0043QosLimitsMinTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_min_tres import V0043QosLimitsMinTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMinTres from a JSON string +v0043_qos_limits_min_tres_instance = V0043QosLimitsMinTres.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMinTres.to_json()) + +# convert the object into a dict +v0043_qos_limits_min_tres_dict = v0043_qos_limits_min_tres_instance.to_dict() +# create an instance of V0043QosLimitsMinTres from a dict +v0043_qos_limits_min_tres_from_dict = V0043QosLimitsMinTres.from_dict(v0043_qos_limits_min_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosLimitsMinTresPer.md b/docs/V0043QosLimitsMinTresPer.md new file mode 100644 index 0000000..d908adb --- /dev/null +++ b/docs/V0043QosLimitsMinTresPer.md @@ -0,0 +1,29 @@ +# V0043QosLimitsMinTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_limits_min_tres_per import V0043QosLimitsMinTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosLimitsMinTresPer from a JSON string +v0043_qos_limits_min_tres_per_instance = V0043QosLimitsMinTresPer.from_json(json) +# print the JSON string representation of the object +print(V0043QosLimitsMinTresPer.to_json()) + +# convert the object into a dict +v0043_qos_limits_min_tres_per_dict = v0043_qos_limits_min_tres_per_instance.to_dict() +# create an instance of V0043QosLimitsMinTresPer from a dict +v0043_qos_limits_min_tres_per_from_dict = V0043QosLimitsMinTresPer.from_dict(v0043_qos_limits_min_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043QosPreempt.md b/docs/V0043QosPreempt.md new file mode 100644 index 0000000..5f272b4 --- /dev/null +++ b/docs/V0043QosPreempt.md @@ -0,0 +1,31 @@ +# V0043QosPreempt + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**list** | **List[str]** | | [optional] +**mode** | **List[str]** | PreemptMode - Mechanism used to preempt jobs or enable gang scheduling | [optional] +**exempt_time** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_qos_preempt import V0043QosPreempt + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043QosPreempt from a JSON string +v0043_qos_preempt_instance = V0043QosPreempt.from_json(json) +# print the JSON string representation of the object +print(V0043QosPreempt.to_json()) + +# convert the object into a dict +v0043_qos_preempt_dict = v0043_qos_preempt_instance.to_dict() +# create an instance of V0043QosPreempt from a dict +v0043_qos_preempt_from_dict = V0043QosPreempt.from_dict(v0043_qos_preempt_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ReservationCoreSpec.md b/docs/V0043ReservationCoreSpec.md new file mode 100644 index 0000000..03d91c8 --- /dev/null +++ b/docs/V0043ReservationCoreSpec.md @@ -0,0 +1,30 @@ +# V0043ReservationCoreSpec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node** | **str** | Name of reserved node | [optional] +**core** | **str** | IDs of reserved cores | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_reservation_core_spec import V0043ReservationCoreSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ReservationCoreSpec from a JSON string +v0043_reservation_core_spec_instance = V0043ReservationCoreSpec.from_json(json) +# print the JSON string representation of the object +print(V0043ReservationCoreSpec.to_json()) + +# convert the object into a dict +v0043_reservation_core_spec_dict = v0043_reservation_core_spec_instance.to_dict() +# create an instance of V0043ReservationCoreSpec from a dict +v0043_reservation_core_spec_from_dict = V0043ReservationCoreSpec.from_dict(v0043_reservation_core_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ReservationDescMsg.md b/docs/V0043ReservationDescMsg.md new file mode 100644 index 0000000..90f0f81 --- /dev/null +++ b/docs/V0043ReservationDescMsg.md @@ -0,0 +1,47 @@ +# V0043ReservationDescMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | [optional] +**burst_buffer** | **str** | BurstBuffer | [optional] +**comment** | **str** | Arbitrary string | [optional] +**core_count** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**duration** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**end_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**features** | **str** | Requested node features. Multiple values may be \"&\" separated if all features are required (AND operation) or separated by \"|\" if any of the specified features are required (OR operation). Parenthesis are also supported for features to be ANDed together with counts of nodes having the specified features. | [optional] +**flags** | **List[str]** | Flags associated with this reservation. Note, to remove flags use \"NO_\" prefixed flag excluding NO_HOLD_JOBS_AFTER_END | [optional] +**groups** | **List[str]** | | [optional] +**licenses** | **List[str]** | | [optional] +**max_start_delay** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**name** | **str** | ReservationName | [optional] +**node_count** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**node_list** | **List[str]** | | [optional] +**partition** | **str** | Partition used to reserve nodes from. This will attempt to allocate all nodes in the specified partition unless you request fewer resources than are available with core_cnt, node_cnt or tres. | [optional] +**purge_completed** | [**V0043ReservationInfoPurgeCompleted**](V0043ReservationInfoPurgeCompleted.md) | | [optional] +**start_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**tres** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**users** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ReservationDescMsg from a JSON string +v0043_reservation_desc_msg_instance = V0043ReservationDescMsg.from_json(json) +# print the JSON string representation of the object +print(V0043ReservationDescMsg.to_json()) + +# convert the object into a dict +v0043_reservation_desc_msg_dict = v0043_reservation_desc_msg_instance.to_dict() +# create an instance of V0043ReservationDescMsg from a dict +v0043_reservation_desc_msg_from_dict = V0043ReservationDescMsg.from_dict(v0043_reservation_desc_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ReservationInfo.md b/docs/V0043ReservationInfo.md new file mode 100644 index 0000000..c3fcf69 --- /dev/null +++ b/docs/V0043ReservationInfo.md @@ -0,0 +1,47 @@ +# V0043ReservationInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **str** | Comma-separated list of permitted accounts | [optional] +**burst_buffer** | **str** | BurstBuffer - Burst buffer resources reserved | [optional] +**core_count** | **int** | CoreCnt - Number of cores reserved | [optional] +**core_specializations** | [**List[V0043ReservationCoreSpec]**](V0043ReservationCoreSpec.md) | | [optional] +**end_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**features** | **str** | Features - Expression describing the reservation's required node features | [optional] +**flags** | **List[str]** | Flags associated with this reservation | [optional] +**groups** | **str** | Groups - Comma-separated list of permitted groups | [optional] +**licenses** | **str** | Licenses - Comma-separated list of licenses reserved | [optional] +**max_start_delay** | **int** | MaxStartDelay - Maximum time an eligible job not requesting this reservation can delay a job requesting it in seconds | [optional] +**name** | **str** | ReservationName - Name of the reservation | [optional] +**node_count** | **int** | NodeCnt - Number of nodes reserved | [optional] +**node_list** | **str** | Nodes - Comma-separated list of node names and/or node ranges reserved | [optional] +**partition** | **str** | PartitionName - Partition used to reserve nodes from | [optional] +**purge_completed** | [**V0043ReservationInfoPurgeCompleted**](V0043ReservationInfoPurgeCompleted.md) | | [optional] +**start_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**watts** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**tres** | **str** | Comma-separated list of required TRES | [optional] +**users** | **str** | Comma-separated list of permitted users | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_reservation_info import V0043ReservationInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ReservationInfo from a JSON string +v0043_reservation_info_instance = V0043ReservationInfo.from_json(json) +# print the JSON string representation of the object +print(V0043ReservationInfo.to_json()) + +# convert the object into a dict +v0043_reservation_info_dict = v0043_reservation_info_instance.to_dict() +# create an instance of V0043ReservationInfo from a dict +v0043_reservation_info_from_dict = V0043ReservationInfo.from_dict(v0043_reservation_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ReservationInfoPurgeCompleted.md b/docs/V0043ReservationInfoPurgeCompleted.md new file mode 100644 index 0000000..9ecd070 --- /dev/null +++ b/docs/V0043ReservationInfoPurgeCompleted.md @@ -0,0 +1,29 @@ +# V0043ReservationInfoPurgeCompleted + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_reservation_info_purge_completed import V0043ReservationInfoPurgeCompleted + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ReservationInfoPurgeCompleted from a JSON string +v0043_reservation_info_purge_completed_instance = V0043ReservationInfoPurgeCompleted.from_json(json) +# print the JSON string representation of the object +print(V0043ReservationInfoPurgeCompleted.to_json()) + +# convert the object into a dict +v0043_reservation_info_purge_completed_dict = v0043_reservation_info_purge_completed_instance.to_dict() +# create an instance of V0043ReservationInfoPurgeCompleted from a dict +v0043_reservation_info_purge_completed_from_dict = V0043ReservationInfoPurgeCompleted.from_dict(v0043_reservation_info_purge_completed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ReservationModReq.md b/docs/V0043ReservationModReq.md new file mode 100644 index 0000000..1cf364b --- /dev/null +++ b/docs/V0043ReservationModReq.md @@ -0,0 +1,29 @@ +# V0043ReservationModReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0043ReservationDescMsg]**](V0043ReservationDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_reservation_mod_req import V0043ReservationModReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ReservationModReq from a JSON string +v0043_reservation_mod_req_instance = V0043ReservationModReq.from_json(json) +# print the JSON string representation of the object +print(V0043ReservationModReq.to_json()) + +# convert the object into a dict +v0043_reservation_mod_req_dict = v0043_reservation_mod_req_instance.to_dict() +# create an instance of V0043ReservationModReq from a dict +v0043_reservation_mod_req_from_dict = V0043ReservationModReq.from_dict(v0043_reservation_mod_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043RollupStats.md b/docs/V0043RollupStats.md new file mode 100644 index 0000000..a66c9f6 --- /dev/null +++ b/docs/V0043RollupStats.md @@ -0,0 +1,31 @@ +# V0043RollupStats + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hourly** | [**V0044RollupStatsHourly**](V0044RollupStatsHourly.md) | | [optional] +**daily** | [**V0044RollupStatsDaily**](V0044RollupStatsDaily.md) | | [optional] +**monthly** | [**V0044RollupStatsMonthly**](V0044RollupStatsMonthly.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_rollup_stats import V0043RollupStats + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043RollupStats from a JSON string +v0043_rollup_stats_instance = V0043RollupStats.from_json(json) +# print the JSON string representation of the object +print(V0043RollupStats.to_json()) + +# convert the object into a dict +v0043_rollup_stats_dict = v0043_rollup_stats_instance.to_dict() +# create an instance of V0043RollupStats from a dict +v0043_rollup_stats_from_dict = V0043RollupStats.from_dict(v0043_rollup_stats_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043ScheduleExitFields.md b/docs/V0043ScheduleExitFields.md new file mode 100644 index 0000000..56ea0d6 --- /dev/null +++ b/docs/V0043ScheduleExitFields.md @@ -0,0 +1,34 @@ +# V0043ScheduleExitFields + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**default_queue_depth** | **int** | Reached number of jobs allowed to be tested | [optional] +**max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**max_rpc_cnt** | **int** | Reached RPC limit | [optional] +**max_sched_time** | **int** | Reached maximum allowed scheduler time | [optional] +**licenses** | **int** | Blocked on licenses | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_schedule_exit_fields import V0043ScheduleExitFields + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043ScheduleExitFields from a JSON string +v0043_schedule_exit_fields_instance = V0043ScheduleExitFields.from_json(json) +# print the JSON string representation of the object +print(V0043ScheduleExitFields.to_json()) + +# convert the object into a dict +v0043_schedule_exit_fields_dict = v0043_schedule_exit_fields_instance.to_dict() +# create an instance of V0043ScheduleExitFields from a dict +v0043_schedule_exit_fields_from_dict = V0043ScheduleExitFields.from_dict(v0043_schedule_exit_fields_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043SharesFloat128Tres.md b/docs/V0043SharesFloat128Tres.md new file mode 100644 index 0000000..880e983 --- /dev/null +++ b/docs/V0043SharesFloat128Tres.md @@ -0,0 +1,30 @@ +# V0043SharesFloat128Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | **float** | TRES value | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_shares_float128_tres import V0043SharesFloat128Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043SharesFloat128Tres from a JSON string +v0043_shares_float128_tres_instance = V0043SharesFloat128Tres.from_json(json) +# print the JSON string representation of the object +print(V0043SharesFloat128Tres.to_json()) + +# convert the object into a dict +v0043_shares_float128_tres_dict = v0043_shares_float128_tres_instance.to_dict() +# create an instance of V0043SharesFloat128Tres from a dict +v0043_shares_float128_tres_from_dict = V0043SharesFloat128Tres.from_dict(v0043_shares_float128_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043SharesRespMsg.md b/docs/V0043SharesRespMsg.md new file mode 100644 index 0000000..81c89d4 --- /dev/null +++ b/docs/V0043SharesRespMsg.md @@ -0,0 +1,30 @@ +# V0043SharesRespMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**List[V0043AssocSharesObjWrap]**](V0043AssocSharesObjWrap.md) | | [optional] +**total_shares** | **int** | Total number of shares | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_shares_resp_msg import V0043SharesRespMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043SharesRespMsg from a JSON string +v0043_shares_resp_msg_instance = V0043SharesRespMsg.from_json(json) +# print the JSON string representation of the object +print(V0043SharesRespMsg.to_json()) + +# convert the object into a dict +v0043_shares_resp_msg_dict = v0043_shares_resp_msg_instance.to_dict() +# create an instance of V0043SharesRespMsg from a dict +v0043_shares_resp_msg_from_dict = V0043SharesRespMsg.from_dict(v0043_shares_resp_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043SharesUint64Tres.md b/docs/V0043SharesUint64Tres.md new file mode 100644 index 0000000..b41f695 --- /dev/null +++ b/docs/V0043SharesUint64Tres.md @@ -0,0 +1,30 @@ +# V0043SharesUint64Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_shares_uint64_tres import V0043SharesUint64Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043SharesUint64Tres from a JSON string +v0043_shares_uint64_tres_instance = V0043SharesUint64Tres.from_json(json) +# print the JSON string representation of the object +print(V0043SharesUint64Tres.to_json()) + +# convert the object into a dict +v0043_shares_uint64_tres_dict = v0043_shares_uint64_tres_instance.to_dict() +# create an instance of V0043SharesUint64Tres from a dict +v0043_shares_uint64_tres_from_dict = V0043SharesUint64Tres.from_dict(v0043_shares_uint64_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043SlurmdbdPing.md b/docs/V0043SlurmdbdPing.md new file mode 100644 index 0000000..69b3679 --- /dev/null +++ b/docs/V0043SlurmdbdPing.md @@ -0,0 +1,32 @@ +# V0043SlurmdbdPing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Target for ping | +**responding** | **bool** | If ping RPC responded with pong from slurmdbd | +**latency** | **int** | Number of microseconds it took to successfully ping or timeout | +**primary** | **bool** | Is responding slurmdbd the primary controller (Is responding slurmctld the primary controller) | + +## Example + +```python +from slurmrest_python.models.v0043_slurmdbd_ping import V0043SlurmdbdPing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043SlurmdbdPing from a JSON string +v0043_slurmdbd_ping_instance = V0043SlurmdbdPing.from_json(json) +# print the JSON string representation of the object +print(V0043SlurmdbdPing.to_json()) + +# convert the object into a dict +v0043_slurmdbd_ping_dict = v0043_slurmdbd_ping_instance.to_dict() +# create an instance of V0043SlurmdbdPing from a dict +v0043_slurmdbd_ping_from_dict = V0043SlurmdbdPing.from_dict(v0043_slurmdbd_ping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsMsg.md b/docs/V0043StatsMsg.md new file mode 100644 index 0000000..cdf6371 --- /dev/null +++ b/docs/V0043StatsMsg.md @@ -0,0 +1,82 @@ +# V0043StatsMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parts_packed** | **int** | Zero if only RPC statistic included | [optional] +**req_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**req_time_start** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**server_thread_count** | **int** | Number of current active slurmctld threads | [optional] +**agent_queue_size** | **int** | Number of enqueued outgoing RPC requests in an internal retry list | [optional] +**agent_count** | **int** | Number of agent threads | [optional] +**agent_thread_count** | **int** | Total number of active threads created by all agent threads | [optional] +**dbd_agent_queue_size** | **int** | Number of messages for SlurmDBD that are queued | [optional] +**gettimeofday_latency** | **int** | Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup | [optional] +**schedule_cycle_max** | **int** | Max time of any scheduling cycle in microseconds since last reset | [optional] +**schedule_cycle_last** | **int** | Time in microseconds for last scheduling cycle | [optional] +**schedule_cycle_sum** | **int** | Total run time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_total** | **int** | Number of scheduling cycles since last reset | [optional] +**schedule_cycle_mean** | **int** | Mean time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_mean_depth** | **int** | Mean of the number of jobs processed in a scheduling cycle | [optional] +**schedule_cycle_per_minute** | **int** | Number of scheduling executions per minute | [optional] +**schedule_cycle_depth** | **int** | Total number of jobs processed in scheduling cycles | [optional] +**schedule_exit** | [**V0043ScheduleExitFields**](V0043ScheduleExitFields.md) | | [optional] +**schedule_queue_length** | **int** | Number of jobs pending in queue | [optional] +**jobs_submitted** | **int** | Number of jobs submitted since last reset | [optional] +**jobs_started** | **int** | Number of jobs started since last reset | [optional] +**jobs_completed** | **int** | Number of jobs completed since last reset | [optional] +**jobs_canceled** | **int** | Number of jobs canceled since the last reset | [optional] +**jobs_failed** | **int** | Number of jobs failed due to slurmd or other internal issues since last reset | [optional] +**jobs_pending** | **int** | Number of jobs pending at the time of listed in job_state_ts | [optional] +**jobs_running** | **int** | Number of jobs running at the time of listed in job_state_ts | [optional] +**job_states_ts** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**bf_backfilled_jobs** | **int** | Number of jobs started through backfilling since last slurm start | [optional] +**bf_last_backfilled_jobs** | **int** | Number of jobs started through backfilling since last reset | [optional] +**bf_backfilled_het_jobs** | **int** | Number of heterogeneous job components started through backfilling since last Slurm start | [optional] +**bf_cycle_counter** | **int** | Number of backfill scheduling cycles since last reset | [optional] +**bf_cycle_mean** | **int** | Mean time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean** | **int** | Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean_try** | **int** | The subset of Depth Mean that the backfill scheduler attempted to schedule | [optional] +**bf_cycle_sum** | **int** | Total time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_cycle_last** | **int** | Execution time in microseconds of last backfill scheduling cycle | [optional] +**bf_cycle_max** | **int** | Execution time in microseconds of longest backfill scheduling cycle | [optional] +**bf_exit** | [**V0043BfExitFields**](V0043BfExitFields.md) | | [optional] +**bf_last_depth** | **int** | Number of processed jobs during last backfilling scheduling cycle | [optional] +**bf_last_depth_try** | **int** | Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources | [optional] +**bf_depth_sum** | **int** | Total number of jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_try_sum** | **int** | Subset of bf_depth_sum that the backfill scheduler attempted to schedule | [optional] +**bf_queue_len** | **int** | Number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_mean** | **int** | Mean number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_sum** | **int** | Total number of jobs pending to be processed by backfilling algorithm since last reset | [optional] +**bf_table_size** | **int** | Number of different time slots tested by the backfill scheduler in its last iteration | [optional] +**bf_table_size_sum** | **int** | Total number of different time slots tested by the backfill scheduler | [optional] +**bf_table_size_mean** | **int** | Mean number of different time slots tested by the backfill scheduler | [optional] +**bf_when_last_cycle** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**bf_active** | **bool** | Backfill scheduler currently running | [optional] +**rpcs_by_message_type** | [**List[V0043StatsMsgRpcType]**](V0043StatsMsgRpcType.md) | RPCs by type | [optional] +**rpcs_by_user** | [**List[V0043StatsMsgRpcUser]**](V0043StatsMsgRpcUser.md) | RPCs by user | [optional] +**pending_rpcs** | [**List[V0043StatsMsgRpcQueue]**](V0043StatsMsgRpcQueue.md) | Pending RPCs | [optional] +**pending_rpcs_by_hostlist** | [**List[V0043StatsMsgRpcDump]**](V0043StatsMsgRpcDump.md) | Pending RPCs by hostlist | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_stats_msg import V0043StatsMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsMsg from a JSON string +v0043_stats_msg_instance = V0043StatsMsg.from_json(json) +# print the JSON string representation of the object +print(V0043StatsMsg.to_json()) + +# convert the object into a dict +v0043_stats_msg_dict = v0043_stats_msg_instance.to_dict() +# create an instance of V0043StatsMsg from a dict +v0043_stats_msg_from_dict = V0043StatsMsg.from_dict(v0043_stats_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsMsgRpcDump.md b/docs/V0043StatsMsgRpcDump.md new file mode 100644 index 0000000..5931a20 --- /dev/null +++ b/docs/V0043StatsMsgRpcDump.md @@ -0,0 +1,31 @@ +# V0043StatsMsgRpcDump + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string (Slurm RPC message type) | +**count** | **List[str]** | | + +## Example + +```python +from slurmrest_python.models.v0043_stats_msg_rpc_dump import V0043StatsMsgRpcDump + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsMsgRpcDump from a JSON string +v0043_stats_msg_rpc_dump_instance = V0043StatsMsgRpcDump.from_json(json) +# print the JSON string representation of the object +print(V0043StatsMsgRpcDump.to_json()) + +# convert the object into a dict +v0043_stats_msg_rpc_dump_dict = v0043_stats_msg_rpc_dump_instance.to_dict() +# create an instance of V0043StatsMsgRpcDump from a dict +v0043_stats_msg_rpc_dump_from_dict = V0043StatsMsgRpcDump.from_dict(v0043_stats_msg_rpc_dump_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsMsgRpcQueue.md b/docs/V0043StatsMsgRpcQueue.md new file mode 100644 index 0000000..878fed1 --- /dev/null +++ b/docs/V0043StatsMsgRpcQueue.md @@ -0,0 +1,31 @@ +# V0043StatsMsgRpcQueue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string (Slurm RPC message type) | +**count** | **int** | Number of pending RPCs queued | + +## Example + +```python +from slurmrest_python.models.v0043_stats_msg_rpc_queue import V0043StatsMsgRpcQueue + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsMsgRpcQueue from a JSON string +v0043_stats_msg_rpc_queue_instance = V0043StatsMsgRpcQueue.from_json(json) +# print the JSON string representation of the object +print(V0043StatsMsgRpcQueue.to_json()) + +# convert the object into a dict +v0043_stats_msg_rpc_queue_dict = v0043_stats_msg_rpc_queue_instance.to_dict() +# create an instance of V0043StatsMsgRpcQueue from a dict +v0043_stats_msg_rpc_queue_from_dict = V0043StatsMsgRpcQueue.from_dict(v0043_stats_msg_rpc_queue_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsMsgRpcType.md b/docs/V0043StatsMsgRpcType.md new file mode 100644 index 0000000..00cffda --- /dev/null +++ b/docs/V0043StatsMsgRpcType.md @@ -0,0 +1,37 @@ +# V0043StatsMsgRpcType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string (Slurm RPC message type) | +**count** | **int** | Number of RPCs received | +**queued** | **int** | Number of RPCs queued | +**dropped** | **int** | Number of RPCs dropped | +**cycle_last** | **int** | Number of RPCs processed within the last RPC queue cycle | +**cycle_max** | **int** | Maximum number of RPCs processed within a RPC queue cycle since start | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0043_stats_msg_rpc_type import V0043StatsMsgRpcType + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsMsgRpcType from a JSON string +v0043_stats_msg_rpc_type_instance = V0043StatsMsgRpcType.from_json(json) +# print the JSON string representation of the object +print(V0043StatsMsgRpcType.to_json()) + +# convert the object into a dict +v0043_stats_msg_rpc_type_dict = v0043_stats_msg_rpc_type_instance.to_dict() +# create an instance of V0043StatsMsgRpcType from a dict +v0043_stats_msg_rpc_type_from_dict = V0043StatsMsgRpcType.from_dict(v0043_stats_msg_rpc_type_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsMsgRpcUser.md b/docs/V0043StatsMsgRpcUser.md new file mode 100644 index 0000000..a2bddaa --- /dev/null +++ b/docs/V0043StatsMsgRpcUser.md @@ -0,0 +1,33 @@ +# V0043StatsMsgRpcUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **int** | User ID (numeric) | +**user** | **str** | User name | +**count** | **int** | Number of RPCs received | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0043_stats_msg_rpc_user import V0043StatsMsgRpcUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsMsgRpcUser from a JSON string +v0043_stats_msg_rpc_user_instance = V0043StatsMsgRpcUser.from_json(json) +# print the JSON string representation of the object +print(V0043StatsMsgRpcUser.to_json()) + +# convert the object into a dict +v0043_stats_msg_rpc_user_dict = v0043_stats_msg_rpc_user_instance.to_dict() +# create an instance of V0043StatsMsgRpcUser from a dict +v0043_stats_msg_rpc_user_from_dict = V0043StatsMsgRpcUser.from_dict(v0043_stats_msg_rpc_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsRec.md b/docs/V0043StatsRec.md new file mode 100644 index 0000000..25855aa --- /dev/null +++ b/docs/V0043StatsRec.md @@ -0,0 +1,32 @@ +# V0043StatsRec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_start** | **int** | When data collection started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**rollups** | [**V0043RollupStats**](V0043RollupStats.md) | | [optional] +**rpcs** | [**List[V0043StatsRpc]**](V0043StatsRpc.md) | | [optional] +**users** | [**List[V0043StatsUser]**](V0043StatsUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_stats_rec import V0043StatsRec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsRec from a JSON string +v0043_stats_rec_instance = V0043StatsRec.from_json(json) +# print the JSON string representation of the object +print(V0043StatsRec.to_json()) + +# convert the object into a dict +v0043_stats_rec_dict = v0043_stats_rec_instance.to_dict() +# create an instance of V0043StatsRec from a dict +v0043_stats_rec_from_dict = V0043StatsRec.from_dict(v0043_stats_rec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsRpc.md b/docs/V0043StatsRpc.md new file mode 100644 index 0000000..0dd17ce --- /dev/null +++ b/docs/V0043StatsRpc.md @@ -0,0 +1,31 @@ +# V0043StatsRpc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rpc** | **str** | RPC type | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_stats_rpc import V0043StatsRpc + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsRpc from a JSON string +v0043_stats_rpc_instance = V0043StatsRpc.from_json(json) +# print the JSON string representation of the object +print(V0043StatsRpc.to_json()) + +# convert the object into a dict +v0043_stats_rpc_dict = v0043_stats_rpc_instance.to_dict() +# create an instance of V0043StatsRpc from a dict +v0043_stats_rpc_from_dict = V0043StatsRpc.from_dict(v0043_stats_rpc_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StatsUser.md b/docs/V0043StatsUser.md new file mode 100644 index 0000000..2c66896 --- /dev/null +++ b/docs/V0043StatsUser.md @@ -0,0 +1,31 @@ +# V0043StatsUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **str** | User ID | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_stats_user import V0043StatsUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StatsUser from a JSON string +v0043_stats_user_instance = V0043StatsUser.from_json(json) +# print the JSON string representation of the object +print(V0043StatsUser.to_json()) + +# convert the object into a dict +v0043_stats_user_dict = v0043_stats_user_instance.to_dict() +# create an instance of V0043StatsUser from a dict +v0043_stats_user_from_dict = V0043StatsUser.from_dict(v0043_stats_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Step.md b/docs/V0043Step.md new file mode 100644 index 0000000..9f22ca5 --- /dev/null +++ b/docs/V0043Step.md @@ -0,0 +1,40 @@ +# V0043Step + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0043StepTime**](V0043StepTime.md) | | [optional] +**exit_code** | [**V0043ProcessExitCodeVerbose**](V0043ProcessExitCodeVerbose.md) | | [optional] +**nodes** | [**V0043StepNodes**](V0043StepNodes.md) | | [optional] +**tasks** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md) | | [optional] +**pid** | **str** | Deprecated; Process ID | [optional] +**cpu** | [**V0043StepCPU**](V0043StepCPU.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the step | [optional] +**state** | **List[str]** | Current state | [optional] +**statistics** | [**V0043StepStatistics**](V0043StepStatistics.md) | | [optional] +**step** | [**V0044StepStep**](V0044StepStep.md) | | [optional] +**task** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md) | | [optional] +**tres** | [**V0043StepTres**](V0043StepTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step import V0043Step + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Step from a JSON string +v0043_step_instance = V0043Step.from_json(json) +# print the JSON string representation of the object +print(V0043Step.to_json()) + +# convert the object into a dict +v0043_step_dict = v0043_step_instance.to_dict() +# create an instance of V0043Step from a dict +v0043_step_from_dict = V0043Step.from_dict(v0043_step_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepCPU.md b/docs/V0043StepCPU.md new file mode 100644 index 0000000..01c434b --- /dev/null +++ b/docs/V0043StepCPU.md @@ -0,0 +1,30 @@ +# V0043StepCPU + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested_frequency** | [**V0043StepCPURequestedFrequency**](V0043StepCPURequestedFrequency.md) | | [optional] +**governor** | **str** | Requested CPU frequency governor in kHz | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_cpu import V0043StepCPU + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepCPU from a JSON string +v0043_step_cpu_instance = V0043StepCPU.from_json(json) +# print the JSON string representation of the object +print(V0043StepCPU.to_json()) + +# convert the object into a dict +v0043_step_cpu_dict = v0043_step_cpu_instance.to_dict() +# create an instance of V0043StepCPU from a dict +v0043_step_cpu_from_dict = V0043StepCPU.from_dict(v0043_step_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepCPURequestedFrequency.md b/docs/V0043StepCPURequestedFrequency.md new file mode 100644 index 0000000..d8834d3 --- /dev/null +++ b/docs/V0043StepCPURequestedFrequency.md @@ -0,0 +1,30 @@ +# V0043StepCPURequestedFrequency + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**max** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_cpu_requested_frequency import V0043StepCPURequestedFrequency + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepCPURequestedFrequency from a JSON string +v0043_step_cpu_requested_frequency_instance = V0043StepCPURequestedFrequency.from_json(json) +# print the JSON string representation of the object +print(V0043StepCPURequestedFrequency.to_json()) + +# convert the object into a dict +v0043_step_cpu_requested_frequency_dict = v0043_step_cpu_requested_frequency_instance.to_dict() +# create an instance of V0043StepCPURequestedFrequency from a dict +v0043_step_cpu_requested_frequency_from_dict = V0043StepCPURequestedFrequency.from_dict(v0043_step_cpu_requested_frequency_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepNodes.md b/docs/V0043StepNodes.md new file mode 100644 index 0000000..4bbad81 --- /dev/null +++ b/docs/V0043StepNodes.md @@ -0,0 +1,31 @@ +# V0043StepNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of nodes in the job step | [optional] +**range** | **str** | Node(s) allocated to the job step | [optional] +**list** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_nodes import V0043StepNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepNodes from a JSON string +v0043_step_nodes_instance = V0043StepNodes.from_json(json) +# print the JSON string representation of the object +print(V0043StepNodes.to_json()) + +# convert the object into a dict +v0043_step_nodes_dict = v0043_step_nodes_instance.to_dict() +# create an instance of V0043StepNodes from a dict +v0043_step_nodes_from_dict = V0043StepNodes.from_dict(v0043_step_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepStatistics.md b/docs/V0043StepStatistics.md new file mode 100644 index 0000000..07adc8f --- /dev/null +++ b/docs/V0043StepStatistics.md @@ -0,0 +1,30 @@ +# V0043StepStatistics + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md) | | [optional] +**energy** | [**V0043StepStatisticsEnergy**](V0043StepStatisticsEnergy.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_statistics import V0043StepStatistics + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepStatistics from a JSON string +v0043_step_statistics_instance = V0043StepStatistics.from_json(json) +# print the JSON string representation of the object +print(V0043StepStatistics.to_json()) + +# convert the object into a dict +v0043_step_statistics_dict = v0043_step_statistics_instance.to_dict() +# create an instance of V0043StepStatistics from a dict +v0043_step_statistics_from_dict = V0043StepStatistics.from_dict(v0043_step_statistics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepStatisticsEnergy.md b/docs/V0043StepStatisticsEnergy.md new file mode 100644 index 0000000..b030945 --- /dev/null +++ b/docs/V0043StepStatisticsEnergy.md @@ -0,0 +1,29 @@ +# V0043StepStatisticsEnergy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumed** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_statistics_energy import V0043StepStatisticsEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepStatisticsEnergy from a JSON string +v0043_step_statistics_energy_instance = V0043StepStatisticsEnergy.from_json(json) +# print the JSON string representation of the object +print(V0043StepStatisticsEnergy.to_json()) + +# convert the object into a dict +v0043_step_statistics_energy_dict = v0043_step_statistics_energy_instance.to_dict() +# create an instance of V0043StepStatisticsEnergy from a dict +v0043_step_statistics_energy_from_dict = V0043StepStatisticsEnergy.from_dict(v0043_step_statistics_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepTime.md b/docs/V0043StepTime.md new file mode 100644 index 0000000..d8c9384 --- /dev/null +++ b/docs/V0043StepTime.md @@ -0,0 +1,36 @@ +# V0043StepTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**end** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**start** | [**V0043Uint64NoValStruct**](V0043Uint64NoValStruct.md) | | [optional] +**suspended** | **int** | Total time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md) | | [optional] +**limit** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_time import V0043StepTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepTime from a JSON string +v0043_step_time_instance = V0043StepTime.from_json(json) +# print the JSON string representation of the object +print(V0043StepTime.to_json()) + +# convert the object into a dict +v0043_step_time_dict = v0043_step_time_instance.to_dict() +# create an instance of V0043StepTime from a dict +v0043_step_time_from_dict = V0043StepTime.from_dict(v0043_step_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepTres.md b/docs/V0043StepTres.md new file mode 100644 index 0000000..27cb642 --- /dev/null +++ b/docs/V0043StepTres.md @@ -0,0 +1,31 @@ +# V0043StepTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested** | [**V0043StepTresRequested**](V0043StepTresRequested.md) | | [optional] +**consumed** | [**V0043StepTresConsumed**](V0043StepTresConsumed.md) | | [optional] +**allocated** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_tres import V0043StepTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepTres from a JSON string +v0043_step_tres_instance = V0043StepTres.from_json(json) +# print the JSON string representation of the object +print(V0043StepTres.to_json()) + +# convert the object into a dict +v0043_step_tres_dict = v0043_step_tres_instance.to_dict() +# create an instance of V0043StepTres from a dict +v0043_step_tres_from_dict = V0043StepTres.from_dict(v0043_step_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepTresConsumed.md b/docs/V0043StepTresConsumed.md new file mode 100644 index 0000000..968a610 --- /dev/null +++ b/docs/V0043StepTresConsumed.md @@ -0,0 +1,32 @@ +# V0043StepTresConsumed + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**min** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**average** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**total** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_tres_consumed import V0043StepTresConsumed + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepTresConsumed from a JSON string +v0043_step_tres_consumed_instance = V0043StepTresConsumed.from_json(json) +# print the JSON string representation of the object +print(V0043StepTresConsumed.to_json()) + +# convert the object into a dict +v0043_step_tres_consumed_dict = v0043_step_tres_consumed_instance.to_dict() +# create an instance of V0043StepTresConsumed from a dict +v0043_step_tres_consumed_from_dict = V0043StepTresConsumed.from_dict(v0043_step_tres_consumed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043StepTresRequested.md b/docs/V0043StepTresRequested.md new file mode 100644 index 0000000..e9353fc --- /dev/null +++ b/docs/V0043StepTresRequested.md @@ -0,0 +1,32 @@ +# V0043StepTresRequested + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**min** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**average** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] +**total** | [**List[V0043Tres]**](V0043Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_step_tres_requested import V0043StepTresRequested + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043StepTresRequested from a JSON string +v0043_step_tres_requested_instance = V0043StepTresRequested.from_json(json) +# print the JSON string representation of the object +print(V0043StepTresRequested.to_json()) + +# convert the object into a dict +v0043_step_tres_requested_dict = v0043_step_tres_requested_instance.to_dict() +# create an instance of V0043StepTresRequested from a dict +v0043_step_tres_requested_from_dict = V0043StepTresRequested.from_dict(v0043_step_tres_requested_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Tres.md b/docs/V0043Tres.md new file mode 100644 index 0000000..19611d8 --- /dev/null +++ b/docs/V0043Tres.md @@ -0,0 +1,32 @@ +# V0043Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | TRES type (CPU, MEM, etc) | +**name** | **str** | TRES name (if applicable) | [optional] +**id** | **int** | ID used in the database | [optional] +**count** | **int** | TRES count (0 if listed generically) | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_tres import V0043Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Tres from a JSON string +v0043_tres_instance = V0043Tres.from_json(json) +# print the JSON string representation of the object +print(V0043Tres.to_json()) + +# convert the object into a dict +v0043_tres_dict = v0043_tres_instance.to_dict() +# create an instance of V0043Tres from a dict +v0043_tres_from_dict = V0043Tres.from_dict(v0043_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Uint16NoValStruct.md b/docs/V0043Uint16NoValStruct.md new file mode 100644 index 0000000..6a2f3c3 --- /dev/null +++ b/docs/V0043Uint16NoValStruct.md @@ -0,0 +1,31 @@ +# V0043Uint16NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Uint16NoValStruct from a JSON string +v0043_uint16_no_val_struct_instance = V0043Uint16NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0043Uint16NoValStruct.to_json()) + +# convert the object into a dict +v0043_uint16_no_val_struct_dict = v0043_uint16_no_val_struct_instance.to_dict() +# create an instance of V0043Uint16NoValStruct from a dict +v0043_uint16_no_val_struct_from_dict = V0043Uint16NoValStruct.from_dict(v0043_uint16_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Uint32NoValStruct.md b/docs/V0043Uint32NoValStruct.md new file mode 100644 index 0000000..6a788b6 --- /dev/null +++ b/docs/V0043Uint32NoValStruct.md @@ -0,0 +1,31 @@ +# V0043Uint32NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Uint32NoValStruct from a JSON string +v0043_uint32_no_val_struct_instance = V0043Uint32NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0043Uint32NoValStruct.to_json()) + +# convert the object into a dict +v0043_uint32_no_val_struct_dict = v0043_uint32_no_val_struct_instance.to_dict() +# create an instance of V0043Uint32NoValStruct from a dict +v0043_uint32_no_val_struct_from_dict = V0043Uint32NoValStruct.from_dict(v0043_uint32_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Uint64NoValStruct.md b/docs/V0043Uint64NoValStruct.md new file mode 100644 index 0000000..ca35d11 --- /dev/null +++ b/docs/V0043Uint64NoValStruct.md @@ -0,0 +1,31 @@ +# V0043Uint64NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Uint64NoValStruct from a JSON string +v0043_uint64_no_val_struct_instance = V0043Uint64NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0043Uint64NoValStruct.to_json()) + +# convert the object into a dict +v0043_uint64_no_val_struct_dict = v0043_uint64_no_val_struct_instance.to_dict() +# create an instance of V0043Uint64NoValStruct from a dict +v0043_uint64_no_val_struct_from_dict = V0043Uint64NoValStruct.from_dict(v0043_uint64_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043UpdateNodeMsg.md b/docs/V0043UpdateNodeMsg.md new file mode 100644 index 0000000..cb50e7c --- /dev/null +++ b/docs/V0043UpdateNodeMsg.md @@ -0,0 +1,43 @@ +# V0043UpdateNodeMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**cpu_bind** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**features** | **List[str]** | | [optional] +**features_act** | **List[str]** | | [optional] +**gres** | **str** | Generic resources | [optional] +**address** | **List[str]** | | [optional] +**hostname** | **List[str]** | | [optional] +**name** | **List[str]** | | [optional] +**state** | **List[str]** | New state to assign to the node | [optional] +**reason** | **str** | Reason for node being DOWN or DRAINING | [optional] +**reason_uid** | **str** | User ID to associate with the reason (needed if user root is sending message) | [optional] +**resume_after** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] +**topology_str** | **str** | Topology | [optional] +**weight** | [**V0043Uint32NoValStruct**](V0043Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_update_node_msg import V0043UpdateNodeMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043UpdateNodeMsg from a JSON string +v0043_update_node_msg_instance = V0043UpdateNodeMsg.from_json(json) +# print the JSON string representation of the object +print(V0043UpdateNodeMsg.to_json()) + +# convert the object into a dict +v0043_update_node_msg_dict = v0043_update_node_msg_instance.to_dict() +# create an instance of V0043UpdateNodeMsg from a dict +v0043_update_node_msg_from_dict = V0043UpdateNodeMsg.from_dict(v0043_update_node_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043User.md b/docs/V0043User.md new file mode 100644 index 0000000..c8aab70 --- /dev/null +++ b/docs/V0043User.md @@ -0,0 +1,36 @@ +# V0043User + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**administrator_level** | **List[str]** | AdminLevel granted to the user | [optional] +**associations** | [**List[V0043AssocShort]**](V0043AssocShort.md) | | [optional] +**coordinators** | [**List[V0043Coord]**](V0043Coord.md) | | [optional] +**default** | [**V0042UserDefault**](V0042UserDefault.md) | | [optional] +**flags** | **List[str]** | Flags associated with this user | [optional] +**name** | **str** | User name | +**old_name** | **str** | Previous user name | [optional] +**wckeys** | [**List[V0043Wckey]**](V0043Wckey.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_user import V0043User + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043User from a JSON string +v0043_user_instance = V0043User.from_json(json) +# print the JSON string representation of the object +print(V0043User.to_json()) + +# convert the object into a dict +v0043_user_dict = v0043_user_instance.to_dict() +# create an instance of V0043User from a dict +v0043_user_from_dict = V0043User.from_dict(v0043_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043UserShort.md b/docs/V0043UserShort.md new file mode 100644 index 0000000..6f6e29a --- /dev/null +++ b/docs/V0043UserShort.md @@ -0,0 +1,31 @@ +# V0043UserShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminlevel** | **List[str]** | AdminLevel granted to the user | [optional] +**defaultaccount** | **str** | Default account | [optional] +**defaultwckey** | **str** | Default WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_user_short import V0043UserShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043UserShort from a JSON string +v0043_user_short_instance = V0043UserShort.from_json(json) +# print the JSON string representation of the object +print(V0043UserShort.to_json()) + +# convert the object into a dict +v0043_user_short_dict = v0043_user_short_instance.to_dict() +# create an instance of V0043UserShort from a dict +v0043_user_short_from_dict = V0043UserShort.from_dict(v0043_user_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043UsersAddCond.md b/docs/V0043UsersAddCond.md new file mode 100644 index 0000000..410e594 --- /dev/null +++ b/docs/V0043UsersAddCond.md @@ -0,0 +1,34 @@ +# V0043UsersAddCond + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | [optional] +**association** | [**V0043AssocRecSet**](V0043AssocRecSet.md) | | [optional] +**clusters** | **List[str]** | | [optional] +**partitions** | **List[str]** | | [optional] +**users** | **List[str]** | | +**wckeys** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_users_add_cond import V0043UsersAddCond + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043UsersAddCond from a JSON string +v0043_users_add_cond_instance = V0043UsersAddCond.from_json(json) +# print the JSON string representation of the object +print(V0043UsersAddCond.to_json()) + +# convert the object into a dict +v0043_users_add_cond_dict = v0043_users_add_cond_instance.to_dict() +# create an instance of V0043UsersAddCond from a dict +v0043_users_add_cond_from_dict = V0043UsersAddCond.from_dict(v0043_users_add_cond_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043Wckey.md b/docs/V0043Wckey.md new file mode 100644 index 0000000..672ae3a --- /dev/null +++ b/docs/V0043Wckey.md @@ -0,0 +1,34 @@ +# V0043Wckey + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0043Accounting]**](V0043Accounting.md) | | [optional] +**cluster** | **str** | Cluster name | +**id** | **int** | Unique ID for this user-cluster-wckey combination | [optional] +**name** | **str** | WCKey name | +**user** | **str** | User name | +**flags** | **List[str]** | Flags associated with this WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0043_wckey import V0043Wckey + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043Wckey from a JSON string +v0043_wckey_instance = V0043Wckey.from_json(json) +# print the JSON string representation of the object +print(V0043Wckey.to_json()) + +# convert the object into a dict +v0043_wckey_dict = v0043_wckey_instance.to_dict() +# create an instance of V0043Wckey from a dict +v0043_wckey_from_dict = V0043Wckey.from_dict(v0043_wckey_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0043WckeyTagStruct.md b/docs/V0043WckeyTagStruct.md new file mode 100644 index 0000000..64140ad --- /dev/null +++ b/docs/V0043WckeyTagStruct.md @@ -0,0 +1,30 @@ +# V0043WckeyTagStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckey** | **str** | WCKey name | +**flags** | **List[str]** | Active flags | + +## Example + +```python +from slurmrest_python.models.v0043_wckey_tag_struct import V0043WckeyTagStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0043WckeyTagStruct from a JSON string +v0043_wckey_tag_struct_instance = V0043WckeyTagStruct.from_json(json) +# print the JSON string representation of the object +print(V0043WckeyTagStruct.to_json()) + +# convert the object into a dict +v0043_wckey_tag_struct_dict = v0043_wckey_tag_struct_instance.to_dict() +# create an instance of V0043WckeyTagStruct from a dict +v0043_wckey_tag_struct_from_dict = V0043WckeyTagStruct.from_dict(v0043_wckey_tag_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Account.md b/docs/V0044Account.md new file mode 100644 index 0000000..7261306 --- /dev/null +++ b/docs/V0044Account.md @@ -0,0 +1,34 @@ +# V0044Account + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0044AssocShort]**](V0044AssocShort.md) | | [optional] +**coordinators** | [**List[V0044Coord]**](V0044Coord.md) | | [optional] +**description** | **str** | Arbitrary string describing the account | +**name** | **str** | Account name | +**organization** | **str** | Organization to which the account belongs | +**flags** | **List[str]** | Flags associated with this account | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_account import V0044Account + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Account from a JSON string +v0044_account_instance = V0044Account.from_json(json) +# print the JSON string representation of the object +print(V0044Account.to_json()) + +# convert the object into a dict +v0044_account_dict = v0044_account_instance.to_dict() +# create an instance of V0044Account from a dict +v0044_account_from_dict = V0044Account.from_dict(v0044_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AccountShort.md b/docs/V0044AccountShort.md new file mode 100644 index 0000000..38183f7 --- /dev/null +++ b/docs/V0044AccountShort.md @@ -0,0 +1,30 @@ +# V0044AccountShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary string describing the account | [optional] +**organization** | **str** | Organization to which the account belongs | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_account_short import V0044AccountShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AccountShort from a JSON string +v0044_account_short_instance = V0044AccountShort.from_json(json) +# print the JSON string representation of the object +print(V0044AccountShort.to_json()) + +# convert the object into a dict +v0044_account_short_dict = v0044_account_short_instance.to_dict() +# create an instance of V0044AccountShort from a dict +v0044_account_short_from_dict = V0044AccountShort.from_dict(v0044_account_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Accounting.md b/docs/V0044Accounting.md new file mode 100644 index 0000000..a35d9c0 --- /dev/null +++ b/docs/V0044Accounting.md @@ -0,0 +1,33 @@ +# V0044Accounting + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**V0044AccountingAllocated**](V0044AccountingAllocated.md) | | [optional] +**id** | **int** | Association ID or Workload characterization key ID | [optional] +**id_alt** | **int** | Alternate ID (not currently used) | [optional] +**start** | **int** | When the record was started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**tres** | [**V0044Tres**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_accounting import V0044Accounting + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Accounting from a JSON string +v0044_accounting_instance = V0044Accounting.from_json(json) +# print the JSON string representation of the object +print(V0044Accounting.to_json()) + +# convert the object into a dict +v0044_accounting_dict = v0044_accounting_instance.to_dict() +# create an instance of V0044Accounting from a dict +v0044_accounting_from_dict = V0044Accounting.from_dict(v0044_accounting_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AccountingAllocated.md b/docs/V0044AccountingAllocated.md new file mode 100644 index 0000000..eac2696 --- /dev/null +++ b/docs/V0044AccountingAllocated.md @@ -0,0 +1,29 @@ +# V0044AccountingAllocated + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seconds** | **int** | Number of seconds allocated | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_accounting_allocated import V0044AccountingAllocated + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AccountingAllocated from a JSON string +v0044_accounting_allocated_instance = V0044AccountingAllocated.from_json(json) +# print the JSON string representation of the object +print(V0044AccountingAllocated.to_json()) + +# convert the object into a dict +v0044_accounting_allocated_dict = v0044_accounting_allocated_instance.to_dict() +# create an instance of V0044AccountingAllocated from a dict +v0044_accounting_allocated_from_dict = V0044AccountingAllocated.from_dict(v0044_accounting_allocated_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AccountsAddCond.md b/docs/V0044AccountsAddCond.md new file mode 100644 index 0000000..70f8b7b --- /dev/null +++ b/docs/V0044AccountsAddCond.md @@ -0,0 +1,31 @@ +# V0044AccountsAddCond + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | +**association** | [**V0044AssocRecSet**](V0044AssocRecSet.md) | | [optional] +**clusters** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_accounts_add_cond import V0044AccountsAddCond + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AccountsAddCond from a JSON string +v0044_accounts_add_cond_instance = V0044AccountsAddCond.from_json(json) +# print the JSON string representation of the object +print(V0044AccountsAddCond.to_json()) + +# convert the object into a dict +v0044_accounts_add_cond_dict = v0044_accounts_add_cond_instance.to_dict() +# create an instance of V0044AccountsAddCond from a dict +v0044_accounts_add_cond_from_dict = V0044AccountsAddCond.from_dict(v0044_accounts_add_cond_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AcctGatherEnergy.md b/docs/V0044AcctGatherEnergy.md new file mode 100644 index 0000000..ab4a74f --- /dev/null +++ b/docs/V0044AcctGatherEnergy.md @@ -0,0 +1,34 @@ +# V0044AcctGatherEnergy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average_watts** | **int** | Average power consumption, in watts | [optional] +**base_consumed_energy** | **int** | The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules | [optional] +**consumed_energy** | **int** | The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules | [optional] +**current_watts** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**previous_consumed_energy** | **int** | Previous value of consumed_energy | [optional] +**last_collected** | **int** | Time when energy data was last retrieved (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_acct_gather_energy import V0044AcctGatherEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AcctGatherEnergy from a JSON string +v0044_acct_gather_energy_instance = V0044AcctGatherEnergy.from_json(json) +# print the JSON string representation of the object +print(V0044AcctGatherEnergy.to_json()) + +# convert the object into a dict +v0044_acct_gather_energy_dict = v0044_acct_gather_energy_instance.to_dict() +# create an instance of V0044AcctGatherEnergy from a dict +v0044_acct_gather_energy_from_dict = V0044AcctGatherEnergy.from_dict(v0044_acct_gather_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Assoc.md b/docs/V0044Assoc.md new file mode 100644 index 0000000..8089d42 --- /dev/null +++ b/docs/V0044Assoc.md @@ -0,0 +1,45 @@ +# V0044Assoc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0044Accounting]**](V0044Accounting.md) | | [optional] +**account** | **str** | Account name | [optional] +**cluster** | **str** | Cluster name | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**default** | [**V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault**](V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.md) | | [optional] +**flags** | **List[str]** | Flags on the association | [optional] +**max** | [**V0044AssocMax**](V0044AssocMax.md) | | [optional] +**id** | **int** | Unique ID (Association ID) | [optional] +**is_default** | **bool** | Is default association for user | [optional] +**lineage** | **str** | Complete path up the hierarchy to the root association | [optional] +**min** | [**V0044AssocMin**](V0044AssocMin.md) | | [optional] +**parent_account** | **str** | Name of parent account | [optional] +**partition** | **str** | Partition name | [optional] +**priority** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**qos** | **List[str]** | List of QOS names | [optional] +**shares_raw** | **int** | Allocated shares used for fairshare calculation | [optional] +**user** | **str** | User name | + +## Example + +```python +from slurmrest_python.models.v0044_assoc import V0044Assoc + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Assoc from a JSON string +v0044_assoc_instance = V0044Assoc.from_json(json) +# print the JSON string representation of the object +print(V0044Assoc.to_json()) + +# convert the object into a dict +v0044_assoc_dict = v0044_assoc_instance.to_dict() +# create an instance of V0044Assoc from a dict +v0044_assoc_from_dict = V0044Assoc.from_dict(v0044_assoc_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMax.md b/docs/V0044AssocMax.md new file mode 100644 index 0000000..60a6c5e --- /dev/null +++ b/docs/V0044AssocMax.md @@ -0,0 +1,31 @@ +# V0044AssocMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**V0044AssocMaxJobs**](V0044AssocMaxJobs.md) | | [optional] +**tres** | [**V0044AssocMaxTres**](V0044AssocMaxTres.md) | | [optional] +**per** | [**V0044AssocMaxPer**](V0044AssocMaxPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max import V0044AssocMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMax from a JSON string +v0044_assoc_max_instance = V0044AssocMax.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMax.to_json()) + +# convert the object into a dict +v0044_assoc_max_dict = v0044_assoc_max_instance.to_dict() +# create an instance of V0044AssocMax from a dict +v0044_assoc_max_from_dict = V0044AssocMax.from_dict(v0044_assoc_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxJobs.md b/docs/V0044AssocMaxJobs.md new file mode 100644 index 0000000..02213a0 --- /dev/null +++ b/docs/V0044AssocMaxJobs.md @@ -0,0 +1,32 @@ +# V0044AssocMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0044AssocMaxJobsPer**](V0044AssocMaxJobsPer.md) | | [optional] +**active** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**accruing** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**total** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_jobs import V0044AssocMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxJobs from a JSON string +v0044_assoc_max_jobs_instance = V0044AssocMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxJobs.to_json()) + +# convert the object into a dict +v0044_assoc_max_jobs_dict = v0044_assoc_max_jobs_instance.to_dict() +# create an instance of V0044AssocMaxJobs from a dict +v0044_assoc_max_jobs_from_dict = V0044AssocMaxJobs.from_dict(v0044_assoc_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxJobsPer.md b/docs/V0044AssocMaxJobsPer.md new file mode 100644 index 0000000..feb4e5a --- /dev/null +++ b/docs/V0044AssocMaxJobsPer.md @@ -0,0 +1,32 @@ +# V0044AssocMaxJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**accruing** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**submitted** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**wall_clock** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_jobs_per import V0044AssocMaxJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxJobsPer from a JSON string +v0044_assoc_max_jobs_per_instance = V0044AssocMaxJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxJobsPer.to_json()) + +# convert the object into a dict +v0044_assoc_max_jobs_per_dict = v0044_assoc_max_jobs_per_instance.to_dict() +# create an instance of V0044AssocMaxJobsPer from a dict +v0044_assoc_max_jobs_per_from_dict = V0044AssocMaxJobsPer.from_dict(v0044_assoc_max_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxPer.md b/docs/V0044AssocMaxPer.md new file mode 100644 index 0000000..f2f8288 --- /dev/null +++ b/docs/V0044AssocMaxPer.md @@ -0,0 +1,29 @@ +# V0044AssocMaxPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0044AssocMaxPerAccount**](V0044AssocMaxPerAccount.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_per import V0044AssocMaxPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxPer from a JSON string +v0044_assoc_max_per_instance = V0044AssocMaxPer.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxPer.to_json()) + +# convert the object into a dict +v0044_assoc_max_per_dict = v0044_assoc_max_per_instance.to_dict() +# create an instance of V0044AssocMaxPer from a dict +v0044_assoc_max_per_from_dict = V0044AssocMaxPer.from_dict(v0044_assoc_max_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxPerAccount.md b/docs/V0044AssocMaxPerAccount.md new file mode 100644 index 0000000..7467385 --- /dev/null +++ b/docs/V0044AssocMaxPerAccount.md @@ -0,0 +1,29 @@ +# V0044AssocMaxPerAccount + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wall_clock** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_per_account import V0044AssocMaxPerAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxPerAccount from a JSON string +v0044_assoc_max_per_account_instance = V0044AssocMaxPerAccount.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxPerAccount.to_json()) + +# convert the object into a dict +v0044_assoc_max_per_account_dict = v0044_assoc_max_per_account_instance.to_dict() +# create an instance of V0044AssocMaxPerAccount from a dict +v0044_assoc_max_per_account_from_dict = V0044AssocMaxPerAccount.from_dict(v0044_assoc_max_per_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxTres.md b/docs/V0044AssocMaxTres.md new file mode 100644 index 0000000..0de494e --- /dev/null +++ b/docs/V0044AssocMaxTres.md @@ -0,0 +1,32 @@ +# V0044AssocMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**group** | [**V0044AssocMaxTresGroup**](V0044AssocMaxTresGroup.md) | | [optional] +**minutes** | [**V0044AssocMaxTresMinutes**](V0044AssocMaxTresMinutes.md) | | [optional] +**per** | [**V0044AssocMaxTresPer**](V0044AssocMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_tres import V0044AssocMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxTres from a JSON string +v0044_assoc_max_tres_instance = V0044AssocMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxTres.to_json()) + +# convert the object into a dict +v0044_assoc_max_tres_dict = v0044_assoc_max_tres_instance.to_dict() +# create an instance of V0044AssocMaxTres from a dict +v0044_assoc_max_tres_from_dict = V0044AssocMaxTres.from_dict(v0044_assoc_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxTresGroup.md b/docs/V0044AssocMaxTresGroup.md new file mode 100644 index 0000000..1246f3f --- /dev/null +++ b/docs/V0044AssocMaxTresGroup.md @@ -0,0 +1,30 @@ +# V0044AssocMaxTresGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minutes** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**active** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_tres_group import V0044AssocMaxTresGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxTresGroup from a JSON string +v0044_assoc_max_tres_group_instance = V0044AssocMaxTresGroup.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxTresGroup.to_json()) + +# convert the object into a dict +v0044_assoc_max_tres_group_dict = v0044_assoc_max_tres_group_instance.to_dict() +# create an instance of V0044AssocMaxTresGroup from a dict +v0044_assoc_max_tres_group_from_dict = V0044AssocMaxTresGroup.from_dict(v0044_assoc_max_tres_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxTresMinutes.md b/docs/V0044AssocMaxTresMinutes.md new file mode 100644 index 0000000..e7ac541 --- /dev/null +++ b/docs/V0044AssocMaxTresMinutes.md @@ -0,0 +1,30 @@ +# V0044AssocMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**per** | [**V0044QosLimitsMinTresPer**](V0044QosLimitsMinTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_tres_minutes import V0044AssocMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxTresMinutes from a JSON string +v0044_assoc_max_tres_minutes_instance = V0044AssocMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxTresMinutes.to_json()) + +# convert the object into a dict +v0044_assoc_max_tres_minutes_dict = v0044_assoc_max_tres_minutes_instance.to_dict() +# create an instance of V0044AssocMaxTresMinutes from a dict +v0044_assoc_max_tres_minutes_from_dict = V0044AssocMaxTresMinutes.from_dict(v0044_assoc_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMaxTresPer.md b/docs/V0044AssocMaxTresPer.md new file mode 100644 index 0000000..683a2cf --- /dev/null +++ b/docs/V0044AssocMaxTresPer.md @@ -0,0 +1,30 @@ +# V0044AssocMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**node** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_max_tres_per import V0044AssocMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMaxTresPer from a JSON string +v0044_assoc_max_tres_per_instance = V0044AssocMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMaxTresPer.to_json()) + +# convert the object into a dict +v0044_assoc_max_tres_per_dict = v0044_assoc_max_tres_per_instance.to_dict() +# create an instance of V0044AssocMaxTresPer from a dict +v0044_assoc_max_tres_per_from_dict = V0044AssocMaxTresPer.from_dict(v0044_assoc_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocMin.md b/docs/V0044AssocMin.md new file mode 100644 index 0000000..0d38874 --- /dev/null +++ b/docs/V0044AssocMin.md @@ -0,0 +1,29 @@ +# V0044AssocMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_min import V0044AssocMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocMin from a JSON string +v0044_assoc_min_instance = V0044AssocMin.from_json(json) +# print the JSON string representation of the object +print(V0044AssocMin.to_json()) + +# convert the object into a dict +v0044_assoc_min_dict = v0044_assoc_min_instance.to_dict() +# create an instance of V0044AssocMin from a dict +v0044_assoc_min_from_dict = V0044AssocMin.from_dict(v0044_assoc_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocRecSet.md b/docs/V0044AssocRecSet.md new file mode 100644 index 0000000..06de953 --- /dev/null +++ b/docs/V0044AssocRecSet.md @@ -0,0 +1,50 @@ +# V0044AssocRecSet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**defaultqos** | **str** | Default QOS | [optional] +**grpjobs** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**grpjobsaccrue** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**grpsubmitjobs** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**grptres** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**grptresmins** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**grptresrunmins** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**grpwall** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**maxjobs** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**maxjobsaccrue** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**maxsubmitjobs** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**maxtresminsperjob** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**maxtresrunmins** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**maxtresperjob** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**maxtrespernode** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**maxwalldurationperjob** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**minpriothresh** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**parent** | **str** | Name of parent account | [optional] +**priority** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**qoslevel** | **List[str]** | List of QOS names | [optional] +**fairshare** | **int** | Allocated shares used for fairshare calculation | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_rec_set import V0044AssocRecSet + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocRecSet from a JSON string +v0044_assoc_rec_set_instance = V0044AssocRecSet.from_json(json) +# print the JSON string representation of the object +print(V0044AssocRecSet.to_json()) + +# convert the object into a dict +v0044_assoc_rec_set_dict = v0044_assoc_rec_set_instance.to_dict() +# create an instance of V0044AssocRecSet from a dict +v0044_assoc_rec_set_from_dict = V0044AssocRecSet.from_dict(v0044_assoc_rec_set_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocSharesObjWrap.md b/docs/V0044AssocSharesObjWrap.md new file mode 100644 index 0000000..a0f2e88 --- /dev/null +++ b/docs/V0044AssocSharesObjWrap.md @@ -0,0 +1,41 @@ +# V0044AssocSharesObjWrap + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Association ID | [optional] +**cluster** | **str** | Cluster name | [optional] +**name** | **str** | Share name | [optional] +**parent** | **str** | Parent name | [optional] +**partition** | **str** | Partition name | [optional] +**shares_normalized** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] +**shares** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**tres** | [**V0044AssocSharesObjWrapTres**](V0044AssocSharesObjWrapTres.md) | | [optional] +**effective_usage** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] +**usage_normalized** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] +**usage** | **int** | Measure of tresbillableunits usage | [optional] +**fairshare** | [**V0044AssocSharesObjWrapFairshare**](V0044AssocSharesObjWrapFairshare.md) | | [optional] +**type** | **List[str]** | User or account association | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_shares_obj_wrap import V0044AssocSharesObjWrap + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocSharesObjWrap from a JSON string +v0044_assoc_shares_obj_wrap_instance = V0044AssocSharesObjWrap.from_json(json) +# print the JSON string representation of the object +print(V0044AssocSharesObjWrap.to_json()) + +# convert the object into a dict +v0044_assoc_shares_obj_wrap_dict = v0044_assoc_shares_obj_wrap_instance.to_dict() +# create an instance of V0044AssocSharesObjWrap from a dict +v0044_assoc_shares_obj_wrap_from_dict = V0044AssocSharesObjWrap.from_dict(v0044_assoc_shares_obj_wrap_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocSharesObjWrapFairshare.md b/docs/V0044AssocSharesObjWrapFairshare.md new file mode 100644 index 0000000..5303743 --- /dev/null +++ b/docs/V0044AssocSharesObjWrapFairshare.md @@ -0,0 +1,30 @@ +# V0044AssocSharesObjWrapFairshare + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factor** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] +**level** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_fairshare import V0044AssocSharesObjWrapFairshare + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocSharesObjWrapFairshare from a JSON string +v0044_assoc_shares_obj_wrap_fairshare_instance = V0044AssocSharesObjWrapFairshare.from_json(json) +# print the JSON string representation of the object +print(V0044AssocSharesObjWrapFairshare.to_json()) + +# convert the object into a dict +v0044_assoc_shares_obj_wrap_fairshare_dict = v0044_assoc_shares_obj_wrap_fairshare_instance.to_dict() +# create an instance of V0044AssocSharesObjWrapFairshare from a dict +v0044_assoc_shares_obj_wrap_fairshare_from_dict = V0044AssocSharesObjWrapFairshare.from_dict(v0044_assoc_shares_obj_wrap_fairshare_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocSharesObjWrapTres.md b/docs/V0044AssocSharesObjWrapTres.md new file mode 100644 index 0000000..cb709df --- /dev/null +++ b/docs/V0044AssocSharesObjWrapTres.md @@ -0,0 +1,31 @@ +# V0044AssocSharesObjWrapTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**run_seconds** | [**List[V0044SharesUint64Tres]**](V0044SharesUint64Tres.md) | | [optional] +**group_minutes** | [**List[V0044SharesUint64Tres]**](V0044SharesUint64Tres.md) | | [optional] +**usage** | [**List[V0044SharesFloat128Tres]**](V0044SharesFloat128Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_tres import V0044AssocSharesObjWrapTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocSharesObjWrapTres from a JSON string +v0044_assoc_shares_obj_wrap_tres_instance = V0044AssocSharesObjWrapTres.from_json(json) +# print the JSON string representation of the object +print(V0044AssocSharesObjWrapTres.to_json()) + +# convert the object into a dict +v0044_assoc_shares_obj_wrap_tres_dict = v0044_assoc_shares_obj_wrap_tres_instance.to_dict() +# create an instance of V0044AssocSharesObjWrapTres from a dict +v0044_assoc_shares_obj_wrap_tres_from_dict = V0044AssocSharesObjWrapTres.from_dict(v0044_assoc_shares_obj_wrap_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044AssocShort.md b/docs/V0044AssocShort.md new file mode 100644 index 0000000..8fe5d55 --- /dev/null +++ b/docs/V0044AssocShort.md @@ -0,0 +1,33 @@ +# V0044AssocShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account name | [optional] +**cluster** | **str** | Cluster name | [optional] +**partition** | **str** | Partition name | [optional] +**user** | **str** | User name | +**id** | **int** | Numeric association ID | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044AssocShort from a JSON string +v0044_assoc_short_instance = V0044AssocShort.from_json(json) +# print the JSON string representation of the object +print(V0044AssocShort.to_json()) + +# convert the object into a dict +v0044_assoc_short_dict = v0044_assoc_short_instance.to_dict() +# create an instance of V0044AssocShort from a dict +v0044_assoc_short_from_dict = V0044AssocShort.from_dict(v0044_assoc_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044BfExitFields.md b/docs/V0044BfExitFields.md new file mode 100644 index 0000000..dc4f487 --- /dev/null +++ b/docs/V0044BfExitFields.md @@ -0,0 +1,34 @@ +# V0044BfExitFields + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**bf_max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**bf_max_job_test** | **int** | Reached number of jobs allowed to be tested | [optional] +**bf_max_time** | **int** | Reached maximum allowed scheduler time | [optional] +**bf_node_space_size** | **int** | Reached table size limit | [optional] +**state_changed** | **int** | System state changed | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_bf_exit_fields import V0044BfExitFields + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044BfExitFields from a JSON string +v0044_bf_exit_fields_instance = V0044BfExitFields.from_json(json) +# print the JSON string representation of the object +print(V0044BfExitFields.to_json()) + +# convert the object into a dict +v0044_bf_exit_fields_dict = v0044_bf_exit_fields_instance.to_dict() +# create an instance of V0044BfExitFields from a dict +v0044_bf_exit_fields_from_dict = V0044BfExitFields.from_dict(v0044_bf_exit_fields_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ClusterRec.md b/docs/V0044ClusterRec.md new file mode 100644 index 0000000..03ec8f2 --- /dev/null +++ b/docs/V0044ClusterRec.md @@ -0,0 +1,36 @@ +# V0044ClusterRec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller** | [**V0041OpenapiSlurmdbdConfigRespClustersInnerController**](V0041OpenapiSlurmdbdConfigRespClustersInnerController.md) | | [optional] +**flags** | **List[str]** | Flags | [optional] +**name** | **str** | ClusterName | [optional] +**nodes** | **str** | Node names | [optional] +**select_plugin** | **str** | | [optional] +**associations** | [**V0044ClusterRecAssociations**](V0044ClusterRecAssociations.md) | | [optional] +**rpc_version** | **int** | RPC version used in the cluster | [optional] +**tres** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_cluster_rec import V0044ClusterRec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ClusterRec from a JSON string +v0044_cluster_rec_instance = V0044ClusterRec.from_json(json) +# print the JSON string representation of the object +print(V0044ClusterRec.to_json()) + +# convert the object into a dict +v0044_cluster_rec_dict = v0044_cluster_rec_instance.to_dict() +# create an instance of V0044ClusterRec from a dict +v0044_cluster_rec_from_dict = V0044ClusterRec.from_dict(v0044_cluster_rec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ClusterRecAssociations.md b/docs/V0044ClusterRecAssociations.md new file mode 100644 index 0000000..79e0f2e --- /dev/null +++ b/docs/V0044ClusterRecAssociations.md @@ -0,0 +1,29 @@ +# V0044ClusterRecAssociations + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**root** | [**V0044AssocShort**](V0044AssocShort.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_cluster_rec_associations import V0044ClusterRecAssociations + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ClusterRecAssociations from a JSON string +v0044_cluster_rec_associations_instance = V0044ClusterRecAssociations.from_json(json) +# print the JSON string representation of the object +print(V0044ClusterRecAssociations.to_json()) + +# convert the object into a dict +v0044_cluster_rec_associations_dict = v0044_cluster_rec_associations_instance.to_dict() +# create an instance of V0044ClusterRecAssociations from a dict +v0044_cluster_rec_associations_from_dict = V0044ClusterRecAssociations.from_dict(v0044_cluster_rec_associations_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ControllerPing.md b/docs/V0044ControllerPing.md new file mode 100644 index 0000000..d7f0c73 --- /dev/null +++ b/docs/V0044ControllerPing.md @@ -0,0 +1,34 @@ +# V0044ControllerPing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Target for ping | [optional] +**pinged** | **str** | Ping result | [optional] +**responding** | **bool** | If ping RPC responded with pong from controller | +**latency** | **int** | Number of microseconds it took to successfully ping or timeout | [optional] +**mode** | **str** | The operating mode of the responding slurmctld | [optional] +**primary** | **bool** | Is responding slurmctld the primary controller (Is responding slurmctld the primary controller) | + +## Example + +```python +from slurmrest_python.models.v0044_controller_ping import V0044ControllerPing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ControllerPing from a JSON string +v0044_controller_ping_instance = V0044ControllerPing.from_json(json) +# print the JSON string representation of the object +print(V0044ControllerPing.to_json()) + +# convert the object into a dict +v0044_controller_ping_dict = v0044_controller_ping_instance.to_dict() +# create an instance of V0044ControllerPing from a dict +v0044_controller_ping_from_dict = V0044ControllerPing.from_dict(v0044_controller_ping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Coord.md b/docs/V0044Coord.md new file mode 100644 index 0000000..f0fc517 --- /dev/null +++ b/docs/V0044Coord.md @@ -0,0 +1,30 @@ +# V0044Coord + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | User name | +**direct** | **bool** | Indicates whether the coordinator was directly assigned to this account | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_coord import V0044Coord + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Coord from a JSON string +v0044_coord_instance = V0044Coord.from_json(json) +# print the JSON string representation of the object +print(V0044Coord.to_json()) + +# convert the object into a dict +v0044_coord_dict = v0044_coord_instance.to_dict() +# create an instance of V0044Coord from a dict +v0044_coord_from_dict = V0044Coord.from_dict(v0044_coord_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044CronEntry.md b/docs/V0044CronEntry.md new file mode 100644 index 0000000..7bf23fa --- /dev/null +++ b/docs/V0044CronEntry.md @@ -0,0 +1,37 @@ +# V0044CronEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flags** | **List[str]** | Flags | [optional] +**minute** | **str** | Ranged string specifying eligible minute values (e.g. 0-10,50) | [optional] +**hour** | **str** | Ranged string specifying eligible hour values (e.g. 0-5,23) | [optional] +**day_of_month** | **str** | Ranged string specifying eligible day of month values (e.g. 0-10,29) | [optional] +**month** | **str** | Ranged string specifying eligible month values (e.g. 0-5,12) | [optional] +**day_of_week** | **str** | Ranged string specifying eligible day of week values (e.g.0-3,7) | [optional] +**specification** | **str** | Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week | [optional] +**command** | **str** | Command to run | [optional] +**line** | [**V0041JobDescMsgCrontabLine**](V0041JobDescMsgCrontabLine.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_cron_entry import V0044CronEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044CronEntry from a JSON string +v0044_cron_entry_instance = V0044CronEntry.from_json(json) +# print the JSON string representation of the object +print(V0044CronEntry.to_json()) + +# convert the object into a dict +v0044_cron_entry_dict = v0044_cron_entry_instance.to_dict() +# create an instance of V0044CronEntry from a dict +v0044_cron_entry_from_dict = V0044CronEntry.from_dict(v0044_cron_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Float64NoValStruct.md b/docs/V0044Float64NoValStruct.md new file mode 100644 index 0000000..6c2177b --- /dev/null +++ b/docs/V0044Float64NoValStruct.md @@ -0,0 +1,31 @@ +# V0044Float64NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **float** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Float64NoValStruct from a JSON string +v0044_float64_no_val_struct_instance = V0044Float64NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0044Float64NoValStruct.to_json()) + +# convert the object into a dict +v0044_float64_no_val_struct_dict = v0044_float64_no_val_struct_instance.to_dict() +# create an instance of V0044Float64NoValStruct from a dict +v0044_float64_no_val_struct_from_dict = V0044Float64NoValStruct.from_dict(v0044_float64_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Instance.md b/docs/V0044Instance.md new file mode 100644 index 0000000..ad8891f --- /dev/null +++ b/docs/V0044Instance.md @@ -0,0 +1,34 @@ +# V0044Instance + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster** | **str** | Cluster name | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**node_name** | **str** | NodeName | [optional] +**time** | [**V0044InstanceTime**](V0044InstanceTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_instance import V0044Instance + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Instance from a JSON string +v0044_instance_instance = V0044Instance.from_json(json) +# print the JSON string representation of the object +print(V0044Instance.to_json()) + +# convert the object into a dict +v0044_instance_dict = v0044_instance_instance.to_dict() +# create an instance of V0044Instance from a dict +v0044_instance_from_dict = V0044Instance.from_dict(v0044_instance_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044InstanceTime.md b/docs/V0044InstanceTime.md new file mode 100644 index 0000000..4a71a6a --- /dev/null +++ b/docs/V0044InstanceTime.md @@ -0,0 +1,30 @@ +# V0044InstanceTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_end** | **int** | When the instance will end (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**time_start** | **int** | When the instance will start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_instance_time import V0044InstanceTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044InstanceTime from a JSON string +v0044_instance_time_instance = V0044InstanceTime.from_json(json) +# print the JSON string representation of the object +print(V0044InstanceTime.to_json()) + +# convert the object into a dict +v0044_instance_time_dict = v0044_instance_time_instance.to_dict() +# create an instance of V0044InstanceTime from a dict +v0044_instance_time_from_dict = V0044InstanceTime.from_dict(v0044_instance_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Job.md b/docs/V0044Job.md new file mode 100644 index 0000000..a91dad9 --- /dev/null +++ b/docs/V0044Job.md @@ -0,0 +1,75 @@ +# V0044Job + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account the job ran under | [optional] +**comment** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerComment**](V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md) | | [optional] +**allocation_nodes** | **int** | List of nodes allocated to the job | [optional] +**array** | [**V0044JobArray**](V0044JobArray.md) | | [optional] +**association** | [**V0044AssocShort**](V0044AssocShort.md) | | [optional] +**block** | **str** | The name of the block to be used (used with Blue Gene systems) | [optional] +**cluster** | **str** | Cluster name | [optional] +**constraints** | **str** | Feature(s) the job requested as a constraint | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**derived_exit_code** | [**V0044ProcessExitCodeVerbose**](V0044ProcessExitCodeVerbose.md) | | [optional] +**time** | [**V0044JobTime**](V0044JobTime.md) | | [optional] +**exit_code** | [**V0044ProcessExitCodeVerbose**](V0044ProcessExitCodeVerbose.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**flags** | **List[str]** | Flags associated with this job | [optional] +**group** | **str** | Group ID of the user that owns the job | [optional] +**het** | [**V0044JobHet**](V0044JobHet.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**name** | **str** | Job name | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mcs** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerMcs**](V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.md) | | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**hold** | **bool** | Hold (true) or release (false) job (Job held) | [optional] +**priority** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**qosreq** | **str** | Requested QOS | [optional] +**required** | [**V0044JobRequired**](V0044JobRequired.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the job | [optional] +**restart_cnt** | **int** | How many times this job has been requeued/restarted | [optional] +**reservation** | [**V0044JobReservation**](V0044JobReservation.md) | | [optional] +**script** | **str** | Job batch script contents; only the first component in a HetJob is populated or honored | [optional] +**segment_size** | **int** | Requested segment size | [optional] +**stdin_expanded** | **str** | Job stdin with expanded fields | [optional] +**stdout_expanded** | **str** | Job stdout with expanded fields | [optional] +**stderr_expanded** | **str** | Job stderr with expanded fields | [optional] +**stdout** | **str** | Path to stdout file | [optional] +**stderr** | **str** | Path to stderr file | [optional] +**stdin** | **str** | Path to stdin file | [optional] +**state** | [**V0044JobState**](V0044JobState.md) | | [optional] +**steps** | [**List[V0044Step]**](V0044Step.md) | | [optional] +**submit_line** | **str** | Command used to submit the job | [optional] +**tres** | [**V0044JobTres**](V0044JobTres.md) | | [optional] +**used_gres** | **str** | Generic resources used by job | [optional] +**user** | **str** | User that owns the job | [optional] +**wckey** | [**V0044WckeyTagStruct**](V0044WckeyTagStruct.md) | | [optional] +**working_directory** | **str** | Path to current working directory | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job import V0044Job + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Job from a JSON string +v0044_job_instance = V0044Job.from_json(json) +# print the JSON string representation of the object +print(V0044Job.to_json()) + +# convert the object into a dict +v0044_job_dict = v0044_job_instance.to_dict() +# create an instance of V0044Job from a dict +v0044_job_from_dict = V0044Job.from_dict(v0044_job_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobAllocReq.md b/docs/V0044JobAllocReq.md new file mode 100644 index 0000000..dc6e1fe --- /dev/null +++ b/docs/V0044JobAllocReq.md @@ -0,0 +1,30 @@ +# V0044JobAllocReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hetjob** | [**List[V0044JobDescMsg]**](V0044JobDescMsg.md) | | [optional] +**job** | [**V0044JobDescMsg**](V0044JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_alloc_req import V0044JobAllocReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobAllocReq from a JSON string +v0044_job_alloc_req_instance = V0044JobAllocReq.from_json(json) +# print the JSON string representation of the object +print(V0044JobAllocReq.to_json()) + +# convert the object into a dict +v0044_job_alloc_req_dict = v0044_job_alloc_req_instance.to_dict() +# create an instance of V0044JobAllocReq from a dict +v0044_job_alloc_req_from_dict = V0044JobAllocReq.from_dict(v0044_job_alloc_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobArray.md b/docs/V0044JobArray.md new file mode 100644 index 0000000..000844e --- /dev/null +++ b/docs/V0044JobArray.md @@ -0,0 +1,32 @@ +# V0044JobArray + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID of job array, or 0 if N/A | [optional] +**limits** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits**](V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.md) | | [optional] +**task_id** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**task** | **str** | String expression of task IDs in this record | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_array import V0044JobArray + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobArray from a JSON string +v0044_job_array_instance = V0044JobArray.from_json(json) +# print the JSON string representation of the object +print(V0044JobArray.to_json()) + +# convert the object into a dict +v0044_job_array_dict = v0044_job_array_instance.to_dict() +# create an instance of V0044JobArray from a dict +v0044_job_array_from_dict = V0044JobArray.from_dict(v0044_job_array_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobArrayResponseMsgEntry.md b/docs/V0044JobArrayResponseMsgEntry.md new file mode 100644 index 0000000..e3eb754 --- /dev/null +++ b/docs/V0044JobArrayResponseMsgEntry.md @@ -0,0 +1,33 @@ +# V0044JobArrayResponseMsgEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Job ID for updated job | [optional] +**step_id** | **str** | Step ID for updated job | [optional] +**error** | **str** | Verbose update status or error | [optional] +**error_code** | **int** | Verbose update status or error | [optional] +**why** | **str** | Update response message | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_array_response_msg_entry import V0044JobArrayResponseMsgEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobArrayResponseMsgEntry from a JSON string +v0044_job_array_response_msg_entry_instance = V0044JobArrayResponseMsgEntry.from_json(json) +# print the JSON string representation of the object +print(V0044JobArrayResponseMsgEntry.to_json()) + +# convert the object into a dict +v0044_job_array_response_msg_entry_dict = v0044_job_array_response_msg_entry_instance.to_dict() +# create an instance of V0044JobArrayResponseMsgEntry from a dict +v0044_job_array_response_msg_entry_from_dict = V0044JobArrayResponseMsgEntry.from_dict(v0044_job_array_response_msg_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobDescMsg.md b/docs/V0044JobDescMsg.md new file mode 100644 index 0000000..3bd568b --- /dev/null +++ b/docs/V0044JobDescMsg.md @@ -0,0 +1,144 @@ +# V0044JobDescMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**account_gather_frequency** | **str** | Job accounting and profiling sampling intervals in seconds | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocation_node_list** | **str** | Local node making the resource allocation | [optional] +**allocation_node_port** | **int** | Port to send allocation confirmation to | [optional] +**argv** | **List[str]** | | [optional] +**array** | **str** | Job array index value specification | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**begin_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**flags** | **List[str]** | Job flags | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**clusters** | **str** | Clusters that a federated job can run on | [optional] +**cluster_constraint** | **str** | Required features that a federated cluster must have to have a sibling job submitted to it | [optional] +**comment** | **str** | Arbitrary comment made by user | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**core_specification** | **int** | Specialized core count | [optional] +**thread_specification** | **int** | Specialized thread count | [optional] +**cpu_binding** | **str** | Method for binding tasks to allocated CPUs | [optional] +**cpu_binding_flags** | **List[str]** | Flags for CPU binding | [optional] +**cpu_frequency** | **str** | Requested CPU frequency range <p1>[-p2][:p3] | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**crontab** | [**V0044CronEntry**](V0044CronEntry.md) | | [optional] +**deadline** | **int** | Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**delay_boot** | **int** | Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**end_time** | **int** | Expected end time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**environment** | **List[str]** | | [optional] +**rlimits** | [**V0044JobDescMsgRlimits**](V0044JobDescMsgRlimits.md) | | [optional] +**excluded_nodes** | **List[str]** | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**constraints** | **str** | Comma-separated list of features that are required | [optional] +**group_id** | **str** | Group ID of the user that owns the job | [optional] +**hetjob_group** | **int** | Unique sequence number applied to this component of the heterogeneous job | [optional] +**immediate** | **bool** | If true, exit if resources are not available within the time period specified | [optional] +**job_id** | **int** | Job ID | [optional] +**kill_on_node_fail** | **bool** | If true, kill job on node failure | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**mail_type** | **List[str]** | Mail event type(s) | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_binding** | **str** | Binding map for map/mask_cpu | [optional] +**memory_binding_type** | **List[str]** | Method for binding tasks to memory | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for job step | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks** | **int** | Number of tasks | [optional] +**oom_kill_step** | **int** | Kill whole step in case of OOM in one of the tasks | [optional] +**open_mode** | **List[str]** | Open mode used for stdout and stderr files | [optional] +**reserve_ports** | **int** | Port to send various notification msg to | [optional] +**overcommit** | **bool** | Overcommit resources | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**distribution_plane_size** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**power_flags** | **List[object]** | | [optional] +**prefer** | **str** | Comma-separated list of features that are preferred but not required | [optional] +**hold** | **bool** | Hold (true) or release (false) job (Job held) | [optional] +**priority** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**profile** | **List[str]** | Profile used by the acct_gather_profile plugin | [optional] +**qos** | **str** | Quality of Service assigned to the job | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **List[str]** | | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**reservation** | **str** | Name of reservation to use | [optional] +**script** | **str** | Job batch script contents; only the first component in a HetJob is populated or honored | [optional] +**shared** | **List[str]** | How the job can share resources with other jobs, if at all | [optional] +**site_factor** | **int** | Site-specific priority factor | [optional] +**spank_environment** | **List[str]** | | [optional] +**step_id** | [**V0044SlurmStepId**](V0044SlurmStepId.md) | | [optional] +**distribution** | **str** | Layout | [optional] +**time_limit** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**time_minimum** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma-separated list of TRES=# values to be allocated for every job | [optional] +**tres_per_node** | **str** | Comma-separated list of TRES=# values to be allocated for every node | [optional] +**tres_per_socket** | **str** | Comma-separated list of TRES=# values to be allocated for every socket | [optional] +**tres_per_task** | **str** | Comma-separated list of TRES=# values to be allocated for every task | [optional] +**user_id** | **str** | User ID that owns the job | [optional] +**wait_all_nodes** | **bool** | If true, wait to start until after all nodes have booted | [optional] +**kill_warning_flags** | **List[str]** | Flags related to job signals | [optional] +**kill_warning_signal** | **str** | Signal to send when approaching end time (e.g. \"10\" or \"USR1\") | [optional] +**kill_warning_delay** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] +**cpus_per_task** | **int** | Number of CPUs required by each task | [optional] +**minimum_cpus** | **int** | Minimum number of CPUs required | [optional] +**maximum_cpus** | **int** | Maximum number of CPUs required | [optional] +**nodes** | **str** | Node count range specification (e.g. 1-15:4) | [optional] +**minimum_nodes** | **int** | Minimum node count | [optional] +**maximum_nodes** | **int** | Maximum node count | [optional] +**minimum_boards_per_node** | **int** | Boards per node required | [optional] +**minimum_sockets_per_board** | **int** | Sockets per board required | [optional] +**sockets_per_node** | **int** | Sockets per node required | [optional] +**threads_per_core** | **int** | Threads per core required | [optional] +**tasks_per_node** | **int** | Number of tasks to invoke on each node | [optional] +**tasks_per_socket** | **int** | Number of tasks to invoke on each socket | [optional] +**tasks_per_core** | **int** | Number of tasks to invoke on each core | [optional] +**tasks_per_board** | **int** | Number of tasks to invoke on each board | [optional] +**ntasks_per_tres** | **int** | Number of tasks that can access each GPU | [optional] +**minimum_cpus_per_node** | **int** | Minimum number of CPUs per node | [optional] +**memory_per_cpu** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**temporary_disk_per_node** | **int** | Minimum tmp disk space required per node | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**required_switches** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**segment_size** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**wait_for_switch** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**x11** | **List[str]** | X11 forwarding options | [optional] +**x11_magic_cookie** | **str** | Magic cookie for X11 forwarding | [optional] +**x11_target_host** | **str** | Hostname or UNIX socket if x11_target_port=0 | [optional] +**x11_target_port** | **int** | TCP port | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobDescMsg from a JSON string +v0044_job_desc_msg_instance = V0044JobDescMsg.from_json(json) +# print the JSON string representation of the object +print(V0044JobDescMsg.to_json()) + +# convert the object into a dict +v0044_job_desc_msg_dict = v0044_job_desc_msg_instance.to_dict() +# create an instance of V0044JobDescMsg from a dict +v0044_job_desc_msg_from_dict = V0044JobDescMsg.from_dict(v0044_job_desc_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobDescMsgRlimits.md b/docs/V0044JobDescMsgRlimits.md new file mode 100644 index 0000000..e261468 --- /dev/null +++ b/docs/V0044JobDescMsgRlimits.md @@ -0,0 +1,38 @@ +# V0044JobDescMsgRlimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**fsize** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**data** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**stack** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**core** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**rss** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**nproc** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**nofile** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**memlock** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**var_as** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_desc_msg_rlimits import V0044JobDescMsgRlimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobDescMsgRlimits from a JSON string +v0044_job_desc_msg_rlimits_instance = V0044JobDescMsgRlimits.from_json(json) +# print the JSON string representation of the object +print(V0044JobDescMsgRlimits.to_json()) + +# convert the object into a dict +v0044_job_desc_msg_rlimits_dict = v0044_job_desc_msg_rlimits_instance.to_dict() +# create an instance of V0044JobDescMsgRlimits from a dict +v0044_job_desc_msg_rlimits_from_dict = V0044JobDescMsgRlimits.from_dict(v0044_job_desc_msg_rlimits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobHet.md b/docs/V0044JobHet.md new file mode 100644 index 0000000..a8169fe --- /dev/null +++ b/docs/V0044JobHet.md @@ -0,0 +1,30 @@ +# V0044JobHet + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Heterogeneous job ID, if applicable | [optional] +**job_offset** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_het import V0044JobHet + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobHet from a JSON string +v0044_job_het_instance = V0044JobHet.from_json(json) +# print the JSON string representation of the object +print(V0044JobHet.to_json()) + +# convert the object into a dict +v0044_job_het_dict = v0044_job_het_instance.to_dict() +# create an instance of V0044JobHet from a dict +v0044_job_het_from_dict = V0044JobHet.from_dict(v0044_job_het_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobInfo.md b/docs/V0044JobInfo.md new file mode 100644 index 0000000..aa3b251 --- /dev/null +++ b/docs/V0044JobInfo.md @@ -0,0 +1,163 @@ +# V0044JobInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Account associated with the job | [optional] +**accrue_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**admin_comment** | **str** | Arbitrary comment made by administrator | [optional] +**allocating_node** | **str** | Local node making the resource allocation | [optional] +**array_job_id** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**array_task_id** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**array_max_tasks** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**array_task_string** | **str** | String expression of task IDs in this record | [optional] +**association_id** | **int** | Unique identifier for the association | [optional] +**batch_features** | **str** | Features required for batch script's node | [optional] +**batch_flag** | **bool** | True if batch job | [optional] +**batch_host** | **str** | Name of host running batch script | [optional] +**flags** | **List[str]** | Job flags | [optional] +**burst_buffer** | **str** | Burst buffer specifications | [optional] +**burst_buffer_state** | **str** | Burst buffer state details | [optional] +**cluster** | **str** | Cluster name | [optional] +**cluster_features** | **str** | List of required cluster features | [optional] +**command** | **str** | Executed command | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**container** | **str** | Absolute path to OCI container bundle | [optional] +**container_id** | **str** | OCI container ID | [optional] +**contiguous** | **bool** | True if job requires contiguous nodes | [optional] +**core_spec** | **int** | Specialized core count | [optional] +**thread_spec** | **int** | Specialized thread count | [optional] +**cores_per_socket** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**billable_tres** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] +**cpus_per_task** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**cpu_frequency_minimum** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**cpu_frequency_maximum** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**cpu_frequency_governor** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**cpus_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**cron** | **str** | Time specification for scrontab job | [optional] +**deadline** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**delay_boot** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**dependency** | **str** | Other jobs that must meet certain criteria before this job can start | [optional] +**derived_exit_code** | [**V0044ProcessExitCodeVerbose**](V0044ProcessExitCodeVerbose.md) | | [optional] +**eligible_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**end_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**excluded_nodes** | **str** | Comma-separated list of nodes that may not be used | [optional] +**exit_code** | [**V0044ProcessExitCodeVerbose**](V0044ProcessExitCodeVerbose.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**failed_node** | **str** | Name of node that caused job failure | [optional] +**features** | **str** | Comma-separated list of features that are required | [optional] +**federation_origin** | **str** | Origin cluster's name (when using federation) | [optional] +**federation_siblings_active** | **str** | Active sibling job names | [optional] +**federation_siblings_viable** | **str** | Viable sibling job names | [optional] +**gres_detail** | **List[str]** | | [optional] +**group_id** | **int** | Group ID of the user that owns the job | [optional] +**group_name** | **str** | Group name of the user that owns the job | [optional] +**het_job_id** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**het_job_id_set** | **str** | Job ID range for all heterogeneous job components | [optional] +**het_job_offset** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**job_id** | **int** | Job ID | [optional] +**job_resources** | [**V0044JobRes**](V0044JobRes.md) | | [optional] +**job_size_str** | **List[str]** | | [optional] +**job_state** | **List[str]** | Current state | [optional] +**last_sched_evaluation** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**licenses** | **str** | License(s) required by the job | [optional] +**licenses_allocated** | **str** | License(s) allocated to the job | [optional] +**mail_type** | **List[str]** | Mail event type(s) | [optional] +**mail_user** | **str** | User to receive email notifications | [optional] +**max_cpus** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**max_nodes** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label on the job | [optional] +**memory_per_tres** | **str** | Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu) | [optional] +**name** | **str** | Job name | [optional] +**network** | **str** | Network specs for the job | [optional] +**nodes** | **str** | Node(s) allocated to the job | [optional] +**nice** | **int** | Requested job priority change | [optional] +**tasks_per_core** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**tasks_per_tres** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**tasks_per_node** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**tasks_per_socket** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**tasks_per_board** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**cpus** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**node_count** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**tasks** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**partition** | **str** | Partition assigned to the job | [optional] +**prefer** | **str** | Feature(s) the job requested but that are not required | [optional] +**memory_per_cpu** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**minimum_cpus_per_node** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**minimum_tmp_disk_per_node** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**power** | [**V0041OpenapiJobInfoRespJobsInnerPower**](V0041OpenapiJobInfoRespJobsInnerPower.md) | | [optional] +**preempt_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**preemptable_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**pre_sus_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**hold** | **bool** | Hold (true) or release (false) job (Job held) | [optional] +**priority** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**priority_by_partition** | [**List[V0044PartPrio]**](V0044PartPrio.md) | | [optional] +**profile** | **List[str]** | Profile used by the acct_gather_profile plugin | [optional] +**qos** | **str** | Quality of Service assigned to the job, if pending the QOS requested | [optional] +**reboot** | **bool** | Node reboot requested before start | [optional] +**required_nodes** | **str** | Comma-separated list of required nodes | [optional] +**required_switches** | **int** | Maximum number of switches | [optional] +**requeue** | **bool** | Determines whether the job may be requeued | [optional] +**resize_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**restart_cnt** | **int** | Number of job restarts | [optional] +**resv_name** | **str** | Name of reservation to use | [optional] +**scheduled_nodes** | **str** | List of nodes scheduled to be used for the job | [optional] +**segment_size** | **int** | Requested segment size | [optional] +**selinux_context** | **str** | SELinux context | [optional] +**shared** | **List[str]** | How the job can share resources with other jobs, if at all | [optional] +**step_id** | [**V0044SlurmStepId**](V0044SlurmStepId.md) | | [optional] +**sockets_per_board** | **int** | Number of sockets per board required | [optional] +**sockets_per_node** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**start_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**state_description** | **str** | Optional details for state_reason | [optional] +**state_reason** | **str** | Reason for current Pending or Failed state | [optional] +**standard_input** | **str** | Path to stdin file | [optional] +**standard_output** | **str** | Path to stdout file | [optional] +**standard_error** | **str** | Path to stderr file | [optional] +**stdin_expanded** | **str** | Job stdin with expanded fields | [optional] +**stdout_expanded** | **str** | Job stdout with expanded fields | [optional] +**stderr_expanded** | **str** | Job stderr with expanded fields | [optional] +**submit_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**submit_line** | **str** | Job submit line (e.g. 'sbatch -N3 job.sh job_arg' | [optional] +**suspend_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**system_comment** | **str** | Arbitrary comment from slurmctld | [optional] +**time_limit** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**time_minimum** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**threads_per_core** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**tres_bind** | **str** | Task to TRES binding directives | [optional] +**tres_freq** | **str** | TRES frequency directives | [optional] +**tres_per_job** | **str** | Comma-separated list of TRES=# values to be allocated per job | [optional] +**tres_per_node** | **str** | Comma-separated list of TRES=# values to be allocated per node | [optional] +**tres_per_socket** | **str** | Comma-separated list of TRES=# values to be allocated per socket | [optional] +**tres_per_task** | **str** | Comma-separated list of TRES=# values to be allocated per task | [optional] +**tres_req_str** | **str** | TRES requested by the job | [optional] +**tres_alloc_str** | **str** | TRES used by the job | [optional] +**user_id** | **int** | User ID that owns the job | [optional] +**user_name** | **str** | User name that owns the job | [optional] +**maximum_switch_wait_time** | **int** | Maximum time to wait for switches in seconds | [optional] +**wckey** | **str** | Workload characterization key | [optional] +**current_working_directory** | **str** | Working directory to use for the job | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_info import V0044JobInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobInfo from a JSON string +v0044_job_info_instance = V0044JobInfo.from_json(json) +# print the JSON string representation of the object +print(V0044JobInfo.to_json()) + +# convert the object into a dict +v0044_job_info_dict = v0044_job_info_instance.to_dict() +# create an instance of V0044JobInfo from a dict +v0044_job_info_from_dict = V0044JobInfo.from_dict(v0044_job_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobModify.md b/docs/V0044JobModify.md new file mode 100644 index 0000000..15ccece --- /dev/null +++ b/docs/V0044JobModify.md @@ -0,0 +1,33 @@ +# V0044JobModify + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerComment**](V0041OpenapiSlurmdbdJobsRespJobsInnerComment.md) | | [optional] +**derived_exit_code** | [**V0044ProcessExitCodeVerbose**](V0044ProcessExitCodeVerbose.md) | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**tres** | [**V0044JobModifyTres**](V0044JobModifyTres.md) | | [optional] +**wckey** | **str** | Workload characterization key | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_modify import V0044JobModify + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobModify from a JSON string +v0044_job_modify_instance = V0044JobModify.from_json(json) +# print the JSON string representation of the object +print(V0044JobModify.to_json()) + +# convert the object into a dict +v0044_job_modify_dict = v0044_job_modify_instance.to_dict() +# create an instance of V0044JobModify from a dict +v0044_job_modify_from_dict = V0044JobModify.from_dict(v0044_job_modify_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobModifyTres.md b/docs/V0044JobModifyTres.md new file mode 100644 index 0000000..70365f0 --- /dev/null +++ b/docs/V0044JobModifyTres.md @@ -0,0 +1,29 @@ +# V0044JobModifyTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_modify_tres import V0044JobModifyTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobModifyTres from a JSON string +v0044_job_modify_tres_instance = V0044JobModifyTres.from_json(json) +# print the JSON string representation of the object +print(V0044JobModifyTres.to_json()) + +# convert the object into a dict +v0044_job_modify_tres_dict = v0044_job_modify_tres_instance.to_dict() +# create an instance of V0044JobModifyTres from a dict +v0044_job_modify_tres_from_dict = V0044JobModifyTres.from_dict(v0044_job_modify_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobRequired.md b/docs/V0044JobRequired.md new file mode 100644 index 0000000..eff971a --- /dev/null +++ b/docs/V0044JobRequired.md @@ -0,0 +1,31 @@ +# V0044JobRequired + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus** | **int** | Minimum number of CPUs required | [optional] +**memory_per_cpu** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**memory_per_node** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_required import V0044JobRequired + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobRequired from a JSON string +v0044_job_required_instance = V0044JobRequired.from_json(json) +# print the JSON string representation of the object +print(V0044JobRequired.to_json()) + +# convert the object into a dict +v0044_job_required_dict = v0044_job_required_instance.to_dict() +# create an instance of V0044JobRequired from a dict +v0044_job_required_from_dict = V0044JobRequired.from_dict(v0044_job_required_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobRes.md b/docs/V0044JobRes.md new file mode 100644 index 0000000..d1c0496 --- /dev/null +++ b/docs/V0044JobRes.md @@ -0,0 +1,32 @@ +# V0044JobRes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**select_type** | **List[str]** | Scheduler consumable resource selection type | +**nodes** | [**V0044JobResNodes**](V0044JobResNodes.md) | | [optional] +**cpus** | **int** | Number of allocated CPUs | +**threads_per_core** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0044_job_res import V0044JobRes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobRes from a JSON string +v0044_job_res_instance = V0044JobRes.from_json(json) +# print the JSON string representation of the object +print(V0044JobRes.to_json()) + +# convert the object into a dict +v0044_job_res_dict = v0044_job_res_instance.to_dict() +# create an instance of V0044JobRes from a dict +v0044_job_res_from_dict = V0044JobRes.from_dict(v0044_job_res_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobResCore.md b/docs/V0044JobResCore.md new file mode 100644 index 0000000..04028f5 --- /dev/null +++ b/docs/V0044JobResCore.md @@ -0,0 +1,30 @@ +# V0044JobResCore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**status** | **List[str]** | Core status | + +## Example + +```python +from slurmrest_python.models.v0044_job_res_core import V0044JobResCore + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobResCore from a JSON string +v0044_job_res_core_instance = V0044JobResCore.from_json(json) +# print the JSON string representation of the object +print(V0044JobResCore.to_json()) + +# convert the object into a dict +v0044_job_res_core_dict = v0044_job_res_core_instance.to_dict() +# create an instance of V0044JobResCore from a dict +v0044_job_res_core_from_dict = V0044JobResCore.from_dict(v0044_job_res_core_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobResNode.md b/docs/V0044JobResNode.md new file mode 100644 index 0000000..430e5aa --- /dev/null +++ b/docs/V0044JobResNode.md @@ -0,0 +1,33 @@ +# V0044JobResNode + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Node index | +**name** | **str** | Node name | +**cpus** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.md) | | [optional] +**memory** | [**V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory**](V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.md) | | [optional] +**sockets** | [**List[V0044JobResSocket]**](V0044JobResSocket.md) | | + +## Example + +```python +from slurmrest_python.models.v0044_job_res_node import V0044JobResNode + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobResNode from a JSON string +v0044_job_res_node_instance = V0044JobResNode.from_json(json) +# print the JSON string representation of the object +print(V0044JobResNode.to_json()) + +# convert the object into a dict +v0044_job_res_node_dict = v0044_job_res_node_instance.to_dict() +# create an instance of V0044JobResNode from a dict +v0044_job_res_node_from_dict = V0044JobResNode.from_dict(v0044_job_res_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobResNodes.md b/docs/V0044JobResNodes.md new file mode 100644 index 0000000..effa114 --- /dev/null +++ b/docs/V0044JobResNodes.md @@ -0,0 +1,33 @@ +# V0044JobResNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of allocated nodes | [optional] +**select_type** | **List[str]** | Node scheduling selection method | [optional] +**list** | **str** | Node(s) allocated to the job | [optional] +**whole** | **bool** | Whether whole nodes were allocated | [optional] +**allocation** | [**List[V0044JobResNode]**](V0044JobResNode.md) | Job resources for a node | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_res_nodes import V0044JobResNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobResNodes from a JSON string +v0044_job_res_nodes_instance = V0044JobResNodes.from_json(json) +# print the JSON string representation of the object +print(V0044JobResNodes.to_json()) + +# convert the object into a dict +v0044_job_res_nodes_dict = v0044_job_res_nodes_instance.to_dict() +# create an instance of V0044JobResNodes from a dict +v0044_job_res_nodes_from_dict = V0044JobResNodes.from_dict(v0044_job_res_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobResSocket.md b/docs/V0044JobResSocket.md new file mode 100644 index 0000000..faa239f --- /dev/null +++ b/docs/V0044JobResSocket.md @@ -0,0 +1,30 @@ +# V0044JobResSocket + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **int** | Core index | +**cores** | [**List[V0044JobResCore]**](V0044JobResCore.md) | | + +## Example + +```python +from slurmrest_python.models.v0044_job_res_socket import V0044JobResSocket + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobResSocket from a JSON string +v0044_job_res_socket_instance = V0044JobResSocket.from_json(json) +# print the JSON string representation of the object +print(V0044JobResSocket.to_json()) + +# convert the object into a dict +v0044_job_res_socket_dict = v0044_job_res_socket_instance.to_dict() +# create an instance of V0044JobResSocket from a dict +v0044_job_res_socket_from_dict = V0044JobResSocket.from_dict(v0044_job_res_socket_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobReservation.md b/docs/V0044JobReservation.md new file mode 100644 index 0000000..ba24598 --- /dev/null +++ b/docs/V0044JobReservation.md @@ -0,0 +1,31 @@ +# V0044JobReservation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Unique identifier of requested reservation | [optional] +**name** | **str** | Name of reservation to use | [optional] +**requested** | **str** | Comma-separated list of requested reservation names | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_reservation import V0044JobReservation + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobReservation from a JSON string +v0044_job_reservation_instance = V0044JobReservation.from_json(json) +# print the JSON string representation of the object +print(V0044JobReservation.to_json()) + +# convert the object into a dict +v0044_job_reservation_dict = v0044_job_reservation_instance.to_dict() +# create an instance of V0044JobReservation from a dict +v0044_job_reservation_from_dict = V0044JobReservation.from_dict(v0044_job_reservation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobState.md b/docs/V0044JobState.md new file mode 100644 index 0000000..7207240 --- /dev/null +++ b/docs/V0044JobState.md @@ -0,0 +1,30 @@ +# V0044JobState + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current** | **List[str]** | Current state | [optional] +**reason** | **str** | Reason for previous Pending or Failed state | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_state import V0044JobState + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobState from a JSON string +v0044_job_state_instance = V0044JobState.from_json(json) +# print the JSON string representation of the object +print(V0044JobState.to_json()) + +# convert the object into a dict +v0044_job_state_dict = v0044_job_state_instance.to_dict() +# create an instance of V0044JobState from a dict +v0044_job_state_from_dict = V0044JobState.from_dict(v0044_job_state_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobSubmitReq.md b/docs/V0044JobSubmitReq.md new file mode 100644 index 0000000..8bce3ee --- /dev/null +++ b/docs/V0044JobSubmitReq.md @@ -0,0 +1,31 @@ +# V0044JobSubmitReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**script** | **str** | Job batch script contents; Same as the script field in jobs[0] or job. | [optional] +**jobs** | [**List[V0044JobDescMsg]**](V0044JobDescMsg.md) | | [optional] +**job** | [**V0044JobDescMsg**](V0044JobDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_submit_req import V0044JobSubmitReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobSubmitReq from a JSON string +v0044_job_submit_req_instance = V0044JobSubmitReq.from_json(json) +# print the JSON string representation of the object +print(V0044JobSubmitReq.to_json()) + +# convert the object into a dict +v0044_job_submit_req_dict = v0044_job_submit_req_instance.to_dict() +# create an instance of V0044JobSubmitReq from a dict +v0044_job_submit_req_from_dict = V0044JobSubmitReq.from_dict(v0044_job_submit_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobTime.md b/docs/V0044JobTime.md new file mode 100644 index 0000000..ef79e86 --- /dev/null +++ b/docs/V0044JobTime.md @@ -0,0 +1,39 @@ +# V0044JobTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**eligible** | **int** | Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**end** | **int** | End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**planned** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**start** | **int** | Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**submission** | **int** | Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**suspended** | **int** | Total time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.md) | | [optional] +**limit** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_time import V0044JobTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobTime from a JSON string +v0044_job_time_instance = V0044JobTime.from_json(json) +# print the JSON string representation of the object +print(V0044JobTime.to_json()) + +# convert the object into a dict +v0044_job_time_dict = v0044_job_time_instance.to_dict() +# create an instance of V0044JobTime from a dict +v0044_job_time_from_dict = V0044JobTime.from_dict(v0044_job_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044JobTres.md b/docs/V0044JobTres.md new file mode 100644 index 0000000..6350c7e --- /dev/null +++ b/docs/V0044JobTres.md @@ -0,0 +1,30 @@ +# V0044JobTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**requested** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_job_tres import V0044JobTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044JobTres from a JSON string +v0044_job_tres_instance = V0044JobTres.from_json(json) +# print the JSON string representation of the object +print(V0044JobTres.to_json()) + +# convert the object into a dict +v0044_job_tres_dict = v0044_job_tres_instance.to_dict() +# create an instance of V0044JobTres from a dict +v0044_job_tres_from_dict = V0044JobTres.from_dict(v0044_job_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044KillJobsMsg.md b/docs/V0044KillJobsMsg.md new file mode 100644 index 0000000..b5ba3ff --- /dev/null +++ b/docs/V0044KillJobsMsg.md @@ -0,0 +1,41 @@ +# V0044KillJobsMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Filter jobs to a specific account | [optional] +**flags** | **List[str]** | Filter jobs according to flags | [optional] +**job_name** | **str** | Filter jobs to a specific name | [optional] +**jobs** | **List[str]** | | [optional] +**partition** | **str** | Filter jobs to a specific partition | [optional] +**qos** | **str** | Filter jobs to a specific QOS | [optional] +**reservation** | **str** | Filter jobs to a specific reservation | [optional] +**signal** | **str** | Signal to send to jobs | [optional] +**job_state** | **List[str]** | Filter jobs to a specific state | [optional] +**user_id** | **str** | Filter jobs to a specific numeric user id | [optional] +**user_name** | **str** | Filter jobs to a specific user name | [optional] +**wckey** | **str** | Filter jobs to a specific wckey | [optional] +**nodes** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_kill_jobs_msg import V0044KillJobsMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044KillJobsMsg from a JSON string +v0044_kill_jobs_msg_instance = V0044KillJobsMsg.from_json(json) +# print the JSON string representation of the object +print(V0044KillJobsMsg.to_json()) + +# convert the object into a dict +v0044_kill_jobs_msg_dict = v0044_kill_jobs_msg_instance.to_dict() +# create an instance of V0044KillJobsMsg from a dict +v0044_kill_jobs_msg_from_dict = V0044KillJobsMsg.from_dict(v0044_kill_jobs_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044KillJobsRespJob.md b/docs/V0044KillJobsRespJob.md new file mode 100644 index 0000000..717928f --- /dev/null +++ b/docs/V0044KillJobsRespJob.md @@ -0,0 +1,32 @@ +# V0044KillJobsRespJob + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**V0041OpenapiKillJobsRespStatusInnerError**](V0041OpenapiKillJobsRespStatusInnerError.md) | | [optional] +**step_id** | **str** | Job or Step ID that signaling failed | +**job_id** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | +**federation** | [**V0041OpenapiKillJobsRespStatusInnerFederation**](V0041OpenapiKillJobsRespStatusInnerFederation.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_kill_jobs_resp_job import V0044KillJobsRespJob + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044KillJobsRespJob from a JSON string +v0044_kill_jobs_resp_job_instance = V0044KillJobsRespJob.from_json(json) +# print the JSON string representation of the object +print(V0044KillJobsRespJob.to_json()) + +# convert the object into a dict +v0044_kill_jobs_resp_job_dict = v0044_kill_jobs_resp_job_instance.to_dict() +# create an instance of V0044KillJobsRespJob from a dict +v0044_kill_jobs_resp_job_from_dict = V0044KillJobsRespJob.from_dict(v0044_kill_jobs_resp_job_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044License.md b/docs/V0044License.md new file mode 100644 index 0000000..834ca89 --- /dev/null +++ b/docs/V0044License.md @@ -0,0 +1,38 @@ +# V0044License + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**license_name** | **str** | Name of the license | [optional] +**total** | **int** | Total number of licenses present | [optional] +**used** | **int** | Number of licenses in use | [optional] +**free** | **int** | Number of licenses currently available | [optional] +**remote** | **bool** | Indicates whether licenses are served by the database | [optional] +**reserved** | **int** | Number of licenses reserved | [optional] +**last_consumed** | **int** | Last known number of licenses that were consumed in the license manager (Remote Only) | [optional] +**last_deficit** | **int** | Number of \"missing licenses\" from the cluster's perspective | [optional] +**last_update** | **int** | When the license information was last updated (UNIX Timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**nodes** | **str** | HRes nodes | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_license import V0044License + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044License from a JSON string +v0044_license_instance = V0044License.from_json(json) +# print the JSON string representation of the object +print(V0044License.to_json()) + +# convert the object into a dict +v0044_license_dict = v0044_license_instance.to_dict() +# create an instance of V0044License from a dict +v0044_license_from_dict = V0044License.from_dict(v0044_license_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Node.md b/docs/V0044Node.md new file mode 100644 index 0000000..b7f1e1c --- /dev/null +++ b/docs/V0044Node.md @@ -0,0 +1,88 @@ +# V0044Node + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**architecture** | **str** | Computer architecture | [optional] +**burstbuffer_network_address** | **str** | Alternate network path to be used for sbcast network traffic | [optional] +**boards** | **int** | Number of Baseboards in nodes with a baseboard controller | [optional] +**boot_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**tls_cert_last_renewal** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**cert_flags** | **List[str]** | Certmgr status flags | [optional] +**cluster_name** | **str** | Cluster name (only set in federated environments) | [optional] +**cores** | **int** | Number of cores in a single physical processor socket | [optional] +**specialized_cores** | **int** | Number of cores reserved for system use | [optional] +**cpu_binding** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**cpu_load** | **int** | CPU load as reported by the OS | [optional] +**free_mem** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**cpus** | **int** | Total CPUs, including cores and threads | [optional] +**effective_cpus** | **int** | Number of effective CPUs (excluding specialized CPUs) | [optional] +**specialized_cpus** | **str** | Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd | [optional] +**energy** | [**V0044AcctGatherEnergy**](V0044AcctGatherEnergy.md) | | [optional] +**external_sensors** | **object** | | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**power** | **object** | | [optional] +**features** | **List[str]** | | [optional] +**active_features** | **List[str]** | | [optional] +**gpu_spec** | **str** | CPU cores reserved for jobs that also use a GPU | [optional] +**gres** | **str** | Generic resources | [optional] +**gres_drained** | **str** | Drained generic resources | [optional] +**gres_used** | **str** | Generic resources currently in use | [optional] +**instance_id** | **str** | Cloud instance ID | [optional] +**instance_type** | **str** | Cloud instance type | [optional] +**last_busy** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**mcs_label** | **str** | Multi-Category Security label | [optional] +**specialized_memory** | **int** | Combined memory limit, in MB, for Slurm compute node daemons | [optional] +**name** | **str** | NodeName | [optional] +**next_state_after_reboot** | **List[str]** | The state the node will be assigned after rebooting | [optional] +**address** | **str** | NodeAddr, used to establish a communication path | [optional] +**hostname** | **str** | NodeHostname | [optional] +**state** | **List[str]** | Node state(s) applicable to this node | [optional] +**operating_system** | **str** | Operating system reported by the node | [optional] +**owner** | **str** | User allowed to run jobs on this node (unset if no restriction) | [optional] +**partitions** | **List[str]** | | [optional] +**port** | **int** | TCP port number of the slurmd | [optional] +**real_memory** | **int** | Total memory in MB on the node | [optional] +**res_cores_per_gpu** | **int** | Number of CPU cores per GPU restricted to GPU jobs | [optional] +**comment** | **str** | Arbitrary comment | [optional] +**reason** | **str** | Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state | [optional] +**reason_changed_at** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**reason_set_by_user** | **str** | User who set the reason | [optional] +**resume_after** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**reservation** | **str** | Name of reservation containing this node | [optional] +**alloc_memory** | **int** | Total memory in MB currently allocated for jobs | [optional] +**alloc_cpus** | **int** | Total number of CPUs currently allocated for jobs | [optional] +**alloc_idle_cpus** | **int** | Total number of idle CPUs | [optional] +**tres_used** | **str** | Trackable resources currently allocated for jobs | [optional] +**tres_weighted** | **float** | Ignored. Was weighted number of billable trackable resources allocated | [optional] +**slurmd_start_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**sockets** | **int** | Number of physical processor sockets/chips on the node | [optional] +**threads** | **int** | Number of logical threads in a single physical core | [optional] +**temporary_disk** | **int** | Total size in MB of temporary disk storage in TmpFS | [optional] +**weight** | **int** | Weight of the node for scheduling purposes | [optional] +**topology** | **str** | Topology | [optional] +**tres** | **str** | Configured trackable resources | [optional] +**version** | **str** | Slurmd version | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_node import V0044Node + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Node from a JSON string +v0044_node_instance = V0044Node.from_json(json) +# print the JSON string representation of the object +print(V0044Node.to_json()) + +# convert the object into a dict +v0044_node_dict = v0044_node_instance.to_dict() +# create an instance of V0044Node from a dict +v0044_node_from_dict = V0044Node.from_dict(v0044_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044NodeGresLayout.md b/docs/V0044NodeGresLayout.md new file mode 100644 index 0000000..4affc3c --- /dev/null +++ b/docs/V0044NodeGresLayout.md @@ -0,0 +1,32 @@ +# V0044NodeGresLayout + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | GRES name | +**type** | **str** | GRES type (optional) | [optional] +**count** | **int** | Count | [optional] +**index** | **str** | Index | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_node_gres_layout import V0044NodeGresLayout + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044NodeGresLayout from a JSON string +v0044_node_gres_layout_instance = V0044NodeGresLayout.from_json(json) +# print the JSON string representation of the object +print(V0044NodeGresLayout.to_json()) + +# convert the object into a dict +v0044_node_gres_layout_dict = v0044_node_gres_layout_instance.to_dict() +# create an instance of V0044NodeGresLayout from a dict +v0044_node_gres_layout_from_dict = V0044NodeGresLayout.from_dict(v0044_node_gres_layout_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044NodeResourceLayout.md b/docs/V0044NodeResourceLayout.md new file mode 100644 index 0000000..eb8dd54 --- /dev/null +++ b/docs/V0044NodeResourceLayout.md @@ -0,0 +1,35 @@ +# V0044NodeResourceLayout + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node** | **str** | Node name | +**sockets_per_node** | **int** | Sockets per node | [optional] +**cores_per_socket** | **int** | Cores per socket | [optional] +**mem_alloc** | **int** | Allocated memory | [optional] +**core_bitmap** | **str** | Abstract core bitmap | [optional] +**channel** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**gres** | [**List[V0044NodeGresLayout]**](V0044NodeGresLayout.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_node_resource_layout import V0044NodeResourceLayout + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044NodeResourceLayout from a JSON string +v0044_node_resource_layout_instance = V0044NodeResourceLayout.from_json(json) +# print the JSON string representation of the object +print(V0044NodeResourceLayout.to_json()) + +# convert the object into a dict +v0044_node_resource_layout_dict = v0044_node_resource_layout_instance.to_dict() +# create an instance of V0044NodeResourceLayout from a dict +v0044_node_resource_layout_from_dict = V0044NodeResourceLayout.from_dict(v0044_node_resource_layout_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiAccountsAddCondResp.md b/docs/V0044OpenapiAccountsAddCondResp.md new file mode 100644 index 0000000..dfb703a --- /dev/null +++ b/docs/V0044OpenapiAccountsAddCondResp.md @@ -0,0 +1,33 @@ +# V0044OpenapiAccountsAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0044AccountsAddCond**](V0044AccountsAddCond.md) | | +**account** | [**V0044AccountShort**](V0044AccountShort.md) | | [optional] +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp import V0044OpenapiAccountsAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiAccountsAddCondResp from a JSON string +v0044_openapi_accounts_add_cond_resp_instance = V0044OpenapiAccountsAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiAccountsAddCondResp.to_json()) + +# convert the object into a dict +v0044_openapi_accounts_add_cond_resp_dict = v0044_openapi_accounts_add_cond_resp_instance.to_dict() +# create an instance of V0044OpenapiAccountsAddCondResp from a dict +v0044_openapi_accounts_add_cond_resp_from_dict = V0044OpenapiAccountsAddCondResp.from_dict(v0044_openapi_accounts_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiAccountsAddCondRespStr.md b/docs/V0044OpenapiAccountsAddCondRespStr.md new file mode 100644 index 0000000..8644a7b --- /dev/null +++ b/docs/V0044OpenapiAccountsAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0044OpenapiAccountsAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_accounts** | **str** | added_accounts | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp_str import V0044OpenapiAccountsAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiAccountsAddCondRespStr from a JSON string +v0044_openapi_accounts_add_cond_resp_str_instance = V0044OpenapiAccountsAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiAccountsAddCondRespStr.to_json()) + +# convert the object into a dict +v0044_openapi_accounts_add_cond_resp_str_dict = v0044_openapi_accounts_add_cond_resp_str_instance.to_dict() +# create an instance of V0044OpenapiAccountsAddCondRespStr from a dict +v0044_openapi_accounts_add_cond_resp_str_from_dict = V0044OpenapiAccountsAddCondRespStr.from_dict(v0044_openapi_accounts_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiAccountsRemovedResp.md b/docs/V0044OpenapiAccountsRemovedResp.md new file mode 100644 index 0000000..5365957 --- /dev/null +++ b/docs/V0044OpenapiAccountsRemovedResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiAccountsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_accounts** | **List[str]** | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_accounts_removed_resp import V0044OpenapiAccountsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiAccountsRemovedResp from a JSON string +v0044_openapi_accounts_removed_resp_instance = V0044OpenapiAccountsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiAccountsRemovedResp.to_json()) + +# convert the object into a dict +v0044_openapi_accounts_removed_resp_dict = v0044_openapi_accounts_removed_resp_instance.to_dict() +# create an instance of V0044OpenapiAccountsRemovedResp from a dict +v0044_openapi_accounts_removed_resp_from_dict = V0044OpenapiAccountsRemovedResp.from_dict(v0044_openapi_accounts_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiAccountsResp.md b/docs/V0044OpenapiAccountsResp.md new file mode 100644 index 0000000..8440e7c --- /dev/null +++ b/docs/V0044OpenapiAccountsResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiAccountsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**List[V0044Account]**](V0044Account.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiAccountsResp from a JSON string +v0044_openapi_accounts_resp_instance = V0044OpenapiAccountsResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiAccountsResp.to_json()) + +# convert the object into a dict +v0044_openapi_accounts_resp_dict = v0044_openapi_accounts_resp_instance.to_dict() +# create an instance of V0044OpenapiAccountsResp from a dict +v0044_openapi_accounts_resp_from_dict = V0044OpenapiAccountsResp.from_dict(v0044_openapi_accounts_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiAssocsRemovedResp.md b/docs/V0044OpenapiAssocsRemovedResp.md new file mode 100644 index 0000000..0602167 --- /dev/null +++ b/docs/V0044OpenapiAssocsRemovedResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiAssocsRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_associations** | **List[str]** | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_assocs_removed_resp import V0044OpenapiAssocsRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiAssocsRemovedResp from a JSON string +v0044_openapi_assocs_removed_resp_instance = V0044OpenapiAssocsRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiAssocsRemovedResp.to_json()) + +# convert the object into a dict +v0044_openapi_assocs_removed_resp_dict = v0044_openapi_assocs_removed_resp_instance.to_dict() +# create an instance of V0044OpenapiAssocsRemovedResp from a dict +v0044_openapi_assocs_removed_resp_from_dict = V0044OpenapiAssocsRemovedResp.from_dict(v0044_openapi_assocs_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiAssocsResp.md b/docs/V0044OpenapiAssocsResp.md new file mode 100644 index 0000000..95225e0 --- /dev/null +++ b/docs/V0044OpenapiAssocsResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiAssocsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**associations** | [**List[V0044Assoc]**](V0044Assoc.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiAssocsResp from a JSON string +v0044_openapi_assocs_resp_instance = V0044OpenapiAssocsResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiAssocsResp.to_json()) + +# convert the object into a dict +v0044_openapi_assocs_resp_dict = v0044_openapi_assocs_resp_instance.to_dict() +# create an instance of V0044OpenapiAssocsResp from a dict +v0044_openapi_assocs_resp_from_dict = V0044OpenapiAssocsResp.from_dict(v0044_openapi_assocs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiClustersRemovedResp.md b/docs/V0044OpenapiClustersRemovedResp.md new file mode 100644 index 0000000..83d00c9 --- /dev/null +++ b/docs/V0044OpenapiClustersRemovedResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiClustersRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_clusters** | **List[str]** | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_clusters_removed_resp import V0044OpenapiClustersRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiClustersRemovedResp from a JSON string +v0044_openapi_clusters_removed_resp_instance = V0044OpenapiClustersRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiClustersRemovedResp.to_json()) + +# convert the object into a dict +v0044_openapi_clusters_removed_resp_dict = v0044_openapi_clusters_removed_resp_instance.to_dict() +# create an instance of V0044OpenapiClustersRemovedResp from a dict +v0044_openapi_clusters_removed_resp_from_dict = V0044OpenapiClustersRemovedResp.from_dict(v0044_openapi_clusters_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiClustersResp.md b/docs/V0044OpenapiClustersResp.md new file mode 100644 index 0000000..e74b3f1 --- /dev/null +++ b/docs/V0044OpenapiClustersResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiClustersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0044ClusterRec]**](V0044ClusterRec.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiClustersResp from a JSON string +v0044_openapi_clusters_resp_instance = V0044OpenapiClustersResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiClustersResp.to_json()) + +# convert the object into a dict +v0044_openapi_clusters_resp_dict = v0044_openapi_clusters_resp_instance.to_dict() +# create an instance of V0044OpenapiClustersResp from a dict +v0044_openapi_clusters_resp_from_dict = V0044OpenapiClustersResp.from_dict(v0044_openapi_clusters_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiCreateNodeReq.md b/docs/V0044OpenapiCreateNodeReq.md new file mode 100644 index 0000000..4439a50 --- /dev/null +++ b/docs/V0044OpenapiCreateNodeReq.md @@ -0,0 +1,32 @@ +# V0044OpenapiCreateNodeReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_conf** | **str** | Node configuration line | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_create_node_req import V0044OpenapiCreateNodeReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiCreateNodeReq from a JSON string +v0044_openapi_create_node_req_instance = V0044OpenapiCreateNodeReq.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiCreateNodeReq.to_json()) + +# convert the object into a dict +v0044_openapi_create_node_req_dict = v0044_openapi_create_node_req_instance.to_dict() +# create an instance of V0044OpenapiCreateNodeReq from a dict +v0044_openapi_create_node_req_from_dict = V0044OpenapiCreateNodeReq.from_dict(v0044_openapi_create_node_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiDiagResp.md b/docs/V0044OpenapiDiagResp.md new file mode 100644 index 0000000..96b2b93 --- /dev/null +++ b/docs/V0044OpenapiDiagResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiDiagResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0044StatsMsg**](V0044StatsMsg.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_diag_resp import V0044OpenapiDiagResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiDiagResp from a JSON string +v0044_openapi_diag_resp_instance = V0044OpenapiDiagResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiDiagResp.to_json()) + +# convert the object into a dict +v0044_openapi_diag_resp_dict = v0044_openapi_diag_resp_instance.to_dict() +# create an instance of V0044OpenapiDiagResp from a dict +v0044_openapi_diag_resp_from_dict = V0044OpenapiDiagResp.from_dict(v0044_openapi_diag_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiError.md b/docs/V0044OpenapiError.md new file mode 100644 index 0000000..f2930d2 --- /dev/null +++ b/docs/V0044OpenapiError.md @@ -0,0 +1,32 @@ +# V0044OpenapiError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form error description | [optional] +**error_number** | **int** | Slurm numeric error identifier | [optional] +**error** | **str** | Short form error description | [optional] +**source** | **str** | Source of error or where error was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiError from a JSON string +v0044_openapi_error_instance = V0044OpenapiError.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiError.to_json()) + +# convert the object into a dict +v0044_openapi_error_dict = v0044_openapi_error_instance.to_dict() +# create an instance of V0044OpenapiError from a dict +v0044_openapi_error_from_dict = V0044OpenapiError.from_dict(v0044_openapi_error_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiHostlistReqResp.md b/docs/V0044OpenapiHostlistReqResp.md new file mode 100644 index 0000000..5e0e7e6 --- /dev/null +++ b/docs/V0044OpenapiHostlistReqResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiHostlistReqResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostlist** | **str** | Hostlist expression string (Hostlist expression string) | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_hostlist_req_resp import V0044OpenapiHostlistReqResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiHostlistReqResp from a JSON string +v0044_openapi_hostlist_req_resp_instance = V0044OpenapiHostlistReqResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiHostlistReqResp.to_json()) + +# convert the object into a dict +v0044_openapi_hostlist_req_resp_dict = v0044_openapi_hostlist_req_resp_instance.to_dict() +# create an instance of V0044OpenapiHostlistReqResp from a dict +v0044_openapi_hostlist_req_resp_from_dict = V0044OpenapiHostlistReqResp.from_dict(v0044_openapi_hostlist_req_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiHostnamesReqResp.md b/docs/V0044OpenapiHostnamesReqResp.md new file mode 100644 index 0000000..8526306 --- /dev/null +++ b/docs/V0044OpenapiHostnamesReqResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiHostnamesReqResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostnames** | **List[str]** | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_hostnames_req_resp import V0044OpenapiHostnamesReqResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiHostnamesReqResp from a JSON string +v0044_openapi_hostnames_req_resp_instance = V0044OpenapiHostnamesReqResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiHostnamesReqResp.to_json()) + +# convert the object into a dict +v0044_openapi_hostnames_req_resp_dict = v0044_openapi_hostnames_req_resp_instance.to_dict() +# create an instance of V0044OpenapiHostnamesReqResp from a dict +v0044_openapi_hostnames_req_resp_from_dict = V0044OpenapiHostnamesReqResp.from_dict(v0044_openapi_hostnames_req_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiInstancesResp.md b/docs/V0044OpenapiInstancesResp.md new file mode 100644 index 0000000..4150a56 --- /dev/null +++ b/docs/V0044OpenapiInstancesResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiInstancesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**instances** | [**List[V0044Instance]**](V0044Instance.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_instances_resp import V0044OpenapiInstancesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiInstancesResp from a JSON string +v0044_openapi_instances_resp_instance = V0044OpenapiInstancesResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiInstancesResp.to_json()) + +# convert the object into a dict +v0044_openapi_instances_resp_dict = v0044_openapi_instances_resp_instance.to_dict() +# create an instance of V0044OpenapiInstancesResp from a dict +v0044_openapi_instances_resp_from_dict = V0044OpenapiInstancesResp.from_dict(v0044_openapi_instances_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiJobAllocResp.md b/docs/V0044OpenapiJobAllocResp.md new file mode 100644 index 0000000..fd2a46c --- /dev/null +++ b/docs/V0044OpenapiJobAllocResp.md @@ -0,0 +1,33 @@ +# V0044OpenapiJobAllocResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | Submitted Job ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_job_alloc_resp import V0044OpenapiJobAllocResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiJobAllocResp from a JSON string +v0044_openapi_job_alloc_resp_instance = V0044OpenapiJobAllocResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiJobAllocResp.to_json()) + +# convert the object into a dict +v0044_openapi_job_alloc_resp_dict = v0044_openapi_job_alloc_resp_instance.to_dict() +# create an instance of V0044OpenapiJobAllocResp from a dict +v0044_openapi_job_alloc_resp_from_dict = V0044OpenapiJobAllocResp.from_dict(v0044_openapi_job_alloc_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiJobInfoResp.md b/docs/V0044OpenapiJobInfoResp.md new file mode 100644 index 0000000..212b74b --- /dev/null +++ b/docs/V0044OpenapiJobInfoResp.md @@ -0,0 +1,34 @@ +# V0044OpenapiJobInfoResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0044JobInfo]**](V0044JobInfo.md) | | +**last_backfill** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | +**last_update** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiJobInfoResp from a JSON string +v0044_openapi_job_info_resp_instance = V0044OpenapiJobInfoResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiJobInfoResp.to_json()) + +# convert the object into a dict +v0044_openapi_job_info_resp_dict = v0044_openapi_job_info_resp_instance.to_dict() +# create an instance of V0044OpenapiJobInfoResp from a dict +v0044_openapi_job_info_resp_from_dict = V0044OpenapiJobInfoResp.from_dict(v0044_openapi_job_info_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiJobModifyReq.md b/docs/V0044OpenapiJobModifyReq.md new file mode 100644 index 0000000..2b6f4c5 --- /dev/null +++ b/docs/V0044OpenapiJobModifyReq.md @@ -0,0 +1,33 @@ +# V0044OpenapiJobModifyReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id_list** | **List[str]** | | [optional] +**job_rec** | [**V0044JobModify**](V0044JobModify.md) | | [optional] +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_job_modify_req import V0044OpenapiJobModifyReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiJobModifyReq from a JSON string +v0044_openapi_job_modify_req_instance = V0044OpenapiJobModifyReq.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiJobModifyReq.to_json()) + +# convert the object into a dict +v0044_openapi_job_modify_req_dict = v0044_openapi_job_modify_req_instance.to_dict() +# create an instance of V0044OpenapiJobModifyReq from a dict +v0044_openapi_job_modify_req_from_dict = V0044OpenapiJobModifyReq.from_dict(v0044_openapi_job_modify_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiJobModifyResp.md b/docs/V0044OpenapiJobModifyResp.md new file mode 100644 index 0000000..26b2fac --- /dev/null +++ b/docs/V0044OpenapiJobModifyResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiJobModifyResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | **List[str]** | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_job_modify_resp import V0044OpenapiJobModifyResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiJobModifyResp from a JSON string +v0044_openapi_job_modify_resp_instance = V0044OpenapiJobModifyResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiJobModifyResp.to_json()) + +# convert the object into a dict +v0044_openapi_job_modify_resp_dict = v0044_openapi_job_modify_resp_instance.to_dict() +# create an instance of V0044OpenapiJobModifyResp from a dict +v0044_openapi_job_modify_resp_from_dict = V0044OpenapiJobModifyResp.from_dict(v0044_openapi_job_modify_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiJobPostResponse.md b/docs/V0044OpenapiJobPostResponse.md new file mode 100644 index 0000000..999f823 --- /dev/null +++ b/docs/V0044OpenapiJobPostResponse.md @@ -0,0 +1,32 @@ +# V0044OpenapiJobPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List[V0044JobArrayResponseMsgEntry]**](V0044JobArrayResponseMsgEntry.md) | | [optional] +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_job_post_response import V0044OpenapiJobPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiJobPostResponse from a JSON string +v0044_openapi_job_post_response_instance = V0044OpenapiJobPostResponse.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiJobPostResponse.to_json()) + +# convert the object into a dict +v0044_openapi_job_post_response_dict = v0044_openapi_job_post_response_instance.to_dict() +# create an instance of V0044OpenapiJobPostResponse from a dict +v0044_openapi_job_post_response_from_dict = V0044OpenapiJobPostResponse.from_dict(v0044_openapi_job_post_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiJobSubmitResponse.md b/docs/V0044OpenapiJobSubmitResponse.md new file mode 100644 index 0000000..c298ea5 --- /dev/null +++ b/docs/V0044OpenapiJobSubmitResponse.md @@ -0,0 +1,34 @@ +# V0044OpenapiJobSubmitResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | submitted Job ID | [optional] +**step_id** | **str** | submitted Step ID | [optional] +**job_submit_user_msg** | **str** | Job submission user message | [optional] +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_job_submit_response import V0044OpenapiJobSubmitResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiJobSubmitResponse from a JSON string +v0044_openapi_job_submit_response_instance = V0044OpenapiJobSubmitResponse.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiJobSubmitResponse.to_json()) + +# convert the object into a dict +v0044_openapi_job_submit_response_dict = v0044_openapi_job_submit_response_instance.to_dict() +# create an instance of V0044OpenapiJobSubmitResponse from a dict +v0044_openapi_job_submit_response_from_dict = V0044OpenapiJobSubmitResponse.from_dict(v0044_openapi_job_submit_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiKillJobResp.md b/docs/V0044OpenapiKillJobResp.md new file mode 100644 index 0000000..3758971 --- /dev/null +++ b/docs/V0044OpenapiKillJobResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiKillJobResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**List[V0044KillJobsRespJob]**](V0044KillJobsRespJob.md) | List of jobs signal responses | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_kill_job_resp import V0044OpenapiKillJobResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiKillJobResp from a JSON string +v0044_openapi_kill_job_resp_instance = V0044OpenapiKillJobResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiKillJobResp.to_json()) + +# convert the object into a dict +v0044_openapi_kill_job_resp_dict = v0044_openapi_kill_job_resp_instance.to_dict() +# create an instance of V0044OpenapiKillJobResp from a dict +v0044_openapi_kill_job_resp_from_dict = V0044OpenapiKillJobResp.from_dict(v0044_openapi_kill_job_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiKillJobsResp.md b/docs/V0044OpenapiKillJobsResp.md new file mode 100644 index 0000000..3121934 --- /dev/null +++ b/docs/V0044OpenapiKillJobsResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiKillJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**List[V0044KillJobsRespJob]**](V0044KillJobsRespJob.md) | List of jobs signal responses | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_kill_jobs_resp import V0044OpenapiKillJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiKillJobsResp from a JSON string +v0044_openapi_kill_jobs_resp_instance = V0044OpenapiKillJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiKillJobsResp.to_json()) + +# convert the object into a dict +v0044_openapi_kill_jobs_resp_dict = v0044_openapi_kill_jobs_resp_instance.to_dict() +# create an instance of V0044OpenapiKillJobsResp from a dict +v0044_openapi_kill_jobs_resp_from_dict = V0044OpenapiKillJobsResp.from_dict(v0044_openapi_kill_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiLicensesResp.md b/docs/V0044OpenapiLicensesResp.md new file mode 100644 index 0000000..f21ca2c --- /dev/null +++ b/docs/V0044OpenapiLicensesResp.md @@ -0,0 +1,33 @@ +# V0044OpenapiLicensesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**licenses** | [**List[V0044License]**](V0044License.md) | | +**last_update** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_licenses_resp import V0044OpenapiLicensesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiLicensesResp from a JSON string +v0044_openapi_licenses_resp_instance = V0044OpenapiLicensesResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiLicensesResp.to_json()) + +# convert the object into a dict +v0044_openapi_licenses_resp_dict = v0044_openapi_licenses_resp_instance.to_dict() +# create an instance of V0044OpenapiLicensesResp from a dict +v0044_openapi_licenses_resp_from_dict = V0044OpenapiLicensesResp.from_dict(v0044_openapi_licenses_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiMeta.md b/docs/V0044OpenapiMeta.md new file mode 100644 index 0000000..dedc031 --- /dev/null +++ b/docs/V0044OpenapiMeta.md @@ -0,0 +1,32 @@ +# V0044OpenapiMeta + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plugin** | [**V0041OpenapiSharesRespMetaPlugin**](V0041OpenapiSharesRespMetaPlugin.md) | | [optional] +**client** | [**V0041OpenapiSharesRespMetaClient**](V0041OpenapiSharesRespMetaClient.md) | | [optional] +**command** | **List[str]** | | [optional] +**slurm** | [**V0041OpenapiSharesRespMetaSlurm**](V0041OpenapiSharesRespMetaSlurm.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiMeta from a JSON string +v0044_openapi_meta_instance = V0044OpenapiMeta.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiMeta.to_json()) + +# convert the object into a dict +v0044_openapi_meta_dict = v0044_openapi_meta_instance.to_dict() +# create an instance of V0044OpenapiMeta from a dict +v0044_openapi_meta_from_dict = V0044OpenapiMeta.from_dict(v0044_openapi_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiNodesResp.md b/docs/V0044OpenapiNodesResp.md new file mode 100644 index 0000000..333955b --- /dev/null +++ b/docs/V0044OpenapiNodesResp.md @@ -0,0 +1,33 @@ +# V0044OpenapiNodesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**List[V0044Node]**](V0044Node.md) | | +**last_update** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_nodes_resp import V0044OpenapiNodesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiNodesResp from a JSON string +v0044_openapi_nodes_resp_instance = V0044OpenapiNodesResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiNodesResp.to_json()) + +# convert the object into a dict +v0044_openapi_nodes_resp_dict = v0044_openapi_nodes_resp_instance.to_dict() +# create an instance of V0044OpenapiNodesResp from a dict +v0044_openapi_nodes_resp_from_dict = V0044OpenapiNodesResp.from_dict(v0044_openapi_nodes_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiPartitionResp.md b/docs/V0044OpenapiPartitionResp.md new file mode 100644 index 0000000..8eea223 --- /dev/null +++ b/docs/V0044OpenapiPartitionResp.md @@ -0,0 +1,33 @@ +# V0044OpenapiPartitionResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**partitions** | [**List[V0044PartitionInfo]**](V0044PartitionInfo.md) | | +**last_update** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_partition_resp import V0044OpenapiPartitionResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiPartitionResp from a JSON string +v0044_openapi_partition_resp_instance = V0044OpenapiPartitionResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiPartitionResp.to_json()) + +# convert the object into a dict +v0044_openapi_partition_resp_dict = v0044_openapi_partition_resp_instance.to_dict() +# create an instance of V0044OpenapiPartitionResp from a dict +v0044_openapi_partition_resp_from_dict = V0044OpenapiPartitionResp.from_dict(v0044_openapi_partition_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiPingArrayResp.md b/docs/V0044OpenapiPingArrayResp.md new file mode 100644 index 0000000..6a50f91 --- /dev/null +++ b/docs/V0044OpenapiPingArrayResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiPingArrayResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pings** | [**List[V0044ControllerPing]**](V0044ControllerPing.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_ping_array_resp import V0044OpenapiPingArrayResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiPingArrayResp from a JSON string +v0044_openapi_ping_array_resp_instance = V0044OpenapiPingArrayResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiPingArrayResp.to_json()) + +# convert the object into a dict +v0044_openapi_ping_array_resp_dict = v0044_openapi_ping_array_resp_instance.to_dict() +# create an instance of V0044OpenapiPingArrayResp from a dict +v0044_openapi_ping_array_resp_from_dict = V0044OpenapiPingArrayResp.from_dict(v0044_openapi_ping_array_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiReservationModResp.md b/docs/V0044OpenapiReservationModResp.md new file mode 100644 index 0000000..952c294 --- /dev/null +++ b/docs/V0044OpenapiReservationModResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiReservationModResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0044ReservationDescMsg]**](V0044ReservationDescMsg.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_reservation_mod_resp import V0044OpenapiReservationModResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiReservationModResp from a JSON string +v0044_openapi_reservation_mod_resp_instance = V0044OpenapiReservationModResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiReservationModResp.to_json()) + +# convert the object into a dict +v0044_openapi_reservation_mod_resp_dict = v0044_openapi_reservation_mod_resp_instance.to_dict() +# create an instance of V0044OpenapiReservationModResp from a dict +v0044_openapi_reservation_mod_resp_from_dict = V0044OpenapiReservationModResp.from_dict(v0044_openapi_reservation_mod_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiReservationResp.md b/docs/V0044OpenapiReservationResp.md new file mode 100644 index 0000000..f11b2d3 --- /dev/null +++ b/docs/V0044OpenapiReservationResp.md @@ -0,0 +1,33 @@ +# V0044OpenapiReservationResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0044ReservationInfo]**](V0044ReservationInfo.md) | | +**last_update** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_reservation_resp import V0044OpenapiReservationResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiReservationResp from a JSON string +v0044_openapi_reservation_resp_instance = V0044OpenapiReservationResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiReservationResp.to_json()) + +# convert the object into a dict +v0044_openapi_reservation_resp_dict = v0044_openapi_reservation_resp_instance.to_dict() +# create an instance of V0044OpenapiReservationResp from a dict +v0044_openapi_reservation_resp_from_dict = V0044OpenapiReservationResp.from_dict(v0044_openapi_reservation_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiResourceLayoutResp.md b/docs/V0044OpenapiResourceLayoutResp.md new file mode 100644 index 0000000..aafbb61 --- /dev/null +++ b/docs/V0044OpenapiResourceLayoutResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiResourceLayoutResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**List[V0044NodeResourceLayout]**](V0044NodeResourceLayout.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_resource_layout_resp import V0044OpenapiResourceLayoutResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiResourceLayoutResp from a JSON string +v0044_openapi_resource_layout_resp_instance = V0044OpenapiResourceLayoutResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiResourceLayoutResp.to_json()) + +# convert the object into a dict +v0044_openapi_resource_layout_resp_dict = v0044_openapi_resource_layout_resp_instance.to_dict() +# create an instance of V0044OpenapiResourceLayoutResp from a dict +v0044_openapi_resource_layout_resp_from_dict = V0044OpenapiResourceLayoutResp.from_dict(v0044_openapi_resource_layout_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiResp.md b/docs/V0044OpenapiResp.md new file mode 100644 index 0000000..2ba217d --- /dev/null +++ b/docs/V0044OpenapiResp.md @@ -0,0 +1,31 @@ +# V0044OpenapiResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiResp from a JSON string +v0044_openapi_resp_instance = V0044OpenapiResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiResp.to_json()) + +# convert the object into a dict +v0044_openapi_resp_dict = v0044_openapi_resp_instance.to_dict() +# create an instance of V0044OpenapiResp from a dict +v0044_openapi_resp_from_dict = V0044OpenapiResp.from_dict(v0044_openapi_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiSharesResp.md b/docs/V0044OpenapiSharesResp.md new file mode 100644 index 0000000..16a1ce6 --- /dev/null +++ b/docs/V0044OpenapiSharesResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiSharesResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**V0044SharesRespMsg**](V0044SharesRespMsg.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_shares_resp import V0044OpenapiSharesResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiSharesResp from a JSON string +v0044_openapi_shares_resp_instance = V0044OpenapiSharesResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiSharesResp.to_json()) + +# convert the object into a dict +v0044_openapi_shares_resp_dict = v0044_openapi_shares_resp_instance.to_dict() +# create an instance of V0044OpenapiSharesResp from a dict +v0044_openapi_shares_resp_from_dict = V0044OpenapiSharesResp.from_dict(v0044_openapi_shares_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiSlurmdbdConfigResp.md b/docs/V0044OpenapiSlurmdbdConfigResp.md new file mode 100644 index 0000000..19bca61 --- /dev/null +++ b/docs/V0044OpenapiSlurmdbdConfigResp.md @@ -0,0 +1,39 @@ +# V0044OpenapiSlurmdbdConfigResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**List[V0044ClusterRec]**](V0044ClusterRec.md) | | [optional] +**tres** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**accounts** | [**List[V0044Account]**](V0044Account.md) | | [optional] +**users** | [**List[V0044User]**](V0044User.md) | | [optional] +**qos** | [**List[V0044Qos]**](V0044Qos.md) | | [optional] +**wckeys** | [**List[V0044Wckey]**](V0044Wckey.md) | | [optional] +**associations** | [**List[V0044Assoc]**](V0044Assoc.md) | | [optional] +**instances** | [**List[V0044Instance]**](V0044Instance.md) | | [optional] +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_slurmdbd_config_resp import V0044OpenapiSlurmdbdConfigResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiSlurmdbdConfigResp from a JSON string +v0044_openapi_slurmdbd_config_resp_instance = V0044OpenapiSlurmdbdConfigResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiSlurmdbdConfigResp.to_json()) + +# convert the object into a dict +v0044_openapi_slurmdbd_config_resp_dict = v0044_openapi_slurmdbd_config_resp_instance.to_dict() +# create an instance of V0044OpenapiSlurmdbdConfigResp from a dict +v0044_openapi_slurmdbd_config_resp_from_dict = V0044OpenapiSlurmdbdConfigResp.from_dict(v0044_openapi_slurmdbd_config_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiSlurmdbdJobsResp.md b/docs/V0044OpenapiSlurmdbdJobsResp.md new file mode 100644 index 0000000..caec4ba --- /dev/null +++ b/docs/V0044OpenapiSlurmdbdJobsResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiSlurmdbdJobsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**List[V0044Job]**](V0044Job.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_slurmdbd_jobs_resp import V0044OpenapiSlurmdbdJobsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiSlurmdbdJobsResp from a JSON string +v0044_openapi_slurmdbd_jobs_resp_instance = V0044OpenapiSlurmdbdJobsResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiSlurmdbdJobsResp.to_json()) + +# convert the object into a dict +v0044_openapi_slurmdbd_jobs_resp_dict = v0044_openapi_slurmdbd_jobs_resp_instance.to_dict() +# create an instance of V0044OpenapiSlurmdbdJobsResp from a dict +v0044_openapi_slurmdbd_jobs_resp_from_dict = V0044OpenapiSlurmdbdJobsResp.from_dict(v0044_openapi_slurmdbd_jobs_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiSlurmdbdPingResp.md b/docs/V0044OpenapiSlurmdbdPingResp.md new file mode 100644 index 0000000..77dd267 --- /dev/null +++ b/docs/V0044OpenapiSlurmdbdPingResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiSlurmdbdPingResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pings** | [**List[V0044SlurmdbdPing]**](V0044SlurmdbdPing.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_slurmdbd_ping_resp import V0044OpenapiSlurmdbdPingResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiSlurmdbdPingResp from a JSON string +v0044_openapi_slurmdbd_ping_resp_instance = V0044OpenapiSlurmdbdPingResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiSlurmdbdPingResp.to_json()) + +# convert the object into a dict +v0044_openapi_slurmdbd_ping_resp_dict = v0044_openapi_slurmdbd_ping_resp_instance.to_dict() +# create an instance of V0044OpenapiSlurmdbdPingResp from a dict +v0044_openapi_slurmdbd_ping_resp_from_dict = V0044OpenapiSlurmdbdPingResp.from_dict(v0044_openapi_slurmdbd_ping_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiSlurmdbdQosRemovedResp.md b/docs/V0044OpenapiSlurmdbdQosRemovedResp.md new file mode 100644 index 0000000..fe72f60 --- /dev/null +++ b/docs/V0044OpenapiSlurmdbdQosRemovedResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiSlurmdbdQosRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**removed_qos** | **List[str]** | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_removed_resp import V0044OpenapiSlurmdbdQosRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiSlurmdbdQosRemovedResp from a JSON string +v0044_openapi_slurmdbd_qos_removed_resp_instance = V0044OpenapiSlurmdbdQosRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiSlurmdbdQosRemovedResp.to_json()) + +# convert the object into a dict +v0044_openapi_slurmdbd_qos_removed_resp_dict = v0044_openapi_slurmdbd_qos_removed_resp_instance.to_dict() +# create an instance of V0044OpenapiSlurmdbdQosRemovedResp from a dict +v0044_openapi_slurmdbd_qos_removed_resp_from_dict = V0044OpenapiSlurmdbdQosRemovedResp.from_dict(v0044_openapi_slurmdbd_qos_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiSlurmdbdQosResp.md b/docs/V0044OpenapiSlurmdbdQosResp.md new file mode 100644 index 0000000..549a64f --- /dev/null +++ b/docs/V0044OpenapiSlurmdbdQosResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiSlurmdbdQosResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0044Qos]**](V0044Qos.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiSlurmdbdQosResp from a JSON string +v0044_openapi_slurmdbd_qos_resp_instance = V0044OpenapiSlurmdbdQosResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiSlurmdbdQosResp.to_json()) + +# convert the object into a dict +v0044_openapi_slurmdbd_qos_resp_dict = v0044_openapi_slurmdbd_qos_resp_instance.to_dict() +# create an instance of V0044OpenapiSlurmdbdQosResp from a dict +v0044_openapi_slurmdbd_qos_resp_from_dict = V0044OpenapiSlurmdbdQosResp.from_dict(v0044_openapi_slurmdbd_qos_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiSlurmdbdStatsResp.md b/docs/V0044OpenapiSlurmdbdStatsResp.md new file mode 100644 index 0000000..b59294a --- /dev/null +++ b/docs/V0044OpenapiSlurmdbdStatsResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiSlurmdbdStatsResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**V0044StatsRec**](V0044StatsRec.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_slurmdbd_stats_resp import V0044OpenapiSlurmdbdStatsResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiSlurmdbdStatsResp from a JSON string +v0044_openapi_slurmdbd_stats_resp_instance = V0044OpenapiSlurmdbdStatsResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiSlurmdbdStatsResp.to_json()) + +# convert the object into a dict +v0044_openapi_slurmdbd_stats_resp_dict = v0044_openapi_slurmdbd_stats_resp_instance.to_dict() +# create an instance of V0044OpenapiSlurmdbdStatsResp from a dict +v0044_openapi_slurmdbd_stats_resp_from_dict = V0044OpenapiSlurmdbdStatsResp.from_dict(v0044_openapi_slurmdbd_stats_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiTresResp.md b/docs/V0044OpenapiTresResp.md new file mode 100644 index 0000000..6ded17b --- /dev/null +++ b/docs/V0044OpenapiTresResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiTresResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tres** | [**List[V0044Tres]**](V0044Tres.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_tres_resp import V0044OpenapiTresResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiTresResp from a JSON string +v0044_openapi_tres_resp_instance = V0044OpenapiTresResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiTresResp.to_json()) + +# convert the object into a dict +v0044_openapi_tres_resp_dict = v0044_openapi_tres_resp_instance.to_dict() +# create an instance of V0044OpenapiTresResp from a dict +v0044_openapi_tres_resp_from_dict = V0044OpenapiTresResp.from_dict(v0044_openapi_tres_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiUsersAddCondResp.md b/docs/V0044OpenapiUsersAddCondResp.md new file mode 100644 index 0000000..fb33227 --- /dev/null +++ b/docs/V0044OpenapiUsersAddCondResp.md @@ -0,0 +1,33 @@ +# V0044OpenapiUsersAddCondResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**association_condition** | [**V0044UsersAddCond**](V0044UsersAddCond.md) | | +**user** | [**V0044UserShort**](V0044UserShort.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_users_add_cond_resp import V0044OpenapiUsersAddCondResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiUsersAddCondResp from a JSON string +v0044_openapi_users_add_cond_resp_instance = V0044OpenapiUsersAddCondResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiUsersAddCondResp.to_json()) + +# convert the object into a dict +v0044_openapi_users_add_cond_resp_dict = v0044_openapi_users_add_cond_resp_instance.to_dict() +# create an instance of V0044OpenapiUsersAddCondResp from a dict +v0044_openapi_users_add_cond_resp_from_dict = V0044OpenapiUsersAddCondResp.from_dict(v0044_openapi_users_add_cond_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiUsersAddCondRespStr.md b/docs/V0044OpenapiUsersAddCondRespStr.md new file mode 100644 index 0000000..8d1a534 --- /dev/null +++ b/docs/V0044OpenapiUsersAddCondRespStr.md @@ -0,0 +1,32 @@ +# V0044OpenapiUsersAddCondRespStr + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**added_users** | **str** | added_users | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_users_add_cond_resp_str import V0044OpenapiUsersAddCondRespStr + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiUsersAddCondRespStr from a JSON string +v0044_openapi_users_add_cond_resp_str_instance = V0044OpenapiUsersAddCondRespStr.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiUsersAddCondRespStr.to_json()) + +# convert the object into a dict +v0044_openapi_users_add_cond_resp_str_dict = v0044_openapi_users_add_cond_resp_str_instance.to_dict() +# create an instance of V0044OpenapiUsersAddCondRespStr from a dict +v0044_openapi_users_add_cond_resp_str_from_dict = V0044OpenapiUsersAddCondRespStr.from_dict(v0044_openapi_users_add_cond_resp_str_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiUsersResp.md b/docs/V0044OpenapiUsersResp.md new file mode 100644 index 0000000..1f413ba --- /dev/null +++ b/docs/V0044OpenapiUsersResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiUsersResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V0044User]**](V0044User.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiUsersResp from a JSON string +v0044_openapi_users_resp_instance = V0044OpenapiUsersResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiUsersResp.to_json()) + +# convert the object into a dict +v0044_openapi_users_resp_dict = v0044_openapi_users_resp_instance.to_dict() +# create an instance of V0044OpenapiUsersResp from a dict +v0044_openapi_users_resp_from_dict = V0044OpenapiUsersResp.from_dict(v0044_openapi_users_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiWarning.md b/docs/V0044OpenapiWarning.md new file mode 100644 index 0000000..db8b000 --- /dev/null +++ b/docs/V0044OpenapiWarning.md @@ -0,0 +1,30 @@ +# V0044OpenapiWarning + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Long form warning description | [optional] +**source** | **str** | Source of warning or where warning was first detected | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiWarning from a JSON string +v0044_openapi_warning_instance = V0044OpenapiWarning.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiWarning.to_json()) + +# convert the object into a dict +v0044_openapi_warning_dict = v0044_openapi_warning_instance.to_dict() +# create an instance of V0044OpenapiWarning from a dict +v0044_openapi_warning_from_dict = V0044OpenapiWarning.from_dict(v0044_openapi_warning_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiWckeyRemovedResp.md b/docs/V0044OpenapiWckeyRemovedResp.md new file mode 100644 index 0000000..16d950a --- /dev/null +++ b/docs/V0044OpenapiWckeyRemovedResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiWckeyRemovedResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted_wckeys** | **List[str]** | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_wckey_removed_resp import V0044OpenapiWckeyRemovedResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiWckeyRemovedResp from a JSON string +v0044_openapi_wckey_removed_resp_instance = V0044OpenapiWckeyRemovedResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiWckeyRemovedResp.to_json()) + +# convert the object into a dict +v0044_openapi_wckey_removed_resp_dict = v0044_openapi_wckey_removed_resp_instance.to_dict() +# create an instance of V0044OpenapiWckeyRemovedResp from a dict +v0044_openapi_wckey_removed_resp_from_dict = V0044OpenapiWckeyRemovedResp.from_dict(v0044_openapi_wckey_removed_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044OpenapiWckeyResp.md b/docs/V0044OpenapiWckeyResp.md new file mode 100644 index 0000000..ef836ad --- /dev/null +++ b/docs/V0044OpenapiWckeyResp.md @@ -0,0 +1,32 @@ +# V0044OpenapiWckeyResp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckeys** | [**List[V0044Wckey]**](V0044Wckey.md) | | +**meta** | [**V0044OpenapiMeta**](V0044OpenapiMeta.md) | | [optional] +**errors** | [**List[V0044OpenapiError]**](V0044OpenapiError.md) | | [optional] +**warnings** | [**List[V0044OpenapiWarning]**](V0044OpenapiWarning.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044OpenapiWckeyResp from a JSON string +v0044_openapi_wckey_resp_instance = V0044OpenapiWckeyResp.from_json(json) +# print the JSON string representation of the object +print(V0044OpenapiWckeyResp.to_json()) + +# convert the object into a dict +v0044_openapi_wckey_resp_dict = v0044_openapi_wckey_resp_instance.to_dict() +# create an instance of V0044OpenapiWckeyResp from a dict +v0044_openapi_wckey_resp_from_dict = V0044OpenapiWckeyResp.from_dict(v0044_openapi_wckey_resp_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartPrio.md b/docs/V0044PartPrio.md new file mode 100644 index 0000000..a639d0f --- /dev/null +++ b/docs/V0044PartPrio.md @@ -0,0 +1,30 @@ +# V0044PartPrio + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**partition** | **str** | Partition name | [optional] +**priority** | **int** | Prospective job priority if it runs in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_part_prio import V0044PartPrio + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartPrio from a JSON string +v0044_part_prio_instance = V0044PartPrio.from_json(json) +# print the JSON string representation of the object +print(V0044PartPrio.to_json()) + +# convert the object into a dict +v0044_part_prio_dict = v0044_part_prio_instance.to_dict() +# create an instance of V0044PartPrio from a dict +v0044_part_prio_from_dict = V0044PartPrio.from_dict(v0044_part_prio_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfo.md b/docs/V0044PartitionInfo.md new file mode 100644 index 0000000..2efcf73 --- /dev/null +++ b/docs/V0044PartitionInfo.md @@ -0,0 +1,48 @@ +# V0044PartitionInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**V0044PartitionInfoNodes**](V0044PartitionInfoNodes.md) | | [optional] +**accounts** | [**V0044PartitionInfoAccounts**](V0044PartitionInfoAccounts.md) | | [optional] +**groups** | [**V0044PartitionInfoGroups**](V0044PartitionInfoGroups.md) | | [optional] +**qos** | [**V0044PartitionInfoQos**](V0044PartitionInfoQos.md) | | [optional] +**alternate** | **str** | Alternate - Partition name of alternate partition to be used if the state of this partition is DRAIN or INACTIVE | [optional] +**tres** | [**V0044PartitionInfoTres**](V0044PartitionInfoTres.md) | | [optional] +**cluster** | **str** | Cluster name | [optional] +**select_type** | **List[str]** | Scheduler consumable resource selection type | [optional] +**cpus** | [**V0044PartitionInfoCpus**](V0044PartitionInfoCpus.md) | | [optional] +**defaults** | [**V0044PartitionInfoDefaults**](V0044PartitionInfoDefaults.md) | | [optional] +**grace_time** | **int** | GraceTime - Grace time in seconds to be extended to a job which has been selected for preemption | [optional] +**maximums** | [**V0044PartitionInfoMaximums**](V0044PartitionInfoMaximums.md) | | [optional] +**minimums** | [**V0044PartitionInfoMinimums**](V0044PartitionInfoMinimums.md) | | [optional] +**name** | **str** | PartitionName - Name by which the partition may be referenced | [optional] +**node_sets** | **str** | NodeSets - Comma-separated list of nodesets which are associated with this partition | [optional] +**priority** | [**V0044PartitionInfoPriority**](V0044PartitionInfoPriority.md) | | [optional] +**timeouts** | [**V0044PartitionInfoTimeouts**](V0044PartitionInfoTimeouts.md) | | [optional] +**topology** | **str** | Topology - Name of the topology, defined in topology.yaml, used by jobs in this partition | [optional] +**partition** | [**V0041OpenapiPartitionRespPartitionsInnerPartition**](V0041OpenapiPartitionRespPartitionsInnerPartition.md) | | [optional] +**suspend_time** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info import V0044PartitionInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfo from a JSON string +v0044_partition_info_instance = V0044PartitionInfo.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfo.to_json()) + +# convert the object into a dict +v0044_partition_info_dict = v0044_partition_info_instance.to_dict() +# create an instance of V0044PartitionInfo from a dict +v0044_partition_info_from_dict = V0044PartitionInfo.from_dict(v0044_partition_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoAccounts.md b/docs/V0044PartitionInfoAccounts.md new file mode 100644 index 0000000..8beb0c4 --- /dev/null +++ b/docs/V0044PartitionInfoAccounts.md @@ -0,0 +1,30 @@ +# V0044PartitionInfoAccounts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **str** | AllowAccounts - Comma-separated list of accounts which may execute jobs in the partition | [optional] +**deny** | **str** | DenyAccounts - Comma-separated list of accounts which may not execute jobs in the partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_accounts import V0044PartitionInfoAccounts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoAccounts from a JSON string +v0044_partition_info_accounts_instance = V0044PartitionInfoAccounts.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoAccounts.to_json()) + +# convert the object into a dict +v0044_partition_info_accounts_dict = v0044_partition_info_accounts_instance.to_dict() +# create an instance of V0044PartitionInfoAccounts from a dict +v0044_partition_info_accounts_from_dict = V0044PartitionInfoAccounts.from_dict(v0044_partition_info_accounts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoCpus.md b/docs/V0044PartitionInfoCpus.md new file mode 100644 index 0000000..c19f9a4 --- /dev/null +++ b/docs/V0044PartitionInfoCpus.md @@ -0,0 +1,30 @@ +# V0044PartitionInfoCpus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_binding** | **int** | CpuBind - Default method controlling how tasks are bound to allocated resources | [optional] +**total** | **int** | TotalCPUs - Number of CPUs available in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_cpus import V0044PartitionInfoCpus + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoCpus from a JSON string +v0044_partition_info_cpus_instance = V0044PartitionInfoCpus.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoCpus.to_json()) + +# convert the object into a dict +v0044_partition_info_cpus_dict = v0044_partition_info_cpus_instance.to_dict() +# create an instance of V0044PartitionInfoCpus from a dict +v0044_partition_info_cpus_from_dict = V0044PartitionInfoCpus.from_dict(v0044_partition_info_cpus_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoDefaults.md b/docs/V0044PartitionInfoDefaults.md new file mode 100644 index 0000000..60e23e1 --- /dev/null +++ b/docs/V0044PartitionInfoDefaults.md @@ -0,0 +1,33 @@ +# V0044PartitionInfoDefaults + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memory_per_cpu** | **int** | Raw value for DefMemPerCPU or DefMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**partition_memory_per_node** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**time** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**job** | **str** | JobDefaults - Comma-separated list of job default values (this field is only used to set new defaults) | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_defaults import V0044PartitionInfoDefaults + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoDefaults from a JSON string +v0044_partition_info_defaults_instance = V0044PartitionInfoDefaults.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoDefaults.to_json()) + +# convert the object into a dict +v0044_partition_info_defaults_dict = v0044_partition_info_defaults_instance.to_dict() +# create an instance of V0044PartitionInfoDefaults from a dict +v0044_partition_info_defaults_from_dict = V0044PartitionInfoDefaults.from_dict(v0044_partition_info_defaults_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoGroups.md b/docs/V0044PartitionInfoGroups.md new file mode 100644 index 0000000..651a192 --- /dev/null +++ b/docs/V0044PartitionInfoGroups.md @@ -0,0 +1,29 @@ +# V0044PartitionInfoGroups + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **str** | AllowGroups - Comma-separated list of group names which may execute jobs in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_groups import V0044PartitionInfoGroups + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoGroups from a JSON string +v0044_partition_info_groups_instance = V0044PartitionInfoGroups.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoGroups.to_json()) + +# convert the object into a dict +v0044_partition_info_groups_dict = v0044_partition_info_groups_instance.to_dict() +# create an instance of V0044PartitionInfoGroups from a dict +v0044_partition_info_groups_from_dict = V0044PartitionInfoGroups.from_dict(v0044_partition_info_groups_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoMaximums.md b/docs/V0044PartitionInfoMaximums.md new file mode 100644 index 0000000..6f4184d --- /dev/null +++ b/docs/V0044PartitionInfoMaximums.md @@ -0,0 +1,38 @@ +# V0044PartitionInfoMaximums + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpus_per_node** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**cpus_per_socket** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**memory_per_cpu** | **int** | Raw value for MaxMemPerCPU or MaxMemPerNode | [optional] +**partition_memory_per_cpu** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**partition_memory_per_node** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**nodes** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**shares** | **int** | OverSubscribe - Controls the ability of the partition to execute more than one job at a time on each resource | [optional] +**oversubscribe** | [**V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe**](V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.md) | | [optional] +**time** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**over_time_limit** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_maximums import V0044PartitionInfoMaximums + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoMaximums from a JSON string +v0044_partition_info_maximums_instance = V0044PartitionInfoMaximums.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoMaximums.to_json()) + +# convert the object into a dict +v0044_partition_info_maximums_dict = v0044_partition_info_maximums_instance.to_dict() +# create an instance of V0044PartitionInfoMaximums from a dict +v0044_partition_info_maximums_from_dict = V0044PartitionInfoMaximums.from_dict(v0044_partition_info_maximums_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoMinimums.md b/docs/V0044PartitionInfoMinimums.md new file mode 100644 index 0000000..33af36b --- /dev/null +++ b/docs/V0044PartitionInfoMinimums.md @@ -0,0 +1,29 @@ +# V0044PartitionInfoMinimums + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | **int** | MinNodes - Minimum count of nodes which may be allocated to any single job | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_minimums import V0044PartitionInfoMinimums + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoMinimums from a JSON string +v0044_partition_info_minimums_instance = V0044PartitionInfoMinimums.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoMinimums.to_json()) + +# convert the object into a dict +v0044_partition_info_minimums_dict = v0044_partition_info_minimums_instance.to_dict() +# create an instance of V0044PartitionInfoMinimums from a dict +v0044_partition_info_minimums_from_dict = V0044PartitionInfoMinimums.from_dict(v0044_partition_info_minimums_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoNodes.md b/docs/V0044PartitionInfoNodes.md new file mode 100644 index 0000000..ceea7a1 --- /dev/null +++ b/docs/V0044PartitionInfoNodes.md @@ -0,0 +1,31 @@ +# V0044PartitionInfoNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_allocation** | **str** | AllocNodes - Comma-separated list of nodes from which users can submit jobs in the partition | [optional] +**configured** | **str** | Nodes - Comma-separated list of nodes which are associated with this partition | [optional] +**total** | **int** | TotalNodes - Number of nodes available in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_nodes import V0044PartitionInfoNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoNodes from a JSON string +v0044_partition_info_nodes_instance = V0044PartitionInfoNodes.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoNodes.to_json()) + +# convert the object into a dict +v0044_partition_info_nodes_dict = v0044_partition_info_nodes_instance.to_dict() +# create an instance of V0044PartitionInfoNodes from a dict +v0044_partition_info_nodes_from_dict = V0044PartitionInfoNodes.from_dict(v0044_partition_info_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoPriority.md b/docs/V0044PartitionInfoPriority.md new file mode 100644 index 0000000..31c3f68 --- /dev/null +++ b/docs/V0044PartitionInfoPriority.md @@ -0,0 +1,30 @@ +# V0044PartitionInfoPriority + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_factor** | **int** | PriorityJobFactor - Partition factor used by priority/multifactor plugin in calculating job priority | [optional] +**tier** | **int** | PriorityTier - Controls the order in which the scheduler evaluates jobs from different partitions | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_priority import V0044PartitionInfoPriority + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoPriority from a JSON string +v0044_partition_info_priority_instance = V0044PartitionInfoPriority.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoPriority.to_json()) + +# convert the object into a dict +v0044_partition_info_priority_dict = v0044_partition_info_priority_instance.to_dict() +# create an instance of V0044PartitionInfoPriority from a dict +v0044_partition_info_priority_from_dict = V0044PartitionInfoPriority.from_dict(v0044_partition_info_priority_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoQos.md b/docs/V0044PartitionInfoQos.md new file mode 100644 index 0000000..df3ce66 --- /dev/null +++ b/docs/V0044PartitionInfoQos.md @@ -0,0 +1,31 @@ +# V0044PartitionInfoQos + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **str** | AllowQOS - Comma-separated list of Qos which may execute jobs in the partition | [optional] +**deny** | **str** | DenyQOS - Comma-separated list of Qos which may not execute jobs in the partition | [optional] +**assigned** | **str** | QOS - QOS name containing limits that will apply to all jobs in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_qos import V0044PartitionInfoQos + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoQos from a JSON string +v0044_partition_info_qos_instance = V0044PartitionInfoQos.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoQos.to_json()) + +# convert the object into a dict +v0044_partition_info_qos_dict = v0044_partition_info_qos_instance.to_dict() +# create an instance of V0044PartitionInfoQos from a dict +v0044_partition_info_qos_from_dict = V0044PartitionInfoQos.from_dict(v0044_partition_info_qos_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoTimeouts.md b/docs/V0044PartitionInfoTimeouts.md new file mode 100644 index 0000000..4341dce --- /dev/null +++ b/docs/V0044PartitionInfoTimeouts.md @@ -0,0 +1,30 @@ +# V0044PartitionInfoTimeouts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**suspend** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_timeouts import V0044PartitionInfoTimeouts + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoTimeouts from a JSON string +v0044_partition_info_timeouts_instance = V0044PartitionInfoTimeouts.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoTimeouts.to_json()) + +# convert the object into a dict +v0044_partition_info_timeouts_dict = v0044_partition_info_timeouts_instance.to_dict() +# create an instance of V0044PartitionInfoTimeouts from a dict +v0044_partition_info_timeouts_from_dict = V0044PartitionInfoTimeouts.from_dict(v0044_partition_info_timeouts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044PartitionInfoTres.md b/docs/V0044PartitionInfoTres.md new file mode 100644 index 0000000..6b0ad37 --- /dev/null +++ b/docs/V0044PartitionInfoTres.md @@ -0,0 +1,30 @@ +# V0044PartitionInfoTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billing_weights** | **str** | TRESBillingWeights - Billing weights of each tracked TRES type that will be used in calculating the usage of a job | [optional] +**configured** | **str** | TRES - Number of each applicable TRES type available in this partition | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_partition_info_tres import V0044PartitionInfoTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044PartitionInfoTres from a JSON string +v0044_partition_info_tres_instance = V0044PartitionInfoTres.from_json(json) +# print the JSON string representation of the object +print(V0044PartitionInfoTres.to_json()) + +# convert the object into a dict +v0044_partition_info_tres_dict = v0044_partition_info_tres_instance.to_dict() +# create an instance of V0044PartitionInfoTres from a dict +v0044_partition_info_tres_from_dict = V0044PartitionInfoTres.from_dict(v0044_partition_info_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ProcessExitCodeVerbose.md b/docs/V0044ProcessExitCodeVerbose.md new file mode 100644 index 0000000..12a69a2 --- /dev/null +++ b/docs/V0044ProcessExitCodeVerbose.md @@ -0,0 +1,31 @@ +# V0044ProcessExitCodeVerbose + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **List[str]** | Status given by return code | [optional] +**return_code** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**signal** | [**V0044ProcessExitCodeVerboseSignal**](V0044ProcessExitCodeVerboseSignal.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ProcessExitCodeVerbose from a JSON string +v0044_process_exit_code_verbose_instance = V0044ProcessExitCodeVerbose.from_json(json) +# print the JSON string representation of the object +print(V0044ProcessExitCodeVerbose.to_json()) + +# convert the object into a dict +v0044_process_exit_code_verbose_dict = v0044_process_exit_code_verbose_instance.to_dict() +# create an instance of V0044ProcessExitCodeVerbose from a dict +v0044_process_exit_code_verbose_from_dict = V0044ProcessExitCodeVerbose.from_dict(v0044_process_exit_code_verbose_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ProcessExitCodeVerboseSignal.md b/docs/V0044ProcessExitCodeVerboseSignal.md new file mode 100644 index 0000000..a508603 --- /dev/null +++ b/docs/V0044ProcessExitCodeVerboseSignal.md @@ -0,0 +1,30 @@ +# V0044ProcessExitCodeVerboseSignal + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**V0044Uint16NoValStruct**](V0044Uint16NoValStruct.md) | | [optional] +**name** | **str** | Signal sent to process (name) | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_process_exit_code_verbose_signal import V0044ProcessExitCodeVerboseSignal + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ProcessExitCodeVerboseSignal from a JSON string +v0044_process_exit_code_verbose_signal_instance = V0044ProcessExitCodeVerboseSignal.from_json(json) +# print the JSON string representation of the object +print(V0044ProcessExitCodeVerboseSignal.to_json()) + +# convert the object into a dict +v0044_process_exit_code_verbose_signal_dict = v0044_process_exit_code_verbose_signal_instance.to_dict() +# create an instance of V0044ProcessExitCodeVerboseSignal from a dict +v0044_process_exit_code_verbose_signal_from_dict = V0044ProcessExitCodeVerboseSignal.from_dict(v0044_process_exit_code_verbose_signal_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Qos.md b/docs/V0044Qos.md new file mode 100644 index 0000000..c960a99 --- /dev/null +++ b/docs/V0044Qos.md @@ -0,0 +1,37 @@ +# V0044Qos + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Arbitrary description | [optional] +**flags** | **List[str]** | Flags, to avoid modifying current values specify NOT_SET | [optional] +**id** | **int** | Unique ID | [optional] +**limits** | [**V0044QosLimits**](V0044QosLimits.md) | | [optional] +**name** | **str** | Name | [optional] +**preempt** | [**V0044QosPreempt**](V0044QosPreempt.md) | | [optional] +**priority** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**usage_factor** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] +**usage_threshold** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos import V0044Qos + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Qos from a JSON string +v0044_qos_instance = V0044Qos.from_json(json) +# print the JSON string representation of the object +print(V0044Qos.to_json()) + +# convert the object into a dict +v0044_qos_dict = v0044_qos_instance.to_dict() +# create an instance of V0044Qos from a dict +v0044_qos_from_dict = V0044Qos.from_dict(v0044_qos_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimits.md b/docs/V0044QosLimits.md new file mode 100644 index 0000000..cb2e55d --- /dev/null +++ b/docs/V0044QosLimits.md @@ -0,0 +1,32 @@ +# V0044QosLimits + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grace_time** | **int** | GraceTime - Preemption grace time in seconds to be extended to a job which has been selected for preemption | [optional] +**max** | [**V0044QosLimitsMax**](V0044QosLimitsMax.md) | | [optional] +**factor** | [**V0044Float64NoValStruct**](V0044Float64NoValStruct.md) | | [optional] +**min** | [**V0044QosLimitsMin**](V0044QosLimitsMin.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits import V0044QosLimits + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimits from a JSON string +v0044_qos_limits_instance = V0044QosLimits.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimits.to_json()) + +# convert the object into a dict +v0044_qos_limits_dict = v0044_qos_limits_instance.to_dict() +# create an instance of V0044QosLimits from a dict +v0044_qos_limits_from_dict = V0044QosLimits.from_dict(v0044_qos_limits_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMax.md b/docs/V0044QosLimitsMax.md new file mode 100644 index 0000000..03dd86d --- /dev/null +++ b/docs/V0044QosLimitsMax.md @@ -0,0 +1,33 @@ +# V0044QosLimitsMax + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_jobs** | [**V0044QosLimitsMaxActiveJobs**](V0044QosLimitsMaxActiveJobs.md) | | [optional] +**jobs** | [**V0044QosLimitsMaxJobs**](V0044QosLimitsMaxJobs.md) | | [optional] +**tres** | [**V0044QosLimitsMaxTres**](V0044QosLimitsMaxTres.md) | | [optional] +**wall_clock** | [**V0044QosLimitsMaxWallClock**](V0044QosLimitsMaxWallClock.md) | | [optional] +**accruing** | [**V0044QosLimitsMaxJobsActiveJobs**](V0044QosLimitsMaxJobsActiveJobs.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max import V0044QosLimitsMax + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMax from a JSON string +v0044_qos_limits_max_instance = V0044QosLimitsMax.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMax.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_dict = v0044_qos_limits_max_instance.to_dict() +# create an instance of V0044QosLimitsMax from a dict +v0044_qos_limits_max_from_dict = V0044QosLimitsMax.from_dict(v0044_qos_limits_max_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxActiveJobs.md b/docs/V0044QosLimitsMaxActiveJobs.md new file mode 100644 index 0000000..d6188d7 --- /dev/null +++ b/docs/V0044QosLimitsMaxActiveJobs.md @@ -0,0 +1,30 @@ +# V0044QosLimitsMaxActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accruing** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**count** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_active_jobs import V0044QosLimitsMaxActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxActiveJobs from a JSON string +v0044_qos_limits_max_active_jobs_instance = V0044QosLimitsMaxActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxActiveJobs.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_active_jobs_dict = v0044_qos_limits_max_active_jobs_instance.to_dict() +# create an instance of V0044QosLimitsMaxActiveJobs from a dict +v0044_qos_limits_max_active_jobs_from_dict = V0044QosLimitsMaxActiveJobs.from_dict(v0044_qos_limits_max_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxJobs.md b/docs/V0044QosLimitsMaxJobs.md new file mode 100644 index 0000000..f42b7e3 --- /dev/null +++ b/docs/V0044QosLimitsMaxJobs.md @@ -0,0 +1,31 @@ +# V0044QosLimitsMaxJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**active_jobs** | [**V0044QosLimitsMaxJobsActiveJobs**](V0044QosLimitsMaxJobsActiveJobs.md) | | [optional] +**per** | [**V0044QosLimitsMaxJobsActiveJobsPer**](V0044QosLimitsMaxJobsActiveJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_jobs import V0044QosLimitsMaxJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxJobs from a JSON string +v0044_qos_limits_max_jobs_instance = V0044QosLimitsMaxJobs.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxJobs.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_jobs_dict = v0044_qos_limits_max_jobs_instance.to_dict() +# create an instance of V0044QosLimitsMaxJobs from a dict +v0044_qos_limits_max_jobs_from_dict = V0044QosLimitsMaxJobs.from_dict(v0044_qos_limits_max_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxJobsActiveJobs.md b/docs/V0044QosLimitsMaxJobsActiveJobs.md new file mode 100644 index 0000000..ff83b26 --- /dev/null +++ b/docs/V0044QosLimitsMaxJobsActiveJobs.md @@ -0,0 +1,29 @@ +# V0044QosLimitsMaxJobsActiveJobs + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0044QosLimitsMaxJobsActiveJobsPer**](V0044QosLimitsMaxJobsActiveJobsPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs import V0044QosLimitsMaxJobsActiveJobs + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxJobsActiveJobs from a JSON string +v0044_qos_limits_max_jobs_active_jobs_instance = V0044QosLimitsMaxJobsActiveJobs.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxJobsActiveJobs.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_jobs_active_jobs_dict = v0044_qos_limits_max_jobs_active_jobs_instance.to_dict() +# create an instance of V0044QosLimitsMaxJobsActiveJobs from a dict +v0044_qos_limits_max_jobs_active_jobs_from_dict = V0044QosLimitsMaxJobsActiveJobs.from_dict(v0044_qos_limits_max_jobs_active_jobs_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxJobsActiveJobsPer.md b/docs/V0044QosLimitsMaxJobsActiveJobsPer.md new file mode 100644 index 0000000..35fa8ab --- /dev/null +++ b/docs/V0044QosLimitsMaxJobsActiveJobsPer.md @@ -0,0 +1,30 @@ +# V0044QosLimitsMaxJobsActiveJobsPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**user** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs_per import V0044QosLimitsMaxJobsActiveJobsPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxJobsActiveJobsPer from a JSON string +v0044_qos_limits_max_jobs_active_jobs_per_instance = V0044QosLimitsMaxJobsActiveJobsPer.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxJobsActiveJobsPer.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_jobs_active_jobs_per_dict = v0044_qos_limits_max_jobs_active_jobs_per_instance.to_dict() +# create an instance of V0044QosLimitsMaxJobsActiveJobsPer from a dict +v0044_qos_limits_max_jobs_active_jobs_per_from_dict = V0044QosLimitsMaxJobsActiveJobsPer.from_dict(v0044_qos_limits_max_jobs_active_jobs_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxTres.md b/docs/V0044QosLimitsMaxTres.md new file mode 100644 index 0000000..a288c8b --- /dev/null +++ b/docs/V0044QosLimitsMaxTres.md @@ -0,0 +1,31 @@ +# V0044QosLimitsMaxTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**minutes** | [**V0044QosLimitsMaxTresMinutes**](V0044QosLimitsMaxTresMinutes.md) | | [optional] +**per** | [**V0044QosLimitsMaxTresPer**](V0044QosLimitsMaxTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_tres import V0044QosLimitsMaxTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxTres from a JSON string +v0044_qos_limits_max_tres_instance = V0044QosLimitsMaxTres.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxTres.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_tres_dict = v0044_qos_limits_max_tres_instance.to_dict() +# create an instance of V0044QosLimitsMaxTres from a dict +v0044_qos_limits_max_tres_from_dict = V0044QosLimitsMaxTres.from_dict(v0044_qos_limits_max_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxTresMinutes.md b/docs/V0044QosLimitsMaxTresMinutes.md new file mode 100644 index 0000000..41d398b --- /dev/null +++ b/docs/V0044QosLimitsMaxTresMinutes.md @@ -0,0 +1,30 @@ +# V0044QosLimitsMaxTresMinutes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**per** | [**V0044QosLimitsMaxTresMinutesPer**](V0044QosLimitsMaxTresMinutesPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes import V0044QosLimitsMaxTresMinutes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxTresMinutes from a JSON string +v0044_qos_limits_max_tres_minutes_instance = V0044QosLimitsMaxTresMinutes.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxTresMinutes.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_tres_minutes_dict = v0044_qos_limits_max_tres_minutes_instance.to_dict() +# create an instance of V0044QosLimitsMaxTresMinutes from a dict +v0044_qos_limits_max_tres_minutes_from_dict = V0044QosLimitsMaxTresMinutes.from_dict(v0044_qos_limits_max_tres_minutes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxTresMinutesPer.md b/docs/V0044QosLimitsMaxTresMinutesPer.md new file mode 100644 index 0000000..6757729 --- /dev/null +++ b/docs/V0044QosLimitsMaxTresMinutesPer.md @@ -0,0 +1,32 @@ +# V0044QosLimitsMaxTresMinutesPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**job** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**account** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**user** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes_per import V0044QosLimitsMaxTresMinutesPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxTresMinutesPer from a JSON string +v0044_qos_limits_max_tres_minutes_per_instance = V0044QosLimitsMaxTresMinutesPer.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxTresMinutesPer.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_tres_minutes_per_dict = v0044_qos_limits_max_tres_minutes_per_instance.to_dict() +# create an instance of V0044QosLimitsMaxTresMinutesPer from a dict +v0044_qos_limits_max_tres_minutes_per_from_dict = V0044QosLimitsMaxTresMinutesPer.from_dict(v0044_qos_limits_max_tres_minutes_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxTresPer.md b/docs/V0044QosLimitsMaxTresPer.md new file mode 100644 index 0000000..efe4d63 --- /dev/null +++ b/docs/V0044QosLimitsMaxTresPer.md @@ -0,0 +1,32 @@ +# V0044QosLimitsMaxTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**job** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**node** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**user** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_tres_per import V0044QosLimitsMaxTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxTresPer from a JSON string +v0044_qos_limits_max_tres_per_instance = V0044QosLimitsMaxTresPer.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxTresPer.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_tres_per_dict = v0044_qos_limits_max_tres_per_instance.to_dict() +# create an instance of V0044QosLimitsMaxTresPer from a dict +v0044_qos_limits_max_tres_per_from_dict = V0044QosLimitsMaxTresPer.from_dict(v0044_qos_limits_max_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxWallClock.md b/docs/V0044QosLimitsMaxWallClock.md new file mode 100644 index 0000000..1c934ad --- /dev/null +++ b/docs/V0044QosLimitsMaxWallClock.md @@ -0,0 +1,29 @@ +# V0044QosLimitsMaxWallClock + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0044QosLimitsMaxWallClockPer**](V0044QosLimitsMaxWallClockPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_wall_clock import V0044QosLimitsMaxWallClock + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxWallClock from a JSON string +v0044_qos_limits_max_wall_clock_instance = V0044QosLimitsMaxWallClock.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxWallClock.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_wall_clock_dict = v0044_qos_limits_max_wall_clock_instance.to_dict() +# create an instance of V0044QosLimitsMaxWallClock from a dict +v0044_qos_limits_max_wall_clock_from_dict = V0044QosLimitsMaxWallClock.from_dict(v0044_qos_limits_max_wall_clock_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMaxWallClockPer.md b/docs/V0044QosLimitsMaxWallClockPer.md new file mode 100644 index 0000000..af57cb5 --- /dev/null +++ b/docs/V0044QosLimitsMaxWallClockPer.md @@ -0,0 +1,30 @@ +# V0044QosLimitsMaxWallClockPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**job** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_max_wall_clock_per import V0044QosLimitsMaxWallClockPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMaxWallClockPer from a JSON string +v0044_qos_limits_max_wall_clock_per_instance = V0044QosLimitsMaxWallClockPer.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMaxWallClockPer.to_json()) + +# convert the object into a dict +v0044_qos_limits_max_wall_clock_per_dict = v0044_qos_limits_max_wall_clock_per_instance.to_dict() +# create an instance of V0044QosLimitsMaxWallClockPer from a dict +v0044_qos_limits_max_wall_clock_per_from_dict = V0044QosLimitsMaxWallClockPer.from_dict(v0044_qos_limits_max_wall_clock_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMin.md b/docs/V0044QosLimitsMin.md new file mode 100644 index 0000000..36f71d0 --- /dev/null +++ b/docs/V0044QosLimitsMin.md @@ -0,0 +1,30 @@ +# V0044QosLimitsMin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priority_threshold** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**tres** | [**V0044QosLimitsMinTres**](V0044QosLimitsMinTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_min import V0044QosLimitsMin + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMin from a JSON string +v0044_qos_limits_min_instance = V0044QosLimitsMin.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMin.to_json()) + +# convert the object into a dict +v0044_qos_limits_min_dict = v0044_qos_limits_min_instance.to_dict() +# create an instance of V0044QosLimitsMin from a dict +v0044_qos_limits_min_from_dict = V0044QosLimitsMin.from_dict(v0044_qos_limits_min_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMinTres.md b/docs/V0044QosLimitsMinTres.md new file mode 100644 index 0000000..b47e31e --- /dev/null +++ b/docs/V0044QosLimitsMinTres.md @@ -0,0 +1,29 @@ +# V0044QosLimitsMinTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**per** | [**V0044QosLimitsMinTresPer**](V0044QosLimitsMinTresPer.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_min_tres import V0044QosLimitsMinTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMinTres from a JSON string +v0044_qos_limits_min_tres_instance = V0044QosLimitsMinTres.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMinTres.to_json()) + +# convert the object into a dict +v0044_qos_limits_min_tres_dict = v0044_qos_limits_min_tres_instance.to_dict() +# create an instance of V0044QosLimitsMinTres from a dict +v0044_qos_limits_min_tres_from_dict = V0044QosLimitsMinTres.from_dict(v0044_qos_limits_min_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosLimitsMinTresPer.md b/docs/V0044QosLimitsMinTresPer.md new file mode 100644 index 0000000..6958e2d --- /dev/null +++ b/docs/V0044QosLimitsMinTresPer.md @@ -0,0 +1,29 @@ +# V0044QosLimitsMinTresPer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_limits_min_tres_per import V0044QosLimitsMinTresPer + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosLimitsMinTresPer from a JSON string +v0044_qos_limits_min_tres_per_instance = V0044QosLimitsMinTresPer.from_json(json) +# print the JSON string representation of the object +print(V0044QosLimitsMinTresPer.to_json()) + +# convert the object into a dict +v0044_qos_limits_min_tres_per_dict = v0044_qos_limits_min_tres_per_instance.to_dict() +# create an instance of V0044QosLimitsMinTresPer from a dict +v0044_qos_limits_min_tres_per_from_dict = V0044QosLimitsMinTresPer.from_dict(v0044_qos_limits_min_tres_per_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044QosPreempt.md b/docs/V0044QosPreempt.md new file mode 100644 index 0000000..45706ad --- /dev/null +++ b/docs/V0044QosPreempt.md @@ -0,0 +1,31 @@ +# V0044QosPreempt + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**list** | **List[str]** | | [optional] +**mode** | **List[str]** | PreemptMode - Mechanism used to preempt jobs or enable gang scheduling | [optional] +**exempt_time** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_qos_preempt import V0044QosPreempt + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044QosPreempt from a JSON string +v0044_qos_preempt_instance = V0044QosPreempt.from_json(json) +# print the JSON string representation of the object +print(V0044QosPreempt.to_json()) + +# convert the object into a dict +v0044_qos_preempt_dict = v0044_qos_preempt_instance.to_dict() +# create an instance of V0044QosPreempt from a dict +v0044_qos_preempt_from_dict = V0044QosPreempt.from_dict(v0044_qos_preempt_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ReservationCoreSpec.md b/docs/V0044ReservationCoreSpec.md new file mode 100644 index 0000000..1a95115 --- /dev/null +++ b/docs/V0044ReservationCoreSpec.md @@ -0,0 +1,30 @@ +# V0044ReservationCoreSpec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node** | **str** | Name of reserved node | [optional] +**core** | **str** | IDs of reserved cores | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_reservation_core_spec import V0044ReservationCoreSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ReservationCoreSpec from a JSON string +v0044_reservation_core_spec_instance = V0044ReservationCoreSpec.from_json(json) +# print the JSON string representation of the object +print(V0044ReservationCoreSpec.to_json()) + +# convert the object into a dict +v0044_reservation_core_spec_dict = v0044_reservation_core_spec_instance.to_dict() +# create an instance of V0044ReservationCoreSpec from a dict +v0044_reservation_core_spec_from_dict = V0044ReservationCoreSpec.from_dict(v0044_reservation_core_spec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ReservationDescMsg.md b/docs/V0044ReservationDescMsg.md new file mode 100644 index 0000000..9a12a4d --- /dev/null +++ b/docs/V0044ReservationDescMsg.md @@ -0,0 +1,47 @@ +# V0044ReservationDescMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | [optional] +**burst_buffer** | **str** | BurstBuffer | [optional] +**comment** | **str** | Arbitrary string | [optional] +**core_count** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**duration** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**end_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**features** | **str** | Requested node features. Multiple values may be \"&\" separated if all features are required (AND operation) or separated by \"|\" if any of the specified features are required (OR operation). Parenthesis are also supported for features to be ANDed together with counts of nodes having the specified features. | [optional] +**flags** | **List[str]** | Flags associated with this reservation. Note, to remove flags use \"NO_\" prefixed flag excluding NO_HOLD_JOBS_AFTER_END | [optional] +**groups** | **List[str]** | | [optional] +**licenses** | **List[str]** | | [optional] +**max_start_delay** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**name** | **str** | ReservationName | [optional] +**node_count** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**node_list** | **List[str]** | | [optional] +**partition** | **str** | Partition used to reserve nodes from. This will attempt to allocate all nodes in the specified partition unless you request fewer resources than are available with core_cnt, node_cnt or tres. | [optional] +**purge_completed** | [**V0044ReservationInfoPurgeCompleted**](V0044ReservationInfoPurgeCompleted.md) | | [optional] +**start_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**tres** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**users** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ReservationDescMsg from a JSON string +v0044_reservation_desc_msg_instance = V0044ReservationDescMsg.from_json(json) +# print the JSON string representation of the object +print(V0044ReservationDescMsg.to_json()) + +# convert the object into a dict +v0044_reservation_desc_msg_dict = v0044_reservation_desc_msg_instance.to_dict() +# create an instance of V0044ReservationDescMsg from a dict +v0044_reservation_desc_msg_from_dict = V0044ReservationDescMsg.from_dict(v0044_reservation_desc_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ReservationInfo.md b/docs/V0044ReservationInfo.md new file mode 100644 index 0000000..ca6339e --- /dev/null +++ b/docs/V0044ReservationInfo.md @@ -0,0 +1,47 @@ +# V0044ReservationInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **str** | Comma-separated list of permitted accounts | [optional] +**burst_buffer** | **str** | BurstBuffer - Burst buffer resources reserved | [optional] +**core_count** | **int** | CoreCnt - Number of cores reserved | [optional] +**core_specializations** | [**List[V0044ReservationCoreSpec]**](V0044ReservationCoreSpec.md) | | [optional] +**end_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**features** | **str** | Features - Expression describing the reservation's required node features | [optional] +**flags** | **List[str]** | Flags associated with this reservation | [optional] +**groups** | **str** | Groups - Comma-separated list of permitted groups | [optional] +**licenses** | **str** | Licenses - Comma-separated list of licenses reserved | [optional] +**max_start_delay** | **int** | MaxStartDelay - Maximum time an eligible job not requesting this reservation can delay a job requesting it in seconds | [optional] +**name** | **str** | ReservationName - Name of the reservation | [optional] +**node_count** | **int** | NodeCnt - Number of nodes reserved | [optional] +**node_list** | **str** | Nodes - Comma-separated list of node names and/or node ranges reserved | [optional] +**partition** | **str** | PartitionName - Partition used to reserve nodes from | [optional] +**purge_completed** | [**V0044ReservationInfoPurgeCompleted**](V0044ReservationInfoPurgeCompleted.md) | | [optional] +**start_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**watts** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**tres** | **str** | Comma-separated list of required TRES | [optional] +**users** | **str** | Comma-separated list of permitted users | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_reservation_info import V0044ReservationInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ReservationInfo from a JSON string +v0044_reservation_info_instance = V0044ReservationInfo.from_json(json) +# print the JSON string representation of the object +print(V0044ReservationInfo.to_json()) + +# convert the object into a dict +v0044_reservation_info_dict = v0044_reservation_info_instance.to_dict() +# create an instance of V0044ReservationInfo from a dict +v0044_reservation_info_from_dict = V0044ReservationInfo.from_dict(v0044_reservation_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ReservationInfoPurgeCompleted.md b/docs/V0044ReservationInfoPurgeCompleted.md new file mode 100644 index 0000000..f5797a8 --- /dev/null +++ b/docs/V0044ReservationInfoPurgeCompleted.md @@ -0,0 +1,29 @@ +# V0044ReservationInfoPurgeCompleted + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_reservation_info_purge_completed import V0044ReservationInfoPurgeCompleted + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ReservationInfoPurgeCompleted from a JSON string +v0044_reservation_info_purge_completed_instance = V0044ReservationInfoPurgeCompleted.from_json(json) +# print the JSON string representation of the object +print(V0044ReservationInfoPurgeCompleted.to_json()) + +# convert the object into a dict +v0044_reservation_info_purge_completed_dict = v0044_reservation_info_purge_completed_instance.to_dict() +# create an instance of V0044ReservationInfoPurgeCompleted from a dict +v0044_reservation_info_purge_completed_from_dict = V0044ReservationInfoPurgeCompleted.from_dict(v0044_reservation_info_purge_completed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ReservationModReq.md b/docs/V0044ReservationModReq.md new file mode 100644 index 0000000..6c8bd7b --- /dev/null +++ b/docs/V0044ReservationModReq.md @@ -0,0 +1,29 @@ +# V0044ReservationModReq + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservations** | [**List[V0044ReservationDescMsg]**](V0044ReservationDescMsg.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_reservation_mod_req import V0044ReservationModReq + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ReservationModReq from a JSON string +v0044_reservation_mod_req_instance = V0044ReservationModReq.from_json(json) +# print the JSON string representation of the object +print(V0044ReservationModReq.to_json()) + +# convert the object into a dict +v0044_reservation_mod_req_dict = v0044_reservation_mod_req_instance.to_dict() +# create an instance of V0044ReservationModReq from a dict +v0044_reservation_mod_req_from_dict = V0044ReservationModReq.from_dict(v0044_reservation_mod_req_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044RollupStats.md b/docs/V0044RollupStats.md new file mode 100644 index 0000000..5071af4 --- /dev/null +++ b/docs/V0044RollupStats.md @@ -0,0 +1,31 @@ +# V0044RollupStats + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hourly** | [**V0044RollupStatsHourly**](V0044RollupStatsHourly.md) | | [optional] +**daily** | [**V0044RollupStatsDaily**](V0044RollupStatsDaily.md) | | [optional] +**monthly** | [**V0044RollupStatsMonthly**](V0044RollupStatsMonthly.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_rollup_stats import V0044RollupStats + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044RollupStats from a JSON string +v0044_rollup_stats_instance = V0044RollupStats.from_json(json) +# print the JSON string representation of the object +print(V0044RollupStats.to_json()) + +# convert the object into a dict +v0044_rollup_stats_dict = v0044_rollup_stats_instance.to_dict() +# create an instance of V0044RollupStats from a dict +v0044_rollup_stats_from_dict = V0044RollupStats.from_dict(v0044_rollup_stats_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044RollupStatsDaily.md b/docs/V0044RollupStatsDaily.md new file mode 100644 index 0000000..1572326 --- /dev/null +++ b/docs/V0044RollupStatsDaily.md @@ -0,0 +1,31 @@ +# V0044RollupStatsDaily + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of daily rollups since last_run | [optional] +**last_run** | **int** | Last time daily rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**duration** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_rollup_stats_daily import V0044RollupStatsDaily + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044RollupStatsDaily from a JSON string +v0044_rollup_stats_daily_instance = V0044RollupStatsDaily.from_json(json) +# print the JSON string representation of the object +print(V0044RollupStatsDaily.to_json()) + +# convert the object into a dict +v0044_rollup_stats_daily_dict = v0044_rollup_stats_daily_instance.to_dict() +# create an instance of V0044RollupStatsDaily from a dict +v0044_rollup_stats_daily_from_dict = V0044RollupStatsDaily.from_dict(v0044_rollup_stats_daily_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044RollupStatsHourly.md b/docs/V0044RollupStatsHourly.md new file mode 100644 index 0000000..6e2939f --- /dev/null +++ b/docs/V0044RollupStatsHourly.md @@ -0,0 +1,31 @@ +# V0044RollupStatsHourly + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of hourly rollups since last_run | [optional] +**last_run** | **int** | Last time hourly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**duration** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_rollup_stats_hourly import V0044RollupStatsHourly + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044RollupStatsHourly from a JSON string +v0044_rollup_stats_hourly_instance = V0044RollupStatsHourly.from_json(json) +# print the JSON string representation of the object +print(V0044RollupStatsHourly.to_json()) + +# convert the object into a dict +v0044_rollup_stats_hourly_dict = v0044_rollup_stats_hourly_instance.to_dict() +# create an instance of V0044RollupStatsHourly from a dict +v0044_rollup_stats_hourly_from_dict = V0044RollupStatsHourly.from_dict(v0044_rollup_stats_hourly_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044RollupStatsMonthly.md b/docs/V0044RollupStatsMonthly.md new file mode 100644 index 0000000..8c82210 --- /dev/null +++ b/docs/V0044RollupStatsMonthly.md @@ -0,0 +1,31 @@ +# V0044RollupStatsMonthly + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of monthly rollups since last_run | [optional] +**last_run** | **int** | Last time monthly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**duration** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration**](V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_rollup_stats_monthly import V0044RollupStatsMonthly + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044RollupStatsMonthly from a JSON string +v0044_rollup_stats_monthly_instance = V0044RollupStatsMonthly.from_json(json) +# print the JSON string representation of the object +print(V0044RollupStatsMonthly.to_json()) + +# convert the object into a dict +v0044_rollup_stats_monthly_dict = v0044_rollup_stats_monthly_instance.to_dict() +# create an instance of V0044RollupStatsMonthly from a dict +v0044_rollup_stats_monthly_from_dict = V0044RollupStatsMonthly.from_dict(v0044_rollup_stats_monthly_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044ScheduleExitFields.md b/docs/V0044ScheduleExitFields.md new file mode 100644 index 0000000..73a093c --- /dev/null +++ b/docs/V0044ScheduleExitFields.md @@ -0,0 +1,34 @@ +# V0044ScheduleExitFields + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_job_queue** | **int** | Reached end of queue | [optional] +**default_queue_depth** | **int** | Reached number of jobs allowed to be tested | [optional] +**max_job_start** | **int** | Reached number of jobs allowed to start | [optional] +**max_rpc_cnt** | **int** | Reached RPC limit | [optional] +**max_sched_time** | **int** | Reached maximum allowed scheduler time | [optional] +**licenses** | **int** | Blocked on licenses | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_schedule_exit_fields import V0044ScheduleExitFields + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044ScheduleExitFields from a JSON string +v0044_schedule_exit_fields_instance = V0044ScheduleExitFields.from_json(json) +# print the JSON string representation of the object +print(V0044ScheduleExitFields.to_json()) + +# convert the object into a dict +v0044_schedule_exit_fields_dict = v0044_schedule_exit_fields_instance.to_dict() +# create an instance of V0044ScheduleExitFields from a dict +v0044_schedule_exit_fields_from_dict = V0044ScheduleExitFields.from_dict(v0044_schedule_exit_fields_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044SharesFloat128Tres.md b/docs/V0044SharesFloat128Tres.md new file mode 100644 index 0000000..8c4dfb7 --- /dev/null +++ b/docs/V0044SharesFloat128Tres.md @@ -0,0 +1,30 @@ +# V0044SharesFloat128Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | **float** | TRES value | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_shares_float128_tres import V0044SharesFloat128Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044SharesFloat128Tres from a JSON string +v0044_shares_float128_tres_instance = V0044SharesFloat128Tres.from_json(json) +# print the JSON string representation of the object +print(V0044SharesFloat128Tres.to_json()) + +# convert the object into a dict +v0044_shares_float128_tres_dict = v0044_shares_float128_tres_instance.to_dict() +# create an instance of V0044SharesFloat128Tres from a dict +v0044_shares_float128_tres_from_dict = V0044SharesFloat128Tres.from_dict(v0044_shares_float128_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044SharesRespMsg.md b/docs/V0044SharesRespMsg.md new file mode 100644 index 0000000..a039200 --- /dev/null +++ b/docs/V0044SharesRespMsg.md @@ -0,0 +1,30 @@ +# V0044SharesRespMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**List[V0044AssocSharesObjWrap]**](V0044AssocSharesObjWrap.md) | | [optional] +**total_shares** | **int** | Total number of shares | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_shares_resp_msg import V0044SharesRespMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044SharesRespMsg from a JSON string +v0044_shares_resp_msg_instance = V0044SharesRespMsg.from_json(json) +# print the JSON string representation of the object +print(V0044SharesRespMsg.to_json()) + +# convert the object into a dict +v0044_shares_resp_msg_dict = v0044_shares_resp_msg_instance.to_dict() +# create an instance of V0044SharesRespMsg from a dict +v0044_shares_resp_msg_from_dict = V0044SharesRespMsg.from_dict(v0044_shares_resp_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044SharesUint64Tres.md b/docs/V0044SharesUint64Tres.md new file mode 100644 index 0000000..2932840 --- /dev/null +++ b/docs/V0044SharesUint64Tres.md @@ -0,0 +1,30 @@ +# V0044SharesUint64Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | TRES name | [optional] +**value** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_shares_uint64_tres import V0044SharesUint64Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044SharesUint64Tres from a JSON string +v0044_shares_uint64_tres_instance = V0044SharesUint64Tres.from_json(json) +# print the JSON string representation of the object +print(V0044SharesUint64Tres.to_json()) + +# convert the object into a dict +v0044_shares_uint64_tres_dict = v0044_shares_uint64_tres_instance.to_dict() +# create an instance of V0044SharesUint64Tres from a dict +v0044_shares_uint64_tres_from_dict = V0044SharesUint64Tres.from_dict(v0044_shares_uint64_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044SlurmStepId.md b/docs/V0044SlurmStepId.md new file mode 100644 index 0000000..f3b1031 --- /dev/null +++ b/docs/V0044SlurmStepId.md @@ -0,0 +1,32 @@ +# V0044SlurmStepId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sluid** | **str** | SLUID (Slurm Lexicographically-sortable Unique ID) | [optional] +**job_id** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**step_het_component** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**step_id** | **str** | Job step ID | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_slurm_step_id import V0044SlurmStepId + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044SlurmStepId from a JSON string +v0044_slurm_step_id_instance = V0044SlurmStepId.from_json(json) +# print the JSON string representation of the object +print(V0044SlurmStepId.to_json()) + +# convert the object into a dict +v0044_slurm_step_id_dict = v0044_slurm_step_id_instance.to_dict() +# create an instance of V0044SlurmStepId from a dict +v0044_slurm_step_id_from_dict = V0044SlurmStepId.from_dict(v0044_slurm_step_id_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044SlurmdbdPing.md b/docs/V0044SlurmdbdPing.md new file mode 100644 index 0000000..25f7e68 --- /dev/null +++ b/docs/V0044SlurmdbdPing.md @@ -0,0 +1,32 @@ +# V0044SlurmdbdPing + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | Target for ping | +**responding** | **bool** | If ping RPC responded with pong from slurmdbd | +**latency** | **int** | Number of microseconds it took to successfully ping or timeout | +**primary** | **bool** | Is responding slurmdbd the primary controller (Is responding slurmctld the primary controller) | + +## Example + +```python +from slurmrest_python.models.v0044_slurmdbd_ping import V0044SlurmdbdPing + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044SlurmdbdPing from a JSON string +v0044_slurmdbd_ping_instance = V0044SlurmdbdPing.from_json(json) +# print the JSON string representation of the object +print(V0044SlurmdbdPing.to_json()) + +# convert the object into a dict +v0044_slurmdbd_ping_dict = v0044_slurmdbd_ping_instance.to_dict() +# create an instance of V0044SlurmdbdPing from a dict +v0044_slurmdbd_ping_from_dict = V0044SlurmdbdPing.from_dict(v0044_slurmdbd_ping_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsMsg.md b/docs/V0044StatsMsg.md new file mode 100644 index 0000000..5b9bfb3 --- /dev/null +++ b/docs/V0044StatsMsg.md @@ -0,0 +1,82 @@ +# V0044StatsMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parts_packed** | **int** | Zero if only RPC statistic included | [optional] +**req_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**req_time_start** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**server_thread_count** | **int** | Number of current active slurmctld threads | [optional] +**agent_queue_size** | **int** | Number of enqueued outgoing RPC requests in an internal retry list | [optional] +**agent_count** | **int** | Number of agent threads | [optional] +**agent_thread_count** | **int** | Total number of active threads created by all agent threads | [optional] +**dbd_agent_queue_size** | **int** | Number of messages for SlurmDBD that are queued | [optional] +**gettimeofday_latency** | **int** | Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup | [optional] +**schedule_cycle_max** | **int** | Max time of any scheduling cycle in microseconds since last reset | [optional] +**schedule_cycle_last** | **int** | Time in microseconds for last scheduling cycle | [optional] +**schedule_cycle_sum** | **int** | Total run time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_total** | **int** | Number of scheduling cycles since last reset | [optional] +**schedule_cycle_mean** | **int** | Mean time in microseconds for all scheduling cycles since last reset | [optional] +**schedule_cycle_mean_depth** | **int** | Mean of the number of jobs processed in a scheduling cycle | [optional] +**schedule_cycle_per_minute** | **int** | Number of scheduling executions per minute | [optional] +**schedule_cycle_depth** | **int** | Total number of jobs processed in scheduling cycles | [optional] +**schedule_exit** | [**V0044ScheduleExitFields**](V0044ScheduleExitFields.md) | | [optional] +**schedule_queue_length** | **int** | Number of jobs pending in queue | [optional] +**jobs_submitted** | **int** | Number of jobs submitted since last reset | [optional] +**jobs_started** | **int** | Number of jobs started since last reset | [optional] +**jobs_completed** | **int** | Number of jobs completed since last reset | [optional] +**jobs_canceled** | **int** | Number of jobs canceled since the last reset | [optional] +**jobs_failed** | **int** | Number of jobs failed due to slurmd or other internal issues since last reset | [optional] +**jobs_pending** | **int** | Number of jobs pending at the time of listed in job_state_ts | [optional] +**jobs_running** | **int** | Number of jobs running at the time of listed in job_state_ts | [optional] +**job_states_ts** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**bf_backfilled_jobs** | **int** | Number of jobs started through backfilling since last slurm start | [optional] +**bf_last_backfilled_jobs** | **int** | Number of jobs started through backfilling since last reset | [optional] +**bf_backfilled_het_jobs** | **int** | Number of heterogeneous job components started through backfilling since last Slurm start | [optional] +**bf_cycle_counter** | **int** | Number of backfill scheduling cycles since last reset | [optional] +**bf_cycle_mean** | **int** | Mean time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean** | **int** | Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_mean_try** | **int** | The subset of Depth Mean that the backfill scheduler attempted to schedule | [optional] +**bf_cycle_sum** | **int** | Total time in microseconds of backfilling scheduling cycles since last reset | [optional] +**bf_cycle_last** | **int** | Execution time in microseconds of last backfill scheduling cycle | [optional] +**bf_cycle_max** | **int** | Execution time in microseconds of longest backfill scheduling cycle | [optional] +**bf_exit** | [**V0044BfExitFields**](V0044BfExitFields.md) | | [optional] +**bf_last_depth** | **int** | Number of processed jobs during last backfilling scheduling cycle | [optional] +**bf_last_depth_try** | **int** | Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources | [optional] +**bf_depth_sum** | **int** | Total number of jobs processed during all backfilling scheduling cycles since last reset | [optional] +**bf_depth_try_sum** | **int** | Subset of bf_depth_sum that the backfill scheduler attempted to schedule | [optional] +**bf_queue_len** | **int** | Number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_mean** | **int** | Mean number of jobs pending to be processed by backfilling algorithm | [optional] +**bf_queue_len_sum** | **int** | Total number of jobs pending to be processed by backfilling algorithm since last reset | [optional] +**bf_table_size** | **int** | Number of different time slots tested by the backfill scheduler in its last iteration | [optional] +**bf_table_size_sum** | **int** | Total number of different time slots tested by the backfill scheduler | [optional] +**bf_table_size_mean** | **int** | Mean number of different time slots tested by the backfill scheduler | [optional] +**bf_when_last_cycle** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**bf_active** | **bool** | Backfill scheduler currently running | [optional] +**rpcs_by_message_type** | [**List[V0044StatsMsgRpcType]**](V0044StatsMsgRpcType.md) | RPCs by type | [optional] +**rpcs_by_user** | [**List[V0044StatsMsgRpcUser]**](V0044StatsMsgRpcUser.md) | RPCs by user | [optional] +**pending_rpcs** | [**List[V0044StatsMsgRpcQueue]**](V0044StatsMsgRpcQueue.md) | Pending RPCs | [optional] +**pending_rpcs_by_hostlist** | [**List[V0044StatsMsgRpcDump]**](V0044StatsMsgRpcDump.md) | Pending RPCs by hostlist | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_stats_msg import V0044StatsMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsMsg from a JSON string +v0044_stats_msg_instance = V0044StatsMsg.from_json(json) +# print the JSON string representation of the object +print(V0044StatsMsg.to_json()) + +# convert the object into a dict +v0044_stats_msg_dict = v0044_stats_msg_instance.to_dict() +# create an instance of V0044StatsMsg from a dict +v0044_stats_msg_from_dict = V0044StatsMsg.from_dict(v0044_stats_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsMsgRpcDump.md b/docs/V0044StatsMsgRpcDump.md new file mode 100644 index 0000000..84e70fd --- /dev/null +++ b/docs/V0044StatsMsgRpcDump.md @@ -0,0 +1,31 @@ +# V0044StatsMsgRpcDump + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string (Slurm RPC message type) | +**count** | **List[str]** | | + +## Example + +```python +from slurmrest_python.models.v0044_stats_msg_rpc_dump import V0044StatsMsgRpcDump + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsMsgRpcDump from a JSON string +v0044_stats_msg_rpc_dump_instance = V0044StatsMsgRpcDump.from_json(json) +# print the JSON string representation of the object +print(V0044StatsMsgRpcDump.to_json()) + +# convert the object into a dict +v0044_stats_msg_rpc_dump_dict = v0044_stats_msg_rpc_dump_instance.to_dict() +# create an instance of V0044StatsMsgRpcDump from a dict +v0044_stats_msg_rpc_dump_from_dict = V0044StatsMsgRpcDump.from_dict(v0044_stats_msg_rpc_dump_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsMsgRpcQueue.md b/docs/V0044StatsMsgRpcQueue.md new file mode 100644 index 0000000..8ab8849 --- /dev/null +++ b/docs/V0044StatsMsgRpcQueue.md @@ -0,0 +1,31 @@ +# V0044StatsMsgRpcQueue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string (Slurm RPC message type) | +**count** | **int** | Number of pending RPCs queued | + +## Example + +```python +from slurmrest_python.models.v0044_stats_msg_rpc_queue import V0044StatsMsgRpcQueue + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsMsgRpcQueue from a JSON string +v0044_stats_msg_rpc_queue_instance = V0044StatsMsgRpcQueue.from_json(json) +# print the JSON string representation of the object +print(V0044StatsMsgRpcQueue.to_json()) + +# convert the object into a dict +v0044_stats_msg_rpc_queue_dict = v0044_stats_msg_rpc_queue_instance.to_dict() +# create an instance of V0044StatsMsgRpcQueue from a dict +v0044_stats_msg_rpc_queue_from_dict = V0044StatsMsgRpcQueue.from_dict(v0044_stats_msg_rpc_queue_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsMsgRpcType.md b/docs/V0044StatsMsgRpcType.md new file mode 100644 index 0000000..4030fae --- /dev/null +++ b/docs/V0044StatsMsgRpcType.md @@ -0,0 +1,37 @@ +# V0044StatsMsgRpcType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type_id** | **int** | Message type as integer | +**message_type** | **str** | Message type as string (Slurm RPC message type) | +**count** | **int** | Number of RPCs received | +**queued** | **int** | Number of RPCs queued | +**dropped** | **int** | Number of RPCs dropped | +**cycle_last** | **int** | Number of RPCs processed within the last RPC queue cycle | +**cycle_max** | **int** | Maximum number of RPCs processed within a RPC queue cycle since start | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0044_stats_msg_rpc_type import V0044StatsMsgRpcType + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsMsgRpcType from a JSON string +v0044_stats_msg_rpc_type_instance = V0044StatsMsgRpcType.from_json(json) +# print the JSON string representation of the object +print(V0044StatsMsgRpcType.to_json()) + +# convert the object into a dict +v0044_stats_msg_rpc_type_dict = v0044_stats_msg_rpc_type_instance.to_dict() +# create an instance of V0044StatsMsgRpcType from a dict +v0044_stats_msg_rpc_type_from_dict = V0044StatsMsgRpcType.from_dict(v0044_stats_msg_rpc_type_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsMsgRpcUser.md b/docs/V0044StatsMsgRpcUser.md new file mode 100644 index 0000000..f485444 --- /dev/null +++ b/docs/V0044StatsMsgRpcUser.md @@ -0,0 +1,33 @@ +# V0044StatsMsgRpcUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **int** | User ID (numeric) | +**user** | **str** | User name | +**count** | **int** | Number of RPCs received | +**total_time** | **int** | Total time spent processing RPC in seconds | +**average_time** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | + +## Example + +```python +from slurmrest_python.models.v0044_stats_msg_rpc_user import V0044StatsMsgRpcUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsMsgRpcUser from a JSON string +v0044_stats_msg_rpc_user_instance = V0044StatsMsgRpcUser.from_json(json) +# print the JSON string representation of the object +print(V0044StatsMsgRpcUser.to_json()) + +# convert the object into a dict +v0044_stats_msg_rpc_user_dict = v0044_stats_msg_rpc_user_instance.to_dict() +# create an instance of V0044StatsMsgRpcUser from a dict +v0044_stats_msg_rpc_user_from_dict = V0044StatsMsgRpcUser.from_dict(v0044_stats_msg_rpc_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsRec.md b/docs/V0044StatsRec.md new file mode 100644 index 0000000..f7ee923 --- /dev/null +++ b/docs/V0044StatsRec.md @@ -0,0 +1,32 @@ +# V0044StatsRec + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_start** | **int** | When data collection started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]')) | [optional] +**rollups** | [**V0044RollupStats**](V0044RollupStats.md) | | [optional] +**rpcs** | [**List[V0044StatsRpc]**](V0044StatsRpc.md) | | [optional] +**users** | [**List[V0044StatsUser]**](V0044StatsUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_stats_rec import V0044StatsRec + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsRec from a JSON string +v0044_stats_rec_instance = V0044StatsRec.from_json(json) +# print the JSON string representation of the object +print(V0044StatsRec.to_json()) + +# convert the object into a dict +v0044_stats_rec_dict = v0044_stats_rec_instance.to_dict() +# create an instance of V0044StatsRec from a dict +v0044_stats_rec_from_dict = V0044StatsRec.from_dict(v0044_stats_rec_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsRpc.md b/docs/V0044StatsRpc.md new file mode 100644 index 0000000..8c0022a --- /dev/null +++ b/docs/V0044StatsRpc.md @@ -0,0 +1,31 @@ +# V0044StatsRpc + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rpc** | **str** | RPC type | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_stats_rpc import V0044StatsRpc + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsRpc from a JSON string +v0044_stats_rpc_instance = V0044StatsRpc.from_json(json) +# print the JSON string representation of the object +print(V0044StatsRpc.to_json()) + +# convert the object into a dict +v0044_stats_rpc_dict = v0044_stats_rpc_instance.to_dict() +# create an instance of V0044StatsRpc from a dict +v0044_stats_rpc_from_dict = V0044StatsRpc.from_dict(v0044_stats_rpc_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StatsUser.md b/docs/V0044StatsUser.md new file mode 100644 index 0000000..2036a77 --- /dev/null +++ b/docs/V0044StatsUser.md @@ -0,0 +1,31 @@ +# V0044StatsUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **str** | User ID | [optional] +**count** | **int** | Number of RPCs processed | [optional] +**time** | [**V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime**](V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_stats_user import V0044StatsUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StatsUser from a JSON string +v0044_stats_user_instance = V0044StatsUser.from_json(json) +# print the JSON string representation of the object +print(V0044StatsUser.to_json()) + +# convert the object into a dict +v0044_stats_user_dict = v0044_stats_user_instance.to_dict() +# create an instance of V0044StatsUser from a dict +v0044_stats_user_from_dict = V0044StatsUser.from_dict(v0044_stats_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Step.md b/docs/V0044Step.md new file mode 100644 index 0000000..1652471 --- /dev/null +++ b/docs/V0044Step.md @@ -0,0 +1,40 @@ +# V0044Step + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | [**V0044StepTime**](V0044StepTime.md) | | [optional] +**exit_code** | [**V0044ProcessExitCodeVerbose**](V0044ProcessExitCodeVerbose.md) | | [optional] +**nodes** | [**V0044StepNodes**](V0044StepNodes.md) | | [optional] +**tasks** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.md) | | [optional] +**pid** | **str** | Deprecated; Process ID | [optional] +**cpu** | [**V0044StepCPU**](V0044StepCPU.md) | | [optional] +**kill_request_user** | **str** | User ID that requested termination of the step | [optional] +**state** | **List[str]** | Current state | [optional] +**statistics** | [**V0044StepStatistics**](V0044StepStatistics.md) | | [optional] +**step** | [**V0044StepStep**](V0044StepStep.md) | | [optional] +**task** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.md) | | [optional] +**tres** | [**V0044StepTres**](V0044StepTres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step import V0044Step + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Step from a JSON string +v0044_step_instance = V0044Step.from_json(json) +# print the JSON string representation of the object +print(V0044Step.to_json()) + +# convert the object into a dict +v0044_step_dict = v0044_step_instance.to_dict() +# create an instance of V0044Step from a dict +v0044_step_from_dict = V0044Step.from_dict(v0044_step_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepCPU.md b/docs/V0044StepCPU.md new file mode 100644 index 0000000..a33585c --- /dev/null +++ b/docs/V0044StepCPU.md @@ -0,0 +1,30 @@ +# V0044StepCPU + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested_frequency** | [**V0044StepCPURequestedFrequency**](V0044StepCPURequestedFrequency.md) | | [optional] +**governor** | **str** | Requested CPU frequency governor in kHz | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_cpu import V0044StepCPU + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepCPU from a JSON string +v0044_step_cpu_instance = V0044StepCPU.from_json(json) +# print the JSON string representation of the object +print(V0044StepCPU.to_json()) + +# convert the object into a dict +v0044_step_cpu_dict = v0044_step_cpu_instance.to_dict() +# create an instance of V0044StepCPU from a dict +v0044_step_cpu_from_dict = V0044StepCPU.from_dict(v0044_step_cpu_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepCPURequestedFrequency.md b/docs/V0044StepCPURequestedFrequency.md new file mode 100644 index 0000000..d20af4f --- /dev/null +++ b/docs/V0044StepCPURequestedFrequency.md @@ -0,0 +1,30 @@ +# V0044StepCPURequestedFrequency + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**max** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_cpu_requested_frequency import V0044StepCPURequestedFrequency + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepCPURequestedFrequency from a JSON string +v0044_step_cpu_requested_frequency_instance = V0044StepCPURequestedFrequency.from_json(json) +# print the JSON string representation of the object +print(V0044StepCPURequestedFrequency.to_json()) + +# convert the object into a dict +v0044_step_cpu_requested_frequency_dict = v0044_step_cpu_requested_frequency_instance.to_dict() +# create an instance of V0044StepCPURequestedFrequency from a dict +v0044_step_cpu_requested_frequency_from_dict = V0044StepCPURequestedFrequency.from_dict(v0044_step_cpu_requested_frequency_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepNodes.md b/docs/V0044StepNodes.md new file mode 100644 index 0000000..9839b9d --- /dev/null +++ b/docs/V0044StepNodes.md @@ -0,0 +1,31 @@ +# V0044StepNodes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of nodes in the job step | [optional] +**range** | **str** | Node(s) allocated to the job step | [optional] +**list** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_nodes import V0044StepNodes + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepNodes from a JSON string +v0044_step_nodes_instance = V0044StepNodes.from_json(json) +# print the JSON string representation of the object +print(V0044StepNodes.to_json()) + +# convert the object into a dict +v0044_step_nodes_dict = v0044_step_nodes_instance.to_dict() +# create an instance of V0044StepNodes from a dict +v0044_step_nodes_from_dict = V0044StepNodes.from_dict(v0044_step_nodes_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepStatistics.md b/docs/V0044StepStatistics.md new file mode 100644 index 0000000..cb06903 --- /dev/null +++ b/docs/V0044StepStatistics.md @@ -0,0 +1,30 @@ +# V0044StepStatistics + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.md) | | [optional] +**energy** | [**V0044StepStatisticsEnergy**](V0044StepStatisticsEnergy.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_statistics import V0044StepStatistics + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepStatistics from a JSON string +v0044_step_statistics_instance = V0044StepStatistics.from_json(json) +# print the JSON string representation of the object +print(V0044StepStatistics.to_json()) + +# convert the object into a dict +v0044_step_statistics_dict = v0044_step_statistics_instance.to_dict() +# create an instance of V0044StepStatistics from a dict +v0044_step_statistics_from_dict = V0044StepStatistics.from_dict(v0044_step_statistics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepStatisticsEnergy.md b/docs/V0044StepStatisticsEnergy.md new file mode 100644 index 0000000..d0f6cff --- /dev/null +++ b/docs/V0044StepStatisticsEnergy.md @@ -0,0 +1,29 @@ +# V0044StepStatisticsEnergy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumed** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_statistics_energy import V0044StepStatisticsEnergy + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepStatisticsEnergy from a JSON string +v0044_step_statistics_energy_instance = V0044StepStatisticsEnergy.from_json(json) +# print the JSON string representation of the object +print(V0044StepStatisticsEnergy.to_json()) + +# convert the object into a dict +v0044_step_statistics_energy_dict = v0044_step_statistics_energy_instance.to_dict() +# create an instance of V0044StepStatisticsEnergy from a dict +v0044_step_statistics_energy_from_dict = V0044StepStatisticsEnergy.from_dict(v0044_step_statistics_energy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepStep.md b/docs/V0044StepStep.md new file mode 100644 index 0000000..49f2086 --- /dev/null +++ b/docs/V0044StepStep.md @@ -0,0 +1,36 @@ +# V0044StepStep + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Step ID (Slurm job step ID) | [optional] +**name** | **str** | Step name | [optional] +**stderr** | **str** | Path to stderr file | [optional] +**stdin** | **str** | Path to stdin file | [optional] +**stdout** | **str** | Path to stdout file | [optional] +**stderr_expanded** | **str** | Step stderr with expanded fields | [optional] +**stdin_expanded** | **str** | Step stdin with expanded fields | [optional] +**stdout_expanded** | **str** | Step stdout with expanded fields | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_step import V0044StepStep + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepStep from a JSON string +v0044_step_step_instance = V0044StepStep.from_json(json) +# print the JSON string representation of the object +print(V0044StepStep.to_json()) + +# convert the object into a dict +v0044_step_step_dict = v0044_step_step_instance.to_dict() +# create an instance of V0044StepStep from a dict +v0044_step_step_from_dict = V0044StepStep.from_dict(v0044_step_step_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepTime.md b/docs/V0044StepTime.md new file mode 100644 index 0000000..f06ff68 --- /dev/null +++ b/docs/V0044StepTime.md @@ -0,0 +1,36 @@ +# V0044StepTime + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**elapsed** | **int** | Elapsed time in seconds | [optional] +**end** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**start** | [**V0044Uint64NoValStruct**](V0044Uint64NoValStruct.md) | | [optional] +**suspended** | **int** | Total time in suspended state in seconds | [optional] +**system** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.md) | | [optional] +**limit** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**total** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.md) | | [optional] +**user** | [**V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser**](V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_time import V0044StepTime + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepTime from a JSON string +v0044_step_time_instance = V0044StepTime.from_json(json) +# print the JSON string representation of the object +print(V0044StepTime.to_json()) + +# convert the object into a dict +v0044_step_time_dict = v0044_step_time_instance.to_dict() +# create an instance of V0044StepTime from a dict +v0044_step_time_from_dict = V0044StepTime.from_dict(v0044_step_time_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepTres.md b/docs/V0044StepTres.md new file mode 100644 index 0000000..6c3784e --- /dev/null +++ b/docs/V0044StepTres.md @@ -0,0 +1,31 @@ +# V0044StepTres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requested** | [**V0044StepTresRequested**](V0044StepTresRequested.md) | | [optional] +**consumed** | [**V0044StepTresConsumed**](V0044StepTresConsumed.md) | | [optional] +**allocated** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_tres import V0044StepTres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepTres from a JSON string +v0044_step_tres_instance = V0044StepTres.from_json(json) +# print the JSON string representation of the object +print(V0044StepTres.to_json()) + +# convert the object into a dict +v0044_step_tres_dict = v0044_step_tres_instance.to_dict() +# create an instance of V0044StepTres from a dict +v0044_step_tres_from_dict = V0044StepTres.from_dict(v0044_step_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepTresConsumed.md b/docs/V0044StepTresConsumed.md new file mode 100644 index 0000000..f10fd2e --- /dev/null +++ b/docs/V0044StepTresConsumed.md @@ -0,0 +1,32 @@ +# V0044StepTresConsumed + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**min** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**average** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**total** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_tres_consumed import V0044StepTresConsumed + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepTresConsumed from a JSON string +v0044_step_tres_consumed_instance = V0044StepTresConsumed.from_json(json) +# print the JSON string representation of the object +print(V0044StepTresConsumed.to_json()) + +# convert the object into a dict +v0044_step_tres_consumed_dict = v0044_step_tres_consumed_instance.to_dict() +# create an instance of V0044StepTresConsumed from a dict +v0044_step_tres_consumed_from_dict = V0044StepTresConsumed.from_dict(v0044_step_tres_consumed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044StepTresRequested.md b/docs/V0044StepTresRequested.md new file mode 100644 index 0000000..aa5b135 --- /dev/null +++ b/docs/V0044StepTresRequested.md @@ -0,0 +1,32 @@ +# V0044StepTresRequested + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**min** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**average** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] +**total** | [**List[V0044Tres]**](V0044Tres.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_step_tres_requested import V0044StepTresRequested + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044StepTresRequested from a JSON string +v0044_step_tres_requested_instance = V0044StepTresRequested.from_json(json) +# print the JSON string representation of the object +print(V0044StepTresRequested.to_json()) + +# convert the object into a dict +v0044_step_tres_requested_dict = v0044_step_tres_requested_instance.to_dict() +# create an instance of V0044StepTresRequested from a dict +v0044_step_tres_requested_from_dict = V0044StepTresRequested.from_dict(v0044_step_tres_requested_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Tres.md b/docs/V0044Tres.md new file mode 100644 index 0000000..0296a76 --- /dev/null +++ b/docs/V0044Tres.md @@ -0,0 +1,32 @@ +# V0044Tres + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | TRES type (CPU, MEM, etc) | +**name** | **str** | TRES name (if applicable) | [optional] +**id** | **int** | ID used in the database | [optional] +**count** | **int** | TRES count (0 if listed generically) | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_tres import V0044Tres + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Tres from a JSON string +v0044_tres_instance = V0044Tres.from_json(json) +# print the JSON string representation of the object +print(V0044Tres.to_json()) + +# convert the object into a dict +v0044_tres_dict = v0044_tres_instance.to_dict() +# create an instance of V0044Tres from a dict +v0044_tres_from_dict = V0044Tres.from_dict(v0044_tres_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Uint16NoValStruct.md b/docs/V0044Uint16NoValStruct.md new file mode 100644 index 0000000..5f10007 --- /dev/null +++ b/docs/V0044Uint16NoValStruct.md @@ -0,0 +1,31 @@ +# V0044Uint16NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Uint16NoValStruct from a JSON string +v0044_uint16_no_val_struct_instance = V0044Uint16NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0044Uint16NoValStruct.to_json()) + +# convert the object into a dict +v0044_uint16_no_val_struct_dict = v0044_uint16_no_val_struct_instance.to_dict() +# create an instance of V0044Uint16NoValStruct from a dict +v0044_uint16_no_val_struct_from_dict = V0044Uint16NoValStruct.from_dict(v0044_uint16_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Uint32NoValStruct.md b/docs/V0044Uint32NoValStruct.md new file mode 100644 index 0000000..6d3cf0c --- /dev/null +++ b/docs/V0044Uint32NoValStruct.md @@ -0,0 +1,31 @@ +# V0044Uint32NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Uint32NoValStruct from a JSON string +v0044_uint32_no_val_struct_instance = V0044Uint32NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0044Uint32NoValStruct.to_json()) + +# convert the object into a dict +v0044_uint32_no_val_struct_dict = v0044_uint32_no_val_struct_instance.to_dict() +# create an instance of V0044Uint32NoValStruct from a dict +v0044_uint32_no_val_struct_from_dict = V0044Uint32NoValStruct.from_dict(v0044_uint32_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Uint64NoValStruct.md b/docs/V0044Uint64NoValStruct.md new file mode 100644 index 0000000..88de8d4 --- /dev/null +++ b/docs/V0044Uint64NoValStruct.md @@ -0,0 +1,31 @@ +# V0044Uint64NoValStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **bool** | True if number has been set; False if number is unset | [optional] +**infinite** | **bool** | True if number has been set to infinite; \"set\" and \"number\" will be ignored | [optional] +**number** | **int** | If \"set\" is True the number will be set with value; otherwise ignore number contents | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Uint64NoValStruct from a JSON string +v0044_uint64_no_val_struct_instance = V0044Uint64NoValStruct.from_json(json) +# print the JSON string representation of the object +print(V0044Uint64NoValStruct.to_json()) + +# convert the object into a dict +v0044_uint64_no_val_struct_dict = v0044_uint64_no_val_struct_instance.to_dict() +# create an instance of V0044Uint64NoValStruct from a dict +v0044_uint64_no_val_struct_from_dict = V0044Uint64NoValStruct.from_dict(v0044_uint64_no_val_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044UpdateNodeMsg.md b/docs/V0044UpdateNodeMsg.md new file mode 100644 index 0000000..0263051 --- /dev/null +++ b/docs/V0044UpdateNodeMsg.md @@ -0,0 +1,43 @@ +# V0044UpdateNodeMsg + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | Arbitrary comment | [optional] +**cpu_bind** | **int** | Default method for binding tasks to allocated CPUs | [optional] +**extra** | **str** | Arbitrary string used for node filtering if extra constraints are enabled | [optional] +**features** | **List[str]** | | [optional] +**features_act** | **List[str]** | | [optional] +**gres** | **str** | Generic resources | [optional] +**address** | **List[str]** | | [optional] +**hostname** | **List[str]** | | [optional] +**name** | **List[str]** | | [optional] +**state** | **List[str]** | New state to assign to the node | [optional] +**reason** | **str** | Reason for node being DOWN or DRAINING | [optional] +**reason_uid** | **str** | User ID to associate with the reason (needed if user root is sending message) | [optional] +**resume_after** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] +**topology_str** | **str** | Topology | [optional] +**weight** | [**V0044Uint32NoValStruct**](V0044Uint32NoValStruct.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_update_node_msg import V0044UpdateNodeMsg + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044UpdateNodeMsg from a JSON string +v0044_update_node_msg_instance = V0044UpdateNodeMsg.from_json(json) +# print the JSON string representation of the object +print(V0044UpdateNodeMsg.to_json()) + +# convert the object into a dict +v0044_update_node_msg_dict = v0044_update_node_msg_instance.to_dict() +# create an instance of V0044UpdateNodeMsg from a dict +v0044_update_node_msg_from_dict = V0044UpdateNodeMsg.from_dict(v0044_update_node_msg_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044User.md b/docs/V0044User.md new file mode 100644 index 0000000..4f16b3d --- /dev/null +++ b/docs/V0044User.md @@ -0,0 +1,36 @@ +# V0044User + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**administrator_level** | **List[str]** | AdminLevel granted to the user | [optional] +**associations** | [**List[V0044AssocShort]**](V0044AssocShort.md) | | [optional] +**coordinators** | [**List[V0044Coord]**](V0044Coord.md) | | [optional] +**default** | [**V0044UserDefault**](V0044UserDefault.md) | | [optional] +**flags** | **List[str]** | Flags associated with this user | [optional] +**name** | **str** | User name | +**old_name** | **str** | Previous user name | [optional] +**wckeys** | [**List[V0044Wckey]**](V0044Wckey.md) | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_user import V0044User + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044User from a JSON string +v0044_user_instance = V0044User.from_json(json) +# print the JSON string representation of the object +print(V0044User.to_json()) + +# convert the object into a dict +v0044_user_dict = v0044_user_instance.to_dict() +# create an instance of V0044User from a dict +v0044_user_from_dict = V0044User.from_dict(v0044_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044UserDefault.md b/docs/V0044UserDefault.md new file mode 100644 index 0000000..93b3ff9 --- /dev/null +++ b/docs/V0044UserDefault.md @@ -0,0 +1,31 @@ +# V0044UserDefault + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**qos** | **int** | Default QOS | [optional] +**account** | **str** | Default account | [optional] +**wckey** | **str** | Default WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_user_default import V0044UserDefault + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044UserDefault from a JSON string +v0044_user_default_instance = V0044UserDefault.from_json(json) +# print the JSON string representation of the object +print(V0044UserDefault.to_json()) + +# convert the object into a dict +v0044_user_default_dict = v0044_user_default_instance.to_dict() +# create an instance of V0044UserDefault from a dict +v0044_user_default_from_dict = V0044UserDefault.from_dict(v0044_user_default_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044UserShort.md b/docs/V0044UserShort.md new file mode 100644 index 0000000..597add7 --- /dev/null +++ b/docs/V0044UserShort.md @@ -0,0 +1,32 @@ +# V0044UserShort + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adminlevel** | **List[str]** | AdminLevel granted to the user | [optional] +**defaultqos** | **int** | Default QOS | [optional] +**defaultaccount** | **str** | Default account | [optional] +**defaultwckey** | **str** | Default WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_user_short import V0044UserShort + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044UserShort from a JSON string +v0044_user_short_instance = V0044UserShort.from_json(json) +# print the JSON string representation of the object +print(V0044UserShort.to_json()) + +# convert the object into a dict +v0044_user_short_dict = v0044_user_short_instance.to_dict() +# create an instance of V0044UserShort from a dict +v0044_user_short_from_dict = V0044UserShort.from_dict(v0044_user_short_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044UsersAddCond.md b/docs/V0044UsersAddCond.md new file mode 100644 index 0000000..8e69b29 --- /dev/null +++ b/docs/V0044UsersAddCond.md @@ -0,0 +1,34 @@ +# V0044UsersAddCond + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **List[str]** | | [optional] +**association** | [**V0044AssocRecSet**](V0044AssocRecSet.md) | | [optional] +**clusters** | **List[str]** | | [optional] +**partitions** | **List[str]** | | [optional] +**users** | **List[str]** | | +**wckeys** | **List[str]** | | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_users_add_cond import V0044UsersAddCond + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044UsersAddCond from a JSON string +v0044_users_add_cond_instance = V0044UsersAddCond.from_json(json) +# print the JSON string representation of the object +print(V0044UsersAddCond.to_json()) + +# convert the object into a dict +v0044_users_add_cond_dict = v0044_users_add_cond_instance.to_dict() +# create an instance of V0044UsersAddCond from a dict +v0044_users_add_cond_from_dict = V0044UsersAddCond.from_dict(v0044_users_add_cond_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044Wckey.md b/docs/V0044Wckey.md new file mode 100644 index 0000000..d3d98bc --- /dev/null +++ b/docs/V0044Wckey.md @@ -0,0 +1,34 @@ +# V0044Wckey + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounting** | [**List[V0044Accounting]**](V0044Accounting.md) | | [optional] +**cluster** | **str** | Cluster name | +**id** | **int** | Unique ID for this user-cluster-wckey combination | [optional] +**name** | **str** | WCKey name | +**user** | **str** | User name | +**flags** | **List[str]** | Flags associated with this WCKey | [optional] + +## Example + +```python +from slurmrest_python.models.v0044_wckey import V0044Wckey + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044Wckey from a JSON string +v0044_wckey_instance = V0044Wckey.from_json(json) +# print the JSON string representation of the object +print(V0044Wckey.to_json()) + +# convert the object into a dict +v0044_wckey_dict = v0044_wckey_instance.to_dict() +# create an instance of V0044Wckey from a dict +v0044_wckey_from_dict = V0044Wckey.from_dict(v0044_wckey_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V0044WckeyTagStruct.md b/docs/V0044WckeyTagStruct.md new file mode 100644 index 0000000..eb4d561 --- /dev/null +++ b/docs/V0044WckeyTagStruct.md @@ -0,0 +1,30 @@ +# V0044WckeyTagStruct + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wckey** | **str** | WCKey name | +**flags** | **List[str]** | Active flags | + +## Example + +```python +from slurmrest_python.models.v0044_wckey_tag_struct import V0044WckeyTagStruct + +# TODO update the JSON string below +json = "{}" +# create an instance of V0044WckeyTagStruct from a JSON string +v0044_wckey_tag_struct_instance = V0044WckeyTagStruct.from_json(json) +# print the JSON string representation of the object +print(V0044WckeyTagStruct.to_json()) + +# convert the object into a dict +v0044_wckey_tag_struct_dict = v0044_wckey_tag_struct_instance.to_dict() +# create an instance of V0044WckeyTagStruct from a dict +v0044_wckey_tag_struct_from_dict = V0044WckeyTagStruct.from_dict(v0044_wckey_tag_struct_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gen.yaml b/gen.yaml new file mode 100644 index 0000000..0f73fd0 --- /dev/null +++ b/gen.yaml @@ -0,0 +1,14 @@ +# gen.yaml ---------------------------------------------------------- +generatorName: python +inputSpec: openapi_specs.json + +# Git metadata ------------------------------------------------------ +gitHost: github.com +gitUserId: coldfront +gitRepoId: slurm-python-sdk + +# Generator-specific properties +additionalProperties: + packageName: slurmrest_python + projectName: slurmrest_python + packageVersion: 0.0.1 diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..70fc978 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="coldfront" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="slurm-python-sdk" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/openapi_specs.json b/openapi_specs.json new file mode 100644 index 0000000..96bf697 --- /dev/null +++ b/openapi_specs.json @@ -0,0 +1,62933 @@ +{ + "tags": [ + { + "name": "slurm", + "description": "methods that query slurmctld" + }, + { + "name": "slurmdb", + "description": "methods that query slurmdbd" + }, + { + "name": "util", + "description": "utilities available directly through slurmrestd" + }, + { + "name": "openapi", + "description": "methods that query for generated OpenAPI specifications" + } + ], + "paths": { + "\/slurm\/v0.0.41\/shares": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get fairshare info", + "deprecated": true, + "operationId": "slurm_v0041_get_shares", + "parameters": [ + { + "in": "query", + "name": "accounts", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Accounts to query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Users to query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_shares_resp" + } + } + }, + "description": "shares information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_shares_resp" + } + } + }, + "description": "shares information" + } + } + } + }, + "\/slurm\/v0.0.44\/shares": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get fairshare info", + "operationId": "slurm_v0044_get_shares", + "parameters": [ + { + "in": "query", + "name": "accounts", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Accounts to query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Users to query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_shares_resp" + } + } + }, + "description": "shares information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_shares_resp" + } + } + }, + "description": "shares information" + } + } + } + }, + "\/slurm\/v0.0.42\/shares": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get fairshare info", + "operationId": "slurm_v0042_get_shares", + "parameters": [ + { + "in": "query", + "name": "accounts", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Accounts to query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Users to query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_shares_resp" + } + } + }, + "description": "shares information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_shares_resp" + } + } + }, + "description": "shares information" + } + } + } + }, + "\/slurm\/v0.0.43\/shares": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get fairshare info", + "operationId": "slurm_v0043_get_shares", + "parameters": [ + { + "in": "query", + "name": "accounts", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Accounts to query", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Users to query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_shares_resp" + } + } + }, + "description": "shares information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_shares_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_shares_resp" + } + } + }, + "description": "shares information" + } + } + } + }, + "\/slurm\/v0.0.41\/reconfigure\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "request slurmctld reconfigure", + "deprecated": true, + "operationId": "slurm_v0041_get_reconfigure", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "reconfigure request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "reconfigure request result" + } + } + } + }, + "\/slurm\/v0.0.44\/reconfigure\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "request slurmctld reconfigure", + "operationId": "slurm_v0044_get_reconfigure", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "reconfigure request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "reconfigure request result" + } + } + } + }, + "\/slurm\/v0.0.42\/reconfigure\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "request slurmctld reconfigure", + "operationId": "slurm_v0042_get_reconfigure", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "reconfigure request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "reconfigure request result" + } + } + } + }, + "\/slurm\/v0.0.43\/reconfigure\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "request slurmctld reconfigure", + "operationId": "slurm_v0043_get_reconfigure", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "reconfigure request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "reconfigure request result" + } + } + } + }, + "\/slurm\/v0.0.41\/diag\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get diagnostics", + "deprecated": true, + "operationId": "slurm_v0041_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + } + } + } + }, + "\/slurm\/v0.0.44\/diag\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get diagnostics", + "operationId": "slurm_v0044_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + } + } + } + }, + "\/slurm\/v0.0.42\/diag\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get diagnostics", + "operationId": "slurm_v0042_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + } + } + } + }, + "\/slurm\/v0.0.43\/diag\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get diagnostics", + "operationId": "slurm_v0043_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_diag_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_diag_resp" + } + } + }, + "description": "diagnostic results" + } + } + } + }, + "\/slurm\/v0.0.41\/ping\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "ping test", + "deprecated": true, + "operationId": "slurm_v0041_get_ping", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurm\/v0.0.44\/ping\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "ping test", + "operationId": "slurm_v0044_get_ping", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurm\/v0.0.42\/ping\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "ping test", + "operationId": "slurm_v0042_get_ping", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurm\/v0.0.43\/ping\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "ping test", + "operationId": "slurm_v0043_get_ping", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_ping_array_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_ping_array_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurm\/v0.0.41\/licenses\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all Slurm tracked license info", + "deprecated": true, + "operationId": "slurm_v0041_get_licenses", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + } + } + } + }, + "\/slurm\/v0.0.44\/licenses\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all Slurm tracked license info", + "operationId": "slurm_v0044_get_licenses", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + } + } + } + }, + "\/slurm\/v0.0.42\/licenses\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all Slurm tracked license info", + "operationId": "slurm_v0042_get_licenses", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + } + } + } + }, + "\/slurm\/v0.0.43\/licenses\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all Slurm tracked license info", + "operationId": "slurm_v0043_get_licenses", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_licenses_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_licenses_resp" + } + } + }, + "description": "results of get all licenses" + } + } + } + }, + "\/slurm\/v0.0.41\/job\/submit": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job", + "deprecated": true, + "operationId": "slurm_v0041_post_job_submit", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_job_submit_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_job_submit_req" + } + } + }, + "description": "Job description" + } + } + }, + "\/slurm\/v0.0.44\/job\/submit": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job", + "operationId": "slurm_v0044_post_job_submit", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_submit_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_submit_req" + } + } + }, + "description": "Job description" + } + } + }, + "\/slurm\/v0.0.42\/job\/submit": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job", + "operationId": "slurm_v0042_post_job_submit", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_job_submit_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_job_submit_req" + } + } + }, + "description": "Job description" + } + } + }, + "\/slurm\/v0.0.43\/job\/submit": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job", + "operationId": "slurm_v0043_post_job_submit", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_submit_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_submit_response" + } + } + }, + "description": "job submission response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_job_submit_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_job_submit_req" + } + } + }, + "description": "Job description" + } + } + }, + "\/slurm\/v0.0.41\/job\/allocate": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job allocation without any steps that must be signaled to stop", + "deprecated": true, + "operationId": "slurm_v0041_post_job_allocate", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_job_alloc_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_job_alloc_req" + } + } + }, + "description": "Job allocation description" + } + } + }, + "\/slurm\/v0.0.44\/job\/allocate": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job allocation without any steps that must be signaled to stop", + "operationId": "slurm_v0044_post_job_allocate", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_alloc_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_alloc_req" + } + } + }, + "description": "Job allocation description" + } + } + }, + "\/slurm\/v0.0.42\/job\/allocate": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job allocation without any steps that must be signaled to stop", + "operationId": "slurm_v0042_post_job_allocate", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_job_alloc_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_job_alloc_req" + } + } + }, + "description": "Job allocation description" + } + } + }, + "\/slurm\/v0.0.43\/job\/allocate": { + "post": { + "tags": [ + "slurm" + ], + "summary": "submit new job allocation without any steps that must be signaled to stop", + "operationId": "slurm_v0043_post_job_allocate", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_alloc_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_alloc_resp" + } + } + }, + "description": "job allocation response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_job_alloc_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_job_alloc_req" + } + } + }, + "description": "Job allocation description" + } + } + }, + "\/slurm\/v0.0.41\/jobs\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of jobs", + "deprecated": true, + "operationId": "slurm_v0041_get_jobs", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter jobs since update timestamp", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "send signal to list of jobs", + "deprecated": true, + "operationId": "slurm_v0041_delete_jobs", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_kill_jobs_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_kill_jobs_msg" + } + } + }, + "description": "Signal or cancel jobs" + } + } + }, + "\/slurm\/v0.0.44\/jobs\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of jobs", + "operationId": "slurm_v0044_get_jobs", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "send signal to list of jobs", + "operationId": "slurm_v0044_delete_jobs", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_kill_jobs_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_kill_jobs_msg" + } + } + }, + "description": "Signal or cancel jobs" + } + } + }, + "\/slurm\/v0.0.42\/jobs\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of jobs", + "operationId": "slurm_v0042_get_jobs", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "send signal to list of jobs", + "operationId": "slurm_v0042_delete_jobs", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_kill_jobs_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_kill_jobs_msg" + } + } + }, + "description": "Signal or cancel jobs" + } + } + }, + "\/slurm\/v0.0.43\/jobs\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of jobs", + "operationId": "slurm_v0043_get_jobs", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "send signal to list of jobs", + "operationId": "slurm_v0043_delete_jobs", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_jobs_resp" + } + } + }, + "description": "description of jobs to signal" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_kill_jobs_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_kill_jobs_msg" + } + } + }, + "description": "Signal or cancel jobs" + } + } + }, + "\/slurm\/v0.0.41\/jobs\/state\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of job states", + "deprecated": true, + "operationId": "slurm_v0041_get_jobs_state", + "parameters": [ + { + "in": "query", + "name": "job_id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Search for CSV list of Job IDs", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + } + } + } + }, + "\/slurm\/v0.0.44\/jobs\/state\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of job states", + "operationId": "slurm_v0044_get_jobs_state", + "parameters": [ + { + "in": "query", + "name": "job_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV list of Job IDs to search for", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + } + } + } + }, + "\/slurm\/v0.0.42\/jobs\/state\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of job states", + "operationId": "slurm_v0042_get_jobs_state", + "parameters": [ + { + "in": "query", + "name": "job_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV list of Job IDs to search for", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + } + } + } + }, + "\/slurm\/v0.0.43\/jobs\/state\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get list of job states", + "operationId": "slurm_v0043_get_jobs_state", + "parameters": [ + { + "in": "query", + "name": "job_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV list of Job IDs to search for", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + } + }, + "description": "job(s) state information" + } + } + } + }, + "\/slurm\/v0.0.41\/job\/{job_id}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get job info", + "deprecated": true, + "operationId": "slurm_v0041_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter jobs since update timestamp", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update job", + "deprecated": true, + "operationId": "slurm_v0041_post_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_post_response" + } + } + }, + "description": "job update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_job_post_response" + } + } + }, + "description": "job update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_job_desc_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_job_desc_msg" + } + } + }, + "description": "Job update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "cancel or signal job", + "deprecated": true, + "operationId": "slurm_v0041_delete_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "signal", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signal to send to Job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signalling flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "job signal result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "job signal result" + } + } + } + }, + "\/slurm\/v0.0.44\/job\/{job_id}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get job info", + "operationId": "slurm_v0044_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update job", + "operationId": "slurm_v0044_post_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_post_response" + } + } + }, + "description": "job update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_post_response" + } + } + }, + "description": "job update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_desc_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_desc_msg" + } + } + }, + "description": "Job update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "cancel or signal job", + "operationId": "slurm_v0044_delete_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "signal", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signal to send to Job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signalling flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_job_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_job_resp" + } + } + }, + "description": "job signal result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_job_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_kill_job_resp" + } + } + }, + "description": "job signal result" + } + } + } + }, + "\/slurm\/v0.0.42\/job\/{job_id}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get job info", + "operationId": "slurm_v0042_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update job", + "operationId": "slurm_v0042_post_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_post_response" + } + } + }, + "description": "job update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_job_post_response" + } + } + }, + "description": "job update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_job_desc_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_job_desc_msg" + } + } + }, + "description": "Job update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "cancel or signal job", + "operationId": "slurm_v0042_delete_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "signal", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signal to send to Job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signalling flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_job_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_job_resp" + } + } + }, + "description": "job signal result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_job_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_kill_job_resp" + } + } + }, + "description": "job signal result" + } + } + } + }, + "\/slurm\/v0.0.43\/job\/{job_id}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get job info", + "operationId": "slurm_v0043_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_info_resp" + } + } + }, + "description": "job(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update job", + "operationId": "slurm_v0043_post_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_post_response" + } + } + }, + "description": "job update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_post_response" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_job_post_response" + } + } + }, + "description": "job update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_job_desc_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_job_desc_msg" + } + } + }, + "description": "Job update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "cancel or signal job", + "operationId": "slurm_v0043_delete_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "signal", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signal to send to Job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Signalling flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_job_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_job_resp" + } + } + }, + "description": "job signal result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_job_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_kill_job_resp" + } + } + }, + "description": "job signal result" + } + } + } + }, + "\/slurm\/v0.0.41\/nodes\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node(s) info", + "deprecated": true, + "operationId": "slurm_v0041_get_nodes", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter jobs since update timestamp", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "batch update node(s)", + "deprecated": true, + "operationId": "slurm_v0041_post_nodes", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "batch node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "batch node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_update_node_msg" + } + } + }, + "description": "Nodelist update description" + } + } + }, + "\/slurm\/v0.0.44\/nodes\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node(s) info", + "operationId": "slurm_v0044_get_nodes", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "batch update node(s)", + "operationId": "slurm_v0044_post_nodes", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "batch node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "batch node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_update_node_msg" + } + } + }, + "description": "Nodelist update description" + } + } + }, + "\/slurm\/v0.0.42\/nodes\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node(s) info", + "operationId": "slurm_v0042_get_nodes", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "batch update node(s)", + "operationId": "slurm_v0042_post_nodes", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "batch node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "batch node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_update_node_msg" + } + } + }, + "description": "Nodelist update description" + } + } + }, + "\/slurm\/v0.0.43\/nodes\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node(s) info", + "operationId": "slurm_v0043_get_nodes", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + } + }, + "description": "node(s) information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "batch update node(s)", + "operationId": "slurm_v0043_post_nodes", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "batch node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "batch node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_update_node_msg" + } + } + }, + "description": "Nodelist update description" + } + } + }, + "\/slurm\/v0.0.41\/node\/{node_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node info", + "deprecated": true, + "operationId": "slurm_v0041_get_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter jobs since update timestamp", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + } + }, + "description": "node information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_nodes_resp" + } + } + }, + "description": "node information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update node properties", + "deprecated": true, + "operationId": "slurm_v0041_post_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_update_node_msg" + } + } + }, + "description": "Node update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete node", + "deprecated": true, + "operationId": "slurm_v0041_delete_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "node delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "node delete request result" + } + } + } + }, + "\/slurm\/v0.0.44\/node\/{node_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node info", + "operationId": "slurm_v0044_get_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + } + }, + "description": "node information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_nodes_resp" + } + } + }, + "description": "node information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update node properties", + "operationId": "slurm_v0044_post_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_update_node_msg" + } + } + }, + "description": "Node update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete node", + "operationId": "slurm_v0044_delete_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "node delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "node delete request result" + } + } + } + }, + "\/slurm\/v0.0.42\/node\/{node_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node info", + "operationId": "slurm_v0042_get_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + } + }, + "description": "node information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_nodes_resp" + } + } + }, + "description": "node information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update node properties", + "operationId": "slurm_v0042_post_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_update_node_msg" + } + } + }, + "description": "Node update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete node", + "operationId": "slurm_v0042_delete_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "node delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "node delete request result" + } + } + } + }, + "\/slurm\/v0.0.43\/node\/{node_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get node info", + "operationId": "slurm_v0043_get_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query jobs updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + } + }, + "description": "node information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_nodes_resp" + } + } + }, + "description": "node information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "update node properties", + "operationId": "slurm_v0043_post_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "node update request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "node update request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_update_node_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_update_node_msg" + } + } + }, + "description": "Node update description" + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete node", + "operationId": "slurm_v0043_delete_node", + "parameters": [ + { + "in": "path", + "name": "node_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Node name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "node delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "node delete request result" + } + } + } + }, + "\/slurm\/v0.0.41\/partitions\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all partition info", + "deprecated": true, + "operationId": "slurm_v0041_get_partitions", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter partitions since update timestamp", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.44\/partitions\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all partition info", + "operationId": "slurm_v0044_get_partitions", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.42\/partitions\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all partition info", + "operationId": "slurm_v0042_get_partitions", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.43\/partitions\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all partition info", + "operationId": "slurm_v0043_get_partitions", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.41\/partition\/{partition_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get partition info", + "deprecated": true, + "operationId": "slurm_v0041_get_partition", + "parameters": [ + { + "in": "path", + "name": "partition_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Partition name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter partitions since update timestamp", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.44\/partition\/{partition_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get partition info", + "operationId": "slurm_v0044_get_partition", + "parameters": [ + { + "in": "path", + "name": "partition_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Partition name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.42\/partition\/{partition_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get partition info", + "operationId": "slurm_v0042_get_partition", + "parameters": [ + { + "in": "path", + "name": "partition_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Partition name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.43\/partition\/{partition_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get partition info", + "operationId": "slurm_v0043_get_partition", + "parameters": [ + { + "in": "path", + "name": "partition_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Partition name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + } + }, + "description": "partition information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_partition_resp" + } + } + }, + "description": "partition information" + } + } + } + }, + "\/slurm\/v0.0.41\/reservations\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all reservation info", + "deprecated": true, + "operationId": "slurm_v0041_get_reservations", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter reservations since update timestamp", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + } + }, + "\/slurm\/v0.0.44\/reservations\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all reservation info", + "operationId": "slurm_v0044_get_reservations", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "create or update reservations", + "operationId": "slurm_v0044_post_reservations", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation descriptions" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation descriptions" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_mod_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_mod_req" + } + } + }, + "description": "reservation descriptions" + } + } + }, + "\/slurm\/v0.0.42\/reservations\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all reservation info", + "operationId": "slurm_v0042_get_reservations", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + } + }, + "\/slurm\/v0.0.43\/reservations\/": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get all reservation info", + "operationId": "slurm_v0043_get_reservations", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + }, + "post": { + "tags": [ + "slurm" + ], + "summary": "create or update reservations", + "operationId": "slurm_v0043_post_reservations", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation descriptions" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation descriptions" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_mod_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_mod_req" + } + } + }, + "description": "reservation descriptions" + } + } + }, + "\/slurm\/v0.0.41\/reservation\/{reservation_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get reservation info", + "deprecated": true, + "operationId": "slurm_v0041_get_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter reservations since update timestamp", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete a reservation", + "deprecated": true, + "operationId": "slurm_v0041_delete_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "reservation delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "reservation delete request result" + } + } + } + }, + "\/slurm\/v0.0.44\/reservation\/{reservation_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get reservation info", + "operationId": "slurm_v0044_get_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete a reservation", + "operationId": "slurm_v0044_delete_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "reservation delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "reservation delete request result" + } + } + } + }, + "\/slurm\/v0.0.42\/reservation\/{reservation_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get reservation info", + "operationId": "slurm_v0042_get_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete a reservation", + "operationId": "slurm_v0042_delete_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "reservation delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "reservation delete request result" + } + } + } + }, + "\/slurm\/v0.0.43\/reservation\/{reservation_name}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get reservation info", + "operationId": "slurm_v0043_get_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_resp" + } + } + }, + "description": "reservation information" + } + } + }, + "delete": { + "tags": [ + "slurm" + ], + "summary": "delete a reservation", + "operationId": "slurm_v0043_delete_reservation", + "parameters": [ + { + "in": "path", + "name": "reservation_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Reservation name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "reservation delete request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "reservation delete request result" + } + } + } + }, + "\/slurm\/v0.0.44\/reservation": { + "post": { + "tags": [ + "slurm" + ], + "summary": "create or update a reservation", + "operationId": "slurm_v0044_post_reservation", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation description" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation description" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_desc_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_desc_msg" + } + } + }, + "description": "reservation description" + } + } + }, + "\/slurm\/v0.0.43\/reservation": { + "post": { + "tags": [ + "slurm" + ], + "summary": "create or update a reservation", + "operationId": "slurm_v0043_post_reservation", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation description" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_reservation_mod_resp" + } + } + }, + "description": "reservation description" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_desc_msg" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_desc_msg" + } + } + }, + "description": "reservation description" + } + } + }, + "\/slurm\/v0.0.44\/new\/node\/": { + "post": { + "tags": [ + "slurm" + ], + "summary": "create node", + "operationId": "slurm_v0044_post_new_node", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "node create request result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "node create request result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_create_node_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_create_node_req" + } + } + }, + "description": "node create request" + } + } + }, + "\/slurm\/v0.0.44\/resources\/{job_id}": { + "get": { + "tags": [ + "slurm" + ], + "summary": "get resource layout info", + "operationId": "slurm_v0044_get_resources", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resource_layout_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resource_layout_resp" + } + } + }, + "description": "resource layout information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resource_layout_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resource_layout_resp" + } + } + }, + "description": "resource layout information" + } + } + } + }, + "\/slurmdb\/v0.0.41\/job\/{job_id}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job info", + "description": "This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned.", + "deprecated": true, + "operationId": "slurmdb_v0041_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + } + } + } + }, + "\/slurmdb\/v0.0.44\/job\/{job_id}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job info", + "description": "This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned.", + "operationId": "slurmdb_v0044_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Update job", + "operationId": "slurmdb_v0044_post_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + } + }, + "description": "Job update results" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + } + }, + "description": "Job update results" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_modify" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_job_modify" + } + } + }, + "description": "Job update description" + } + } + }, + "\/slurmdb\/v0.0.42\/job\/{job_id}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job info", + "description": "This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned.", + "operationId": "slurmdb_v0042_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + } + } + } + }, + "\/slurmdb\/v0.0.43\/job\/{job_id}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job info", + "description": "This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned.", + "operationId": "slurmdb_v0043_get_job", + "parameters": [ + { + "in": "path", + "name": "job_id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "Job description" + } + } + } + }, + "\/slurmdb\/v0.0.41\/config": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Dump all configuration information", + "deprecated": true, + "operationId": "slurmdb_v0041_get_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Load all configuration information", + "deprecated": true, + "operationId": "slurmdb_v0041_post_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_config_resp" + } + } + }, + "description": "Add or update config" + } + } + }, + "\/slurmdb\/v0.0.44\/config": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Dump all configuration information", + "operationId": "slurmdb_v0044_get_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Load all configuration information", + "operationId": "slurmdb_v0044_post_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_config_resp" + } + } + }, + "description": "Add or update config" + } + } + }, + "\/slurmdb\/v0.0.42\/config": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Dump all configuration information", + "operationId": "slurmdb_v0042_get_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Load all configuration information", + "operationId": "slurmdb_v0042_post_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_config_resp" + } + } + }, + "description": "Add or update config" + } + } + }, + "\/slurmdb\/v0.0.43\/config": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Dump all configuration information", + "operationId": "slurmdb_v0043_get_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_config_resp" + } + } + }, + "description": "slurmdbd configuration" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Load all configuration information", + "operationId": "slurmdb_v0043_post_config", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "slurmdbd configuration" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_config_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_config_resp" + } + } + }, + "description": "Add or update config" + } + } + }, + "\/slurmdb\/v0.0.41\/tres\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add TRES", + "deprecated": true, + "operationId": "slurmdb_v0041_post_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "TRES update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "TRES update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_tres_resp" + } + } + }, + "description": "TRES descriptions. Only works in developer mode." + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get TRES info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + } + } + } + }, + "\/slurmdb\/v0.0.44\/tres\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add TRES", + "operationId": "slurmdb_v0044_post_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "TRES update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "TRES update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_tres_resp" + } + } + }, + "description": "TRES descriptions. Only works in developer mode." + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get TRES info", + "operationId": "slurmdb_v0044_get_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + } + } + } + }, + "\/slurmdb\/v0.0.42\/tres\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add TRES", + "operationId": "slurmdb_v0042_post_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "TRES update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "TRES update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_tres_resp" + } + } + }, + "description": "TRES descriptions. Only works in developer mode." + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get TRES info", + "operationId": "slurmdb_v0042_get_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + } + } + } + }, + "\/slurmdb\/v0.0.43\/tres\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add TRES", + "operationId": "slurmdb_v0043_post_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "TRES update result" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "TRES update result" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_tres_resp" + } + } + }, + "description": "TRES descriptions. Only works in developer mode." + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get TRES info", + "operationId": "slurmdb_v0043_get_tres", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_tres_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_tres_resp" + } + } + }, + "description": "List of TRES" + } + } + } + }, + "\/slurmdb\/v0.0.41\/qos\/{qos}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Query includes deleted QOS", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete QOS", + "deprecated": true, + "operationId": "slurmdb_v0041_delete_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurmdb\/v0.0.44\/qos\/{qos}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS info", + "operationId": "slurmdb_v0044_get_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Query includes deleted QOS", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete QOS", + "operationId": "slurmdb_v0044_delete_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurmdb\/v0.0.42\/qos\/{qos}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS info", + "operationId": "slurmdb_v0042_get_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Query includes deleted QOS", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete QOS", + "operationId": "slurmdb_v0042_delete_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurmdb\/v0.0.43\/qos\/{qos}": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS info", + "operationId": "slurmdb_v0043_get_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Query includes deleted QOS", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "QOS information" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete QOS", + "operationId": "slurmdb_v0043_delete_single_qos", + "parameters": [ + { + "in": "path", + "name": "qos", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "QOS name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_removed_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurmdb\/v0.0.41\/qos\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted QOS", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update QOSs", + "deprecated": true, + "operationId": "slurmdb_v0041_post_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted QOS", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "QOS update response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "QOS update response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "Description of QOS to add or update" + } + } + }, + "\/slurmdb\/v0.0.44\/qos\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS list", + "operationId": "slurmdb_v0044_get_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted QOS", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update QOSs", + "operationId": "slurmdb_v0044_post_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted QOS", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "QOS update response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "QOS update response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "Description of QOS to add or update" + } + } + }, + "\/slurmdb\/v0.0.42\/qos\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS list", + "operationId": "slurmdb_v0042_get_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted QOS", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update QOSs", + "operationId": "slurmdb_v0042_post_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted QOS", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "QOS update response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "QOS update response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "Description of QOS to add or update" + } + } + }, + "\/slurmdb\/v0.0.43\/qos\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get QOS list", + "operationId": "slurmdb_v0043_get_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted QOS", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "List of QOS" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update QOSs", + "operationId": "slurmdb_v0043_post_qos", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted QOS", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "preempt_mode", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "PreemptMode used when jobs in this QOS are preempted", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "QOS update response" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "QOS update response" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_qos_resp" + } + } + }, + "description": "Description of QOS to add or update" + } + } + }, + "\/slurmdb\/v0.0.41\/associations\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Set associations info", + "deprecated": true, + "operationId": "slurmdb_v0041_post_associations", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "status of associations update" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "status of associations update" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + } + }, + "description": "Job description" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Filter to only defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_raw_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include a raw qos or delta_qos", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_sub_accts", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include sub acct information", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_info", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude parent id\/name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_limits", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude limits from parents", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete associations", + "deprecated": true, + "operationId": "slurmdb_v0041_delete_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Filter to only defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_raw_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include a raw qos or delta_qos", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_sub_accts", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include sub acct information", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_info", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude parent id\/name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_limits", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude limits from parents", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + } + } + } + }, + "\/slurmdb\/v0.0.44\/associations\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Set associations info", + "operationId": "slurmdb_v0044_post_associations", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "status of associations update" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "status of associations update" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + } + }, + "description": "Job description" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association list", + "operationId": "slurmdb_v0044_get_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete associations", + "operationId": "slurmdb_v0044_delete_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + } + } + } + }, + "\/slurmdb\/v0.0.42\/associations\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Set associations info", + "operationId": "slurmdb_v0042_post_associations", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "status of associations update" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "status of associations update" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + } + }, + "description": "Job description" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association list", + "operationId": "slurmdb_v0042_get_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete associations", + "operationId": "slurmdb_v0042_delete_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + } + } + } + }, + "\/slurmdb\/v0.0.43\/associations\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Set associations info", + "operationId": "slurmdb_v0043_post_associations", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "status of associations update" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "status of associations update" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + } + }, + "description": "Job description" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association list", + "operationId": "slurmdb_v0043_get_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete associations", + "operationId": "slurmdb_v0043_delete_associations", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + } + }, + "description": "List of associations deleted" + } + } + } + }, + "\/slurmdb\/v0.0.41\/association\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Filter to only defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_raw_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include a raw qos or delta_qos", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_sub_accts", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include sub acct information", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_info", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude parent id\/name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_limits", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude limits from parents", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete association", + "deprecated": true, + "operationId": "slurmdb_v0041_delete_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Filter to only defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_raw_qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include a raw qos or delta_qos", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_sub_accts", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include sub acct information", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_info", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude parent id\/name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_parent_limits", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude limits from parents", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + } + } + } + }, + "\/slurmdb\/v0.0.44\/association\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association info", + "operationId": "slurmdb_v0044_get_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete association", + "operationId": "slurmdb_v0044_delete_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + } + } + } + }, + "\/slurmdb\/v0.0.42\/association\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association info", + "operationId": "slurmdb_v0042_get_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete association", + "operationId": "slurmdb_v0042_delete_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + } + } + } + }, + "\/slurmdb\/v0.0.43\/association\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get association info", + "operationId": "slurmdb_v0043_get_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_resp" + } + } + }, + "description": "List of associations" + } + } + }, + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete association", + "operationId": "slurmdb_v0043_delete_association", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV accounts list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include deleted associations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Filter to only defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include the raw QOS or delta_qos", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Include sub acct information", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude parent id\/name", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "Exclude limits from parents", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "parent_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV names of parent account", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_assocs_removed_resp" + } + } + }, + "description": "Status of associations delete request" + } + } + } + }, + "\/slurmdb\/v0.0.41\/instances\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_instances", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.44\/instances\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance list", + "operationId": "slurmdb_v0044_get_instances", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.42\/instances\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance list", + "operationId": "slurmdb_v0042_get_instances", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.43\/instances\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance list", + "operationId": "slurmdb_v0043_get_instances", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.41\/instance\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_instance", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.44\/instance\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance info", + "operationId": "slurmdb_v0044_get_instance", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.42\/instance\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance info", + "operationId": "slurmdb_v0042_get_instance", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.43\/instance\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get instance info", + "operationId": "slurmdb_v0043_get_instance", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV clusters list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "extra", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV extra list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "instance_type", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV instance_type list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node_list", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "time_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Time start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + } + }, + "description": "List of instances" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_instances_resp" + } + } + }, + "description": "List of instances" + } + } + } + }, + "\/slurmdb\/v0.0.41\/user\/{name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete user", + "deprecated": true, + "operationId": "slurmdb_v0041_delete_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Result of user delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Result of user delete request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted users", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include wckeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.44\/user\/{name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete user", + "operationId": "slurmdb_v0044_delete_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Result of user delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Result of user delete request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user info", + "operationId": "slurmdb_v0044_get_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted users", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.42\/user\/{name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete user", + "operationId": "slurmdb_v0042_delete_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Result of user delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Result of user delete request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user info", + "operationId": "slurmdb_v0042_get_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted users", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.43\/user\/{name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete user", + "operationId": "slurmdb_v0043_delete_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Result of user delete request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Result of user delete request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user info", + "operationId": "slurmdb_v0043_get_user", + "parameters": [ + { + "in": "path", + "name": "name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "User name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted users", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.41\/users_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add users with conditional association", + "deprecated": true, + "operationId": "slurmdb_v0041_post_users_association", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter partitions since update timestamp", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_add_cond_resp" + } + } + }, + "description": "Create users with conditional association" + } + } + }, + "\/slurmdb\/v0.0.44\/users_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add users with conditional association", + "operationId": "slurmdb_v0044_post_users_association", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_add_cond_resp" + } + } + }, + "description": "Create users with conditional association" + } + } + }, + "\/slurmdb\/v0.0.42\/users_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add users with conditional association", + "operationId": "slurmdb_v0042_post_users_association", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_add_cond_resp" + } + } + }, + "description": "Create users with conditional association" + } + } + }, + "\/slurmdb\/v0.0.43\/users_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add users with conditional association", + "operationId": "slurmdb_v0043_post_users_association", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query partitions updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_add_cond_resp_str" + } + } + }, + "description": "Add list of users with conditional association" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_add_cond_resp" + } + } + }, + "description": "Create users with conditional association" + } + } + }, + "\/slurmdb\/v0.0.41\/users\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Update users", + "deprecated": true, + "operationId": "slurmdb_v0041_post_users", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Status of user update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Status of user update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + } + }, + "description": "add or update user" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_users", + "parameters": [ + { + "in": "query", + "name": "admin_level", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Administrator level", + "required": false, + "schema": { + "type": "string", + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ] + } + }, + { + "in": "query", + "name": "default_account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_wckey", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default wckey list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With deleted", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With wckeys", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_defaults", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude defaults", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.44\/users\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Update users", + "operationId": "slurmdb_v0044_post_users", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Status of user update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Status of user update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + } + }, + "description": "add or update user" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user list", + "operationId": "slurmdb_v0044_get_users", + "parameters": [ + { + "in": "query", + "name": "admin_level", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Administrator level", + "required": false, + "schema": { + "type": "string", + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ] + } + }, + { + "in": "query", + "name": "default_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_wckey", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default WCKey list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With deleted", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With WCKeys", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude defaults", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.42\/users\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Update users", + "operationId": "slurmdb_v0042_post_users", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Status of user update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Status of user update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + } + }, + "description": "add or update user" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user list", + "operationId": "slurmdb_v0042_get_users", + "parameters": [ + { + "in": "query", + "name": "admin_level", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Administrator level", + "required": false, + "schema": { + "type": "string", + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ] + } + }, + { + "in": "query", + "name": "default_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_wckey", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default WCKey list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With deleted", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With WCKeys", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude defaults", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.43\/users\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Update users", + "operationId": "slurmdb_v0043_post_users", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Status of user update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Status of user update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + } + }, + "description": "add or update user" + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get user list", + "operationId": "slurmdb_v0043_get_users", + "parameters": [ + { + "in": "query", + "name": "admin_level", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Administrator level", + "required": false, + "schema": { + "type": "string", + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ] + } + }, + { + "in": "query", + "name": "default_account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "default_wckey", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV default WCKey list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With deleted", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_wckeys", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "With WCKeys", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "without_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude defaults", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + } + }, + "description": "List of users" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_users_resp" + } + } + }, + "description": "List of users" + } + } + } + }, + "\/slurmdb\/v0.0.41\/cluster\/{cluster_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete cluster", + "deprecated": true, + "operationId": "slurmdb_v0041_delete_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY (both CAPABILITY and CAPACITY)" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY (both CAPABILITY and CAPACITY)" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + } + } + } + }, + "\/slurmdb\/v0.0.44\/cluster\/{cluster_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete cluster", + "operationId": "slurmdb_v0044_delete_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DELETED", + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster info", + "operationId": "slurmdb_v0044_get_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DELETED", + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + } + } + } + }, + "\/slurmdb\/v0.0.42\/cluster\/{cluster_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete cluster", + "operationId": "slurmdb_v0042_delete_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster info", + "operationId": "slurmdb_v0042_get_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + } + } + } + }, + "\/slurmdb\/v0.0.43\/cluster\/{cluster_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete cluster", + "operationId": "slurmdb_v0043_delete_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DELETED", + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_removed_resp" + } + } + }, + "description": "Result of delete cluster request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster info", + "operationId": "slurmdb_v0043_get_cluster", + "parameters": [ + { + "in": "path", + "name": "cluster_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Cluster name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "classification", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Type of machine", + "required": false, + "schema": { + "type": "string", + "enum": [ + "UNCLASSIFIED", + "CAPABILITY", + "CAPACITY", + "CAPAPACITY" + ] + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "federation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV federation list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "flags", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query flags", + "required": false, + "schema": { + "type": "string", + "enum": [ + "DELETED", + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ] + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "rpc_version", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV RPC version list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted clusters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + } + }, + "description": "Cluster information" + } + } + } + }, + "\/slurmdb\/v0.0.41\/clusters\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter reservations since update timestamp", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "deprecated": true, + "operationId": "slurmdb_v0041_post_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Filter reservations since update timestamp", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_clusters_resp" + } + } + }, + "description": "Cluster add or update descriptions" + } + } + }, + "\/slurmdb\/v0.0.44\/clusters\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "operationId": "slurmdb_v0044_get_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "operationId": "slurmdb_v0044_post_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_clusters_resp" + } + } + }, + "description": "Cluster add or update descriptions" + } + } + }, + "\/slurmdb\/v0.0.42\/clusters\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "operationId": "slurmdb_v0042_get_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "operationId": "slurmdb_v0042_post_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_clusters_resp" + } + } + }, + "description": "Cluster add or update descriptions" + } + } + }, + "\/slurmdb\/v0.0.43\/clusters\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "operationId": "slurmdb_v0043_get_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + } + }, + "description": "List of clusters" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Get cluster list", + "operationId": "slurmdb_v0043_post_clusters", + "parameters": [ + { + "in": "query", + "name": "update_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Query reservations updated more recently than this time (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Result of modify clusters request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_clusters_resp" + } + } + }, + "description": "Cluster add or update descriptions" + } + } + }, + "\/slurmdb\/v0.0.41\/wckey\/{id}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete wckey", + "deprecated": true, + "operationId": "slurmdb_v0041_delete_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "wckey id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "wckey id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + } + } + } + }, + "\/slurmdb\/v0.0.44\/wckey\/{id}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete wckey", + "operationId": "slurmdb_v0044_delete_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "WCKey ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey info", + "operationId": "slurmdb_v0044_get_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "WCKey ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + } + } + } + }, + "\/slurmdb\/v0.0.42\/wckey\/{id}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete wckey", + "operationId": "slurmdb_v0042_delete_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "WCKey ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey info", + "operationId": "slurmdb_v0042_get_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "WCKey ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + } + } + } + }, + "\/slurmdb\/v0.0.43\/wckey\/{id}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete wckey", + "operationId": "slurmdb_v0043_delete_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "WCKey ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_removed_resp" + } + } + }, + "description": "Result of wckey deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey info", + "operationId": "slurmdb_v0043_get_wckey", + "parameters": [ + { + "in": "path", + "name": "id", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "WCKey ID", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + } + }, + "description": "Description of wckey" + } + } + } + }, + "\/slurmdb\/v0.0.41\/wckeys\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted wckeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update wckeys", + "deprecated": true, + "operationId": "slurmdb_v0041_post_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted wckeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_wckey_resp" + } + } + }, + "description": "wckeys description" + } + } + }, + "\/slurmdb\/v0.0.44\/wckeys\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey list", + "operationId": "slurmdb_v0044_get_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update wckeys", + "operationId": "slurmdb_v0044_post_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_wckey_resp" + } + } + }, + "description": "wckeys description" + } + } + }, + "\/slurmdb\/v0.0.42\/wckeys\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey list", + "operationId": "slurmdb_v0042_get_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update wckeys", + "operationId": "slurmdb_v0042_post_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_wckey_resp" + } + } + }, + "description": "wckeys description" + } + } + }, + "\/slurmdb\/v0.0.43\/wckeys\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get wckey list", + "operationId": "slurmdb_v0043_get_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + } + }, + "description": "List of wckeys" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add or update wckeys", + "operationId": "slurmdb_v0043_post_wckeys", + "parameters": [ + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "only_defaults", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only query defaults", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_end", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_start", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "user", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_usage", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include usage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted WCKeys", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Result of wckey addition or update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_wckey_resp" + } + } + }, + "description": "wckeys description" + } + } + }, + "\/slurmdb\/v0.0.41\/account\/{account_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete account", + "deprecated": true, + "operationId": "slurmdb_v0041_delete_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account info", + "deprecated": true, + "operationId": "slurmdb_v0041_get_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + } + }, + "\/slurmdb\/v0.0.44\/account\/{account_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete account", + "operationId": "slurmdb_v0044_delete_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account info", + "operationId": "slurmdb_v0044_get_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + } + }, + "\/slurmdb\/v0.0.42\/account\/{account_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete account", + "operationId": "slurmdb_v0042_delete_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account info", + "operationId": "slurmdb_v0042_get_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + } + }, + "\/slurmdb\/v0.0.43\/account\/{account_name}": { + "delete": { + "tags": [ + "slurmdb" + ], + "summary": "Delete account", + "operationId": "slurmdb_v0043_delete_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_removed_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_removed_resp" + } + } + }, + "description": "Status of account deletion request" + } + } + }, + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account info", + "operationId": "slurmdb_v0043_get_account", + "parameters": [ + { + "in": "path", + "name": "account_name", + "style": "simple", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Account name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_assocs", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_coords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "with_deleted", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include deleted", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + } + }, + "\/slurmdb\/v0.0.41\/accounts_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add accounts with conditional association", + "deprecated": true, + "operationId": "slurmdb_v0041_post_accounts_association", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_add_cond_resp" + } + } + }, + "description": "Add list of accounts with conditional association" + } + } + }, + "\/slurmdb\/v0.0.44\/accounts_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add accounts with conditional association", + "operationId": "slurmdb_v0044_post_accounts_association", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_add_cond_resp" + } + } + }, + "description": "Add list of accounts with conditional association" + } + } + }, + "\/slurmdb\/v0.0.42\/accounts_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add accounts with conditional association", + "operationId": "slurmdb_v0042_post_accounts_association", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_add_cond_resp" + } + } + }, + "description": "Add list of accounts with conditional association" + } + } + }, + "\/slurmdb\/v0.0.43\/accounts_association\/": { + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add accounts with conditional association", + "operationId": "slurmdb_v0043_post_accounts_association", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_add_cond_resp_str" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_add_cond_resp_str" + } + } + }, + "description": "Status of account addition request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_add_cond_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_add_cond_resp" + } + } + }, + "description": "Add list of accounts with conditional association" + } + } + }, + "\/slurmdb\/v0.0.41\/accounts\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_accounts", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "DELETED", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithAssociations", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithCoordinators", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "NoUsersAreCoords", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "remove users as coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "UsersAreCoords", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "users are coordinators", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add\/update list of accounts", + "deprecated": true, + "operationId": "slurmdb_v0041_post_accounts", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Status of account update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_resp" + } + } + }, + "description": "Status of account update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_accounts_resp" + } + } + }, + "description": "Description of accounts to update\/create" + } + } + }, + "\/slurmdb\/v0.0.44\/accounts\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account list", + "operationId": "slurmdb_v0044_get_accounts", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "DELETED", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithAssociations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithCoordinators", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "NoUsersAreCoords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "remove users as coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "UsersAreCoords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "users are coordinators", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add\/update list of accounts", + "operationId": "slurmdb_v0044_post_accounts", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Status of account update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_resp" + } + } + }, + "description": "Status of account update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_accounts_resp" + } + } + }, + "description": "Description of accounts to update\/create" + } + } + }, + "\/slurmdb\/v0.0.42\/accounts\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account list", + "operationId": "slurmdb_v0042_get_accounts", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "DELETED", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithAssociations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithCoordinators", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "NoUsersAreCoords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "remove users as coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "UsersAreCoords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "users are coordinators", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add\/update list of accounts", + "operationId": "slurmdb_v0042_post_accounts", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Status of account update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_resp" + } + } + }, + "description": "Status of account update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_accounts_resp" + } + } + }, + "description": "Description of accounts to update\/create" + } + } + }, + "\/slurmdb\/v0.0.43\/accounts\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get account list", + "operationId": "slurmdb_v0043_get_accounts", + "parameters": [ + { + "in": "query", + "name": "description", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV description list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "DELETED", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "include deleted associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithAssociations", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes associations", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "WithCoordinators", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "query includes coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "NoUsersAreCoords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "remove users as coordinators", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "UsersAreCoords", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "users are coordinators", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + } + }, + "description": "List of accounts" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Add\/update list of accounts", + "operationId": "slurmdb_v0043_post_accounts", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Status of account update request" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_resp" + } + } + }, + "description": "Status of account update request" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_accounts_resp" + } + } + }, + "description": "Description of accounts to update\/create" + } + } + }, + "\/slurmdb\/v0.0.41\/jobs\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job list", + "deprecated": true, + "operationId": "slurmdb_v0041_get_jobs", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "association", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV association list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "constraints", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV constraint list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduler_unset", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Schedule bits not set", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_on_submit", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started on submit", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_main", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from main scheduler", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_backfill", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from backfill", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_started", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job start RPC was received", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "exit_code", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job exit code (numeric)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_duplicates", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include duplicate job entries", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "skip_steps", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude job step details", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_truncate_usage_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Do not truncate the time to usage_start and usage_end", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "whole_hetjob", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include details on all hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_whole_hetjob", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only show details on specified hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_wait_for_result", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Tell dbd not to wait for the result", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_time_as_submit_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Use usage_time as the submit_time of the job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_batch_script", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job script", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_job_environment", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job environment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "groups", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV group list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_name", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV job name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reason", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reason list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation_id", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "state", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV state list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "step", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV step id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_time", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string where jobs ran", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "wckey", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV wckey list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + } + } + } + }, + "\/slurmdb\/v0.0.44\/jobs\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job list", + "operationId": "slurmdb_v0044_get_jobs", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "association", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV association list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "constraints", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV constraint list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduler_unset", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Schedule bits not set", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_on_submit", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started on submit", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_main", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from main scheduler", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_backfill", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from backfill", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_started", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job start RPC was received", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_altered", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job record has been altered", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "exit_code", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job exit code (numeric)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_duplicates", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include duplicate job entries", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "skip_steps", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude job step details", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_truncate_usage_time", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Do not truncate the time to usage_start and usage_end", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "whole_hetjob", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include details on all hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_whole_hetjob", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only show details on specified hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_wait_for_result", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Tell dbd not to wait for the result", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_time_as_submit_time", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Use usage_time as the submit_time of the job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_batch_script", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job script", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_job_environment", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job environment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "groups", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV group list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV job name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reason", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reason list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "state", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV state list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "step", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV step id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string where jobs ran", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "wckey", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV WCKey list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + } + } + }, + "post": { + "tags": [ + "slurmdb" + ], + "summary": "Update jobs", + "operationId": "slurmdb_v0044_post_jobs", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + } + }, + "description": "Job update results" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_resp" + } + } + }, + "description": "Job update results" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_req" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_job_modify_req" + } + } + }, + "description": "Job update description" + } + } + }, + "\/slurmdb\/v0.0.42\/jobs\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job list", + "operationId": "slurmdb_v0042_get_jobs", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "association", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV association list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "constraints", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV constraint list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduler_unset", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Schedule bits not set", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_on_submit", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started on submit", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_main", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from main scheduler", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_backfill", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from backfill", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_started", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job start RPC was received", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "exit_code", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job exit code (numeric)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_duplicates", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include duplicate job entries", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "skip_steps", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude job step details", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_truncate_usage_time", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Do not truncate the time to usage_start and usage_end", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "whole_hetjob", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include details on all hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_whole_hetjob", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only show details on specified hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_wait_for_result", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Tell dbd not to wait for the result", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_time_as_submit_time", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Use usage_time as the submit_time of the job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_batch_script", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job script", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_job_environment", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job environment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "groups", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV group list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV job name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reason", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reason list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "state", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV state list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "step", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV step id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string where jobs ran", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "wckey", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV WCKey list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + } + } + } + }, + "\/slurmdb\/v0.0.43\/jobs\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get job list", + "operationId": "slurmdb_v0043_get_jobs", + "parameters": [ + { + "in": "query", + "name": "account", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV account list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "association", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV association list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cluster", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV cluster list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "constraints", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV constraint list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduler_unset", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Schedule bits not set", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_on_submit", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started on submit", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_main", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from main scheduler", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "scheduled_by_backfill", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job was started from backfill", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_started", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Job start RPC was received", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "exit_code", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Job exit code (numeric)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_duplicates", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include duplicate job entries", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "skip_steps", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Exclude job step details", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_truncate_usage_time", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Do not truncate the time to usage_start and usage_end", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "whole_hetjob", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include details on all hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_whole_hetjob", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Only show details on specified hetjob components", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "disable_wait_for_result", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Tell dbd not to wait for the result", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usage_time_as_submit_time", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Use usage_time as the submit_time of the job", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_batch_script", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job script", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "show_job_environment", + "style": "form", + "explode": false, + "allowEmptyValue": true, + "allowReserved": false, + "description": "Include job environment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "format", + "style": "form", + "explode": false, + "deprecated": true, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ignored; process JSON manually to control output format", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "groups", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV group list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "job_name", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV job name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "partition", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV partition name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qos", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV QOS name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reason", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reason list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reservation_id", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV reservation ID list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "state", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV state list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "step", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV step id list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage end (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_time", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Usage start (UNIX timestamp)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "node", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "Ranged node string where jobs ran", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "users", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV user name list", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "wckey", + "style": "form", + "explode": false, + "allowEmptyValue": false, + "allowReserved": false, + "description": "CSV WCKey list", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_jobs_resp" + } + } + }, + "description": "List of jobs" + } + } + } + }, + "\/slurmdb\/v0.0.41\/diag\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get slurmdb diagnostics", + "deprecated": true, + "operationId": "slurmdb_v0041_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.41_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + } + } + } + }, + "\/slurmdb\/v0.0.44\/diag\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get slurmdb diagnostics", + "operationId": "slurmdb_v0044_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + } + } + } + }, + "\/slurmdb\/v0.0.42\/diag\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get slurmdb diagnostics", + "operationId": "slurmdb_v0042_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + } + } + } + }, + "\/slurmdb\/v0.0.43\/diag\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "Get slurmdb diagnostics", + "operationId": "slurmdb_v0043_get_diag", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_stats_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_stats_resp" + } + } + }, + "description": "Dictionary of statistics" + } + } + } + }, + "\/slurmdb\/v0.0.44\/ping\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "ping test", + "operationId": "slurmdb_v0044_get_ping", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_ping_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_ping_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_ping_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_slurmdbd_ping_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurmdb\/v0.0.42\/ping\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "ping test", + "operationId": "slurmdb_v0042_get_ping", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_ping_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_ping_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_ping_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_slurmdbd_ping_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/slurmdb\/v0.0.43\/ping\/": { + "get": { + "tags": [ + "slurmdb" + ], + "summary": "ping test", + "operationId": "slurmdb_v0043_get_ping", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_ping_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_ping_resp" + } + } + }, + "description": "results of ping test" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_ping_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_slurmdbd_ping_resp" + } + } + }, + "description": "results of ping test" + } + } + } + }, + "\/util\/v0.0.44\/hostnames": { + "post": { + "tags": [ + "util" + ], + "summary": "Convert a hostlist expression into array of host names", + "operationId": "util_v0044_post_hostnames", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostnames_req_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostnames_req_resp" + } + } + }, + "description": "Array of host names" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostnames_req_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostnames_req_resp" + } + } + }, + "description": "Array of host names" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostlist_req_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostlist_req_resp" + } + } + }, + "description": "Hostlist expression" + } + } + }, + "\/util\/v0.0.44\/hostlist": { + "post": { + "tags": [ + "util" + ], + "summary": "Convert an array of host names into hostlist expression", + "operationId": "util_v0044_post_hostlist", + "responses": { + "200": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostlist_req_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostlist_req_resp" + } + } + }, + "description": "Hostlist expression" + }, + "default": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostlist_req_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostlist_req_resp" + } + } + }, + "description": "Hostlist expression" + } + }, + "requestBody": { + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostnames_req_resp" + } + }, + "application\/yaml": { + "schema": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_hostnames_req_resp" + } + } + }, + "description": "Array of host names" + } + } + } + }, + "components": { + "schemas": { + "v0.0.41_openapi_shares_resp": { + "type": "object", + "properties": { + "shares": { + "type": "object", + "description": "fairshare info", + "properties": { + "shares": { + "type": "array", + "description": "Association shares", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "name": { + "type": "string", + "description": "Share name" + }, + "parent": { + "type": "string", + "description": "Parent name" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "shares_normalized": { + "type": "object", + "description": "Normalized shares", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "shares": { + "type": "object", + "description": "Number of shares allocated", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tres": { + "type": "object", + "properties": { + "run_seconds": { + "type": "array", + "description": "Currently running tres-secs = grp_used_tres_run_secs", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "type": "object", + "description": "TRES value", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + ] + } + }, + "group_minutes": { + "type": "array", + "description": "TRES-minute limit", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "type": "object", + "description": "TRES value", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + ] + } + }, + "usage": { + "type": "array", + "description": "Measure of each TRES usage", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "type": "number", + "description": "TRES value" + } + }, + "required": [ + ] + } + } + } + }, + "effective_usage": { + "type": "number", + "format": "double", + "description": "Effective, normalized usage" + }, + "usage_normalized": { + "type": "object", + "description": "Normalized usage", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "usage": { + "type": "integer", + "format": "int64", + "description": "Measure of tresbillableunits usage" + }, + "fairshare": { + "type": "object", + "properties": { + "factor": { + "type": "number", + "format": "double", + "description": "Fairshare factor" + }, + "level": { + "type": "number", + "format": "double", + "description": "Fairshare factor at this level; stored on an assoc as a long double, but that is not needed for display in sshare" + } + } + }, + "type": { + "type": "array", + "description": "User or account association", + "items": { + "enum": [ + "USER", + "ASSOCIATION" + ], + "type": "string" + } + } + }, + "required": [ + ] + } + }, + "total_shares": { + "type": "integer", + "format": "int64", + "description": "Total number of shares" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "shares" + ] + }, + "v0.0.44_openapi_shares_resp": { + "type": "object", + "properties": { + "shares": { + "$ref": "#\/components\/schemas\/v0.0.44_shares_resp_msg", + "description": "fairshare info" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "shares" + ] + }, + "v0.0.44_shares_resp_msg": { + "type": "object", + "properties": { + "shares": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_shares_obj_list", + "description": "Association shares" + }, + "total_shares": { + "type": "integer", + "format": "int64", + "description": "Total number of shares" + } + }, + "required": [ + ] + }, + "v0.0.44_assoc_shares_obj_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_shares_obj_wrap" + } + }, + "v0.0.44_assoc_shares_obj_wrap": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "name": { + "type": "string", + "description": "Share name" + }, + "parent": { + "type": "string", + "description": "Parent name" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "shares_normalized": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "Normalized shares (64 bit floating point number with flags)" + }, + "shares": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Number of shares allocated (32 bit integer number with flags)" + }, + "tres": { + "type": "object", + "properties": { + "run_seconds": { + "$ref": "#\/components\/schemas\/v0.0.44_shares_uint64_tres_list", + "description": "Currently running tres-secs = grp_used_tres_run_secs" + }, + "group_minutes": { + "$ref": "#\/components\/schemas\/v0.0.44_shares_uint64_tres_list", + "description": "TRES-minute limit" + }, + "usage": { + "$ref": "#\/components\/schemas\/v0.0.44_shares_float128_tres_list", + "description": "Measure of each TRES usage" + } + } + }, + "effective_usage": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "Effective, normalized usage (64 bit floating point number with flags)" + }, + "usage_normalized": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "Normalized usage (64 bit floating point number with flags)" + }, + "usage": { + "type": "integer", + "format": "int64", + "description": "Measure of tresbillableunits usage" + }, + "fairshare": { + "type": "object", + "properties": { + "factor": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "Fairshare factor (64 bit floating point number with flags)" + }, + "level": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "Fairshare factor at this level; stored on an assoc as a long double, but that is not needed for display in sshare (64 bit floating point number with flags)" + } + } + }, + "type": { + "type": "array", + "description": "User or account association", + "items": { + "enum": [ + "USER", + "ASSOCIATION" + ], + "type": "string" + } + } + }, + "required": [ + ] + }, + "v0.0.44_float64_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.44_uint32_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.44_shares_uint64_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_shares_uint64_tres" + } + }, + "v0.0.44_shares_uint64_tres": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "TRES value (64 bit integer number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.44_uint64_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.44_shares_float128_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_shares_float128_tres" + } + }, + "v0.0.44_shares_float128_tres": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "type": "number", + "description": "TRES value" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_meta": { + "type": "object", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "$ref": "#\/components\/schemas\/v0.0.44_string_array", + "description": "CLI command (if applicable)" + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "v0.0.44_string_array": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.44_openapi_errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_error" + } + }, + "v0.0.44_openapi_error": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_warnings": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warning" + } + }, + "v0.0.44_openapi_warning": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_shares_resp": { + "type": "object", + "properties": { + "shares": { + "$ref": "#\/components\/schemas\/v0.0.42_shares_resp_msg", + "description": "fairshare info" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "shares" + ] + }, + "v0.0.42_shares_resp_msg": { + "type": "object", + "properties": { + "shares": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_shares_obj_list", + "description": "Association shares" + }, + "total_shares": { + "type": "integer", + "format": "int64", + "description": "Total number of shares" + } + }, + "required": [ + ] + }, + "v0.0.42_assoc_shares_obj_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_shares_obj_wrap" + } + }, + "v0.0.42_assoc_shares_obj_wrap": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "name": { + "type": "string", + "description": "Share name" + }, + "parent": { + "type": "string", + "description": "Parent name" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "shares_normalized": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "Normalized shares" + }, + "shares": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Number of shares allocated" + }, + "tres": { + "type": "object", + "properties": { + "run_seconds": { + "$ref": "#\/components\/schemas\/v0.0.42_shares_uint64_tres_list", + "description": "Currently running tres-secs = grp_used_tres_run_secs" + }, + "group_minutes": { + "$ref": "#\/components\/schemas\/v0.0.42_shares_uint64_tres_list", + "description": "TRES-minute limit" + }, + "usage": { + "$ref": "#\/components\/schemas\/v0.0.42_shares_float128_tres_list", + "description": "Measure of each TRES usage" + } + } + }, + "effective_usage": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "Effective, normalized usage" + }, + "usage_normalized": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "Normalized usage" + }, + "usage": { + "type": "integer", + "format": "int64", + "description": "Measure of tresbillableunits usage" + }, + "fairshare": { + "type": "object", + "properties": { + "factor": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "Fairshare factor" + }, + "level": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "Fairshare factor at this level; stored on an assoc as a long double, but that is not needed for display in sshare" + } + } + }, + "type": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_shares_obj_wrap_type", + "description": "User or account association" + } + }, + "required": [ + ] + }, + "v0.0.42_float64_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.42_uint32_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.42_shares_uint64_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_shares_uint64_tres" + } + }, + "v0.0.42_shares_uint64_tres": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "TRES value" + } + }, + "required": [ + ] + }, + "v0.0.42_uint64_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.42_shares_float128_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_shares_float128_tres" + } + }, + "v0.0.42_shares_float128_tres": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "type": "number", + "description": "TRES value" + } + }, + "required": [ + ] + }, + "v0.0.42_assoc_shares_obj_wrap_type": { + "type": "array", + "items": { + "enum": [ + "USER", + "ASSOCIATION" + ], + "type": "string" + } + }, + "v0.0.42_openapi_meta": { + "type": "object", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "$ref": "#\/components\/schemas\/v0.0.42_string_array", + "description": "CLI command (if applicable)" + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "v0.0.42_string_array": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.42_openapi_errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_error" + } + }, + "v0.0.42_openapi_error": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_warnings": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warning" + } + }, + "v0.0.42_openapi_warning": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_shares_resp": { + "type": "object", + "properties": { + "shares": { + "$ref": "#\/components\/schemas\/v0.0.43_shares_resp_msg", + "description": "fairshare info" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "shares" + ] + }, + "v0.0.43_shares_resp_msg": { + "type": "object", + "properties": { + "shares": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_shares_obj_list", + "description": "Association shares" + }, + "total_shares": { + "type": "integer", + "format": "int64", + "description": "Total number of shares" + } + }, + "required": [ + ] + }, + "v0.0.43_assoc_shares_obj_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_shares_obj_wrap" + } + }, + "v0.0.43_assoc_shares_obj_wrap": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "name": { + "type": "string", + "description": "Share name" + }, + "parent": { + "type": "string", + "description": "Parent name" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "shares_normalized": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "Normalized shares (64 bit floating point number with flags)" + }, + "shares": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Number of shares allocated (32 bit integer number with flags)" + }, + "tres": { + "type": "object", + "properties": { + "run_seconds": { + "$ref": "#\/components\/schemas\/v0.0.43_shares_uint64_tres_list", + "description": "Currently running tres-secs = grp_used_tres_run_secs" + }, + "group_minutes": { + "$ref": "#\/components\/schemas\/v0.0.43_shares_uint64_tres_list", + "description": "TRES-minute limit" + }, + "usage": { + "$ref": "#\/components\/schemas\/v0.0.43_shares_float128_tres_list", + "description": "Measure of each TRES usage" + } + } + }, + "effective_usage": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "Effective, normalized usage (64 bit floating point number with flags)" + }, + "usage_normalized": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "Normalized usage (64 bit floating point number with flags)" + }, + "usage": { + "type": "integer", + "format": "int64", + "description": "Measure of tresbillableunits usage" + }, + "fairshare": { + "type": "object", + "properties": { + "factor": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "Fairshare factor (64 bit floating point number with flags)" + }, + "level": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "Fairshare factor at this level; stored on an assoc as a long double, but that is not needed for display in sshare (64 bit floating point number with flags)" + } + } + }, + "type": { + "type": "array", + "description": "User or account association", + "items": { + "enum": [ + "USER", + "ASSOCIATION" + ], + "type": "string" + } + } + }, + "required": [ + ] + }, + "v0.0.43_float64_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.43_uint32_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.43_shares_uint64_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_shares_uint64_tres" + } + }, + "v0.0.43_shares_uint64_tres": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "TRES value (64 bit integer number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.43_uint64_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.43_shares_float128_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_shares_float128_tres" + } + }, + "v0.0.43_shares_float128_tres": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "TRES name" + }, + "value": { + "type": "number", + "description": "TRES value" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_meta": { + "type": "object", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "$ref": "#\/components\/schemas\/v0.0.43_string_array", + "description": "CLI command (if applicable)" + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "v0.0.43_string_array": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_openapi_errors": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_error" + } + }, + "v0.0.43_openapi_error": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_warnings": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warning" + } + }, + "v0.0.43_openapi_warning": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_resp": { + "type": "object", + "properties": { + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_resp": { + "type": "object", + "properties": { + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_resp": { + "type": "object", + "properties": { + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_resp": { + "type": "object", + "properties": { + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_diag_resp": { + "type": "object", + "properties": { + "statistics": { + "type": "object", + "description": "statistics", + "properties": { + "parts_packed": { + "type": "integer", + "format": "int32", + "description": "Zero if only RPC statistic included", + "deprecated": true + }, + "req_time": { + "type": "object", + "description": "When the request was made (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "req_time_start": { + "type": "object", + "description": "When the data in the report started (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "server_thread_count": { + "type": "integer", + "format": "int32", + "description": "Number of current active slurmctld threads" + }, + "agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of enqueued outgoing RPC requests in an internal retry list" + }, + "agent_count": { + "type": "integer", + "format": "int32", + "description": "Number of agent threads" + }, + "agent_thread_count": { + "type": "integer", + "format": "int32", + "description": "Total number of active threads created by all agent threads" + }, + "dbd_agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of messages for SlurmDBD that are queued" + }, + "gettimeofday_latency": { + "type": "integer", + "format": "int32", + "description": "Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup" + }, + "schedule_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Max time of any scheduling cycle in microseconds since last reset" + }, + "schedule_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Time in microseconds for last scheduling cycle" + }, + "schedule_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total run time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_total": { + "type": "integer", + "format": "int32", + "description": "Number of scheduling cycles since last reset" + }, + "schedule_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_mean_depth": { + "type": "integer", + "format": "int64", + "description": "Mean of the number of jobs processed in a scheduling cycle" + }, + "schedule_cycle_per_minute": { + "type": "integer", + "format": "int64", + "description": "Number of scheduling executions per minute" + }, + "schedule_cycle_depth": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed in scheduling cycles" + }, + "schedule_exit": { + "type": "object", + "description": "Reasons for which the scheduling cycle exited since last reset", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "default_queue_depth": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "max_rpc_cnt": { + "type": "integer", + "format": "int32", + "description": "Reached RPC limit" + }, + "max_sched_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "licenses": { + "type": "integer", + "format": "int32", + "description": "Blocked on licenses" + } + }, + "required": [ + ] + }, + "schedule_queue_length": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending in queue" + }, + "jobs_submitted": { + "type": "integer", + "format": "int32", + "description": "Number of jobs submitted since last reset" + }, + "jobs_started": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started since last reset" + }, + "jobs_completed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs completed since last reset" + }, + "jobs_canceled": { + "type": "integer", + "format": "int32", + "description": "Number of jobs canceled since the last reset" + }, + "jobs_failed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs failed due to slurmd or other internal issues since last reset" + }, + "jobs_pending": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending at the time of listed in job_state_ts" + }, + "jobs_running": { + "type": "integer", + "format": "int32", + "description": "Number of jobs running at the time of listed in job_state_ts" + }, + "job_states_ts": { + "type": "object", + "description": "When the job state counts were gathered (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "bf_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last slurm start" + }, + "bf_last_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last reset" + }, + "bf_backfilled_het_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of heterogeneous job components started through backfilling since last Slurm start" + }, + "bf_cycle_counter": { + "type": "integer", + "format": "int32", + "description": "Number of backfill scheduling cycles since last reset" + }, + "bf_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_depth_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_mean_try": { + "type": "integer", + "format": "int64", + "description": "The subset of Depth Mean that the backfill scheduler attempted to schedule" + }, + "bf_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of last backfill scheduling cycle" + }, + "bf_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of longest backfill scheduling cycle" + }, + "bf_exit": { + "type": "object", + "description": "Reasons for which the backfill scheduling cycle exited since last reset", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "bf_max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "bf_max_job_test": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "bf_max_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "bf_node_space_size": { + "type": "integer", + "format": "int32", + "description": "Reached table size limit" + }, + "state_changed": { + "type": "integer", + "format": "int32", + "description": "System state changed" + } + }, + "required": [ + ] + }, + "bf_last_depth": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle" + }, + "bf_last_depth_try": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources" + }, + "bf_depth_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_try_sum": { + "type": "integer", + "format": "int32", + "description": "Subset of bf_depth_sum that the backfill scheduler attempted to schedule" + }, + "bf_queue_len": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs pending to be processed by backfilling algorithm since last reset" + }, + "bf_table_size": { + "type": "integer", + "format": "int32", + "description": "Number of different time slots tested by the backfill scheduler in its last iteration" + }, + "bf_table_size_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of different time slots tested by the backfill scheduler" + }, + "bf_table_size_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of different time slots tested by the backfill scheduler" + }, + "bf_when_last_cycle": { + "type": "object", + "description": "When the last backfill scheduling cycle happened (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "bf_active": { + "type": "boolean", + "description": "Backfill scheduler currently running" + }, + "rpcs_by_message_type": { + "type": "array", + "description": "Most frequently issued remote procedure calls (RPCs)", + "items": { + "type": "object", + "description": "RPCs by type", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "queued": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs queued" + }, + "dropped": { + "type": "integer", + "format": "int64", + "description": "Number of RPCs dropped" + }, + "cycle_last": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed within the last RPC queue cycle" + }, + "cycle_max": { + "type": "integer", + "format": "int32", + "description": "Maximum number of RPCs processed within a RPC queue cycle since start" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "type": "object", + "description": "Average time spent processing RPC in seconds", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + "type_id", + "message_type", + "count", + "queued", + "dropped", + "cycle_last", + "cycle_max", + "total_time", + "average_time" + ] + } + }, + "rpcs_by_user": { + "type": "array", + "description": "RPCs issued by user ID", + "items": { + "type": "object", + "description": "RPCs by user", + "properties": { + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID (numeric)" + }, + "user": { + "type": "string", + "description": "User name" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "type": "object", + "description": "Average time spent processing RPC in seconds", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + "user_id", + "user", + "count", + "total_time", + "average_time" + ] + } + }, + "pending_rpcs": { + "type": "array", + "description": "Pending RPC statistics", + "items": { + "type": "object", + "description": "Pending RPCs", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of pending RPCs queued" + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + } + }, + "pending_rpcs_by_hostlist": { + "type": "array", + "description": "Pending RPCs hostlists", + "items": { + "type": "object", + "description": "Pending RPCs by hostlist", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string" + }, + "count": { + "type": "array", + "description": "Number of RPCs received", + "items": { + "type": "string" + } + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + } + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.44_openapi_diag_resp": { + "type": "object", + "properties": { + "statistics": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg", + "description": "statistics" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.44_stats_msg": { + "type": "object", + "properties": { + "parts_packed": { + "type": "integer", + "format": "int32", + "description": "Zero if only RPC statistic included", + "deprecated": true + }, + "req_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "When the request was made (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "req_time_start": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "When the data in the report started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "server_thread_count": { + "type": "integer", + "format": "int32", + "description": "Number of current active slurmctld threads" + }, + "agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of enqueued outgoing RPC requests in an internal retry list" + }, + "agent_count": { + "type": "integer", + "format": "int32", + "description": "Number of agent threads" + }, + "agent_thread_count": { + "type": "integer", + "format": "int32", + "description": "Total number of active threads created by all agent threads" + }, + "dbd_agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of messages for SlurmDBD that are queued" + }, + "gettimeofday_latency": { + "type": "integer", + "format": "int32", + "description": "Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup" + }, + "schedule_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Max time of any scheduling cycle in microseconds since last reset" + }, + "schedule_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Time in microseconds for last scheduling cycle" + }, + "schedule_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total run time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_total": { + "type": "integer", + "format": "int32", + "description": "Number of scheduling cycles since last reset" + }, + "schedule_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_mean_depth": { + "type": "integer", + "format": "int64", + "description": "Mean of the number of jobs processed in a scheduling cycle" + }, + "schedule_cycle_per_minute": { + "type": "integer", + "format": "int64", + "description": "Number of scheduling executions per minute" + }, + "schedule_cycle_depth": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed in scheduling cycles" + }, + "schedule_exit": { + "$ref": "#\/components\/schemas\/v0.0.44_schedule_exit_fields", + "description": "Reasons for which the scheduling cycle exited since last reset" + }, + "schedule_queue_length": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending in queue" + }, + "jobs_submitted": { + "type": "integer", + "format": "int32", + "description": "Number of jobs submitted since last reset" + }, + "jobs_started": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started since last reset" + }, + "jobs_completed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs completed since last reset" + }, + "jobs_canceled": { + "type": "integer", + "format": "int32", + "description": "Number of jobs canceled since the last reset" + }, + "jobs_failed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs failed due to slurmd or other internal issues since last reset" + }, + "jobs_pending": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending at the time of listed in job_state_ts" + }, + "jobs_running": { + "type": "integer", + "format": "int32", + "description": "Number of jobs running at the time of listed in job_state_ts" + }, + "job_states_ts": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "When the job state counts were gathered (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "bf_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last slurm start" + }, + "bf_last_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last reset" + }, + "bf_backfilled_het_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of heterogeneous job components started through backfilling since last Slurm start" + }, + "bf_cycle_counter": { + "type": "integer", + "format": "int32", + "description": "Number of backfill scheduling cycles since last reset" + }, + "bf_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_depth_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_mean_try": { + "type": "integer", + "format": "int64", + "description": "The subset of Depth Mean that the backfill scheduler attempted to schedule" + }, + "bf_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of last backfill scheduling cycle" + }, + "bf_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of longest backfill scheduling cycle" + }, + "bf_exit": { + "$ref": "#\/components\/schemas\/v0.0.44_bf_exit_fields", + "description": "Reasons for which the backfill scheduling cycle exited since last reset" + }, + "bf_last_depth": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle" + }, + "bf_last_depth_try": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources" + }, + "bf_depth_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_try_sum": { + "type": "integer", + "format": "int32", + "description": "Subset of bf_depth_sum that the backfill scheduler attempted to schedule" + }, + "bf_queue_len": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs pending to be processed by backfilling algorithm since last reset" + }, + "bf_table_size": { + "type": "integer", + "format": "int32", + "description": "Number of different time slots tested by the backfill scheduler in its last iteration" + }, + "bf_table_size_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of different time slots tested by the backfill scheduler" + }, + "bf_table_size_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of different time slots tested by the backfill scheduler" + }, + "bf_when_last_cycle": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "When the last backfill scheduling cycle happened (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "bf_active": { + "type": "boolean", + "description": "Backfill scheduler currently running" + }, + "rpcs_by_message_type": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpcs_by_type", + "description": "Most frequently issued remote procedure calls (RPCs) (RPCs by type)" + }, + "rpcs_by_user": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpcs_by_user", + "description": "RPCs issued by user ID (RPCs by user)" + }, + "pending_rpcs": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpcs_queue", + "description": "Pending RPC statistics (Pending RPCs)" + }, + "pending_rpcs_by_hostlist": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpcs_dump", + "description": "Pending RPCs hostlists (Pending RPCs by hostlist)" + } + }, + "required": [ + ] + }, + "v0.0.44_schedule_exit_fields": { + "type": "object", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "default_queue_depth": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "max_rpc_cnt": { + "type": "integer", + "format": "int32", + "description": "Reached RPC limit" + }, + "max_sched_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "licenses": { + "type": "integer", + "format": "int32", + "description": "Blocked on licenses" + } + }, + "required": [ + ] + }, + "v0.0.44_bf_exit_fields": { + "type": "object", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "bf_max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "bf_max_job_test": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "bf_max_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "bf_node_space_size": { + "type": "integer", + "format": "int32", + "description": "Reached table size limit" + }, + "state_changed": { + "type": "integer", + "format": "int32", + "description": "System state changed" + } + }, + "required": [ + ] + }, + "v0.0.44_stats_msg_rpcs_by_type": { + "type": "array", + "description": "RPCs by type", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpc_type" + } + }, + "v0.0.44_stats_msg_rpc_type": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string (Slurm RPC message type)" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "queued": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs queued" + }, + "dropped": { + "type": "integer", + "format": "int64", + "description": "Number of RPCs dropped" + }, + "cycle_last": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed within the last RPC queue cycle" + }, + "cycle_max": { + "type": "integer", + "format": "int32", + "description": "Maximum number of RPCs processed within a RPC queue cycle since start" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Average time spent processing RPC in seconds (64 bit integer number with flags)" + } + }, + "required": [ + "type_id", + "message_type", + "count", + "queued", + "dropped", + "cycle_last", + "cycle_max", + "total_time", + "average_time" + ] + }, + "v0.0.44_stats_msg_rpcs_by_user": { + "type": "array", + "description": "RPCs by user", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpc_user" + } + }, + "v0.0.44_stats_msg_rpc_user": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID (numeric)" + }, + "user": { + "type": "string", + "description": "User name" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Average time spent processing RPC in seconds (64 bit integer number with flags)" + } + }, + "required": [ + "user_id", + "user", + "count", + "total_time", + "average_time" + ] + }, + "v0.0.44_stats_msg_rpcs_queue": { + "type": "array", + "description": "Pending RPCs", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpc_queue" + } + }, + "v0.0.44_stats_msg_rpc_queue": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string (Slurm RPC message type)" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of pending RPCs queued" + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + }, + "v0.0.44_stats_msg_rpcs_dump": { + "type": "array", + "description": "Pending RPCs by hostlist", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_msg_rpc_dump" + } + }, + "v0.0.44_stats_msg_rpc_dump": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string (Slurm RPC message type)" + }, + "count": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist_string", + "description": "Number of RPCs received" + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + }, + "v0.0.44_hostlist_string": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.42_openapi_diag_resp": { + "type": "object", + "properties": { + "statistics": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg", + "description": "statistics" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.42_stats_msg": { + "type": "object", + "properties": { + "parts_packed": { + "type": "integer", + "format": "int32", + "description": "Zero if only RPC statistic included", + "deprecated": true + }, + "req_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "When the request was made (UNIX timestamp)" + }, + "req_time_start": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "When the data in the report started (UNIX timestamp)" + }, + "server_thread_count": { + "type": "integer", + "format": "int32", + "description": "Number of current active slurmctld threads" + }, + "agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of enqueued outgoing RPC requests in an internal retry list" + }, + "agent_count": { + "type": "integer", + "format": "int32", + "description": "Number of agent threads" + }, + "agent_thread_count": { + "type": "integer", + "format": "int32", + "description": "Total number of active threads created by all agent threads" + }, + "dbd_agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of messages for SlurmDBD that are queued" + }, + "gettimeofday_latency": { + "type": "integer", + "format": "int32", + "description": "Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup" + }, + "schedule_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Max time of any scheduling cycle in microseconds since last reset" + }, + "schedule_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Time in microseconds for last scheduling cycle" + }, + "schedule_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total run time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_total": { + "type": "integer", + "format": "int32", + "description": "Number of scheduling cycles since last reset" + }, + "schedule_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_mean_depth": { + "type": "integer", + "format": "int64", + "description": "Mean of the number of jobs processed in a scheduling cycle" + }, + "schedule_cycle_per_minute": { + "type": "integer", + "format": "int64", + "description": "Number of scheduling executions per minute" + }, + "schedule_cycle_depth": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed in scheduling cycles" + }, + "schedule_exit": { + "$ref": "#\/components\/schemas\/v0.0.42_schedule_exit_fields", + "description": "Reasons for which the scheduling cycle exited since last reset" + }, + "schedule_queue_length": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending in queue" + }, + "jobs_submitted": { + "type": "integer", + "format": "int32", + "description": "Number of jobs submitted since last reset" + }, + "jobs_started": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started since last reset" + }, + "jobs_completed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs completed since last reset" + }, + "jobs_canceled": { + "type": "integer", + "format": "int32", + "description": "Number of jobs canceled since the last reset" + }, + "jobs_failed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs failed due to slurmd or other internal issues since last reset" + }, + "jobs_pending": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending at the time of listed in job_state_ts" + }, + "jobs_running": { + "type": "integer", + "format": "int32", + "description": "Number of jobs running at the time of listed in job_state_ts" + }, + "job_states_ts": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "When the job state counts were gathered (UNIX timestamp)" + }, + "bf_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last slurm start" + }, + "bf_last_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last reset" + }, + "bf_backfilled_het_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of heterogeneous job components started through backfilling since last Slurm start" + }, + "bf_cycle_counter": { + "type": "integer", + "format": "int32", + "description": "Number of backfill scheduling cycles since last reset" + }, + "bf_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_depth_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_mean_try": { + "type": "integer", + "format": "int64", + "description": "The subset of Depth Mean that the backfill scheduler attempted to schedule" + }, + "bf_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of last backfill scheduling cycle" + }, + "bf_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of longest backfill scheduling cycle" + }, + "bf_exit": { + "$ref": "#\/components\/schemas\/v0.0.42_bf_exit_fields", + "description": "Reasons for which the backfill scheduling cycle exited since last reset" + }, + "bf_last_depth": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle" + }, + "bf_last_depth_try": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources" + }, + "bf_depth_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_try_sum": { + "type": "integer", + "format": "int32", + "description": "Subset of bf_depth_sum that the backfill scheduler attempted to schedule" + }, + "bf_queue_len": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs pending to be processed by backfilling algorithm since last reset" + }, + "bf_table_size": { + "type": "integer", + "format": "int32", + "description": "Number of different time slots tested by the backfill scheduler in its last iteration" + }, + "bf_table_size_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of different time slots tested by the backfill scheduler" + }, + "bf_table_size_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of different time slots tested by the backfill scheduler" + }, + "bf_when_last_cycle": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "When the last backfill scheduling cycle happened (UNIX timestamp)" + }, + "bf_active": { + "type": "boolean", + "description": "Backfill scheduler currently running" + }, + "rpcs_by_message_type": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpcs_by_type", + "description": "Most frequently issued remote procedure calls (RPCs)" + }, + "rpcs_by_user": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpcs_by_user", + "description": "RPCs issued by user ID" + }, + "pending_rpcs": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpcs_queue", + "description": "Pending RPC statistics" + }, + "pending_rpcs_by_hostlist": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpcs_dump", + "description": "Pending RPCs hostlists" + } + }, + "required": [ + ] + }, + "v0.0.42_schedule_exit_fields": { + "type": "object", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "default_queue_depth": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "max_rpc_cnt": { + "type": "integer", + "format": "int32", + "description": "Reached RPC limit" + }, + "max_sched_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "licenses": { + "type": "integer", + "format": "int32", + "description": "Blocked on licenses" + } + }, + "required": [ + ] + }, + "v0.0.42_bf_exit_fields": { + "type": "object", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "bf_max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "bf_max_job_test": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "bf_max_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "bf_node_space_size": { + "type": "integer", + "format": "int32", + "description": "Reached table size limit" + }, + "state_changed": { + "type": "integer", + "format": "int32", + "description": "System state changed" + } + }, + "required": [ + ] + }, + "v0.0.42_stats_msg_rpcs_by_type": { + "type": "array", + "description": "RPCs by type", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpc_type", + "description": "RPCs by type" + } + }, + "v0.0.42_stats_msg_rpc_type": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "queued": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs queued" + }, + "dropped": { + "type": "integer", + "format": "int64", + "description": "Number of RPCs dropped" + }, + "cycle_last": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed within the last RPC queue cycle" + }, + "cycle_max": { + "type": "integer", + "format": "int32", + "description": "Maximum number of RPCs processed within a RPC queue cycle since start" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Average time spent processing RPC in seconds" + } + }, + "required": [ + "type_id", + "message_type", + "count", + "queued", + "dropped", + "cycle_last", + "cycle_max", + "total_time", + "average_time" + ] + }, + "v0.0.42_stats_msg_rpcs_by_user": { + "type": "array", + "description": "RPCs by user", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpc_user", + "description": "RPCs by user" + } + }, + "v0.0.42_stats_msg_rpc_user": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID (numeric)" + }, + "user": { + "type": "string", + "description": "User name" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Average time spent processing RPC in seconds" + } + }, + "required": [ + "user_id", + "user", + "count", + "total_time", + "average_time" + ] + }, + "v0.0.42_stats_msg_rpcs_queue": { + "type": "array", + "description": "Pending RPCs", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpc_queue", + "description": "Pending RPCs" + } + }, + "v0.0.42_stats_msg_rpc_queue": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of pending RPCs queued" + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + }, + "v0.0.42_stats_msg_rpcs_dump": { + "type": "array", + "description": "Pending RPCs by hostlist", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_msg_rpc_dump", + "description": "Pending RPCs by hostlist" + } + }, + "v0.0.42_stats_msg_rpc_dump": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string" + }, + "count": { + "$ref": "#\/components\/schemas\/v0.0.42_hostlist_string", + "description": "Number of RPCs received" + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + }, + "v0.0.42_hostlist_string": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_openapi_diag_resp": { + "type": "object", + "properties": { + "statistics": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg", + "description": "statistics" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.43_stats_msg": { + "type": "object", + "properties": { + "parts_packed": { + "type": "integer", + "format": "int32", + "description": "Zero if only RPC statistic included", + "deprecated": true + }, + "req_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "When the request was made (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "req_time_start": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "When the data in the report started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "server_thread_count": { + "type": "integer", + "format": "int32", + "description": "Number of current active slurmctld threads" + }, + "agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of enqueued outgoing RPC requests in an internal retry list" + }, + "agent_count": { + "type": "integer", + "format": "int32", + "description": "Number of agent threads" + }, + "agent_thread_count": { + "type": "integer", + "format": "int32", + "description": "Total number of active threads created by all agent threads" + }, + "dbd_agent_queue_size": { + "type": "integer", + "format": "int32", + "description": "Number of messages for SlurmDBD that are queued" + }, + "gettimeofday_latency": { + "type": "integer", + "format": "int32", + "description": "Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup" + }, + "schedule_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Max time of any scheduling cycle in microseconds since last reset" + }, + "schedule_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Time in microseconds for last scheduling cycle" + }, + "schedule_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total run time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_total": { + "type": "integer", + "format": "int32", + "description": "Number of scheduling cycles since last reset" + }, + "schedule_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds for all scheduling cycles since last reset" + }, + "schedule_cycle_mean_depth": { + "type": "integer", + "format": "int64", + "description": "Mean of the number of jobs processed in a scheduling cycle" + }, + "schedule_cycle_per_minute": { + "type": "integer", + "format": "int64", + "description": "Number of scheduling executions per minute" + }, + "schedule_cycle_depth": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed in scheduling cycles" + }, + "schedule_exit": { + "$ref": "#\/components\/schemas\/v0.0.43_schedule_exit_fields", + "description": "Reasons for which the scheduling cycle exited since last reset" + }, + "schedule_queue_length": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending in queue" + }, + "jobs_submitted": { + "type": "integer", + "format": "int32", + "description": "Number of jobs submitted since last reset" + }, + "jobs_started": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started since last reset" + }, + "jobs_completed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs completed since last reset" + }, + "jobs_canceled": { + "type": "integer", + "format": "int32", + "description": "Number of jobs canceled since the last reset" + }, + "jobs_failed": { + "type": "integer", + "format": "int32", + "description": "Number of jobs failed due to slurmd or other internal issues since last reset" + }, + "jobs_pending": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending at the time of listed in job_state_ts" + }, + "jobs_running": { + "type": "integer", + "format": "int32", + "description": "Number of jobs running at the time of listed in job_state_ts" + }, + "job_states_ts": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "When the job state counts were gathered (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "bf_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last slurm start" + }, + "bf_last_backfilled_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of jobs started through backfilling since last reset" + }, + "bf_backfilled_het_jobs": { + "type": "integer", + "format": "int32", + "description": "Number of heterogeneous job components started through backfilling since last Slurm start" + }, + "bf_cycle_counter": { + "type": "integer", + "format": "int32", + "description": "Number of backfill scheduling cycles since last reset" + }, + "bf_cycle_mean": { + "type": "integer", + "format": "int64", + "description": "Mean time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_depth_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_mean_try": { + "type": "integer", + "format": "int64", + "description": "The subset of Depth Mean that the backfill scheduler attempted to schedule" + }, + "bf_cycle_sum": { + "type": "integer", + "format": "int64", + "description": "Total time in microseconds of backfilling scheduling cycles since last reset" + }, + "bf_cycle_last": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of last backfill scheduling cycle" + }, + "bf_cycle_max": { + "type": "integer", + "format": "int32", + "description": "Execution time in microseconds of longest backfill scheduling cycle" + }, + "bf_exit": { + "$ref": "#\/components\/schemas\/v0.0.43_bf_exit_fields", + "description": "Reasons for which the backfill scheduling cycle exited since last reset" + }, + "bf_last_depth": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle" + }, + "bf_last_depth_try": { + "type": "integer", + "format": "int32", + "description": "Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources" + }, + "bf_depth_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs processed during all backfilling scheduling cycles since last reset" + }, + "bf_depth_try_sum": { + "type": "integer", + "format": "int32", + "description": "Subset of bf_depth_sum that the backfill scheduler attempted to schedule" + }, + "bf_queue_len": { + "type": "integer", + "format": "int32", + "description": "Number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of jobs pending to be processed by backfilling algorithm" + }, + "bf_queue_len_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of jobs pending to be processed by backfilling algorithm since last reset" + }, + "bf_table_size": { + "type": "integer", + "format": "int32", + "description": "Number of different time slots tested by the backfill scheduler in its last iteration" + }, + "bf_table_size_sum": { + "type": "integer", + "format": "int32", + "description": "Total number of different time slots tested by the backfill scheduler" + }, + "bf_table_size_mean": { + "type": "integer", + "format": "int64", + "description": "Mean number of different time slots tested by the backfill scheduler" + }, + "bf_when_last_cycle": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "When the last backfill scheduling cycle happened (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "bf_active": { + "type": "boolean", + "description": "Backfill scheduler currently running" + }, + "rpcs_by_message_type": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpcs_by_type", + "description": "Most frequently issued remote procedure calls (RPCs) (RPCs by type)" + }, + "rpcs_by_user": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpcs_by_user", + "description": "RPCs issued by user ID (RPCs by user)" + }, + "pending_rpcs": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpcs_queue", + "description": "Pending RPC statistics (Pending RPCs)" + }, + "pending_rpcs_by_hostlist": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpcs_dump", + "description": "Pending RPCs hostlists (Pending RPCs by hostlist)" + } + }, + "required": [ + ] + }, + "v0.0.43_schedule_exit_fields": { + "type": "object", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "default_queue_depth": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "max_rpc_cnt": { + "type": "integer", + "format": "int32", + "description": "Reached RPC limit" + }, + "max_sched_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "licenses": { + "type": "integer", + "format": "int32", + "description": "Blocked on licenses" + } + }, + "required": [ + ] + }, + "v0.0.43_bf_exit_fields": { + "type": "object", + "properties": { + "end_job_queue": { + "type": "integer", + "format": "int32", + "description": "Reached end of queue" + }, + "bf_max_job_start": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to start" + }, + "bf_max_job_test": { + "type": "integer", + "format": "int32", + "description": "Reached number of jobs allowed to be tested" + }, + "bf_max_time": { + "type": "integer", + "format": "int32", + "description": "Reached maximum allowed scheduler time" + }, + "bf_node_space_size": { + "type": "integer", + "format": "int32", + "description": "Reached table size limit" + }, + "state_changed": { + "type": "integer", + "format": "int32", + "description": "System state changed" + } + }, + "required": [ + ] + }, + "v0.0.43_stats_msg_rpcs_by_type": { + "type": "array", + "description": "RPCs by type", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpc_type" + } + }, + "v0.0.43_stats_msg_rpc_type": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string (Slurm RPC message type)" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "queued": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs queued" + }, + "dropped": { + "type": "integer", + "format": "int64", + "description": "Number of RPCs dropped" + }, + "cycle_last": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed within the last RPC queue cycle" + }, + "cycle_max": { + "type": "integer", + "format": "int32", + "description": "Maximum number of RPCs processed within a RPC queue cycle since start" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Average time spent processing RPC in seconds (64 bit integer number with flags)" + } + }, + "required": [ + "type_id", + "message_type", + "count", + "queued", + "dropped", + "cycle_last", + "cycle_max", + "total_time", + "average_time" + ] + }, + "v0.0.43_stats_msg_rpcs_by_user": { + "type": "array", + "description": "RPCs by user", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpc_user" + } + }, + "v0.0.43_stats_msg_rpc_user": { + "type": "object", + "properties": { + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID (numeric)" + }, + "user": { + "type": "string", + "description": "User name" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs received" + }, + "total_time": { + "type": "integer", + "format": "int64", + "description": "Total time spent processing RPC in seconds" + }, + "average_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Average time spent processing RPC in seconds (64 bit integer number with flags)" + } + }, + "required": [ + "user_id", + "user", + "count", + "total_time", + "average_time" + ] + }, + "v0.0.43_stats_msg_rpcs_queue": { + "type": "array", + "description": "Pending RPCs", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpc_queue" + } + }, + "v0.0.43_stats_msg_rpc_queue": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string (Slurm RPC message type)" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of pending RPCs queued" + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + }, + "v0.0.43_stats_msg_rpcs_dump": { + "type": "array", + "description": "Pending RPCs by hostlist", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_msg_rpc_dump" + } + }, + "v0.0.43_stats_msg_rpc_dump": { + "type": "object", + "properties": { + "type_id": { + "type": "integer", + "format": "int32", + "description": "Message type as integer" + }, + "message_type": { + "type": "string", + "description": "Message type as string (Slurm RPC message type)" + }, + "count": { + "$ref": "#\/components\/schemas\/v0.0.43_hostlist_string", + "description": "Number of RPCs received" + } + }, + "required": [ + "type_id", + "message_type", + "count" + ] + }, + "v0.0.43_hostlist_string": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.41_openapi_ping_array_resp": { + "type": "object", + "properties": { + "pings": { + "type": "array", + "description": "pings", + "items": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Target for ping" + }, + "pinged": { + "type": "string", + "description": "Ping result" + }, + "latency": { + "type": "integer", + "format": "int64", + "description": "Number of microseconds it took to successfully ping or timeout" + }, + "mode": { + "type": "string", + "description": "The operating mode of the responding slurmctld" + } + }, + "required": [ + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "pings" + ] + }, + "v0.0.44_openapi_ping_array_resp": { + "type": "object", + "properties": { + "pings": { + "$ref": "#\/components\/schemas\/v0.0.44_controller_ping_array", + "description": "pings" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "pings" + ] + }, + "v0.0.44_controller_ping_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_controller_ping" + } + }, + "v0.0.44_controller_ping": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Target for ping" + }, + "pinged": { + "type": "string", + "description": "Ping result", + "deprecated": true + }, + "responding": { + "type": "boolean", + "description": "If ping RPC responded with pong from controller" + }, + "latency": { + "type": "integer", + "format": "int64", + "description": "Number of microseconds it took to successfully ping or timeout" + }, + "mode": { + "type": "string", + "description": "The operating mode of the responding slurmctld", + "deprecated": true + }, + "primary": { + "type": "boolean", + "description": "Is responding slurmctld the primary controller (Is responding slurmctld the primary controller)" + } + }, + "required": [ + "responding", + "primary" + ] + }, + "v0.0.42_openapi_ping_array_resp": { + "type": "object", + "properties": { + "pings": { + "$ref": "#\/components\/schemas\/v0.0.42_controller_ping_array", + "description": "pings" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "pings" + ] + }, + "v0.0.42_controller_ping_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_controller_ping" + } + }, + "v0.0.42_controller_ping": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Target for ping" + }, + "pinged": { + "type": "string", + "description": "Ping result", + "deprecated": true + }, + "responding": { + "type": "boolean", + "description": "If ping RPC responded with pong from controller" + }, + "latency": { + "type": "integer", + "format": "int64", + "description": "Number of microseconds it took to successfully ping or timeout" + }, + "mode": { + "type": "string", + "description": "The operating mode of the responding slurmctld", + "deprecated": true + }, + "primary": { + "type": "boolean", + "description": "Is responding slurmctld the primary controller" + } + }, + "required": [ + "responding", + "primary" + ] + }, + "v0.0.43_openapi_ping_array_resp": { + "type": "object", + "properties": { + "pings": { + "$ref": "#\/components\/schemas\/v0.0.43_controller_ping_array", + "description": "pings" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "pings" + ] + }, + "v0.0.43_controller_ping_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_controller_ping" + } + }, + "v0.0.43_controller_ping": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Target for ping" + }, + "pinged": { + "type": "string", + "description": "Ping result", + "deprecated": true + }, + "responding": { + "type": "boolean", + "description": "If ping RPC responded with pong from controller" + }, + "latency": { + "type": "integer", + "format": "int64", + "description": "Number of microseconds it took to successfully ping or timeout" + }, + "mode": { + "type": "string", + "description": "The operating mode of the responding slurmctld", + "deprecated": true + }, + "primary": { + "type": "boolean", + "description": "Is responding slurmctld the primary controller (Is responding slurmctld the primary controller)" + } + }, + "required": [ + "responding", + "primary" + ] + }, + "v0.0.41_openapi_licenses_resp": { + "type": "object", + "properties": { + "licenses": { + "type": "array", + "description": "List of licenses", + "items": { + "type": "object", + "properties": { + "LicenseName": { + "type": "string", + "description": "Name of the license" + }, + "Total": { + "type": "integer", + "format": "int32", + "description": "Total number of licenses present" + }, + "Used": { + "type": "integer", + "format": "int32", + "description": "Number of licenses in use" + }, + "Free": { + "type": "integer", + "format": "int32", + "description": "Number of licenses currently available" + }, + "Remote": { + "type": "boolean", + "description": "Indicates whether licenses are served by the database" + }, + "Reserved": { + "type": "integer", + "format": "int32", + "description": "Number of licenses reserved" + }, + "LastConsumed": { + "type": "integer", + "format": "int32", + "description": "Last known number of licenses that were consumed in the license manager (Remote Only)" + }, + "LastDeficit": { + "type": "integer", + "format": "int32", + "description": "Number of \"missing licenses\" from the cluster's perspective" + }, + "LastUpdate": { + "type": "integer", + "format": "int64", + "description": "When the license information was last updated (UNIX Timestamp)" + } + }, + "required": [ + ] + } + }, + "last_update": { + "type": "object", + "description": "Time of last licenses change (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "licenses", + "last_update" + ] + }, + "v0.0.44_openapi_licenses_resp": { + "type": "object", + "properties": { + "licenses": { + "$ref": "#\/components\/schemas\/v0.0.44_licenses", + "description": "List of licenses" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time of last licenses change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "licenses", + "last_update" + ] + }, + "v0.0.44_licenses": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_license" + } + }, + "v0.0.44_license": { + "type": "object", + "properties": { + "LicenseName": { + "type": "string", + "description": "Name of the license" + }, + "Total": { + "type": "integer", + "format": "int32", + "description": "Total number of licenses present" + }, + "Used": { + "type": "integer", + "format": "int32", + "description": "Number of licenses in use" + }, + "Free": { + "type": "integer", + "format": "int32", + "description": "Number of licenses currently available" + }, + "Remote": { + "type": "boolean", + "description": "Indicates whether licenses are served by the database" + }, + "Reserved": { + "type": "integer", + "format": "int32", + "description": "Number of licenses reserved" + }, + "LastConsumed": { + "type": "integer", + "format": "int32", + "description": "Last known number of licenses that were consumed in the license manager (Remote Only)" + }, + "LastDeficit": { + "type": "integer", + "format": "int32", + "description": "Number of \"missing licenses\" from the cluster's perspective" + }, + "LastUpdate": { + "type": "integer", + "format": "int64", + "description": "When the license information was last updated (UNIX Timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "Nodes": { + "type": "string", + "description": "HRes nodes" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_licenses_resp": { + "type": "object", + "properties": { + "licenses": { + "$ref": "#\/components\/schemas\/v0.0.42_licenses", + "description": "List of licenses" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time of last licenses change (UNIX timestamp)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "licenses", + "last_update" + ] + }, + "v0.0.42_licenses": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_license" + } + }, + "v0.0.42_license": { + "type": "object", + "properties": { + "LicenseName": { + "type": "string", + "description": "Name of the license" + }, + "Total": { + "type": "integer", + "format": "int32", + "description": "Total number of licenses present" + }, + "Used": { + "type": "integer", + "format": "int32", + "description": "Number of licenses in use" + }, + "Free": { + "type": "integer", + "format": "int32", + "description": "Number of licenses currently available" + }, + "Remote": { + "type": "boolean", + "description": "Indicates whether licenses are served by the database" + }, + "Reserved": { + "type": "integer", + "format": "int32", + "description": "Number of licenses reserved" + }, + "LastConsumed": { + "type": "integer", + "format": "int32", + "description": "Last known number of licenses that were consumed in the license manager (Remote Only)" + }, + "LastDeficit": { + "type": "integer", + "format": "int32", + "description": "Number of \"missing licenses\" from the cluster's perspective" + }, + "LastUpdate": { + "type": "integer", + "format": "int64", + "description": "When the license information was last updated (UNIX Timestamp)" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_licenses_resp": { + "type": "object", + "properties": { + "licenses": { + "$ref": "#\/components\/schemas\/v0.0.43_licenses", + "description": "List of licenses" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time of last licenses change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "licenses", + "last_update" + ] + }, + "v0.0.43_licenses": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_license" + } + }, + "v0.0.43_license": { + "type": "object", + "properties": { + "LicenseName": { + "type": "string", + "description": "Name of the license" + }, + "Total": { + "type": "integer", + "format": "int32", + "description": "Total number of licenses present" + }, + "Used": { + "type": "integer", + "format": "int32", + "description": "Number of licenses in use" + }, + "Free": { + "type": "integer", + "format": "int32", + "description": "Number of licenses currently available" + }, + "Remote": { + "type": "boolean", + "description": "Indicates whether licenses are served by the database" + }, + "Reserved": { + "type": "integer", + "format": "int32", + "description": "Number of licenses reserved" + }, + "LastConsumed": { + "type": "integer", + "format": "int32", + "description": "Last known number of licenses that were consumed in the license manager (Remote Only)" + }, + "LastDeficit": { + "type": "integer", + "format": "int32", + "description": "Number of \"missing licenses\" from the cluster's perspective" + }, + "LastUpdate": { + "type": "integer", + "format": "int64", + "description": "When the license information was last updated (UNIX Timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_job_submit_response": { + "type": "object", + "properties": { + "result": { + "type": "object", + "description": "Job submission", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "New job ID" + }, + "step_id": { + "type": "string", + "description": "New job step ID" + }, + "error_code": { + "type": "integer", + "format": "int32", + "description": "Error code" + }, + "error": { + "type": "string", + "description": "Error message" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Message to user from job_submit plugin" + } + }, + "required": [ + ], + "deprecated": true + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Submitted Job ID" + }, + "step_id": { + "type": "string", + "description": "Submitted Step ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + ] + }, + "v0.0.41_job_submit_req": { + "type": "object", + "properties": { + "script": { + "type": "string", + "description": "Job batch script contents; Same as the script field in jobs[0] or job." + }, + "jobs": { + "type": "array", + "description": "HetJob description", + "items": { + "$ref": "#\/components\/schemas\/v0.0.41_job_desc_msg" + } + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.41_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.41_job_desc_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "account_gather_frequency": { + "type": "string", + "description": "Job accounting and profiling sampling intervals in seconds" + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocation_node_list": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "allocation_node_port": { + "type": "integer", + "format": "int32", + "description": "Port to send allocation confirmation to" + }, + "argv": { + "type": "array", + "description": "Arguments to the script", + "items": { + "type": "string" + } + }, + "array": { + "type": "string", + "description": "Job array index value specification" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "begin_time": { + "type": "object", + "description": "Defer the allocation of the job until the specified time (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "flags": { + "type": "array", + "description": "Job flags", + "items": { + "enum": [ + "KILL_INVALID_DEPENDENCY", + "NO_KILL_INVALID_DEPENDENCY", + "HAS_STATE_DIRECTORY", + "TESTING_BACKFILL", + "GRES_BINDING_ENFORCED", + "TEST_NOW_ONLY", + "SEND_JOB_ENVIRONMENT", + "SPREAD_JOB", + "PREFER_MINIMUM_NODE_COUNT", + "JOB_KILL_HURRY", + "SKIP_TRES_STRING_ACCOUNTING", + "SIBLING_CLUSTER_UPDATE_ONLY", + "HETEROGENEOUS_JOB", + "EXACT_TASK_COUNT_REQUESTED", + "EXACT_CPU_COUNT_REQUESTED", + "TESTING_WHOLE_NODE_BACKFILL", + "TOP_PRIORITY_JOB", + "ACCRUE_COUNT_CLEARED", + "GRES_BINDING_DISABLED", + "JOB_WAS_RUNNING", + "JOB_ACCRUE_TIME_RESET", + "CRON_JOB", + "EXACT_MEMORY_REQUESTED", + "USING_DEFAULT_ACCOUNT", + "USING_DEFAULT_PARTITION", + "USING_DEFAULT_QOS", + "USING_DEFAULT_WCKEY", + "DEPENDENT", + "MAGNETIC", + "PARTITION_ASSIGNED", + "BACKFILL_ATTEMPTED", + "SCHEDULING_ATTEMPTED", + "STEPMGR_ENABLED" + ], + "type": "string" + } + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "clusters": { + "type": "string", + "description": "Clusters that a federated job can run on" + }, + "cluster_constraint": { + "type": "string", + "description": "Required features that a federated cluster must have to have a sibling job submitted to it" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "core_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cpu_binding": { + "type": "string", + "description": "Method for binding tasks to allocated CPUs" + }, + "cpu_binding_flags": { + "type": "array", + "description": "Flags for CPU binding", + "items": { + "enum": [ + "CPU_BIND_TO_THREADS", + "CPU_BIND_TO_CORES", + "CPU_BIND_TO_SOCKETS", + "CPU_BIND_TO_LDOMS", + "CPU_BIND_NONE", + "CPU_BIND_RANK", + "CPU_BIND_MAP", + "CPU_BIND_MASK", + "CPU_BIND_LDRANK", + "CPU_BIND_LDMAP", + "CPU_BIND_LDMASK", + "VERBOSE", + "CPU_BIND_ONE_THREAD_PER_CORE" + ], + "type": "string" + } + }, + "cpu_frequency": { + "type": "string", + "description": "Requested CPU frequency range [-p2][:p3]" + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "crontab": { + "type": "object", + "description": "Specification for scrontab job", + "properties": { + "flags": { + "type": "array", + "description": "Flags", + "items": { + "enum": [ + "WILD_MINUTE", + "WILD_HOUR", + "WILD_DAY_OF_MONTH", + "WILD_MONTH", + "WILD_DAY_OF_WEEK" + ], + "type": "string" + } + }, + "minute": { + "type": "string", + "description": "Ranged string specifying eligible minute values (e.g. 0-10,50)" + }, + "hour": { + "type": "string", + "description": "Ranged string specifying eligible hour values (e.g. 0-5,23)" + }, + "day_of_month": { + "type": "string", + "description": "Ranged string specifying eligible day of month values (e.g. 0-10,29)" + }, + "month": { + "type": "string", + "description": "Ranged string specifying eligible month values (e.g. 0-5,12)" + }, + "day_of_week": { + "type": "string", + "description": "Ranged string specifying eligible day of week values (e.g.0-3,7)" + }, + "specification": { + "type": "string", + "description": "Time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week" + }, + "command": { + "type": "string", + "description": "Command to run" + }, + "line": { + "type": "object", + "properties": { + "start": { + "type": "integer", + "format": "int32", + "description": "Start of this entry in file" + }, + "end": { + "type": "integer", + "format": "int32", + "description": "End of this entry in file" + } + } + } + }, + "required": [ + ] + }, + "deadline": { + "type": "integer", + "format": "int64", + "description": "Latest time that the job may start (UNIX timestamp)" + }, + "delay_boot": { + "type": "integer", + "format": "int32", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification" + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "end_time": { + "type": "integer", + "format": "int64", + "description": "Expected end time (UNIX timestamp)" + }, + "environment": { + "type": "array", + "description": "Environment variables to be set for the job", + "items": { + "type": "string" + } + }, + "rlimits": { + "type": "object", + "properties": { + "cpu": { + "type": "object", + "description": "Per-process CPU limit, in seconds.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "fsize": { + "type": "object", + "description": "Largest file that can be created, in bytes.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "data": { + "type": "object", + "description": "Maximum size of data segment, in bytes. ", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "stack": { + "type": "object", + "description": "Maximum size of stack segment, in bytes.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "core": { + "type": "object", + "description": "Largest core file that can be created, in bytes.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "rss": { + "type": "object", + "description": "Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "nproc": { + "type": "object", + "description": "Number of processes.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "nofile": { + "type": "object", + "description": "Number of open files.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "memlock": { + "type": "object", + "description": "Locked-in-memory address space", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "as": { + "type": "object", + "description": "Address space limit.", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "excluded_nodes": { + "type": "array", + "description": "Comma separated list of nodes that may not be used", + "items": { + "type": "string" + } + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "constraints": { + "type": "string", + "description": "Comma separated list of features that are required" + }, + "group_id": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "hetjob_group": { + "type": "integer", + "format": "int32", + "description": "Unique sequence number applied to this component of the heterogeneous job" + }, + "immediate": { + "type": "boolean", + "description": "If true, exit if resources are not available within the time period specified" + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "kill_on_node_fail": { + "type": "boolean", + "description": "If true, kill job on node failure" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mail_type": { + "type": "array", + "description": "Mail event type(s)", + "items": { + "enum": [ + "BEGIN", + "END", + "FAIL", + "REQUEUE", + "TIME=100%", + "TIME=90%", + "TIME=80%", + "TIME=50%", + "STAGE_OUT", + "ARRAY_TASKS", + "INVALID_DEPENDENCY" + ], + "type": "string" + } + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_binding": { + "type": "string", + "description": "Binding map for map\/mask_cpu" + }, + "memory_binding_type": { + "type": "array", + "description": "Method for binding tasks to memory", + "items": { + "enum": [ + "NONE", + "RANK", + "MAP", + "MASK", + "LOCAL", + "VERBOSE", + "SORT", + "PREFER" + ], + "type": "string" + } + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for job step" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks": { + "type": "integer", + "format": "int32", + "description": "Number of tasks" + }, + "open_mode": { + "type": "array", + "description": "Open mode used for stdout and stderr files", + "items": { + "enum": [ + "APPEND", + "TRUNCATE" + ], + "type": "string" + } + }, + "reserve_ports": { + "type": "integer", + "format": "int32", + "description": "Port to send various notification msg to" + }, + "overcommit": { + "type": "boolean", + "description": "Overcommit resources" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "distribution_plane_size": { + "type": "object", + "description": "Plane size specification when distribution specifies plane", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "power_flags": { + "type": "array", + "items": { + }, + "deprecated": true + }, + "prefer": { + "type": "string", + "description": "Comma separated list of features that are preferred but not required" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job" + }, + "priority": { + "type": "object", + "description": "Request specific job priority", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "profile": { + "type": "array", + "description": "Profile used by the acct_gather_profile plugin", + "items": { + "enum": [ + "NOT_SET", + "NONE", + "ENERGY", + "LUSTRE", + "NETWORK", + "TASK" + ], + "type": "string" + } + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "type": "array", + "description": "Comma separated list of required nodes", + "items": { + "type": "string" + } + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "reservation": { + "type": "string", + "description": "Name of reservation to use" + }, + "resv_mpi_ports": { + "type": "integer", + "format": "int32", + "description": "Number of reserved communication ports; can only be used if slurmstepd step manager is enabled" + }, + "script": { + "type": "string", + "description": "Job batch script; only the first component in a HetJob is populated or honored" + }, + "shared": { + "type": "array", + "description": "How the job can share resources with other jobs, if at all", + "items": { + "enum": [ + "none", + "oversubscribe", + "user", + "mcs", + "topo" + ], + "type": "string" + } + }, + "exclusive": { + "type": "array", + "items": { + "enum": [ + "true", + "false", + "user", + "mcs", + "topo" + ], + "type": "string" + }, + "deprecated": true + }, + "oversubscribe": { + "type": "boolean", + "deprecated": true + }, + "site_factor": { + "type": "integer", + "format": "int32", + "description": "Site-specific priority factor" + }, + "spank_environment": { + "type": "array", + "description": "Environment variables for job prolog\/epilog scripts as set by SPANK plugins", + "items": { + "type": "string" + } + }, + "distribution": { + "type": "string", + "description": "Layout" + }, + "time_limit": { + "type": "object", + "description": "Maximum run time in minutes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "time_minimum": { + "type": "object", + "description": "Minimum run time in minutes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every task" + }, + "user_id": { + "type": "string", + "description": "User ID that owns the job" + }, + "wait_all_nodes": { + "type": "boolean", + "description": "If true, wait to start until after all nodes have booted" + }, + "kill_warning_flags": { + "type": "array", + "description": "Flags related to job signals", + "items": { + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ], + "type": "string" + } + }, + "kill_warning_signal": { + "type": "string", + "description": "Signal to send when approaching end time (e.g. \"10\" or \"USR1\")" + }, + "kill_warning_delay": { + "type": "object", + "description": "Number of seconds before end time to send the warning signal", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + }, + "cpus_per_task": { + "type": "integer", + "format": "int32", + "description": "Number of CPUs required by each task" + }, + "minimum_cpus": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "maximum_cpus": { + "type": "integer", + "format": "int32", + "description": "Maximum number of CPUs required" + }, + "nodes": { + "type": "string", + "description": "Node count range specification (e.g. 1-15:4)" + }, + "minimum_nodes": { + "type": "integer", + "format": "int32", + "description": "Minimum node count" + }, + "maximum_nodes": { + "type": "integer", + "format": "int32", + "description": "Maximum node count" + }, + "minimum_boards_per_node": { + "type": "integer", + "format": "int32", + "description": "Boards per node required" + }, + "minimum_sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Sockets per board required" + }, + "sockets_per_node": { + "type": "integer", + "format": "int32", + "description": "Sockets per node required" + }, + "threads_per_core": { + "type": "integer", + "format": "int32", + "description": "Threads per core required" + }, + "tasks_per_node": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each node" + }, + "tasks_per_socket": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each socket" + }, + "tasks_per_core": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each core" + }, + "tasks_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each board" + }, + "ntasks_per_tres": { + "type": "integer", + "format": "int32", + "description": "Number of tasks that can access each GPU" + }, + "minimum_cpus_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs per node" + }, + "memory_per_cpu": { + "type": "object", + "description": "Minimum memory in megabytes per allocated CPU", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "memory_per_node": { + "type": "object", + "description": "Minimum memory in megabytes per allocated CPU", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "temporary_disk_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum tmp disk space required per node" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "required_switches": { + "type": "object", + "description": "Maximum number of switches", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "segment_size": { + "type": "object", + "description": "Segment size for topology\/block", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "wait_for_switch": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "x11": { + "type": "array", + "description": "X11 forwarding options", + "items": { + "enum": [ + "FORWARD_ALL_NODES", + "BATCH_NODE", + "FIRST_NODE", + "LAST_NODE" + ], + "type": "string" + } + }, + "x11_magic_cookie": { + "type": "string", + "description": "Magic cookie for X11 forwarding" + }, + "x11_target_host": { + "type": "string", + "description": "Hostname or UNIX socket if x11_target_port=0" + }, + "x11_target_port": { + "type": "integer", + "format": "int32", + "description": "TCP port" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_job_submit_response": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "submitted Job ID" + }, + "step_id": { + "type": "string", + "description": "submitted Step ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.44_job_submit_req": { + "type": "object", + "properties": { + "script": { + "type": "string", + "description": "Job batch script contents; Same as the script field in jobs[0] or job." + }, + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.44_job_desc_msg_list", + "description": "HetJob description" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.44_job_desc_msg_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_job_desc_msg" + } + }, + "v0.0.44_job_desc_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "account_gather_frequency": { + "type": "string", + "description": "Job accounting and profiling sampling intervals in seconds" + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocation_node_list": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "allocation_node_port": { + "type": "integer", + "format": "int32", + "description": "Port to send allocation confirmation to" + }, + "argv": { + "$ref": "#\/components\/schemas\/v0.0.44_string_array", + "description": "Arguments to the script. Note: The slurmstepd always overrides argv[0] with the path to the created script file. If this option is used, argv[0] should be a throwaway value." + }, + "array": { + "type": "string", + "description": "Job array index value specification" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "begin_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Defer the allocation of the job until the specified time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "flags": { + "type": "array", + "description": "Job flags", + "items": { + "enum": [ + "KILL_INVALID_DEPENDENCY", + "NO_KILL_INVALID_DEPENDENCY", + "HAS_STATE_DIRECTORY", + "TESTING_BACKFILL", + "GRES_BINDING_ENFORCED", + "TEST_NOW_ONLY", + "SEND_JOB_ENVIRONMENT", + "SPREAD_JOB", + "PREFER_MINIMUM_NODE_COUNT", + "JOB_KILL_HURRY", + "SKIP_TRES_STRING_ACCOUNTING", + "SIBLING_CLUSTER_UPDATE_ONLY", + "HETEROGENEOUS_JOB", + "EXACT_TASK_COUNT_REQUESTED", + "EXACT_CPU_COUNT_REQUESTED", + "TESTING_WHOLE_NODE_BACKFILL", + "TOP_PRIORITY_JOB", + "ACCRUE_COUNT_CLEARED", + "GRES_BINDING_DISABLED", + "JOB_WAS_RUNNING", + "JOB_ACCRUE_TIME_RESET", + "CRON_JOB", + "EXACT_MEMORY_REQUESTED", + "EXTERNAL_JOB", + "USING_DEFAULT_ACCOUNT", + "USING_DEFAULT_PARTITION", + "USING_DEFAULT_QOS", + "USING_DEFAULT_WCKEY", + "DEPENDENT", + "MAGNETIC", + "PARTITION_ASSIGNED", + "BACKFILL_ATTEMPTED", + "SCHEDULING_ATTEMPTED", + "STEPMGR_ENABLED", + "SPREAD_SEGMENTS", + "CONSOLIDATE_SEGMENTS", + "EXPEDITED_REQUEUE" + ], + "type": "string" + } + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "clusters": { + "type": "string", + "description": "Clusters that a federated job can run on" + }, + "cluster_constraint": { + "type": "string", + "description": "Required features that a federated cluster must have to have a sibling job submitted to it" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "core_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cpu_binding": { + "type": "string", + "description": "Method for binding tasks to allocated CPUs" + }, + "cpu_binding_flags": { + "type": "array", + "description": "Flags for CPU binding", + "items": { + "enum": [ + "CPU_BIND_TO_THREADS", + "CPU_BIND_TO_CORES", + "CPU_BIND_TO_SOCKETS", + "CPU_BIND_TO_LDOMS", + "CPU_BIND_NONE", + "CPU_BIND_RANK", + "CPU_BIND_MAP", + "CPU_BIND_MASK", + "CPU_BIND_LDRANK", + "CPU_BIND_LDMAP", + "CPU_BIND_LDMASK", + "VERBOSE", + "CPU_BIND_ONE_THREAD_PER_CORE" + ], + "type": "string" + } + }, + "cpu_frequency": { + "type": "string", + "description": "Requested CPU frequency range [-p2][:p3]" + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "crontab": { + "$ref": "#\/components\/schemas\/v0.0.44_cron_entry", + "description": "Specification for scrontab job (crontab entry)" + }, + "deadline": { + "type": "integer", + "format": "int64", + "description": "Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "delay_boot": { + "type": "integer", + "format": "int32", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification" + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "end_time": { + "type": "integer", + "format": "int64", + "description": "Expected end time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "environment": { + "$ref": "#\/components\/schemas\/v0.0.44_string_array", + "description": "Environment variables to be set for the job" + }, + "rlimits": { + "type": "object", + "properties": { + "cpu": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Per-process CPU limit, in seconds (Per-process CPU limit, in seconds.) (64 bit integer number with flags)" + }, + "fsize": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Largest file that can be created, in bytes (Largest file that can be created, in bytes.) (64 bit integer number with flags)" + }, + "data": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Maximum size of data segment, in bytes (Maximum size of data segment, in bytes. ) (64 bit integer number with flags)" + }, + "stack": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Maximum size of stack segment, in bytes (Maximum size of stack segment, in bytes.) (64 bit integer number with flags)" + }, + "core": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Largest core file that can be created, in bytes (Largest core file that can be created, in bytes.) (64 bit integer number with flags)" + }, + "rss": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them (Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them.) (64 bit integer number with flags)" + }, + "nproc": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Number of processes (Number of processes.) (64 bit integer number with flags)" + }, + "nofile": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Number of open files (Number of open files.) (64 bit integer number with flags)" + }, + "memlock": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Locked-in-memory address space (Locked-in-memory address space) (64 bit integer number with flags)" + }, + "as": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Address space limit (Address space limit.) (64 bit integer number with flags)" + } + } + }, + "excluded_nodes": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Comma-separated list of nodes that may not be used" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "constraints": { + "type": "string", + "description": "Comma-separated list of features that are required" + }, + "group_id": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "hetjob_group": { + "type": "integer", + "format": "int32", + "description": "Unique sequence number applied to this component of the heterogeneous job" + }, + "immediate": { + "type": "boolean", + "description": "If true, exit if resources are not available within the time period specified" + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "kill_on_node_fail": { + "type": "boolean", + "description": "If true, kill job on node failure" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mail_type": { + "type": "array", + "description": "Mail event type(s)", + "items": { + "enum": [ + "BEGIN", + "END", + "FAIL", + "REQUEUE", + "TIME=100%", + "TIME=90%", + "TIME=80%", + "TIME=50%", + "STAGE_OUT", + "ARRAY_TASKS", + "INVALID_DEPENDENCY" + ], + "type": "string" + } + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_binding": { + "type": "string", + "description": "Binding map for map\/mask_cpu" + }, + "memory_binding_type": { + "type": "array", + "description": "Method for binding tasks to memory", + "items": { + "enum": [ + "NONE", + "RANK", + "MAP", + "MASK", + "LOCAL", + "VERBOSE", + "PREFER" + ], + "type": "string" + } + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for job step" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks": { + "type": "integer", + "format": "int32", + "description": "Number of tasks" + }, + "oom_kill_step": { + "type": "integer", + "format": "int32", + "description": "Kill whole step in case of OOM in one of the tasks" + }, + "open_mode": { + "type": "array", + "description": "Open mode used for stdout and stderr files", + "items": { + "enum": [ + "APPEND", + "TRUNCATE" + ], + "type": "string" + } + }, + "reserve_ports": { + "type": "integer", + "format": "int32", + "description": "Port to send various notification msg to" + }, + "overcommit": { + "type": "boolean", + "description": "Overcommit resources" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "distribution_plane_size": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Plane size specification when distribution specifies plane (16 bit integer number with flags)" + }, + "power_flags": { + "type": "array", + "items": { + }, + "deprecated": true + }, + "prefer": { + "type": "string", + "description": "Comma-separated list of features that are preferred but not required" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job (Job held)" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Request specific job priority (32 bit integer number with flags)" + }, + "profile": { + "type": "array", + "description": "Profile used by the acct_gather_profile plugin", + "items": { + "enum": [ + "NOT_SET", + "NONE", + "ENERGY", + "LUSTRE", + "NETWORK", + "TASK" + ], + "type": "string" + } + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Comma-separated list of required nodes" + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "reservation": { + "type": "string", + "description": "Name of reservation to use" + }, + "script": { + "type": "string", + "description": "Job batch script contents; only the first component in a HetJob is populated or honored" + }, + "shared": { + "type": "array", + "description": "How the job can share resources with other jobs, if at all", + "items": { + "enum": [ + "none", + "oversubscribe", + "user", + "mcs", + "topo" + ], + "type": "string" + } + }, + "site_factor": { + "type": "integer", + "format": "int32", + "description": "Site-specific priority factor" + }, + "spank_environment": { + "$ref": "#\/components\/schemas\/v0.0.44_string_array", + "description": "Environment variables for job prolog\/epilog scripts as set by SPANK plugins" + }, + "step_id": { + "$ref": "#\/components\/schemas\/v0.0.44_slurm_step_id", + "description": "Job step ID" + }, + "distribution": { + "type": "string", + "description": "Layout" + }, + "time_limit": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "time_minimum": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Minimum run time in minutes (32 bit integer number with flags)" + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every task" + }, + "user_id": { + "type": "string", + "description": "User ID that owns the job" + }, + "wait_all_nodes": { + "type": "boolean", + "description": "If true, wait to start until after all nodes have booted" + }, + "kill_warning_flags": { + "type": "array", + "description": "Flags related to job signals", + "items": { + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ], + "type": "string" + } + }, + "kill_warning_signal": { + "type": "string", + "description": "Signal to send when approaching end time (e.g. \"10\" or \"USR1\")" + }, + "kill_warning_delay": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of seconds before end time to send the warning signal (16 bit integer number with flags)" + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + }, + "cpus_per_task": { + "type": "integer", + "format": "int32", + "description": "Number of CPUs required by each task" + }, + "minimum_cpus": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "maximum_cpus": { + "type": "integer", + "format": "int32", + "description": "Maximum number of CPUs required" + }, + "nodes": { + "type": "string", + "description": "Node count range specification (e.g. 1-15:4)" + }, + "minimum_nodes": { + "type": "integer", + "format": "int32", + "description": "Minimum node count" + }, + "maximum_nodes": { + "type": "integer", + "format": "int32", + "description": "Maximum node count" + }, + "minimum_boards_per_node": { + "type": "integer", + "format": "int32", + "description": "Boards per node required" + }, + "minimum_sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Sockets per board required" + }, + "sockets_per_node": { + "type": "integer", + "format": "int32", + "description": "Sockets per node required" + }, + "threads_per_core": { + "type": "integer", + "format": "int32", + "description": "Threads per core required" + }, + "tasks_per_node": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each node" + }, + "tasks_per_socket": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each socket" + }, + "tasks_per_core": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each core" + }, + "tasks_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each board" + }, + "ntasks_per_tres": { + "type": "integer", + "format": "int32", + "description": "Number of tasks that can access each GPU" + }, + "minimum_cpus_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs per node" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU (64 bit integer number with flags)" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node (64 bit integer number with flags)" + }, + "temporary_disk_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum tmp disk space required per node" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "required_switches": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum number of switches (32 bit integer number with flags)" + }, + "segment_size": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Segment size for topology\/block (16 bit integer number with flags)" + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "wait_for_switch": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "x11": { + "type": "array", + "description": "X11 forwarding options", + "items": { + "enum": [ + "FORWARD_ALL_NODES", + "BATCH_NODE", + "FIRST_NODE", + "LAST_NODE" + ], + "type": "string" + } + }, + "x11_magic_cookie": { + "type": "string", + "description": "Magic cookie for X11 forwarding" + }, + "x11_target_host": { + "type": "string", + "description": "Hostname or UNIX socket if x11_target_port=0" + }, + "x11_target_port": { + "type": "integer", + "format": "int32", + "description": "TCP port" + } + }, + "required": [ + ] + }, + "v0.0.44_cron_entry": { + "type": "object", + "properties": { + "flags": { + "type": "array", + "description": "Flags", + "items": { + "enum": [ + "WILD_MINUTE", + "WILD_HOUR", + "WILD_DAY_OF_MONTH", + "WILD_MONTH", + "WILD_DAY_OF_WEEK" + ], + "type": "string" + } + }, + "minute": { + "type": "string", + "description": "Ranged string specifying eligible minute values (e.g. 0-10,50)" + }, + "hour": { + "type": "string", + "description": "Ranged string specifying eligible hour values (e.g. 0-5,23)" + }, + "day_of_month": { + "type": "string", + "description": "Ranged string specifying eligible day of month values (e.g. 0-10,29)" + }, + "month": { + "type": "string", + "description": "Ranged string specifying eligible month values (e.g. 0-5,12)" + }, + "day_of_week": { + "type": "string", + "description": "Ranged string specifying eligible day of week values (e.g.0-3,7)" + }, + "specification": { + "type": "string", + "description": "Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week" + }, + "command": { + "type": "string", + "description": "Command to run" + }, + "line": { + "type": "object", + "properties": { + "start": { + "type": "integer", + "format": "int32", + "description": "Start of this entry in file" + }, + "end": { + "type": "integer", + "format": "int32", + "description": "End of this entry in file" + } + } + } + }, + "required": [ + ] + }, + "v0.0.44_csv_string": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.44_uint16_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.44_slurm_step_id": { + "type": "object", + "properties": { + "sluid": { + "type": "string", + "description": "SLUID (Slurm Lexicographically-sortable Unique ID)" + }, + "job_id": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Job ID (32 bit integer number with flags)" + }, + "step_het_component": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "HetJob component (32 bit integer number with flags)" + }, + "step_id": { + "type": "string", + "description": "Job step ID" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_job_submit_response": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "submitted Job ID" + }, + "step_id": { + "type": "string", + "description": "submitted Step ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.42_job_submit_req": { + "type": "object", + "properties": { + "script": { + "type": "string", + "description": "Job batch script contents; Same as the script field in jobs[0] or job." + }, + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.42_job_desc_msg_list", + "description": "HetJob description" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.42_job_desc_msg_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_job_desc_msg" + } + }, + "v0.0.42_job_desc_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "account_gather_frequency": { + "type": "string", + "description": "Job accounting and profiling sampling intervals in seconds" + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocation_node_list": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "allocation_node_port": { + "type": "integer", + "format": "int32", + "description": "Port to send allocation confirmation to" + }, + "argv": { + "$ref": "#\/components\/schemas\/v0.0.42_string_array", + "description": "Arguments to the script. Note: The slurmstepd always overrides argv[0] with the path to the created script file. If this option is used, argv[0] should be a throwaway value." + }, + "array": { + "type": "string", + "description": "Job array index value specification" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "begin_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Defer the allocation of the job until the specified time (UNIX timestamp)" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_job_flags", + "description": "Job flags" + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "clusters": { + "type": "string", + "description": "Clusters that a federated job can run on" + }, + "cluster_constraint": { + "type": "string", + "description": "Required features that a federated cluster must have to have a sibling job submitted to it" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "core_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cpu_binding": { + "type": "string", + "description": "Method for binding tasks to allocated CPUs" + }, + "cpu_binding_flags": { + "$ref": "#\/components\/schemas\/v0.0.42_cpu_binding_flags", + "description": "Flags for CPU binding" + }, + "cpu_frequency": { + "type": "string", + "description": "Requested CPU frequency range [-p2][:p3]" + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "crontab": { + "$ref": "#\/components\/schemas\/v0.0.42_cron_entry", + "description": "Specification for scrontab job" + }, + "deadline": { + "type": "integer", + "format": "int64", + "description": "Latest time that the job may start (UNIX timestamp)" + }, + "delay_boot": { + "type": "integer", + "format": "int32", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification" + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "end_time": { + "type": "integer", + "format": "int64", + "description": "Expected end time (UNIX timestamp)" + }, + "environment": { + "$ref": "#\/components\/schemas\/v0.0.42_string_array", + "description": "Environment variables to be set for the job" + }, + "rlimits": { + "type": "object", + "properties": { + "cpu": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Per-process CPU limit, in seconds" + }, + "fsize": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Largest file that can be created, in bytes" + }, + "data": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Maximum size of data segment, in bytes" + }, + "stack": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Maximum size of stack segment, in bytes" + }, + "core": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Largest core file that can be created, in bytes" + }, + "rss": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them" + }, + "nproc": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Number of processes" + }, + "nofile": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Number of open files" + }, + "memlock": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Locked-in-memory address space" + }, + "as": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Address space limit" + } + } + }, + "excluded_nodes": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Comma separated list of nodes that may not be used" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "constraints": { + "type": "string", + "description": "Comma separated list of features that are required" + }, + "group_id": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "hetjob_group": { + "type": "integer", + "format": "int32", + "description": "Unique sequence number applied to this component of the heterogeneous job" + }, + "immediate": { + "type": "boolean", + "description": "If true, exit if resources are not available within the time period specified" + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "kill_on_node_fail": { + "type": "boolean", + "description": "If true, kill job on node failure" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mail_type": { + "$ref": "#\/components\/schemas\/v0.0.42_job_mail_flags", + "description": "Mail event type(s)" + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_binding": { + "type": "string", + "description": "Binding map for map\/mask_cpu" + }, + "memory_binding_type": { + "$ref": "#\/components\/schemas\/v0.0.42_memory_binding_type", + "description": "Method for binding tasks to memory" + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for job step" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks": { + "type": "integer", + "format": "int32", + "description": "Number of tasks" + }, + "oom_kill_step": { + "type": "integer", + "format": "int32", + "description": "Kill whole step in case of OOM in one of the tasks" + }, + "open_mode": { + "$ref": "#\/components\/schemas\/v0.0.42_open_mode", + "description": "Open mode used for stdout and stderr files" + }, + "reserve_ports": { + "type": "integer", + "format": "int32", + "description": "Port to send various notification msg to" + }, + "overcommit": { + "type": "boolean", + "description": "Overcommit resources" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "distribution_plane_size": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Plane size specification when distribution specifies plane" + }, + "power_flags": { + "type": "array", + "items": { + }, + "deprecated": true + }, + "prefer": { + "type": "string", + "description": "Comma separated list of features that are preferred but not required" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Request specific job priority" + }, + "profile": { + "$ref": "#\/components\/schemas\/v0.0.42_acct_gather_profile", + "description": "Profile used by the acct_gather_profile plugin" + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Comma separated list of required nodes" + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "reservation": { + "type": "string", + "description": "Name of reservation to use" + }, + "script": { + "type": "string", + "description": "Job batch script; only the first component in a HetJob is populated or honored" + }, + "shared": { + "$ref": "#\/components\/schemas\/v0.0.42_job_shared", + "description": "How the job can share resources with other jobs, if at all" + }, + "site_factor": { + "type": "integer", + "format": "int32", + "description": "Site-specific priority factor" + }, + "spank_environment": { + "$ref": "#\/components\/schemas\/v0.0.42_string_array", + "description": "Environment variables for job prolog\/epilog scripts as set by SPANK plugins" + }, + "distribution": { + "type": "string", + "description": "Layout" + }, + "time_limit": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum run time in minutes" + }, + "time_minimum": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum run time in minutes" + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated for every task" + }, + "user_id": { + "type": "string", + "description": "User ID that owns the job" + }, + "wait_all_nodes": { + "type": "boolean", + "description": "If true, wait to start until after all nodes have booted" + }, + "kill_warning_flags": { + "$ref": "#\/components\/schemas\/v0.0.42_warn_flags", + "description": "Flags related to job signals" + }, + "kill_warning_signal": { + "type": "string", + "description": "Signal to send when approaching end time (e.g. \"10\" or \"USR1\")" + }, + "kill_warning_delay": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of seconds before end time to send the warning signal" + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + }, + "cpus_per_task": { + "type": "integer", + "format": "int32", + "description": "Number of CPUs required by each task" + }, + "minimum_cpus": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "maximum_cpus": { + "type": "integer", + "format": "int32", + "description": "Maximum number of CPUs required" + }, + "nodes": { + "type": "string", + "description": "Node count range specification (e.g. 1-15:4)" + }, + "minimum_nodes": { + "type": "integer", + "format": "int32", + "description": "Minimum node count" + }, + "maximum_nodes": { + "type": "integer", + "format": "int32", + "description": "Maximum node count" + }, + "minimum_boards_per_node": { + "type": "integer", + "format": "int32", + "description": "Boards per node required" + }, + "minimum_sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Sockets per board required" + }, + "sockets_per_node": { + "type": "integer", + "format": "int32", + "description": "Sockets per node required" + }, + "threads_per_core": { + "type": "integer", + "format": "int32", + "description": "Threads per core required" + }, + "tasks_per_node": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each node" + }, + "tasks_per_socket": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each socket" + }, + "tasks_per_core": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each core" + }, + "tasks_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each board" + }, + "ntasks_per_tres": { + "type": "integer", + "format": "int32", + "description": "Number of tasks that can access each GPU" + }, + "minimum_cpus_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs per node" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node" + }, + "temporary_disk_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum tmp disk space required per node" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "required_switches": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of switches" + }, + "segment_size": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Segment size for topology\/block" + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "wait_for_switch": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "x11": { + "$ref": "#\/components\/schemas\/v0.0.42_x11_flags", + "description": "X11 forwarding options" + }, + "x11_magic_cookie": { + "type": "string", + "description": "Magic cookie for X11 forwarding" + }, + "x11_target_host": { + "type": "string", + "description": "Hostname or UNIX socket if x11_target_port=0" + }, + "x11_target_port": { + "type": "integer", + "format": "int32", + "description": "TCP port" + } + }, + "required": [ + ] + }, + "v0.0.42_job_flags": { + "type": "array", + "items": { + "enum": [ + "KILL_INVALID_DEPENDENCY", + "NO_KILL_INVALID_DEPENDENCY", + "HAS_STATE_DIRECTORY", + "TESTING_BACKFILL", + "GRES_BINDING_ENFORCED", + "TEST_NOW_ONLY", + "SEND_JOB_ENVIRONMENT", + "SPREAD_JOB", + "PREFER_MINIMUM_NODE_COUNT", + "JOB_KILL_HURRY", + "SKIP_TRES_STRING_ACCOUNTING", + "SIBLING_CLUSTER_UPDATE_ONLY", + "HETEROGENEOUS_JOB", + "EXACT_TASK_COUNT_REQUESTED", + "EXACT_CPU_COUNT_REQUESTED", + "TESTING_WHOLE_NODE_BACKFILL", + "TOP_PRIORITY_JOB", + "ACCRUE_COUNT_CLEARED", + "GRES_BINDING_DISABLED", + "JOB_WAS_RUNNING", + "JOB_ACCRUE_TIME_RESET", + "CRON_JOB", + "EXACT_MEMORY_REQUESTED", + "USING_DEFAULT_ACCOUNT", + "USING_DEFAULT_PARTITION", + "USING_DEFAULT_QOS", + "USING_DEFAULT_WCKEY", + "DEPENDENT", + "MAGNETIC", + "PARTITION_ASSIGNED", + "BACKFILL_ATTEMPTED", + "SCHEDULING_ATTEMPTED", + "STEPMGR_ENABLED" + ], + "type": "string" + } + }, + "v0.0.42_cpu_binding_flags": { + "type": "array", + "items": { + "enum": [ + "CPU_BIND_TO_THREADS", + "CPU_BIND_TO_CORES", + "CPU_BIND_TO_SOCKETS", + "CPU_BIND_TO_LDOMS", + "CPU_BIND_NONE", + "CPU_BIND_RANK", + "CPU_BIND_MAP", + "CPU_BIND_MASK", + "CPU_BIND_LDRANK", + "CPU_BIND_LDMAP", + "CPU_BIND_LDMASK", + "VERBOSE", + "CPU_BIND_ONE_THREAD_PER_CORE" + ], + "type": "string" + } + }, + "v0.0.42_cron_entry": { + "type": "object", + "properties": { + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_cron_entry_flags", + "description": "Flags" + }, + "minute": { + "type": "string", + "description": "Ranged string specifying eligible minute values (e.g. 0-10,50)" + }, + "hour": { + "type": "string", + "description": "Ranged string specifying eligible hour values (e.g. 0-5,23)" + }, + "day_of_month": { + "type": "string", + "description": "Ranged string specifying eligible day of month values (e.g. 0-10,29)" + }, + "month": { + "type": "string", + "description": "Ranged string specifying eligible month values (e.g. 0-5,12)" + }, + "day_of_week": { + "type": "string", + "description": "Ranged string specifying eligible day of week values (e.g.0-3,7)" + }, + "specification": { + "type": "string", + "description": "Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week" + }, + "command": { + "type": "string", + "description": "Command to run" + }, + "line": { + "type": "object", + "properties": { + "start": { + "type": "integer", + "format": "int32", + "description": "Start of this entry in file" + }, + "end": { + "type": "integer", + "format": "int32", + "description": "End of this entry in file" + } + } + } + }, + "required": [ + ] + }, + "v0.0.42_cron_entry_flags": { + "type": "array", + "items": { + "enum": [ + "WILD_MINUTE", + "WILD_HOUR", + "WILD_DAY_OF_MONTH", + "WILD_MONTH", + "WILD_DAY_OF_WEEK" + ], + "type": "string" + } + }, + "v0.0.42_csv_string": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.42_job_mail_flags": { + "type": "array", + "items": { + "enum": [ + "BEGIN", + "END", + "FAIL", + "REQUEUE", + "TIME=100%", + "TIME=90%", + "TIME=80%", + "TIME=50%", + "STAGE_OUT", + "ARRAY_TASKS", + "INVALID_DEPENDENCY" + ], + "type": "string" + } + }, + "v0.0.42_memory_binding_type": { + "type": "array", + "items": { + "enum": [ + "NONE", + "RANK", + "MAP", + "MASK", + "LOCAL", + "VERBOSE", + "SORT", + "PREFER" + ], + "type": "string" + } + }, + "v0.0.42_open_mode": { + "type": "array", + "items": { + "enum": [ + "APPEND", + "TRUNCATE" + ], + "type": "string" + } + }, + "v0.0.42_uint16_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.42_acct_gather_profile": { + "type": "array", + "items": { + "enum": [ + "NOT_SET", + "NONE", + "ENERGY", + "LUSTRE", + "NETWORK", + "TASK" + ], + "type": "string" + } + }, + "v0.0.42_job_shared": { + "type": "array", + "items": { + "enum": [ + "none", + "oversubscribe", + "user", + "mcs", + "topo" + ], + "type": "string" + } + }, + "v0.0.42_warn_flags": { + "type": "array", + "items": { + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ], + "type": "string" + } + }, + "v0.0.42_x11_flags": { + "type": "array", + "items": { + "enum": [ + "FORWARD_ALL_NODES", + "BATCH_NODE", + "FIRST_NODE", + "LAST_NODE" + ], + "type": "string" + } + }, + "v0.0.43_openapi_job_submit_response": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "submitted Job ID" + }, + "step_id": { + "type": "string", + "description": "submitted Step ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.43_job_submit_req": { + "type": "object", + "properties": { + "script": { + "type": "string", + "description": "Job batch script contents; Same as the script field in jobs[0] or job." + }, + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.43_job_desc_msg_list", + "description": "HetJob description" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.43_job_desc_msg_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_job_desc_msg" + } + }, + "v0.0.43_job_desc_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "account_gather_frequency": { + "type": "string", + "description": "Job accounting and profiling sampling intervals in seconds" + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocation_node_list": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "allocation_node_port": { + "type": "integer", + "format": "int32", + "description": "Port to send allocation confirmation to" + }, + "argv": { + "$ref": "#\/components\/schemas\/v0.0.43_string_array", + "description": "Arguments to the script. Note: The slurmstepd always overrides argv[0] with the path to the created script file. If this option is used, argv[0] should be a throwaway value." + }, + "array": { + "type": "string", + "description": "Job array index value specification" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "begin_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Defer the allocation of the job until the specified time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "flags": { + "type": "array", + "description": "Job flags", + "items": { + "enum": [ + "KILL_INVALID_DEPENDENCY", + "NO_KILL_INVALID_DEPENDENCY", + "HAS_STATE_DIRECTORY", + "TESTING_BACKFILL", + "GRES_BINDING_ENFORCED", + "TEST_NOW_ONLY", + "SEND_JOB_ENVIRONMENT", + "SPREAD_JOB", + "PREFER_MINIMUM_NODE_COUNT", + "JOB_KILL_HURRY", + "SKIP_TRES_STRING_ACCOUNTING", + "SIBLING_CLUSTER_UPDATE_ONLY", + "HETEROGENEOUS_JOB", + "EXACT_TASK_COUNT_REQUESTED", + "EXACT_CPU_COUNT_REQUESTED", + "TESTING_WHOLE_NODE_BACKFILL", + "TOP_PRIORITY_JOB", + "ACCRUE_COUNT_CLEARED", + "GRES_BINDING_DISABLED", + "JOB_WAS_RUNNING", + "JOB_ACCRUE_TIME_RESET", + "CRON_JOB", + "EXACT_MEMORY_REQUESTED", + "EXTERNAL_JOB", + "USING_DEFAULT_ACCOUNT", + "USING_DEFAULT_PARTITION", + "USING_DEFAULT_QOS", + "USING_DEFAULT_WCKEY", + "DEPENDENT", + "MAGNETIC", + "PARTITION_ASSIGNED", + "BACKFILL_ATTEMPTED", + "SCHEDULING_ATTEMPTED", + "STEPMGR_ENABLED" + ], + "type": "string" + } + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "clusters": { + "type": "string", + "description": "Clusters that a federated job can run on" + }, + "cluster_constraint": { + "type": "string", + "description": "Required features that a federated cluster must have to have a sibling job submitted to it" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "core_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_specification": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cpu_binding": { + "type": "string", + "description": "Method for binding tasks to allocated CPUs" + }, + "cpu_binding_flags": { + "type": "array", + "description": "Flags for CPU binding", + "items": { + "enum": [ + "CPU_BIND_TO_THREADS", + "CPU_BIND_TO_CORES", + "CPU_BIND_TO_SOCKETS", + "CPU_BIND_TO_LDOMS", + "CPU_BIND_NONE", + "CPU_BIND_RANK", + "CPU_BIND_MAP", + "CPU_BIND_MASK", + "CPU_BIND_LDRANK", + "CPU_BIND_LDMAP", + "CPU_BIND_LDMASK", + "VERBOSE", + "CPU_BIND_ONE_THREAD_PER_CORE" + ], + "type": "string" + } + }, + "cpu_frequency": { + "type": "string", + "description": "Requested CPU frequency range [-p2][:p3]" + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "crontab": { + "$ref": "#\/components\/schemas\/v0.0.43_cron_entry", + "description": "Specification for scrontab job (crontab entry)" + }, + "deadline": { + "type": "integer", + "format": "int64", + "description": "Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "delay_boot": { + "type": "integer", + "format": "int32", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification" + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "end_time": { + "type": "integer", + "format": "int64", + "description": "Expected end time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "environment": { + "$ref": "#\/components\/schemas\/v0.0.43_string_array", + "description": "Environment variables to be set for the job" + }, + "rlimits": { + "type": "object", + "properties": { + "cpu": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Per-process CPU limit, in seconds (Per-process CPU limit, in seconds.) (64 bit integer number with flags)" + }, + "fsize": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Largest file that can be created, in bytes (Largest file that can be created, in bytes.) (64 bit integer number with flags)" + }, + "data": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Maximum size of data segment, in bytes (Maximum size of data segment, in bytes. ) (64 bit integer number with flags)" + }, + "stack": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Maximum size of stack segment, in bytes (Maximum size of stack segment, in bytes.) (64 bit integer number with flags)" + }, + "core": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Largest core file that can be created, in bytes (Largest core file that can be created, in bytes.) (64 bit integer number with flags)" + }, + "rss": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them (Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them.) (64 bit integer number with flags)" + }, + "nproc": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Number of processes (Number of processes.) (64 bit integer number with flags)" + }, + "nofile": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Number of open files (Number of open files.) (64 bit integer number with flags)" + }, + "memlock": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Locked-in-memory address space (Locked-in-memory address space) (64 bit integer number with flags)" + }, + "as": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Address space limit (Address space limit.) (64 bit integer number with flags)" + } + } + }, + "excluded_nodes": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Comma-separated list of nodes that may not be used" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "constraints": { + "type": "string", + "description": "Comma-separated list of features that are required" + }, + "group_id": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "hetjob_group": { + "type": "integer", + "format": "int32", + "description": "Unique sequence number applied to this component of the heterogeneous job" + }, + "immediate": { + "type": "boolean", + "description": "If true, exit if resources are not available within the time period specified" + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "kill_on_node_fail": { + "type": "boolean", + "description": "If true, kill job on node failure" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mail_type": { + "type": "array", + "description": "Mail event type(s)", + "items": { + "enum": [ + "BEGIN", + "END", + "FAIL", + "REQUEUE", + "TIME=100%", + "TIME=90%", + "TIME=80%", + "TIME=50%", + "STAGE_OUT", + "ARRAY_TASKS", + "INVALID_DEPENDENCY" + ], + "type": "string" + } + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_binding": { + "type": "string", + "description": "Binding map for map\/mask_cpu" + }, + "memory_binding_type": { + "type": "array", + "description": "Method for binding tasks to memory", + "items": { + "enum": [ + "NONE", + "RANK", + "MAP", + "MASK", + "LOCAL", + "VERBOSE", + "SORT", + "PREFER" + ], + "type": "string" + } + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for job step" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks": { + "type": "integer", + "format": "int32", + "description": "Number of tasks" + }, + "oom_kill_step": { + "type": "integer", + "format": "int32", + "description": "Kill whole step in case of OOM in one of the tasks" + }, + "open_mode": { + "type": "array", + "description": "Open mode used for stdout and stderr files", + "items": { + "enum": [ + "APPEND", + "TRUNCATE" + ], + "type": "string" + } + }, + "reserve_ports": { + "type": "integer", + "format": "int32", + "description": "Port to send various notification msg to" + }, + "overcommit": { + "type": "boolean", + "description": "Overcommit resources" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "distribution_plane_size": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Plane size specification when distribution specifies plane (16 bit integer number with flags)" + }, + "power_flags": { + "type": "array", + "items": { + }, + "deprecated": true + }, + "prefer": { + "type": "string", + "description": "Comma-separated list of features that are preferred but not required" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job (Job held)" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Request specific job priority (32 bit integer number with flags)" + }, + "profile": { + "type": "array", + "description": "Profile used by the acct_gather_profile plugin", + "items": { + "enum": [ + "NOT_SET", + "NONE", + "ENERGY", + "LUSTRE", + "NETWORK", + "TASK" + ], + "type": "string" + } + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Comma-separated list of required nodes" + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "reservation": { + "type": "string", + "description": "Name of reservation to use" + }, + "script": { + "type": "string", + "description": "Job batch script; only the first component in a HetJob is populated or honored" + }, + "shared": { + "type": "array", + "description": "How the job can share resources with other jobs, if at all", + "items": { + "enum": [ + "none", + "oversubscribe", + "user", + "mcs", + "topo" + ], + "type": "string" + } + }, + "site_factor": { + "type": "integer", + "format": "int32", + "description": "Site-specific priority factor" + }, + "spank_environment": { + "$ref": "#\/components\/schemas\/v0.0.43_string_array", + "description": "Environment variables for job prolog\/epilog scripts as set by SPANK plugins" + }, + "distribution": { + "type": "string", + "description": "Layout" + }, + "time_limit": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "time_minimum": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Minimum run time in minutes (32 bit integer number with flags)" + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated for every task" + }, + "user_id": { + "type": "string", + "description": "User ID that owns the job" + }, + "wait_all_nodes": { + "type": "boolean", + "description": "If true, wait to start until after all nodes have booted" + }, + "kill_warning_flags": { + "type": "array", + "description": "Flags related to job signals", + "items": { + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ], + "type": "string" + } + }, + "kill_warning_signal": { + "type": "string", + "description": "Signal to send when approaching end time (e.g. \"10\" or \"USR1\")" + }, + "kill_warning_delay": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of seconds before end time to send the warning signal (16 bit integer number with flags)" + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + }, + "cpus_per_task": { + "type": "integer", + "format": "int32", + "description": "Number of CPUs required by each task" + }, + "minimum_cpus": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "maximum_cpus": { + "type": "integer", + "format": "int32", + "description": "Maximum number of CPUs required" + }, + "nodes": { + "type": "string", + "description": "Node count range specification (e.g. 1-15:4)" + }, + "minimum_nodes": { + "type": "integer", + "format": "int32", + "description": "Minimum node count" + }, + "maximum_nodes": { + "type": "integer", + "format": "int32", + "description": "Maximum node count" + }, + "minimum_boards_per_node": { + "type": "integer", + "format": "int32", + "description": "Boards per node required" + }, + "minimum_sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Sockets per board required" + }, + "sockets_per_node": { + "type": "integer", + "format": "int32", + "description": "Sockets per node required" + }, + "threads_per_core": { + "type": "integer", + "format": "int32", + "description": "Threads per core required" + }, + "tasks_per_node": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each node" + }, + "tasks_per_socket": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each socket" + }, + "tasks_per_core": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each core" + }, + "tasks_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of tasks to invoke on each board" + }, + "ntasks_per_tres": { + "type": "integer", + "format": "int32", + "description": "Number of tasks that can access each GPU" + }, + "minimum_cpus_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs per node" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU (64 bit integer number with flags)" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node (64 bit integer number with flags)" + }, + "temporary_disk_per_node": { + "type": "integer", + "format": "int32", + "description": "Minimum tmp disk space required per node" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "required_switches": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum number of switches (32 bit integer number with flags)" + }, + "segment_size": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Segment size for topology\/block (16 bit integer number with flags)" + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "wait_for_switch": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "x11": { + "type": "array", + "description": "X11 forwarding options", + "items": { + "enum": [ + "FORWARD_ALL_NODES", + "BATCH_NODE", + "FIRST_NODE", + "LAST_NODE" + ], + "type": "string" + } + }, + "x11_magic_cookie": { + "type": "string", + "description": "Magic cookie for X11 forwarding" + }, + "x11_target_host": { + "type": "string", + "description": "Hostname or UNIX socket if x11_target_port=0" + }, + "x11_target_port": { + "type": "integer", + "format": "int32", + "description": "TCP port" + } + }, + "required": [ + ] + }, + "v0.0.43_cron_entry": { + "type": "object", + "properties": { + "flags": { + "type": "array", + "description": "Flags", + "items": { + "enum": [ + "WILD_MINUTE", + "WILD_HOUR", + "WILD_DAY_OF_MONTH", + "WILD_MONTH", + "WILD_DAY_OF_WEEK" + ], + "type": "string" + } + }, + "minute": { + "type": "string", + "description": "Ranged string specifying eligible minute values (e.g. 0-10,50)" + }, + "hour": { + "type": "string", + "description": "Ranged string specifying eligible hour values (e.g. 0-5,23)" + }, + "day_of_month": { + "type": "string", + "description": "Ranged string specifying eligible day of month values (e.g. 0-10,29)" + }, + "month": { + "type": "string", + "description": "Ranged string specifying eligible month values (e.g. 0-5,12)" + }, + "day_of_week": { + "type": "string", + "description": "Ranged string specifying eligible day of week values (e.g.0-3,7)" + }, + "specification": { + "type": "string", + "description": "Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week" + }, + "command": { + "type": "string", + "description": "Command to run" + }, + "line": { + "type": "object", + "properties": { + "start": { + "type": "integer", + "format": "int32", + "description": "Start of this entry in file" + }, + "end": { + "type": "integer", + "format": "int32", + "description": "End of this entry in file" + } + } + } + }, + "required": [ + ] + }, + "v0.0.43_csv_string": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_uint16_no_val_struct": { + "type": "object", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_job_alloc_resp": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Submitted Job ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + ] + }, + "v0.0.41_job_alloc_req": { + "type": "object", + "properties": { + "hetjob": { + "type": "array", + "description": "HetJob description", + "items": { + "$ref": "#\/components\/schemas\/v0.0.41_job_desc_msg" + } + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.41_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_job_alloc_resp": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Submitted Job ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.44_job_alloc_req": { + "type": "object", + "properties": { + "hetjob": { + "$ref": "#\/components\/schemas\/v0.0.44_job_desc_msg_list", + "description": "HetJob description" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_job_alloc_resp": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Submitted Job ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.42_job_alloc_req": { + "type": "object", + "properties": { + "hetjob": { + "$ref": "#\/components\/schemas\/v0.0.42_job_desc_msg_list", + "description": "HetJob description" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_job_alloc_resp": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Submitted Job ID" + }, + "job_submit_user_msg": { + "type": "string", + "description": "Job submission user message" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.43_job_alloc_req": { + "type": "object", + "properties": { + "hetjob": { + "$ref": "#\/components\/schemas\/v0.0.43_job_desc_msg_list", + "description": "HetJob description" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_job_desc_msg", + "description": "Job description" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_job_info_resp": { + "type": "object", + "properties": { + "jobs": { + "type": "array", + "description": "List of jobs", + "items": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "accrue_time": { + "type": "object", + "description": "When the job started accruing age priority (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocating_node": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "array_job_id": { + "type": "object", + "description": "Job ID of job array, or 0 if N\/A", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "array_task_id": { + "type": "object", + "description": "Task ID of this task in job array", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "array_max_tasks": { + "type": "object", + "description": "Maximum number of simultaneously running array tasks, 0 if no limit", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "array_task_string": { + "type": "string", + "description": "String expression of task IDs in this record" + }, + "association_id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier for the association" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "batch_flag": { + "type": "boolean", + "description": "True if batch job" + }, + "batch_host": { + "type": "string", + "description": "Name of host running batch script" + }, + "flags": { + "type": "array", + "description": "Job flags", + "items": { + "enum": [ + "KILL_INVALID_DEPENDENCY", + "NO_KILL_INVALID_DEPENDENCY", + "HAS_STATE_DIRECTORY", + "TESTING_BACKFILL", + "GRES_BINDING_ENFORCED", + "TEST_NOW_ONLY", + "SEND_JOB_ENVIRONMENT", + "SPREAD_JOB", + "PREFER_MINIMUM_NODE_COUNT", + "JOB_KILL_HURRY", + "SKIP_TRES_STRING_ACCOUNTING", + "SIBLING_CLUSTER_UPDATE_ONLY", + "HETEROGENEOUS_JOB", + "EXACT_TASK_COUNT_REQUESTED", + "EXACT_CPU_COUNT_REQUESTED", + "TESTING_WHOLE_NODE_BACKFILL", + "TOP_PRIORITY_JOB", + "ACCRUE_COUNT_CLEARED", + "GRES_BINDING_DISABLED", + "JOB_WAS_RUNNING", + "JOB_ACCRUE_TIME_RESET", + "CRON_JOB", + "EXACT_MEMORY_REQUESTED", + "USING_DEFAULT_ACCOUNT", + "USING_DEFAULT_PARTITION", + "USING_DEFAULT_QOS", + "USING_DEFAULT_WCKEY", + "DEPENDENT", + "MAGNETIC", + "PARTITION_ASSIGNED", + "BACKFILL_ATTEMPTED", + "SCHEDULING_ATTEMPTED", + "STEPMGR_ENABLED" + ], + "type": "string" + } + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "burst_buffer_state": { + "type": "string", + "description": "Burst buffer state details" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "cluster_features": { + "type": "string", + "description": "List of required cluster features" + }, + "command": { + "type": "string", + "description": "Executed command" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "core_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cores_per_socket": { + "type": "object", + "description": "Cores per socket required", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "billable_tres": { + "type": "object", + "description": "Billable TRES", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpus_per_task": { + "type": "object", + "description": "Number of CPUs required by each task", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpu_frequency_minimum": { + "type": "object", + "description": "Minimum CPU frequency", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpu_frequency_maximum": { + "type": "object", + "description": "Maximum CPU frequency", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpu_frequency_governor": { + "type": "object", + "description": "CPU frequency governor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "cron": { + "type": "string", + "description": "Time specification for scrontab job" + }, + "deadline": { + "type": "object", + "description": "Latest time that the job may start (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "delay_boot": { + "type": "object", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "derived_exit_code": { + "type": "object", + "description": "Highest exit code of all job steps", + "properties": { + "status": { + "type": "array", + "description": "Status given by return code", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "return_code": { + "type": "object", + "description": "Process return code (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "signal": { + "type": "object", + "properties": { + "id": { + "type": "object", + "description": "Signal sent to process (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "name": { + "type": "string", + "description": "Signal sent to process" + } + } + } + }, + "required": [ + ] + }, + "eligible_time": { + "type": "object", + "description": "Time when the job became eligible to run (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "end_time": { + "type": "object", + "description": "End time, real or expected (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "excluded_nodes": { + "type": "string", + "description": "Comma separated list of nodes that may not be used" + }, + "exit_code": { + "type": "object", + "description": "Exit code of the job", + "properties": { + "status": { + "type": "array", + "description": "Status given by return code", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "return_code": { + "type": "object", + "description": "Process return code (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "signal": { + "type": "object", + "properties": { + "id": { + "type": "object", + "description": "Signal sent to process (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "name": { + "type": "string", + "description": "Signal sent to process" + } + } + } + }, + "required": [ + ] + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "features": { + "type": "string", + "description": "Comma separated list of features that are required" + }, + "federation_origin": { + "type": "string", + "description": "Origin cluster's name (when using federation)" + }, + "federation_siblings_active": { + "type": "string", + "description": "Active sibling job names" + }, + "federation_siblings_viable": { + "type": "string", + "description": "Viable sibling job names" + }, + "gres_detail": { + "type": "array", + "description": "List of GRES index and counts allocated per node", + "items": { + "type": "string" + } + }, + "group_id": { + "type": "integer", + "format": "int32", + "description": "Group ID of the user that owns the job" + }, + "group_name": { + "type": "string", + "description": "Group name of the user that owns the job" + }, + "het_job_id": { + "type": "object", + "description": "Heterogeneous job ID, if applicable", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "het_job_id_set": { + "type": "string", + "description": "Job ID range for all heterogeneous job components" + }, + "het_job_offset": { + "type": "object", + "description": "Unique sequence number applied to this component of the heterogeneous job", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "job_resources": { + "type": "object", + "description": "Resources used by the job", + "properties": { + "select_type": { + "type": "array", + "description": "Scheduler consumable resource selection type", + "items": { + "enum": [ + "CPU", + "SOCKET", + "CORE", + "BOARD", + "MEMORY", + "ONE_TASK_PER_CORE", + "PACK_NODES", + "CORE_DEFAULT_DIST_BLOCK", + "LLN", + "LINEAR" + ], + "type": "string" + } + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of allocated nodes" + }, + "select_type": { + "type": "array", + "description": "Node scheduling selection method", + "items": { + "enum": [ + "AVAILABLE", + "ONE_ROW", + "RESERVED" + ], + "type": "string" + } + }, + "list": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "whole": { + "type": "boolean", + "description": "Whether whole nodes were allocated" + }, + "allocation": { + "type": "array", + "description": "Allocated node resources", + "items": { + "type": "object", + "description": "Job resources for a node", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Node index" + }, + "name": { + "type": "string", + "description": "Node name" + }, + "cpus": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs assigned to job" + }, + "used": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs used by job" + } + } + }, + "memory": { + "type": "object", + "properties": { + "used": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) used by job" + }, + "allocated": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) allocated to job" + } + } + }, + "sockets": { + "type": "array", + "description": "Socket allocations in node", + "items": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "cores": { + "type": "array", + "description": "Core in socket", + "items": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "status": { + "type": "array", + "description": "Core status", + "items": { + "enum": [ + "INVALID", + "UNALLOCATED", + "ALLOCATED", + "IN_USE" + ], + "type": "string" + } + } + }, + "required": [ + "index", + "status" + ] + } + } + }, + "required": [ + "index", + "cores" + ] + } + } + }, + "required": [ + "index", + "name", + "cpus\/count", + "cpus\/used", + "memory\/used", + "memory\/allocated", + "sockets" + ] + } + } + } + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Number of allocated CPUs" + }, + "threads_per_core": { + "type": "object", + "description": "Number of processor threads per CPU core", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + "select_type", + "nodes\/count", + "nodes\/select_type", + "nodes\/list", + "cpus", + "threads_per_core", + "nodes\/whole", + "nodes\/allocation" + ] + }, + "job_size_str": { + "type": "array", + "description": "Number of nodes (in a range) required for this job", + "items": { + "type": "string" + } + }, + "job_state": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "last_sched_evaluation": { + "type": "object", + "description": "Last time job was evaluated for scheduling (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mail_type": { + "type": "array", + "description": "Mail event type(s)", + "items": { + "enum": [ + "BEGIN", + "END", + "FAIL", + "REQUEUE", + "TIME=100%", + "TIME=90%", + "TIME=80%", + "TIME=50%", + "STAGE_OUT", + "ARRAY_TASKS", + "INVALID_DEPENDENCY" + ], + "type": "string" + } + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "max_cpus": { + "type": "object", + "description": "Maximum number of CPUs usable by the job", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "max_nodes": { + "type": "object", + "description": "Maximum number of nodes usable by the job", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for the job" + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks_per_core": { + "type": "object", + "description": "Number of tasks invoked on each core", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tasks_per_tres": { + "type": "object", + "description": "Number of tasks that can assess each GPU", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tasks_per_node": { + "type": "object", + "description": "Number of tasks invoked on each node", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tasks_per_socket": { + "type": "object", + "description": "Number of tasks invoked on each socket", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tasks_per_board": { + "type": "object", + "description": "Number of tasks invoked on each board", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpus": { + "type": "object", + "description": "Minimum number of CPUs required", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "node_count": { + "type": "object", + "description": "Minimum number of nodes required", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tasks": { + "type": "object", + "description": "Number of tasks", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "prefer": { + "type": "string", + "description": "Feature(s) the job requested but that are not required" + }, + "memory_per_cpu": { + "type": "object", + "description": "Minimum memory in megabytes per allocated CPU", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "memory_per_node": { + "type": "object", + "description": "Minimum memory in megabytes per allocated node", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "minimum_cpus_per_node": { + "type": "object", + "description": "Minimum number of CPUs per node", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "minimum_tmp_disk_per_node": { + "type": "object", + "description": "Minimum tmp disk space required per node", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "power": { + "type": "object", + "properties": { + "flags": { + "type": "array", + "items": { + }, + "deprecated": true + } + } + }, + "preempt_time": { + "type": "object", + "description": "Time job received preemption signal (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "preemptable_time": { + "type": "object", + "description": "Time job becomes eligible for preemption (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "pre_sus_time": { + "type": "object", + "description": "Total run time prior to last suspend in seconds", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job" + }, + "priority": { + "type": "object", + "description": "Request specific job priority", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "profile": { + "type": "array", + "description": "Profile used by the acct_gather_profile plugin", + "items": { + "enum": [ + "NOT_SET", + "NONE", + "ENERGY", + "LUSTRE", + "NETWORK", + "TASK" + ], + "type": "string" + } + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job, if pending the QOS requested" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "type": "string", + "description": "Comma separated list of required nodes" + }, + "minimum_switches": { + "type": "integer", + "format": "int32", + "description": "Maximum number of switches (the 'minimum' in the key is incorrect)" + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "resize_time": { + "type": "object", + "description": "Time of last size change (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "restart_cnt": { + "type": "integer", + "format": "int32", + "description": "Number of job restarts" + }, + "resv_name": { + "type": "string", + "description": "Name of reservation to use" + }, + "scheduled_nodes": { + "type": "string", + "description": "List of nodes scheduled to be used for the job" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "shared": { + "type": "array", + "description": "How the job can share resources with other jobs, if at all", + "items": { + "enum": [ + "none", + "oversubscribe", + "user", + "mcs", + "topo" + ], + "type": "string" + } + }, + "exclusive": { + "type": "array", + "items": { + "enum": [ + "true", + "false", + "user", + "mcs", + "topo" + ], + "type": "string" + }, + "deprecated": true + }, + "oversubscribe": { + "type": "boolean", + "deprecated": true + }, + "show_flags": { + "type": "array", + "items": { + "enum": [ + "ALL", + "DETAIL", + "MIXED", + "LOCAL", + "SIBLING", + "FEDERATION", + "FUTURE" + ], + "type": "string" + }, + "deprecated": true + }, + "sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of sockets per board required" + }, + "sockets_per_node": { + "type": "object", + "description": "Number of sockets per node required", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "start_time": { + "type": "object", + "description": "Time execution began, or is expected to begin (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "state_description": { + "type": "string", + "description": "Optional details for state_reason" + }, + "state_reason": { + "type": "string", + "description": "Reason for current Pending or Failed state" + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "submit_time": { + "type": "object", + "description": "Time when the job was submitted (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "suspend_time": { + "type": "object", + "description": "Time the job was last suspended or resumed (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "system_comment": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + }, + "time_limit": { + "type": "object", + "description": "Maximum run time in minutes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "time_minimum": { + "type": "object", + "description": "Minimum run time in minutes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "threads_per_core": { + "type": "object", + "description": "Number of processor threads per CPU core required", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per task" + }, + "tres_req_str": { + "type": "string", + "description": "TRES requested by the job" + }, + "tres_alloc_str": { + "type": "string", + "description": "TRES used by the job" + }, + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID that owns the job" + }, + "user_name": { + "type": "string", + "description": "User name that owns the job" + }, + "maximum_switch_wait_time": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + } + }, + "required": [ + ] + } + }, + "last_backfill": { + "type": "object", + "description": "Time of last backfill scheduler run (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "last_update": { + "type": "object", + "description": "Time of last job change (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "jobs", + "last_backfill", + "last_update" + ] + }, + "v0.0.41_openapi_kill_jobs_resp": { + "type": "object", + "properties": { + "status": { + "type": "array", + "description": "resultant status of signal request", + "items": { + "type": "object", + "description": "List of jobs signal responses", + "properties": { + "error": { + "type": "object", + "properties": { + "string": { + "type": "string", + "description": "String error encountered signaling job" + }, + "code": { + "type": "integer", + "format": "int32", + "description": "Numeric error encountered signaling job" + }, + "message": { + "type": "string", + "description": "Error message why signaling job failed" + } + } + }, + "step_id": { + "type": "string", + "description": "Job or Step ID that signaling failed" + }, + "job_id": { + "type": "object", + "description": "Job ID that signaling failed", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "federation": { + "type": "object", + "properties": { + "sibling": { + "type": "string", + "description": "Name of federation sibling (may be empty for non-federation)" + } + } + } + }, + "required": [ + "error\/string", + "error\/code", + "error\/message", + "step_id", + "job_id", + "federation\/sibling" + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "status" + ] + }, + "v0.0.41_kill_jobs_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Filter jobs to a specific account" + }, + "flags": { + "type": "array", + "description": "Filter jobs according to flags", + "items": { + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ], + "type": "string" + } + }, + "job_name": { + "type": "string", + "description": "Filter jobs to a specific name" + }, + "jobs": { + "type": "array", + "description": "List of jobs to signal", + "items": { + "type": "string" + } + }, + "partition": { + "type": "string", + "description": "Filter jobs to a specific partition" + }, + "qos": { + "type": "string", + "description": "Filter jobs to a specific QOS" + }, + "reservation": { + "type": "string", + "description": "Filter jobs to a specific reservation" + }, + "signal": { + "type": "string", + "description": "Signal to send to jobs" + }, + "job_state": { + "type": "array", + "description": "Filter jobs to a specific state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "user_id": { + "type": "string", + "description": "Filter jobs to a specific numeric user id" + }, + "user_name": { + "type": "string", + "description": "Filter jobs to a specific user name" + }, + "wckey": { + "type": "string", + "description": "Filter jobs to a specific wckey" + }, + "nodes": { + "type": "array", + "description": "Filter jobs to a set of nodes", + "items": { + "type": "string" + } + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_job_info_resp": { + "type": "object", + "properties": { + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.44_job_info_msg", + "description": "List of jobs" + }, + "last_backfill": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time of last backfill scheduler run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time of last job change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "jobs", + "last_backfill", + "last_update" + ] + }, + "v0.0.44_job_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_job_info" + } + }, + "v0.0.44_job_info": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "accrue_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "When the job started accruing age priority (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocating_node": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "array_job_id": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Job ID of job array, or 0 if N\/A (32 bit integer number with flags)" + }, + "array_task_id": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Task ID of this task in job array (32 bit integer number with flags)" + }, + "array_max_tasks": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum number of simultaneously running array tasks, 0 if no limit (32 bit integer number with flags)" + }, + "array_task_string": { + "type": "string", + "description": "String expression of task IDs in this record" + }, + "association_id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier for the association" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "batch_flag": { + "type": "boolean", + "description": "True if batch job" + }, + "batch_host": { + "type": "string", + "description": "Name of host running batch script" + }, + "flags": { + "type": "array", + "description": "Job flags", + "items": { + "enum": [ + "KILL_INVALID_DEPENDENCY", + "NO_KILL_INVALID_DEPENDENCY", + "HAS_STATE_DIRECTORY", + "TESTING_BACKFILL", + "GRES_BINDING_ENFORCED", + "TEST_NOW_ONLY", + "SEND_JOB_ENVIRONMENT", + "SPREAD_JOB", + "PREFER_MINIMUM_NODE_COUNT", + "JOB_KILL_HURRY", + "SKIP_TRES_STRING_ACCOUNTING", + "SIBLING_CLUSTER_UPDATE_ONLY", + "HETEROGENEOUS_JOB", + "EXACT_TASK_COUNT_REQUESTED", + "EXACT_CPU_COUNT_REQUESTED", + "TESTING_WHOLE_NODE_BACKFILL", + "TOP_PRIORITY_JOB", + "ACCRUE_COUNT_CLEARED", + "GRES_BINDING_DISABLED", + "JOB_WAS_RUNNING", + "JOB_ACCRUE_TIME_RESET", + "CRON_JOB", + "EXACT_MEMORY_REQUESTED", + "EXTERNAL_JOB", + "USING_DEFAULT_ACCOUNT", + "USING_DEFAULT_PARTITION", + "USING_DEFAULT_QOS", + "USING_DEFAULT_WCKEY", + "DEPENDENT", + "MAGNETIC", + "PARTITION_ASSIGNED", + "BACKFILL_ATTEMPTED", + "SCHEDULING_ATTEMPTED", + "STEPMGR_ENABLED", + "SPREAD_SEGMENTS", + "CONSOLIDATE_SEGMENTS", + "EXPEDITED_REQUEUE" + ], + "type": "string" + } + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "burst_buffer_state": { + "type": "string", + "description": "Burst buffer state details" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "cluster_features": { + "type": "string", + "description": "List of required cluster features" + }, + "command": { + "type": "string", + "description": "Executed command" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "core_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cores_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Cores per socket required (16 bit integer number with flags)" + }, + "billable_tres": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "Billable TRES (64 bit floating point number with flags)" + }, + "cpus_per_task": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of CPUs required by each task (16 bit integer number with flags)" + }, + "cpu_frequency_minimum": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Minimum CPU frequency (32 bit integer number with flags)" + }, + "cpu_frequency_maximum": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum CPU frequency (32 bit integer number with flags)" + }, + "cpu_frequency_governor": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "CPU frequency governor (32 bit integer number with flags)" + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "cron": { + "type": "string", + "description": "Time specification for scrontab job" + }, + "deadline": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "delay_boot": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification (32 bit integer number with flags)" + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "derived_exit_code": { + "$ref": "#\/components\/schemas\/v0.0.44_process_exit_code_verbose", + "description": "Highest exit code of all job steps (return code returned by process)" + }, + "eligible_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "End time, real or expected (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "excluded_nodes": { + "type": "string", + "description": "Comma-separated list of nodes that may not be used" + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.44_process_exit_code_verbose", + "description": "Exit code of the job (return code returned by process)" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "features": { + "type": "string", + "description": "Comma-separated list of features that are required" + }, + "federation_origin": { + "type": "string", + "description": "Origin cluster's name (when using federation)" + }, + "federation_siblings_active": { + "type": "string", + "description": "Active sibling job names" + }, + "federation_siblings_viable": { + "type": "string", + "description": "Viable sibling job names" + }, + "gres_detail": { + "$ref": "#\/components\/schemas\/v0.0.44_job_info_gres_detail", + "description": "List of GRES index and counts allocated per node" + }, + "group_id": { + "type": "integer", + "format": "int32", + "description": "Group ID of the user that owns the job" + }, + "group_name": { + "type": "string", + "description": "Group name of the user that owns the job" + }, + "het_job_id": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Heterogeneous job ID, if applicable (32 bit integer number with flags)" + }, + "het_job_id_set": { + "type": "string", + "description": "Job ID range for all heterogeneous job components" + }, + "het_job_offset": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Unique sequence number applied to this component of the heterogeneous job (32 bit integer number with flags)" + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "job_resources": { + "$ref": "#\/components\/schemas\/v0.0.44_job_res", + "description": "Resources used by the job" + }, + "job_size_str": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Number of nodes (in a range) required for this job" + }, + "job_state": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT", + "EXPEDITING" + ], + "type": "string" + } + }, + "last_sched_evaluation": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Last time job was evaluated for scheduling (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "licenses_allocated": { + "type": "string", + "description": "License(s) allocated to the job" + }, + "mail_type": { + "type": "array", + "description": "Mail event type(s)", + "items": { + "enum": [ + "BEGIN", + "END", + "FAIL", + "REQUEUE", + "TIME=100%", + "TIME=90%", + "TIME=80%", + "TIME=50%", + "STAGE_OUT", + "ARRAY_TASKS", + "INVALID_DEPENDENCY" + ], + "type": "string" + } + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "max_cpus": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum number of CPUs usable by the job (32 bit integer number with flags)" + }, + "max_nodes": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum number of nodes usable by the job (32 bit integer number with flags)" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for the job" + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks_per_core": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of tasks invoked on each core (16 bit integer number with flags)" + }, + "tasks_per_tres": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of tasks that can assess each GPU (16 bit integer number with flags)" + }, + "tasks_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of tasks invoked on each node (16 bit integer number with flags)" + }, + "tasks_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of tasks invoked on each socket (16 bit integer number with flags)" + }, + "tasks_per_board": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of tasks invoked on each board (16 bit integer number with flags)" + }, + "cpus": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Minimum number of CPUs required (32 bit integer number with flags)" + }, + "node_count": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Minimum number of nodes required (32 bit integer number with flags)" + }, + "tasks": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Number of tasks (32 bit integer number with flags)" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "prefer": { + "type": "string", + "description": "Feature(s) the job requested but that are not required" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU (64 bit integer number with flags)" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node (64 bit integer number with flags)" + }, + "minimum_cpus_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Minimum number of CPUs per node (16 bit integer number with flags)" + }, + "minimum_tmp_disk_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Minimum tmp disk space required per node (32 bit integer number with flags)" + }, + "power": { + "type": "object", + "properties": { + "flags": { + "type": "array", + "items": { + }, + "deprecated": true + } + } + }, + "preempt_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time job received preemption signal (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "preemptable_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time job becomes eligible for preemption (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "pre_sus_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Total run time prior to last suspend in seconds (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job (Job held)" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Request specific job priority (32 bit integer number with flags)" + }, + "priority_by_partition": { + "$ref": "#\/components\/schemas\/v0.0.44_priority_by_partition", + "description": "Prospective job priority in each partition that may be used by this job" + }, + "profile": { + "type": "array", + "description": "Profile used by the acct_gather_profile plugin", + "items": { + "enum": [ + "NOT_SET", + "NONE", + "ENERGY", + "LUSTRE", + "NETWORK", + "TASK" + ], + "type": "string" + } + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job, if pending the QOS requested" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "type": "string", + "description": "Comma-separated list of required nodes" + }, + "required_switches": { + "type": "integer", + "format": "int32", + "description": "Maximum number of switches" + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "resize_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time of last size change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "restart_cnt": { + "type": "integer", + "format": "int32", + "description": "Number of job restarts" + }, + "resv_name": { + "type": "string", + "description": "Name of reservation to use" + }, + "scheduled_nodes": { + "type": "string", + "description": "List of nodes scheduled to be used for the job" + }, + "segment_size": { + "type": "integer", + "format": "int32", + "description": "Requested segment size" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "shared": { + "type": "array", + "description": "How the job can share resources with other jobs, if at all", + "items": { + "enum": [ + "none", + "oversubscribe", + "user", + "mcs", + "topo" + ], + "type": "string" + } + }, + "step_id": { + "$ref": "#\/components\/schemas\/v0.0.44_slurm_step_id", + "description": "Job step ID" + }, + "sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of sockets per board required" + }, + "sockets_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of sockets per node required (16 bit integer number with flags)" + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time execution began, or is expected to begin (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "state_description": { + "type": "string", + "description": "Optional details for state_reason" + }, + "state_reason": { + "type": "string", + "description": "Reason for current Pending or Failed state" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin_expanded": { + "type": "string", + "description": "Job stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Job stdout with expanded fields" + }, + "stderr_expanded": { + "type": "string", + "description": "Job stderr with expanded fields" + }, + "submit_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "submit_line": { + "type": "string", + "description": "Job submit line (e.g. 'sbatch -N3 job.sh job_arg'" + }, + "suspend_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time the job was last suspended or resumed (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "system_comment": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + }, + "time_limit": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "time_minimum": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Minimum run time in minutes (32 bit integer number with flags)" + }, + "threads_per_core": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of processor threads per CPU core required (16 bit integer number with flags)" + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per task" + }, + "tres_req_str": { + "type": "string", + "description": "TRES requested by the job" + }, + "tres_alloc_str": { + "type": "string", + "description": "TRES used by the job" + }, + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID that owns the job" + }, + "user_name": { + "type": "string", + "description": "User name that owns the job" + }, + "maximum_switch_wait_time": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + } + }, + "required": [ + ] + }, + "v0.0.44_process_exit_code_verbose": { + "type": "object", + "properties": { + "status": { + "type": "array", + "description": "Status given by return code", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "return_code": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Process return code (numeric) (32 bit integer number with flags)" + }, + "signal": { + "type": "object", + "properties": { + "id": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Signal sent to process (numeric) (16 bit integer number with flags)" + }, + "name": { + "type": "string", + "description": "Signal sent to process (name)" + } + } + } + }, + "required": [ + ] + }, + "v0.0.44_job_info_gres_detail": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.44_job_res": { + "type": "object", + "properties": { + "select_type": { + "type": "array", + "description": "Scheduler consumable resource selection type", + "items": { + "enum": [ + "CPU", + "SOCKET", + "CORE", + "BOARD", + "MEMORY", + "ONE_TASK_PER_CORE", + "PACK_NODES", + "CORE_DEFAULT_DIST_BLOCK", + "LLN", + "LINEAR" + ], + "type": "string" + } + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of allocated nodes" + }, + "select_type": { + "type": "array", + "description": "Node scheduling selection method", + "items": { + "enum": [ + "AVAILABLE", + "ONE_ROW", + "RESERVED" + ], + "type": "string" + } + }, + "list": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "whole": { + "type": "boolean", + "description": "Whether whole nodes were allocated" + }, + "allocation": { + "$ref": "#\/components\/schemas\/v0.0.44_job_res_nodes", + "description": "Allocated node resources (Job resources for a node)" + } + } + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Number of allocated CPUs" + }, + "threads_per_core": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "Number of processor threads per CPU core (16 bit integer number with flags)" + } + }, + "required": [ + "select_type", + "nodes\/count", + "nodes\/select_type", + "nodes\/list", + "cpus", + "threads_per_core", + "nodes\/whole", + "nodes\/allocation" + ] + }, + "v0.0.44_job_res_nodes": { + "type": "array", + "description": "Job resources for a node", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_job_res_node" + } + }, + "v0.0.44_job_res_node": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Node index" + }, + "name": { + "type": "string", + "description": "Node name" + }, + "cpus": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs assigned to job" + }, + "used": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs used by job" + } + } + }, + "memory": { + "type": "object", + "properties": { + "used": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) used by job" + }, + "allocated": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) allocated to job" + } + } + }, + "sockets": { + "$ref": "#\/components\/schemas\/v0.0.44_job_res_socket_array", + "description": "Socket allocations in node" + } + }, + "required": [ + "index", + "name", + "cpus\/count", + "cpus\/used", + "memory\/used", + "memory\/allocated", + "sockets" + ] + }, + "v0.0.44_job_res_socket_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_job_res_socket" + } + }, + "v0.0.44_job_res_socket": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "cores": { + "$ref": "#\/components\/schemas\/v0.0.44_job_res_core_array", + "description": "Core in socket" + } + }, + "required": [ + "index", + "cores" + ] + }, + "v0.0.44_job_res_core_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_job_res_core" + } + }, + "v0.0.44_job_res_core": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "status": { + "type": "array", + "description": "Core status", + "items": { + "enum": [ + "INVALID", + "UNALLOCATED", + "ALLOCATED", + "IN_USE" + ], + "type": "string" + } + } + }, + "required": [ + "index", + "status" + ] + }, + "v0.0.44_priority_by_partition": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_part_prio" + } + }, + "v0.0.44_part_prio": { + "type": "object", + "properties": { + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "Prospective job priority if it runs in this partition" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_kill_jobs_resp": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/v0.0.44_kill_jobs_resp_msg", + "description": "resultant status of signal request (List of jobs signal responses)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "status" + ] + }, + "v0.0.44_kill_jobs_resp_msg": { + "type": "array", + "description": "List of jobs signal responses", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_kill_jobs_resp_job" + } + }, + "v0.0.44_kill_jobs_resp_job": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "string": { + "type": "string", + "description": "String error encountered signaling job" + }, + "code": { + "type": "integer", + "format": "int32", + "description": "Numeric error encountered signaling job" + }, + "message": { + "type": "string", + "description": "Error message why signaling job failed" + } + } + }, + "step_id": { + "type": "string", + "description": "Job or Step ID that signaling failed" + }, + "job_id": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Job ID that signaling failed (32 bit integer number with flags)" + }, + "federation": { + "type": "object", + "properties": { + "sibling": { + "type": "string", + "description": "Name of federation sibling (may be empty for non-federation)" + } + } + } + }, + "required": [ + "error\/string", + "error\/code", + "error\/message", + "step_id", + "job_id", + "federation\/sibling" + ] + }, + "v0.0.44_kill_jobs_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Filter jobs to a specific account" + }, + "flags": { + "type": "array", + "description": "Filter jobs according to flags", + "items": { + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ], + "type": "string" + } + }, + "job_name": { + "type": "string", + "description": "Filter jobs to a specific name" + }, + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.44_kill_jobs_msg_jobs_array", + "description": "List of jobs to signal" + }, + "partition": { + "type": "string", + "description": "Filter jobs to a specific partition" + }, + "qos": { + "type": "string", + "description": "Filter jobs to a specific QOS" + }, + "reservation": { + "type": "string", + "description": "Filter jobs to a specific reservation" + }, + "signal": { + "type": "string", + "description": "Signal to send to jobs" + }, + "job_state": { + "type": "array", + "description": "Filter jobs to a specific state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT", + "EXPEDITING" + ], + "type": "string" + } + }, + "user_id": { + "type": "string", + "description": "Filter jobs to a specific numeric user id" + }, + "user_name": { + "type": "string", + "description": "Filter jobs to a specific user name" + }, + "wckey": { + "type": "string", + "description": "Filter jobs to a specific wckey" + }, + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist_string", + "description": "Filter jobs to a set of nodes" + } + }, + "required": [ + ] + }, + "v0.0.44_kill_jobs_msg_jobs_array": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.42_openapi_job_info_resp": { + "type": "object", + "properties": { + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.42_job_info_msg", + "description": "List of jobs" + }, + "last_backfill": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time of last backfill scheduler run (UNIX timestamp)" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time of last job change (UNIX timestamp)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "jobs", + "last_backfill", + "last_update" + ] + }, + "v0.0.42_job_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_job_info" + } + }, + "v0.0.42_job_info": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "accrue_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "When the job started accruing age priority (UNIX timestamp)" + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocating_node": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "array_job_id": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Job ID of job array, or 0 if N\/A" + }, + "array_task_id": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Task ID of this task in job array" + }, + "array_max_tasks": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of simultaneously running array tasks, 0 if no limit" + }, + "array_task_string": { + "type": "string", + "description": "String expression of task IDs in this record" + }, + "association_id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier for the association" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "batch_flag": { + "type": "boolean", + "description": "True if batch job" + }, + "batch_host": { + "type": "string", + "description": "Name of host running batch script" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_job_flags", + "description": "Job flags" + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "burst_buffer_state": { + "type": "string", + "description": "Burst buffer state details" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "cluster_features": { + "type": "string", + "description": "List of required cluster features" + }, + "command": { + "type": "string", + "description": "Executed command" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "core_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cores_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Cores per socket required" + }, + "billable_tres": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "Billable TRES" + }, + "cpus_per_task": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of CPUs required by each task" + }, + "cpu_frequency_minimum": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum CPU frequency" + }, + "cpu_frequency_maximum": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum CPU frequency" + }, + "cpu_frequency_governor": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "CPU frequency governor" + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "cron": { + "type": "string", + "description": "Time specification for scrontab job" + }, + "deadline": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Latest time that the job may start (UNIX timestamp)" + }, + "delay_boot": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification" + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "derived_exit_code": { + "$ref": "#\/components\/schemas\/v0.0.42_process_exit_code_verbose", + "description": "Highest exit code of all job steps" + }, + "eligible_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time when the job became eligible to run (UNIX timestamp)" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "End time, real or expected (UNIX timestamp)" + }, + "excluded_nodes": { + "type": "string", + "description": "Comma separated list of nodes that may not be used" + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.42_process_exit_code_verbose", + "description": "Exit code of the job" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "features": { + "type": "string", + "description": "Comma separated list of features that are required" + }, + "federation_origin": { + "type": "string", + "description": "Origin cluster's name (when using federation)" + }, + "federation_siblings_active": { + "type": "string", + "description": "Active sibling job names" + }, + "federation_siblings_viable": { + "type": "string", + "description": "Viable sibling job names" + }, + "gres_detail": { + "$ref": "#\/components\/schemas\/v0.0.42_job_info_gres_detail", + "description": "List of GRES index and counts allocated per node" + }, + "group_id": { + "type": "integer", + "format": "int32", + "description": "Group ID of the user that owns the job" + }, + "group_name": { + "type": "string", + "description": "Group name of the user that owns the job" + }, + "het_job_id": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Heterogeneous job ID, if applicable" + }, + "het_job_id_set": { + "type": "string", + "description": "Job ID range for all heterogeneous job components" + }, + "het_job_offset": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Unique sequence number applied to this component of the heterogeneous job" + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "job_resources": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res", + "description": "Resources used by the job" + }, + "job_size_str": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Number of nodes (in a range) required for this job" + }, + "job_state": { + "$ref": "#\/components\/schemas\/v0.0.42_job_state", + "description": "Current state" + }, + "last_sched_evaluation": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Last time job was evaluated for scheduling (UNIX timestamp)" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mail_type": { + "$ref": "#\/components\/schemas\/v0.0.42_job_mail_flags", + "description": "Mail event type(s)" + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "max_cpus": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of CPUs usable by the job" + }, + "max_nodes": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of nodes usable by the job" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for the job" + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks_per_core": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of tasks invoked on each core" + }, + "tasks_per_tres": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of tasks that can assess each GPU" + }, + "tasks_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of tasks invoked on each node" + }, + "tasks_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of tasks invoked on each socket" + }, + "tasks_per_board": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of tasks invoked on each board" + }, + "cpus": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum number of CPUs required" + }, + "node_count": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum number of nodes required" + }, + "tasks": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Number of tasks" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "prefer": { + "type": "string", + "description": "Feature(s) the job requested but that are not required" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node" + }, + "minimum_cpus_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Minimum number of CPUs per node" + }, + "minimum_tmp_disk_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum tmp disk space required per node" + }, + "power": { + "type": "object", + "properties": { + "flags": { + "type": "array", + "items": { + }, + "deprecated": true + } + } + }, + "preempt_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time job received preemption signal (UNIX timestamp)" + }, + "preemptable_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time job becomes eligible for preemption (UNIX timestamp)" + }, + "pre_sus_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Total run time prior to last suspend in seconds" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Request specific job priority" + }, + "priority_by_partition": { + "$ref": "#\/components\/schemas\/v0.0.42_priority_by_partition", + "description": "Prospective job priority in each partition that may be used by this job" + }, + "profile": { + "$ref": "#\/components\/schemas\/v0.0.42_acct_gather_profile", + "description": "Profile used by the acct_gather_profile plugin" + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job, if pending the QOS requested" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "type": "string", + "description": "Comma separated list of required nodes" + }, + "required_switches": { + "type": "integer", + "format": "int32", + "description": "Maximum number of switches" + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "resize_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time of last size change (UNIX timestamp)" + }, + "restart_cnt": { + "type": "integer", + "format": "int32", + "description": "Number of job restarts" + }, + "resv_name": { + "type": "string", + "description": "Name of reservation to use" + }, + "scheduled_nodes": { + "type": "string", + "description": "List of nodes scheduled to be used for the job" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "shared": { + "$ref": "#\/components\/schemas\/v0.0.42_job_shared", + "description": "How the job can share resources with other jobs, if at all" + }, + "sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of sockets per board required" + }, + "sockets_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of sockets per node required" + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time execution began, or is expected to begin (UNIX timestamp)" + }, + "state_description": { + "type": "string", + "description": "Optional details for state_reason" + }, + "state_reason": { + "type": "string", + "description": "Reason for current Pending or Failed state" + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "submit_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time when the job was submitted (UNIX timestamp)" + }, + "suspend_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time the job was last suspended or resumed (UNIX timestamp)" + }, + "system_comment": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + }, + "time_limit": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum run time in minutes" + }, + "time_minimum": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum run time in minutes" + }, + "threads_per_core": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of processor threads per CPU core required" + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma separated list of TRES=# values to be allocated per task" + }, + "tres_req_str": { + "type": "string", + "description": "TRES requested by the job" + }, + "tres_alloc_str": { + "type": "string", + "description": "TRES used by the job" + }, + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID that owns the job" + }, + "user_name": { + "type": "string", + "description": "User name that owns the job" + }, + "maximum_switch_wait_time": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + } + }, + "required": [ + ] + }, + "v0.0.42_process_exit_code_verbose": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/v0.0.42_process_exit_code_status", + "description": "Status given by return code" + }, + "return_code": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Process return code (numeric)" + }, + "signal": { + "type": "object", + "properties": { + "id": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Signal sent to process (numeric)" + }, + "name": { + "type": "string", + "description": "Signal sent to process (name)" + } + } + } + }, + "required": [ + ] + }, + "v0.0.42_process_exit_code_status": { + "type": "array", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "v0.0.42_job_info_gres_detail": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.42_job_res": { + "type": "object", + "properties": { + "select_type": { + "$ref": "#\/components\/schemas\/v0.0.42_cr_type", + "description": "Scheduler consumable resource selection type" + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of allocated nodes" + }, + "select_type": { + "$ref": "#\/components\/schemas\/v0.0.42_node_cr_type", + "description": "Node scheduling selection method" + }, + "list": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "whole": { + "type": "boolean", + "description": "Whether whole nodes were allocated" + }, + "allocation": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res_nodes", + "description": "Allocated node resources" + } + } + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Number of allocated CPUs" + }, + "threads_per_core": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "Number of processor threads per CPU core" + } + }, + "required": [ + "select_type", + "nodes\/count", + "nodes\/select_type", + "nodes\/list", + "cpus", + "threads_per_core", + "nodes\/whole", + "nodes\/allocation" + ] + }, + "v0.0.42_cr_type": { + "type": "array", + "items": { + "enum": [ + "CPU", + "SOCKET", + "CORE", + "BOARD", + "MEMORY", + "ONE_TASK_PER_CORE", + "PACK_NODES", + "CORE_DEFAULT_DIST_BLOCK", + "LLN", + "LINEAR" + ], + "type": "string" + } + }, + "v0.0.42_node_cr_type": { + "type": "array", + "items": { + "enum": [ + "AVAILABLE", + "ONE_ROW", + "RESERVED" + ], + "type": "string" + } + }, + "v0.0.42_job_res_nodes": { + "type": "array", + "description": "Job resources for a node", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res_node", + "description": "Job resources for a node" + } + }, + "v0.0.42_job_res_node": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Node index" + }, + "name": { + "type": "string", + "description": "Node name" + }, + "cpus": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs assigned to job" + }, + "used": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs used by job" + } + } + }, + "memory": { + "type": "object", + "properties": { + "used": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) used by job" + }, + "allocated": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) allocated to job" + } + } + }, + "sockets": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res_socket_array", + "description": "Socket allocations in node" + } + }, + "required": [ + "index", + "name", + "cpus\/count", + "cpus\/used", + "memory\/used", + "memory\/allocated", + "sockets" + ] + }, + "v0.0.42_job_res_socket_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res_socket" + } + }, + "v0.0.42_job_res_socket": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "cores": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res_core_array", + "description": "Core in socket" + } + }, + "required": [ + "index", + "cores" + ] + }, + "v0.0.42_job_res_core_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res_core" + } + }, + "v0.0.42_job_res_core": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "status": { + "$ref": "#\/components\/schemas\/v0.0.42_job_res_core_status", + "description": "Core status" + } + }, + "required": [ + "index", + "status" + ] + }, + "v0.0.42_job_res_core_status": { + "type": "array", + "items": { + "enum": [ + "INVALID", + "UNALLOCATED", + "ALLOCATED", + "IN_USE" + ], + "type": "string" + } + }, + "v0.0.42_job_state": { + "type": "array", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "v0.0.42_priority_by_partition": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_part_prio" + } + }, + "v0.0.42_part_prio": { + "type": "object", + "properties": { + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "Prospective job priority if it runs in this partition" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_kill_jobs_resp": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/v0.0.42_kill_jobs_resp_msg", + "description": "resultant status of signal request" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "status" + ] + }, + "v0.0.42_kill_jobs_resp_msg": { + "type": "array", + "description": "List of jobs signal responses", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_kill_jobs_resp_job", + "description": "List of jobs signal responses" + } + }, + "v0.0.42_kill_jobs_resp_job": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "string": { + "type": "string", + "description": "String error encountered signaling job" + }, + "code": { + "type": "integer", + "format": "int32", + "description": "Numeric error encountered signaling job" + }, + "message": { + "type": "string", + "description": "Error message why signaling job failed" + } + } + }, + "step_id": { + "type": "string", + "description": "Job or Step ID that signaling failed" + }, + "job_id": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Job ID that signaling failed" + }, + "federation": { + "type": "object", + "properties": { + "sibling": { + "type": "string", + "description": "Name of federation sibling (may be empty for non-federation)" + } + } + } + }, + "required": [ + "error\/string", + "error\/code", + "error\/message", + "step_id", + "job_id", + "federation\/sibling" + ] + }, + "v0.0.42_kill_jobs_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Filter jobs to a specific account" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_warn_flags", + "description": "Filter jobs according to flags" + }, + "job_name": { + "type": "string", + "description": "Filter jobs to a specific name" + }, + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.42_kill_jobs_msg_jobs_array", + "description": "List of jobs to signal" + }, + "partition": { + "type": "string", + "description": "Filter jobs to a specific partition" + }, + "qos": { + "type": "string", + "description": "Filter jobs to a specific QOS" + }, + "reservation": { + "type": "string", + "description": "Filter jobs to a specific reservation" + }, + "signal": { + "type": "string", + "description": "Signal to send to jobs" + }, + "job_state": { + "$ref": "#\/components\/schemas\/v0.0.42_job_state", + "description": "Filter jobs to a specific state" + }, + "user_id": { + "type": "string", + "description": "Filter jobs to a specific numeric user id" + }, + "user_name": { + "type": "string", + "description": "Filter jobs to a specific user name" + }, + "wckey": { + "type": "string", + "description": "Filter jobs to a specific wckey" + }, + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.42_hostlist_string", + "description": "Filter jobs to a set of nodes" + } + }, + "required": [ + ] + }, + "v0.0.42_kill_jobs_msg_jobs_array": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_openapi_job_info_resp": { + "type": "object", + "properties": { + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.43_job_info_msg", + "description": "List of jobs" + }, + "last_backfill": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time of last backfill scheduler run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time of last job change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "jobs", + "last_backfill", + "last_update" + ] + }, + "v0.0.43_job_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_job_info" + } + }, + "v0.0.43_job_info": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account associated with the job" + }, + "accrue_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "When the job started accruing age priority (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "admin_comment": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "allocating_node": { + "type": "string", + "description": "Local node making the resource allocation" + }, + "array_job_id": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Job ID of job array, or 0 if N\/A (32 bit integer number with flags)" + }, + "array_task_id": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Task ID of this task in job array (32 bit integer number with flags)" + }, + "array_max_tasks": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum number of simultaneously running array tasks, 0 if no limit (32 bit integer number with flags)" + }, + "array_task_string": { + "type": "string", + "description": "String expression of task IDs in this record" + }, + "association_id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier for the association" + }, + "batch_features": { + "type": "string", + "description": "Features required for batch script's node" + }, + "batch_flag": { + "type": "boolean", + "description": "True if batch job" + }, + "batch_host": { + "type": "string", + "description": "Name of host running batch script" + }, + "flags": { + "type": "array", + "description": "Job flags", + "items": { + "enum": [ + "KILL_INVALID_DEPENDENCY", + "NO_KILL_INVALID_DEPENDENCY", + "HAS_STATE_DIRECTORY", + "TESTING_BACKFILL", + "GRES_BINDING_ENFORCED", + "TEST_NOW_ONLY", + "SEND_JOB_ENVIRONMENT", + "SPREAD_JOB", + "PREFER_MINIMUM_NODE_COUNT", + "JOB_KILL_HURRY", + "SKIP_TRES_STRING_ACCOUNTING", + "SIBLING_CLUSTER_UPDATE_ONLY", + "HETEROGENEOUS_JOB", + "EXACT_TASK_COUNT_REQUESTED", + "EXACT_CPU_COUNT_REQUESTED", + "TESTING_WHOLE_NODE_BACKFILL", + "TOP_PRIORITY_JOB", + "ACCRUE_COUNT_CLEARED", + "GRES_BINDING_DISABLED", + "JOB_WAS_RUNNING", + "JOB_ACCRUE_TIME_RESET", + "CRON_JOB", + "EXACT_MEMORY_REQUESTED", + "EXTERNAL_JOB", + "USING_DEFAULT_ACCOUNT", + "USING_DEFAULT_PARTITION", + "USING_DEFAULT_QOS", + "USING_DEFAULT_WCKEY", + "DEPENDENT", + "MAGNETIC", + "PARTITION_ASSIGNED", + "BACKFILL_ATTEMPTED", + "SCHEDULING_ATTEMPTED", + "STEPMGR_ENABLED" + ], + "type": "string" + } + }, + "burst_buffer": { + "type": "string", + "description": "Burst buffer specifications" + }, + "burst_buffer_state": { + "type": "string", + "description": "Burst buffer state details" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "cluster_features": { + "type": "string", + "description": "List of required cluster features" + }, + "command": { + "type": "string", + "description": "Executed command" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "container_id": { + "type": "string", + "description": "OCI container ID" + }, + "contiguous": { + "type": "boolean", + "description": "True if job requires contiguous nodes" + }, + "core_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized core count" + }, + "thread_spec": { + "type": "integer", + "format": "int32", + "description": "Specialized thread count" + }, + "cores_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Cores per socket required (16 bit integer number with flags)" + }, + "billable_tres": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "Billable TRES (64 bit floating point number with flags)" + }, + "cpus_per_task": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of CPUs required by each task (16 bit integer number with flags)" + }, + "cpu_frequency_minimum": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Minimum CPU frequency (32 bit integer number with flags)" + }, + "cpu_frequency_maximum": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum CPU frequency (32 bit integer number with flags)" + }, + "cpu_frequency_governor": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "CPU frequency governor (32 bit integer number with flags)" + }, + "cpus_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "cron": { + "type": "string", + "description": "Time specification for scrontab job" + }, + "deadline": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "delay_boot": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification (32 bit integer number with flags)" + }, + "dependency": { + "type": "string", + "description": "Other jobs that must meet certain criteria before this job can start" + }, + "derived_exit_code": { + "$ref": "#\/components\/schemas\/v0.0.43_process_exit_code_verbose", + "description": "Highest exit code of all job steps (return code returned by process)" + }, + "eligible_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "End time, real or expected (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "excluded_nodes": { + "type": "string", + "description": "Comma-separated list of nodes that may not be used" + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.43_process_exit_code_verbose", + "description": "Exit code of the job (return code returned by process)" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "features": { + "type": "string", + "description": "Comma-separated list of features that are required" + }, + "federation_origin": { + "type": "string", + "description": "Origin cluster's name (when using federation)" + }, + "federation_siblings_active": { + "type": "string", + "description": "Active sibling job names" + }, + "federation_siblings_viable": { + "type": "string", + "description": "Viable sibling job names" + }, + "gres_detail": { + "$ref": "#\/components\/schemas\/v0.0.43_job_info_gres_detail", + "description": "List of GRES index and counts allocated per node" + }, + "group_id": { + "type": "integer", + "format": "int32", + "description": "Group ID of the user that owns the job" + }, + "group_name": { + "type": "string", + "description": "Group name of the user that owns the job" + }, + "het_job_id": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Heterogeneous job ID, if applicable (32 bit integer number with flags)" + }, + "het_job_id_set": { + "type": "string", + "description": "Job ID range for all heterogeneous job components" + }, + "het_job_offset": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Unique sequence number applied to this component of the heterogeneous job (32 bit integer number with flags)" + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "job_resources": { + "$ref": "#\/components\/schemas\/v0.0.43_job_res", + "description": "Resources used by the job" + }, + "job_size_str": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Number of nodes (in a range) required for this job" + }, + "job_state": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "last_sched_evaluation": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Last time job was evaluated for scheduling (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "licenses_allocated": { + "type": "string", + "description": "License(s) allocated to the job" + }, + "mail_type": { + "type": "array", + "description": "Mail event type(s)", + "items": { + "enum": [ + "BEGIN", + "END", + "FAIL", + "REQUEUE", + "TIME=100%", + "TIME=90%", + "TIME=80%", + "TIME=50%", + "STAGE_OUT", + "ARRAY_TASKS", + "INVALID_DEPENDENCY" + ], + "type": "string" + } + }, + "mail_user": { + "type": "string", + "description": "User to receive email notifications" + }, + "max_cpus": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum number of CPUs usable by the job (32 bit integer number with flags)" + }, + "max_nodes": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum number of nodes usable by the job (32 bit integer number with flags)" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label on the job" + }, + "memory_per_tres": { + "type": "string", + "description": "Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres\/gpu)" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "network": { + "type": "string", + "description": "Network specs for the job" + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "nice": { + "type": "integer", + "format": "int32", + "description": "Requested job priority change" + }, + "tasks_per_core": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of tasks invoked on each core (16 bit integer number with flags)" + }, + "tasks_per_tres": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of tasks that can assess each GPU (16 bit integer number with flags)" + }, + "tasks_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of tasks invoked on each node (16 bit integer number with flags)" + }, + "tasks_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of tasks invoked on each socket (16 bit integer number with flags)" + }, + "tasks_per_board": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of tasks invoked on each board (16 bit integer number with flags)" + }, + "cpus": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Minimum number of CPUs required (32 bit integer number with flags)" + }, + "node_count": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Minimum number of nodes required (32 bit integer number with flags)" + }, + "tasks": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Number of tasks (32 bit integer number with flags)" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "prefer": { + "type": "string", + "description": "Feature(s) the job requested but that are not required" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU (64 bit integer number with flags)" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node (64 bit integer number with flags)" + }, + "minimum_cpus_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Minimum number of CPUs per node (16 bit integer number with flags)" + }, + "minimum_tmp_disk_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Minimum tmp disk space required per node (32 bit integer number with flags)" + }, + "power": { + "type": "object", + "properties": { + "flags": { + "type": "array", + "items": { + }, + "deprecated": true + } + } + }, + "preempt_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time job received preemption signal (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "preemptable_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time job becomes eligible for preemption (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "pre_sus_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Total run time prior to last suspend in seconds (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job (Job held)" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Request specific job priority (32 bit integer number with flags)" + }, + "priority_by_partition": { + "$ref": "#\/components\/schemas\/v0.0.43_priority_by_partition", + "description": "Prospective job priority in each partition that may be used by this job" + }, + "profile": { + "type": "array", + "description": "Profile used by the acct_gather_profile plugin", + "items": { + "enum": [ + "NOT_SET", + "NONE", + "ENERGY", + "LUSTRE", + "NETWORK", + "TASK" + ], + "type": "string" + } + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job, if pending the QOS requested" + }, + "reboot": { + "type": "boolean", + "description": "Node reboot requested before start" + }, + "required_nodes": { + "type": "string", + "description": "Comma-separated list of required nodes" + }, + "required_switches": { + "type": "integer", + "format": "int32", + "description": "Maximum number of switches" + }, + "requeue": { + "type": "boolean", + "description": "Determines whether the job may be requeued" + }, + "resize_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time of last size change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "restart_cnt": { + "type": "integer", + "format": "int32", + "description": "Number of job restarts" + }, + "resv_name": { + "type": "string", + "description": "Name of reservation to use" + }, + "scheduled_nodes": { + "type": "string", + "description": "List of nodes scheduled to be used for the job" + }, + "segment_size": { + "type": "integer", + "format": "int32", + "description": "Requested segment size" + }, + "selinux_context": { + "type": "string", + "description": "SELinux context" + }, + "shared": { + "type": "array", + "description": "How the job can share resources with other jobs, if at all", + "items": { + "enum": [ + "none", + "oversubscribe", + "user", + "mcs", + "topo" + ], + "type": "string" + } + }, + "sockets_per_board": { + "type": "integer", + "format": "int32", + "description": "Number of sockets per board required" + }, + "sockets_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of sockets per node required (16 bit integer number with flags)" + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time execution began, or is expected to begin (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "state_description": { + "type": "string", + "description": "Optional details for state_reason" + }, + "state_reason": { + "type": "string", + "description": "Reason for current Pending or Failed state" + }, + "standard_input": { + "type": "string", + "description": "Path to stdin file" + }, + "standard_output": { + "type": "string", + "description": "Path to stdout file" + }, + "standard_error": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin_expanded": { + "type": "string", + "description": "Job stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Job stdout with expanded fields" + }, + "stderr_expanded": { + "type": "string", + "description": "Job stderr with expanded fields" + }, + "submit_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "suspend_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time the job was last suspended or resumed (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "system_comment": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + }, + "time_limit": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "time_minimum": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Minimum run time in minutes (32 bit integer number with flags)" + }, + "threads_per_core": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of processor threads per CPU core required (16 bit integer number with flags)" + }, + "tres_bind": { + "type": "string", + "description": "Task to TRES binding directives" + }, + "tres_freq": { + "type": "string", + "description": "TRES frequency directives" + }, + "tres_per_job": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per job" + }, + "tres_per_node": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per node" + }, + "tres_per_socket": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per socket" + }, + "tres_per_task": { + "type": "string", + "description": "Comma-separated list of TRES=# values to be allocated per task" + }, + "tres_req_str": { + "type": "string", + "description": "TRES requested by the job" + }, + "tres_alloc_str": { + "type": "string", + "description": "TRES used by the job" + }, + "user_id": { + "type": "integer", + "format": "int32", + "description": "User ID that owns the job" + }, + "user_name": { + "type": "string", + "description": "User name that owns the job" + }, + "maximum_switch_wait_time": { + "type": "integer", + "format": "int32", + "description": "Maximum time to wait for switches in seconds" + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + }, + "current_working_directory": { + "type": "string", + "description": "Working directory to use for the job" + } + }, + "required": [ + ] + }, + "v0.0.43_process_exit_code_verbose": { + "type": "object", + "properties": { + "status": { + "type": "array", + "description": "Status given by return code", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "return_code": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Process return code (numeric) (32 bit integer number with flags)" + }, + "signal": { + "type": "object", + "properties": { + "id": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Signal sent to process (numeric) (16 bit integer number with flags)" + }, + "name": { + "type": "string", + "description": "Signal sent to process (name)" + } + } + } + }, + "required": [ + ] + }, + "v0.0.43_job_info_gres_detail": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_job_res": { + "type": "object", + "properties": { + "select_type": { + "type": "array", + "description": "Scheduler consumable resource selection type", + "items": { + "enum": [ + "CPU", + "SOCKET", + "CORE", + "BOARD", + "MEMORY", + "ONE_TASK_PER_CORE", + "PACK_NODES", + "CORE_DEFAULT_DIST_BLOCK", + "LLN", + "LINEAR" + ], + "type": "string" + } + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of allocated nodes" + }, + "select_type": { + "type": "array", + "description": "Node scheduling selection method", + "items": { + "enum": [ + "AVAILABLE", + "ONE_ROW", + "RESERVED" + ], + "type": "string" + } + }, + "list": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "whole": { + "type": "boolean", + "description": "Whether whole nodes were allocated" + }, + "allocation": { + "$ref": "#\/components\/schemas\/v0.0.43_job_res_nodes", + "description": "Allocated node resources (Job resources for a node)" + } + } + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Number of allocated CPUs" + }, + "threads_per_core": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "Number of processor threads per CPU core (16 bit integer number with flags)" + } + }, + "required": [ + "select_type", + "nodes\/count", + "nodes\/select_type", + "nodes\/list", + "cpus", + "threads_per_core", + "nodes\/whole", + "nodes\/allocation" + ] + }, + "v0.0.43_job_res_nodes": { + "type": "array", + "description": "Job resources for a node", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_job_res_node" + } + }, + "v0.0.43_job_res_node": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Node index" + }, + "name": { + "type": "string", + "description": "Node name" + }, + "cpus": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs assigned to job" + }, + "used": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs used by job" + } + } + }, + "memory": { + "type": "object", + "properties": { + "used": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) used by job" + }, + "allocated": { + "type": "integer", + "format": "int64", + "description": "Total memory (MiB) allocated to job" + } + } + }, + "sockets": { + "$ref": "#\/components\/schemas\/v0.0.43_job_res_socket_array", + "description": "Socket allocations in node" + } + }, + "required": [ + "index", + "name", + "cpus\/count", + "cpus\/used", + "memory\/used", + "memory\/allocated", + "sockets" + ] + }, + "v0.0.43_job_res_socket_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_job_res_socket" + } + }, + "v0.0.43_job_res_socket": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "cores": { + "$ref": "#\/components\/schemas\/v0.0.43_job_res_core_array", + "description": "Core in socket" + } + }, + "required": [ + "index", + "cores" + ] + }, + "v0.0.43_job_res_core_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_job_res_core" + } + }, + "v0.0.43_job_res_core": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Core index" + }, + "status": { + "type": "array", + "description": "Core status", + "items": { + "enum": [ + "INVALID", + "UNALLOCATED", + "ALLOCATED", + "IN_USE" + ], + "type": "string" + } + } + }, + "required": [ + "index", + "status" + ] + }, + "v0.0.43_priority_by_partition": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_part_prio" + } + }, + "v0.0.43_part_prio": { + "type": "object", + "properties": { + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "Prospective job priority if it runs in this partition" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_kill_jobs_resp": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/v0.0.43_kill_jobs_resp_msg", + "description": "resultant status of signal request (List of jobs signal responses)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "status" + ] + }, + "v0.0.43_kill_jobs_resp_msg": { + "type": "array", + "description": "List of jobs signal responses", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_kill_jobs_resp_job" + } + }, + "v0.0.43_kill_jobs_resp_job": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "string": { + "type": "string", + "description": "String error encountered signaling job" + }, + "code": { + "type": "integer", + "format": "int32", + "description": "Numeric error encountered signaling job" + }, + "message": { + "type": "string", + "description": "Error message why signaling job failed" + } + } + }, + "step_id": { + "type": "string", + "description": "Job or Step ID that signaling failed" + }, + "job_id": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Job ID that signaling failed (32 bit integer number with flags)" + }, + "federation": { + "type": "object", + "properties": { + "sibling": { + "type": "string", + "description": "Name of federation sibling (may be empty for non-federation)" + } + } + } + }, + "required": [ + "error\/string", + "error\/code", + "error\/message", + "step_id", + "job_id", + "federation\/sibling" + ] + }, + "v0.0.43_kill_jobs_msg": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Filter jobs to a specific account" + }, + "flags": { + "type": "array", + "description": "Filter jobs according to flags", + "items": { + "enum": [ + "BATCH_JOB", + "ARRAY_TASK", + "FULL_STEPS_ONLY", + "FULL_JOB", + "FEDERATION_REQUEUE", + "HURRY", + "OUT_OF_MEMORY", + "NO_SIBLING_JOBS", + "RESERVATION_JOB", + "VERBOSE", + "CRON_JOBS", + "WARNING_SENT" + ], + "type": "string" + } + }, + "job_name": { + "type": "string", + "description": "Filter jobs to a specific name" + }, + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.43_kill_jobs_msg_jobs_array", + "description": "List of jobs to signal" + }, + "partition": { + "type": "string", + "description": "Filter jobs to a specific partition" + }, + "qos": { + "type": "string", + "description": "Filter jobs to a specific QOS" + }, + "reservation": { + "type": "string", + "description": "Filter jobs to a specific reservation" + }, + "signal": { + "type": "string", + "description": "Signal to send to jobs" + }, + "job_state": { + "type": "array", + "description": "Filter jobs to a specific state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "user_id": { + "type": "string", + "description": "Filter jobs to a specific numeric user id" + }, + "user_name": { + "type": "string", + "description": "Filter jobs to a specific user name" + }, + "wckey": { + "type": "string", + "description": "Filter jobs to a specific wckey" + }, + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.43_hostlist_string", + "description": "Filter jobs to a set of nodes" + } + }, + "required": [ + ] + }, + "v0.0.43_kill_jobs_msg_jobs_array": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.41_openapi_job_post_response": { + "type": "object", + "properties": { + "results": { + "type": "array", + "description": "Job update results", + "items": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID for updated job" + }, + "step_id": { + "type": "string", + "description": "Step ID for updated job" + }, + "error": { + "type": "string", + "description": "Verbose update status or error" + }, + "error_code": { + "type": "integer", + "format": "int32", + "description": "Verbose update status or error" + }, + "why": { + "type": "string", + "description": "Update response message" + } + }, + "required": [ + ] + } + }, + "job_id": { + "type": "string", + "description": "First updated Job ID - Use results instead", + "deprecated": true + }, + "step_id": { + "type": "string", + "description": "First updated Step ID - Use results instead", + "deprecated": true + }, + "job_submit_user_msg": { + "type": "string", + "description": "First updated Job submission user message - Use results instead", + "deprecated": true + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_job_post_response": { + "type": "object", + "properties": { + "results": { + "$ref": "#\/components\/schemas\/v0.0.44_job_array_response_array", + "description": "Job update results (Job update results)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.44_job_array_response_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_job_array_response_msg_entry" + } + }, + "v0.0.44_job_array_response_msg_entry": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID for updated job" + }, + "step_id": { + "type": "string", + "description": "Step ID for updated job" + }, + "error": { + "type": "string", + "description": "Verbose update status or error" + }, + "error_code": { + "type": "integer", + "format": "int32", + "description": "Verbose update status or error" + }, + "why": { + "type": "string", + "description": "Update response message" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_kill_job_resp": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/v0.0.44_kill_jobs_resp_msg", + "description": "resultant status of signal request (List of jobs signal responses)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "status" + ] + }, + "v0.0.42_openapi_job_post_response": { + "type": "object", + "properties": { + "results": { + "$ref": "#\/components\/schemas\/v0.0.42_job_array_response_array", + "description": "Job update results" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.42_job_array_response_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_job_array_response_msg_entry" + } + }, + "v0.0.42_job_array_response_msg_entry": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID for updated job" + }, + "step_id": { + "type": "string", + "description": "Step ID for updated job" + }, + "error": { + "type": "string", + "description": "Verbose update status or error" + }, + "error_code": { + "type": "integer", + "format": "int32", + "description": "Verbose update status or error" + }, + "why": { + "type": "string", + "description": "Update response message" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_kill_job_resp": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/v0.0.42_kill_jobs_resp_msg", + "description": "resultant status of signal request" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "status" + ] + }, + "v0.0.43_openapi_job_post_response": { + "type": "object", + "properties": { + "results": { + "$ref": "#\/components\/schemas\/v0.0.43_job_array_response_array", + "description": "Job update results (Job update results)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.43_job_array_response_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_job_array_response_msg_entry" + } + }, + "v0.0.43_job_array_response_msg_entry": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID for updated job" + }, + "step_id": { + "type": "string", + "description": "Step ID for updated job" + }, + "error": { + "type": "string", + "description": "Verbose update status or error" + }, + "error_code": { + "type": "integer", + "format": "int32", + "description": "Verbose update status or error" + }, + "why": { + "type": "string", + "description": "Update response message" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_kill_job_resp": { + "type": "object", + "properties": { + "status": { + "$ref": "#\/components\/schemas\/v0.0.43_kill_jobs_resp_msg", + "description": "resultant status of signal request (List of jobs signal responses)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "status" + ] + }, + "v0.0.41_openapi_nodes_resp": { + "type": "object", + "properties": { + "nodes": { + "type": "array", + "description": "List of nodes", + "items": { + "type": "object", + "properties": { + "architecture": { + "type": "string", + "description": "Computer architecture" + }, + "burstbuffer_network_address": { + "type": "string", + "description": "Alternate network path to be used for sbcast network traffic" + }, + "boards": { + "type": "integer", + "format": "int32", + "description": "Number of Baseboards in nodes with a baseboard controller" + }, + "boot_time": { + "type": "object", + "description": "Time when the node booted (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cluster_name": { + "type": "string", + "description": "Cluster name (only set in federated environments)" + }, + "cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores in a single physical processor socket" + }, + "specialized_cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores reserved for system use" + }, + "cpu_binding": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "cpu_load": { + "type": "integer", + "format": "int32", + "description": "CPU load as reported by the OS" + }, + "free_mem": { + "type": "object", + "description": "Total memory in MB currently free as reported by the OS", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Total CPUs, including cores and threads" + }, + "effective_cpus": { + "type": "integer", + "format": "int32", + "description": "Number of effective CPUs (excluding specialized CPUs)" + }, + "specialized_cpus": { + "type": "string", + "description": "Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd" + }, + "energy": { + "type": "object", + "description": "Energy usage data", + "properties": { + "average_watts": { + "type": "integer", + "format": "int32", + "description": "Average power consumption, in watts" + }, + "base_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules" + }, + "consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules" + }, + "current_watts": { + "type": "object", + "description": "The instantaneous power consumption at the time of the last node energy accounting sample, in watts", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "previous_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "Previous value of consumed_energy" + }, + "last_collected": { + "type": "integer", + "format": "int64", + "description": "Time when energy data was last retrieved (UNIX timestamp)" + } + }, + "required": [ + ] + }, + "external_sensors": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "power": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "features": { + "type": "array", + "description": "Available features", + "items": { + "type": "string" + } + }, + "active_features": { + "type": "array", + "description": "Currently active features", + "items": { + "type": "string" + } + }, + "gpu_spec": { + "type": "string", + "description": "CPU cores reserved for jobs that also use a GPU" + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "gres_drained": { + "type": "string", + "description": "Drained generic resources" + }, + "gres_used": { + "type": "string", + "description": "Generic resources currently in use" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "last_busy": { + "type": "object", + "description": "Time when the node was last busy (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label" + }, + "specialized_memory": { + "type": "integer", + "format": "int64", + "description": "Combined memory limit, in MB, for Slurm compute node daemons" + }, + "name": { + "type": "string", + "description": "NodeName" + }, + "next_state_after_reboot": { + "type": "array", + "description": "The state the node will be assigned after rebooting", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM" + ], + "type": "string" + } + }, + "address": { + "type": "string", + "description": "NodeAddr, used to establish a communication path" + }, + "hostname": { + "type": "string", + "description": "NodeHostname" + }, + "state": { + "type": "array", + "description": "Node state(s) applicable to this node", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM" + ], + "type": "string" + } + }, + "operating_system": { + "type": "string", + "description": "Operating system reported by the node" + }, + "owner": { + "type": "string", + "description": "User allowed to run jobs on this node (unset if no restriction)" + }, + "partitions": { + "type": "array", + "description": "Partitions containing this node", + "items": { + "type": "string" + } + }, + "port": { + "type": "integer", + "format": "int32", + "description": "TCP port number of the slurmd" + }, + "real_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB on the node" + }, + "res_cores_per_gpu": { + "type": "integer", + "format": "int32", + "description": "Number of CPU cores per GPU restricted to GPU jobs" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "reason": { + "type": "string", + "description": "Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state" + }, + "reason_changed_at": { + "type": "object", + "description": "When the reason changed (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "reason_set_by_user": { + "type": "string", + "description": "User who set the reason" + }, + "resume_after": { + "type": "object", + "description": "Number of seconds after the node's state is updated to \"DOWN\" or \"DRAIN\" before scheduling a node state resume", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "reservation": { + "type": "string", + "description": "Name of reservation containing this node" + }, + "alloc_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB currently allocated for jobs" + }, + "alloc_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs currently allocated for jobs" + }, + "alloc_idle_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of idle CPUs" + }, + "tres_used": { + "type": "string", + "description": "Trackable resources currently allocated for jobs" + }, + "tres_weighted": { + "type": "number", + "format": "double", + "description": "Ignored. Was weighted number of billable trackable resources allocated", + "deprecated": true + }, + "slurmd_start_time": { + "type": "object", + "description": "Time when the slurmd started (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "sockets": { + "type": "integer", + "format": "int32", + "description": "Number of physical processor sockets\/chips on the node" + }, + "threads": { + "type": "integer", + "format": "int32", + "description": "Number of logical threads in a single physical core" + }, + "temporary_disk": { + "type": "integer", + "format": "int32", + "description": "Total size in MB of temporary disk storage in TmpFS" + }, + "weight": { + "type": "integer", + "format": "int32", + "description": "Weight of the node for scheduling purposes" + }, + "tres": { + "type": "string", + "description": "Configured trackable resources" + }, + "version": { + "type": "string", + "description": "Slurmd version" + } + }, + "required": [ + ] + } + }, + "last_update": { + "type": "object", + "description": "Time of last node change (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "nodes", + "last_update" + ] + }, + "v0.0.41_update_node_msg": { + "type": "object", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "cpu_bind": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "features": { + "type": "array", + "description": "Available features", + "items": { + "type": "string" + } + }, + "features_act": { + "type": "array", + "description": "Currently active features", + "items": { + "type": "string" + } + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "address": { + "type": "array", + "description": "NodeAddr, used to establish a communication path", + "items": { + "type": "string" + } + }, + "hostname": { + "type": "array", + "description": "NodeHostname", + "items": { + "type": "string" + } + }, + "name": { + "type": "array", + "description": "NodeName", + "items": { + "type": "string" + } + }, + "state": { + "type": "array", + "description": "New state to assign to the node", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM" + ], + "type": "string" + } + }, + "reason": { + "type": "string", + "description": "Reason for node being DOWN or DRAINING" + }, + "reason_uid": { + "type": "string", + "description": "User ID to associate with the reason (needed if user root is sending message)" + }, + "resume_after": { + "type": "object", + "description": "Number of seconds after which to automatically resume DOWN or DRAINED node", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "weight": { + "type": "object", + "description": "Weight of the node for scheduling purposes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_nodes_resp": { + "type": "object", + "properties": { + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.44_nodes", + "description": "List of nodes" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time of last node change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "nodes", + "last_update" + ] + }, + "v0.0.44_nodes": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_node" + } + }, + "v0.0.44_node": { + "type": "object", + "properties": { + "architecture": { + "type": "string", + "description": "Computer architecture" + }, + "burstbuffer_network_address": { + "type": "string", + "description": "Alternate network path to be used for sbcast network traffic" + }, + "boards": { + "type": "integer", + "format": "int32", + "description": "Number of Baseboards in nodes with a baseboard controller" + }, + "boot_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time when the node booted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "tls_cert_last_renewal": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time when TLS certificate was created (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "cert_flags": { + "type": "array", + "description": "Certmgr status flags", + "items": { + "enum": [ + "TOKEN_SET" + ], + "type": "string" + } + }, + "cluster_name": { + "type": "string", + "description": "Cluster name (only set in federated environments)" + }, + "cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores in a single physical processor socket" + }, + "specialized_cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores reserved for system use" + }, + "cpu_binding": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "cpu_load": { + "type": "integer", + "format": "int32", + "description": "CPU load as reported by the OS" + }, + "free_mem": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Total memory in MB currently free as reported by the OS (64 bit integer number with flags)" + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Total CPUs, including cores and threads" + }, + "effective_cpus": { + "type": "integer", + "format": "int32", + "description": "Number of effective CPUs (excluding specialized CPUs)" + }, + "specialized_cpus": { + "type": "string", + "description": "Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd" + }, + "energy": { + "$ref": "#\/components\/schemas\/v0.0.44_acct_gather_energy", + "description": "Energy usage data" + }, + "external_sensors": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "power": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "features": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Available features" + }, + "active_features": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Currently active features" + }, + "gpu_spec": { + "type": "string", + "description": "CPU cores reserved for jobs that also use a GPU" + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "gres_drained": { + "type": "string", + "description": "Drained generic resources" + }, + "gres_used": { + "type": "string", + "description": "Generic resources currently in use" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "last_busy": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time when the node was last busy (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label" + }, + "specialized_memory": { + "type": "integer", + "format": "int64", + "description": "Combined memory limit, in MB, for Slurm compute node daemons" + }, + "name": { + "type": "string", + "description": "NodeName" + }, + "next_state_after_reboot": { + "type": "array", + "description": "The state the node will be assigned after rebooting", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "EXTERNAL", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM", + "BLOCKED" + ], + "type": "string" + } + }, + "address": { + "type": "string", + "description": "NodeAddr, used to establish a communication path" + }, + "hostname": { + "type": "string", + "description": "NodeHostname" + }, + "state": { + "type": "array", + "description": "Node state(s) applicable to this node", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "EXTERNAL", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM", + "BLOCKED" + ], + "type": "string" + } + }, + "operating_system": { + "type": "string", + "description": "Operating system reported by the node" + }, + "owner": { + "type": "string", + "description": "User allowed to run jobs on this node (unset if no restriction)" + }, + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Partitions containing this node" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "TCP port number of the slurmd" + }, + "real_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB on the node" + }, + "res_cores_per_gpu": { + "type": "integer", + "format": "int32", + "description": "Number of CPU cores per GPU restricted to GPU jobs" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "reason": { + "type": "string", + "description": "Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state" + }, + "reason_changed_at": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "When the reason changed (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "reason_set_by_user": { + "type": "string", + "description": "User who set the reason" + }, + "resume_after": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Number of seconds after the node's state is updated to \"DOWN\" or \"DRAIN\" before scheduling a node state resume (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "reservation": { + "type": "string", + "description": "Name of reservation containing this node" + }, + "alloc_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB currently allocated for jobs" + }, + "alloc_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs currently allocated for jobs" + }, + "alloc_idle_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of idle CPUs" + }, + "tres_used": { + "type": "string", + "description": "Trackable resources currently allocated for jobs" + }, + "tres_weighted": { + "type": "number", + "format": "double", + "description": "Ignored. Was weighted number of billable trackable resources allocated", + "deprecated": true + }, + "slurmd_start_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time when the slurmd started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "sockets": { + "type": "integer", + "format": "int32", + "description": "Number of physical processor sockets\/chips on the node" + }, + "threads": { + "type": "integer", + "format": "int32", + "description": "Number of logical threads in a single physical core" + }, + "temporary_disk": { + "type": "integer", + "format": "int32", + "description": "Total size in MB of temporary disk storage in TmpFS" + }, + "weight": { + "type": "integer", + "format": "int32", + "description": "Weight of the node for scheduling purposes" + }, + "topology": { + "type": "string", + "description": "Topology" + }, + "tres": { + "type": "string", + "description": "Configured trackable resources" + }, + "version": { + "type": "string", + "description": "Slurmd version" + } + }, + "required": [ + ] + }, + "v0.0.44_acct_gather_energy": { + "type": "object", + "properties": { + "average_watts": { + "type": "integer", + "format": "int32", + "description": "Average power consumption, in watts" + }, + "base_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules" + }, + "consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules" + }, + "current_watts": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "The instantaneous power consumption at the time of the last node energy accounting sample, in watts (32 bit integer number with flags)" + }, + "previous_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "Previous value of consumed_energy" + }, + "last_collected": { + "type": "integer", + "format": "int64", + "description": "Time when energy data was last retrieved (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + } + }, + "required": [ + ] + }, + "v0.0.44_update_node_msg": { + "type": "object", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "cpu_bind": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "features": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Available features" + }, + "features_act": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "Currently active features" + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "address": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist_string", + "description": "NodeAddr, used to establish a communication path" + }, + "hostname": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist_string", + "description": "NodeHostname" + }, + "name": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist_string", + "description": "NodeName" + }, + "state": { + "type": "array", + "description": "New state to assign to the node", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "EXTERNAL", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM", + "BLOCKED" + ], + "type": "string" + } + }, + "reason": { + "type": "string", + "description": "Reason for node being DOWN or DRAINING" + }, + "reason_uid": { + "type": "string", + "description": "User ID to associate with the reason (needed if user root is sending message)" + }, + "resume_after": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Number of seconds after which to automatically resume DOWN or DRAINED node (32 bit integer number with flags)" + }, + "topology_str": { + "type": "string", + "description": "Topology" + }, + "weight": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Weight of the node for scheduling purposes (32 bit integer number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_nodes_resp": { + "type": "object", + "properties": { + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.42_nodes", + "description": "List of nodes" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time of last node change (UNIX timestamp)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "nodes", + "last_update" + ] + }, + "v0.0.42_nodes": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_node" + } + }, + "v0.0.42_node": { + "type": "object", + "properties": { + "architecture": { + "type": "string", + "description": "Computer architecture" + }, + "burstbuffer_network_address": { + "type": "string", + "description": "Alternate network path to be used for sbcast network traffic" + }, + "boards": { + "type": "integer", + "format": "int32", + "description": "Number of Baseboards in nodes with a baseboard controller" + }, + "boot_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time when the node booted (UNIX timestamp)" + }, + "cluster_name": { + "type": "string", + "description": "Cluster name (only set in federated environments)" + }, + "cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores in a single physical processor socket" + }, + "specialized_cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores reserved for system use" + }, + "cpu_binding": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "cpu_load": { + "type": "integer", + "format": "int32", + "description": "CPU load as reported by the OS" + }, + "free_mem": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Total memory in MB currently free as reported by the OS" + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Total CPUs, including cores and threads" + }, + "effective_cpus": { + "type": "integer", + "format": "int32", + "description": "Number of effective CPUs (excluding specialized CPUs)" + }, + "specialized_cpus": { + "type": "string", + "description": "Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd" + }, + "energy": { + "$ref": "#\/components\/schemas\/v0.0.42_acct_gather_energy", + "description": "Energy usage data" + }, + "external_sensors": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "power": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "features": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Available features" + }, + "active_features": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Currently active features" + }, + "gpu_spec": { + "type": "string", + "description": "CPU cores reserved for jobs that also use a GPU" + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "gres_drained": { + "type": "string", + "description": "Drained generic resources" + }, + "gres_used": { + "type": "string", + "description": "Generic resources currently in use" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "last_busy": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time when the node was last busy (UNIX timestamp)" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label" + }, + "specialized_memory": { + "type": "integer", + "format": "int64", + "description": "Combined memory limit, in MB, for Slurm compute node daemons" + }, + "name": { + "type": "string", + "description": "NodeName" + }, + "next_state_after_reboot": { + "$ref": "#\/components\/schemas\/v0.0.42_node_states", + "description": "The state the node will be assigned after rebooting" + }, + "address": { + "type": "string", + "description": "NodeAddr, used to establish a communication path" + }, + "hostname": { + "type": "string", + "description": "NodeHostname" + }, + "state": { + "$ref": "#\/components\/schemas\/v0.0.42_node_states", + "description": "Node state(s) applicable to this node" + }, + "operating_system": { + "type": "string", + "description": "Operating system reported by the node" + }, + "owner": { + "type": "string", + "description": "User allowed to run jobs on this node (unset if no restriction)" + }, + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Partitions containing this node" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "TCP port number of the slurmd" + }, + "real_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB on the node" + }, + "res_cores_per_gpu": { + "type": "integer", + "format": "int32", + "description": "Number of CPU cores per GPU restricted to GPU jobs" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "reason": { + "type": "string", + "description": "Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state" + }, + "reason_changed_at": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "When the reason changed (UNIX timestamp)" + }, + "reason_set_by_user": { + "type": "string", + "description": "User who set the reason" + }, + "resume_after": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Number of seconds after the node's state is updated to \"DOWN\" or \"DRAIN\" before scheduling a node state resume" + }, + "reservation": { + "type": "string", + "description": "Name of reservation containing this node" + }, + "alloc_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB currently allocated for jobs" + }, + "alloc_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs currently allocated for jobs" + }, + "alloc_idle_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of idle CPUs" + }, + "tres_used": { + "type": "string", + "description": "Trackable resources currently allocated for jobs" + }, + "tres_weighted": { + "type": "number", + "format": "double", + "description": "Ignored. Was weighted number of billable trackable resources allocated", + "deprecated": true + }, + "slurmd_start_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time when the slurmd started (UNIX timestamp)" + }, + "sockets": { + "type": "integer", + "format": "int32", + "description": "Number of physical processor sockets\/chips on the node" + }, + "threads": { + "type": "integer", + "format": "int32", + "description": "Number of logical threads in a single physical core" + }, + "temporary_disk": { + "type": "integer", + "format": "int32", + "description": "Total size in MB of temporary disk storage in TmpFS" + }, + "weight": { + "type": "integer", + "format": "int32", + "description": "Weight of the node for scheduling purposes" + }, + "tres": { + "type": "string", + "description": "Configured trackable resources" + }, + "version": { + "type": "string", + "description": "Slurmd version" + } + }, + "required": [ + ] + }, + "v0.0.42_acct_gather_energy": { + "type": "object", + "properties": { + "average_watts": { + "type": "integer", + "format": "int32", + "description": "Average power consumption, in watts" + }, + "base_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules" + }, + "consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules" + }, + "current_watts": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "The instantaneous power consumption at the time of the last node energy accounting sample, in watts" + }, + "previous_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "Previous value of consumed_energy" + }, + "last_collected": { + "type": "integer", + "format": "int64", + "description": "Time when energy data was last retrieved (UNIX timestamp)" + } + }, + "required": [ + ] + }, + "v0.0.42_node_states": { + "type": "array", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM" + ], + "type": "string" + } + }, + "v0.0.42_update_node_msg": { + "type": "object", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "cpu_bind": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "features": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Available features" + }, + "features_act": { + "$ref": "#\/components\/schemas\/v0.0.42_csv_string", + "description": "Currently active features" + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "address": { + "$ref": "#\/components\/schemas\/v0.0.42_hostlist_string", + "description": "NodeAddr, used to establish a communication path" + }, + "hostname": { + "$ref": "#\/components\/schemas\/v0.0.42_hostlist_string", + "description": "NodeHostname" + }, + "name": { + "$ref": "#\/components\/schemas\/v0.0.42_hostlist_string", + "description": "NodeName" + }, + "state": { + "$ref": "#\/components\/schemas\/v0.0.42_node_states", + "description": "New state to assign to the node" + }, + "reason": { + "type": "string", + "description": "Reason for node being DOWN or DRAINING" + }, + "reason_uid": { + "type": "string", + "description": "User ID to associate with the reason (needed if user root is sending message)" + }, + "resume_after": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Number of seconds after which to automatically resume DOWN or DRAINED node" + }, + "weight": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Weight of the node for scheduling purposes" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_nodes_resp": { + "type": "object", + "properties": { + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.43_nodes", + "description": "List of nodes" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time of last node change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "nodes", + "last_update" + ] + }, + "v0.0.43_nodes": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_node" + } + }, + "v0.0.43_node": { + "type": "object", + "properties": { + "architecture": { + "type": "string", + "description": "Computer architecture" + }, + "burstbuffer_network_address": { + "type": "string", + "description": "Alternate network path to be used for sbcast network traffic" + }, + "boards": { + "type": "integer", + "format": "int32", + "description": "Number of Baseboards in nodes with a baseboard controller" + }, + "boot_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time when the node booted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "tls_cert_last_renewal": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time when TLS certificate was created (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "cert_flags": { + "type": "array", + "description": "Certmgr status flags", + "items": { + "enum": [ + "TOKEN_SET" + ], + "type": "string" + } + }, + "cluster_name": { + "type": "string", + "description": "Cluster name (only set in federated environments)" + }, + "cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores in a single physical processor socket" + }, + "specialized_cores": { + "type": "integer", + "format": "int32", + "description": "Number of cores reserved for system use" + }, + "cpu_binding": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "cpu_load": { + "type": "integer", + "format": "int32", + "description": "CPU load as reported by the OS" + }, + "free_mem": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Total memory in MB currently free as reported by the OS (64 bit integer number with flags)" + }, + "cpus": { + "type": "integer", + "format": "int32", + "description": "Total CPUs, including cores and threads" + }, + "effective_cpus": { + "type": "integer", + "format": "int32", + "description": "Number of effective CPUs (excluding specialized CPUs)" + }, + "specialized_cpus": { + "type": "string", + "description": "Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd" + }, + "energy": { + "$ref": "#\/components\/schemas\/v0.0.43_acct_gather_energy", + "description": "Energy usage data" + }, + "external_sensors": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "power": { + "type": "object", + "properties": { + }, + "deprecated": true + }, + "features": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Available features" + }, + "active_features": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Currently active features" + }, + "gpu_spec": { + "type": "string", + "description": "CPU cores reserved for jobs that also use a GPU" + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "gres_drained": { + "type": "string", + "description": "Drained generic resources" + }, + "gres_used": { + "type": "string", + "description": "Generic resources currently in use" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "last_busy": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time when the node was last busy (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "mcs_label": { + "type": "string", + "description": "Multi-Category Security label" + }, + "specialized_memory": { + "type": "integer", + "format": "int64", + "description": "Combined memory limit, in MB, for Slurm compute node daemons" + }, + "name": { + "type": "string", + "description": "NodeName" + }, + "next_state_after_reboot": { + "type": "array", + "description": "The state the node will be assigned after rebooting", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM" + ], + "type": "string" + } + }, + "address": { + "type": "string", + "description": "NodeAddr, used to establish a communication path" + }, + "hostname": { + "type": "string", + "description": "NodeHostname" + }, + "state": { + "type": "array", + "description": "Node state(s) applicable to this node", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM" + ], + "type": "string" + } + }, + "operating_system": { + "type": "string", + "description": "Operating system reported by the node" + }, + "owner": { + "type": "string", + "description": "User allowed to run jobs on this node (unset if no restriction)" + }, + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Partitions containing this node" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "TCP port number of the slurmd" + }, + "real_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB on the node" + }, + "res_cores_per_gpu": { + "type": "integer", + "format": "int32", + "description": "Number of CPU cores per GPU restricted to GPU jobs" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "reason": { + "type": "string", + "description": "Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state" + }, + "reason_changed_at": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "When the reason changed (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "reason_set_by_user": { + "type": "string", + "description": "User who set the reason" + }, + "resume_after": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Number of seconds after the node's state is updated to \"DOWN\" or \"DRAIN\" before scheduling a node state resume (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "reservation": { + "type": "string", + "description": "Name of reservation containing this node" + }, + "alloc_memory": { + "type": "integer", + "format": "int64", + "description": "Total memory in MB currently allocated for jobs" + }, + "alloc_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of CPUs currently allocated for jobs" + }, + "alloc_idle_cpus": { + "type": "integer", + "format": "int32", + "description": "Total number of idle CPUs" + }, + "tres_used": { + "type": "string", + "description": "Trackable resources currently allocated for jobs" + }, + "tres_weighted": { + "type": "number", + "format": "double", + "description": "Ignored. Was weighted number of billable trackable resources allocated", + "deprecated": true + }, + "slurmd_start_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time when the slurmd started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "sockets": { + "type": "integer", + "format": "int32", + "description": "Number of physical processor sockets\/chips on the node" + }, + "threads": { + "type": "integer", + "format": "int32", + "description": "Number of logical threads in a single physical core" + }, + "temporary_disk": { + "type": "integer", + "format": "int32", + "description": "Total size in MB of temporary disk storage in TmpFS" + }, + "weight": { + "type": "integer", + "format": "int32", + "description": "Weight of the node for scheduling purposes" + }, + "topology": { + "type": "string", + "description": "Topology" + }, + "tres": { + "type": "string", + "description": "Configured trackable resources" + }, + "version": { + "type": "string", + "description": "Slurmd version" + } + }, + "required": [ + ] + }, + "v0.0.43_acct_gather_energy": { + "type": "object", + "properties": { + "average_watts": { + "type": "integer", + "format": "int32", + "description": "Average power consumption, in watts" + }, + "base_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules" + }, + "consumed_energy": { + "type": "integer", + "format": "int64", + "description": "The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules" + }, + "current_watts": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "The instantaneous power consumption at the time of the last node energy accounting sample, in watts (32 bit integer number with flags)" + }, + "previous_consumed_energy": { + "type": "integer", + "format": "int64", + "description": "Previous value of consumed_energy" + }, + "last_collected": { + "type": "integer", + "format": "int64", + "description": "Time when energy data was last retrieved (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + } + }, + "required": [ + ] + }, + "v0.0.43_update_node_msg": { + "type": "object", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "cpu_bind": { + "type": "integer", + "format": "int32", + "description": "Default method for binding tasks to allocated CPUs" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "features": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Available features" + }, + "features_act": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "Currently active features" + }, + "gres": { + "type": "string", + "description": "Generic resources" + }, + "address": { + "$ref": "#\/components\/schemas\/v0.0.43_hostlist_string", + "description": "NodeAddr, used to establish a communication path" + }, + "hostname": { + "$ref": "#\/components\/schemas\/v0.0.43_hostlist_string", + "description": "NodeHostname" + }, + "name": { + "$ref": "#\/components\/schemas\/v0.0.43_hostlist_string", + "description": "NodeName" + }, + "state": { + "type": "array", + "description": "New state to assign to the node", + "items": { + "enum": [ + "INVALID", + "UNKNOWN", + "DOWN", + "IDLE", + "ALLOCATED", + "ERROR", + "MIXED", + "FUTURE", + "RESERVED", + "UNDRAIN", + "CLOUD", + "RESUME", + "DRAIN", + "COMPLETING", + "NOT_RESPONDING", + "POWERED_DOWN", + "FAIL", + "POWERING_UP", + "MAINTENANCE", + "REBOOT_REQUESTED", + "REBOOT_CANCELED", + "POWERING_DOWN", + "DYNAMIC_FUTURE", + "REBOOT_ISSUED", + "PLANNED", + "INVALID_REG", + "POWER_DOWN", + "POWER_UP", + "POWER_DRAIN", + "DYNAMIC_NORM" + ], + "type": "string" + } + }, + "reason": { + "type": "string", + "description": "Reason for node being DOWN or DRAINING" + }, + "reason_uid": { + "type": "string", + "description": "User ID to associate with the reason (needed if user root is sending message)" + }, + "resume_after": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Number of seconds after which to automatically resume DOWN or DRAINED node (32 bit integer number with flags)" + }, + "topology_str": { + "type": "string", + "description": "Topology" + }, + "weight": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Weight of the node for scheduling purposes (32 bit integer number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_partition_resp": { + "type": "object", + "properties": { + "partitions": { + "type": "array", + "description": "List of partitions", + "items": { + "type": "object", + "properties": { + "nodes": { + "type": "object", + "properties": { + "allowed_allocation": { + "type": "string", + "description": "AllocNodes" + }, + "configured": { + "type": "string", + "description": "Nodes" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalNodes" + } + } + }, + "accounts": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowAccounts" + }, + "deny": { + "type": "string", + "description": "DenyAccounts" + } + } + }, + "groups": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowGroups" + } + } + }, + "qos": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowQOS" + }, + "deny": { + "type": "string", + "description": "DenyQOS" + }, + "assigned": { + "type": "string", + "description": "QOS" + } + } + }, + "alternate": { + "type": "string", + "description": "Alternate" + }, + "tres": { + "type": "object", + "properties": { + "billing_weights": { + "type": "string", + "description": "TRESBillingWeights" + }, + "configured": { + "type": "string", + "description": "TRES" + } + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "select_type": { + "type": "array", + "description": "Scheduler consumable resource selection type", + "items": { + "enum": [ + "CPU", + "SOCKET", + "CORE", + "BOARD", + "MEMORY", + "ONE_TASK_PER_CORE", + "PACK_NODES", + "CORE_DEFAULT_DIST_BLOCK", + "LLN", + "LINEAR" + ], + "type": "string" + } + }, + "cpus": { + "type": "object", + "properties": { + "task_binding": { + "type": "integer", + "format": "int32", + "description": "CpuBind" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalCPUs" + } + } + }, + "defaults": { + "type": "object", + "properties": { + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "DefMemPerCPU or DefMemPerNode" + }, + "partition_memory_per_cpu": { + "type": "object", + "description": "DefMemPerCPU", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "partition_memory_per_node": { + "type": "object", + "description": "DefMemPerNode", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "time": { + "type": "object", + "description": "DefaultTime in minutes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "job": { + "type": "string", + "description": "JobDefaults" + } + } + }, + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime" + }, + "maximums": { + "type": "object", + "properties": { + "cpus_per_node": { + "type": "object", + "description": "MaxCPUsPerNode", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "cpus_per_socket": { + "type": "object", + "description": "MaxCPUsPerSocket", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "MaxMemPerCPU or MaxMemPerNode" + }, + "partition_memory_per_cpu": { + "type": "object", + "description": "MaxMemPerCPU", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "partition_memory_per_node": { + "type": "object", + "description": "MaxMemPerNode", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "nodes": { + "type": "object", + "description": "MaxNodes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "shares": { + "type": "integer", + "format": "int32", + "description": "OverSubscribe" + }, + "oversubscribe": { + "type": "object", + "properties": { + "jobs": { + "type": "integer", + "format": "int32", + "description": "Maximum number of jobs allowed to oversubscribe resources" + }, + "flags": { + "type": "array", + "description": "Flags applicable to the OverSubscribe setting", + "items": { + "enum": [ + "force" + ], + "type": "string" + } + } + } + }, + "time": { + "type": "object", + "description": "MaxTime", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "over_time_limit": { + "type": "object", + "description": "OverTimeLimit", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "minimums": { + "type": "object", + "properties": { + "nodes": { + "type": "integer", + "format": "int32", + "description": "MinNodes" + } + } + }, + "name": { + "type": "string", + "description": "PartitionName" + }, + "node_sets": { + "type": "string", + "description": "NodeSets" + }, + "priority": { + "type": "object", + "properties": { + "job_factor": { + "type": "integer", + "format": "int32", + "description": "PriorityJobFactor" + }, + "tier": { + "type": "integer", + "format": "int32", + "description": "PriorityTier" + } + } + }, + "timeouts": { + "type": "object", + "properties": { + "resume": { + "type": "object", + "description": "ResumeTimeout (GLOBAL if both set and infinite are false)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "suspend": { + "type": "object", + "description": "SuspendTimeout (GLOBAL if both set and infinite are false)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "partition": { + "type": "object", + "properties": { + "state": { + "type": "array", + "description": "Current state(s)", + "items": { + "enum": [ + "INACTIVE", + "UNKNOWN", + "UP", + "DOWN", + "DRAIN" + ], + "type": "string" + } + } + } + }, + "suspend_time": { + "type": "object", + "description": "SuspendTime (GLOBAL if both set and infinite are false)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + ] + } + }, + "last_update": { + "type": "object", + "description": "Time of last partition change (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "partitions", + "last_update" + ] + }, + "v0.0.44_openapi_partition_resp": { + "type": "object", + "properties": { + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.44_partition_info_msg", + "description": "List of partitions" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time of last partition change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "partitions", + "last_update" + ] + }, + "v0.0.44_partition_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_partition_info" + } + }, + "v0.0.44_partition_info": { + "type": "object", + "properties": { + "nodes": { + "type": "object", + "properties": { + "allowed_allocation": { + "type": "string", + "description": "AllocNodes - Comma-separated list of nodes from which users can submit jobs in the partition" + }, + "configured": { + "type": "string", + "description": "Nodes - Comma-separated list of nodes which are associated with this partition" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalNodes - Number of nodes available in this partition" + } + } + }, + "accounts": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowAccounts - Comma-separated list of accounts which may execute jobs in the partition" + }, + "deny": { + "type": "string", + "description": "DenyAccounts - Comma-separated list of accounts which may not execute jobs in the partition" + } + } + }, + "groups": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowGroups - Comma-separated list of group names which may execute jobs in this partition" + } + } + }, + "qos": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowQOS - Comma-separated list of Qos which may execute jobs in the partition" + }, + "deny": { + "type": "string", + "description": "DenyQOS - Comma-separated list of Qos which may not execute jobs in the partition" + }, + "assigned": { + "type": "string", + "description": "QOS - QOS name containing limits that will apply to all jobs in this partition" + } + } + }, + "alternate": { + "type": "string", + "description": "Alternate - Partition name of alternate partition to be used if the state of this partition is DRAIN or INACTIVE" + }, + "tres": { + "type": "object", + "properties": { + "billing_weights": { + "type": "string", + "description": "TRESBillingWeights - Billing weights of each tracked TRES type that will be used in calculating the usage of a job" + }, + "configured": { + "type": "string", + "description": "TRES - Number of each applicable TRES type available in this partition" + } + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "select_type": { + "type": "array", + "description": "Scheduler consumable resource selection type", + "items": { + "enum": [ + "CPU", + "SOCKET", + "CORE", + "BOARD", + "MEMORY", + "ONE_TASK_PER_CORE", + "PACK_NODES", + "CORE_DEFAULT_DIST_BLOCK", + "LLN", + "LINEAR" + ], + "type": "string" + } + }, + "cpus": { + "type": "object", + "properties": { + "task_binding": { + "type": "integer", + "format": "int32", + "description": "CpuBind - Default method controlling how tasks are bound to allocated resources" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalCPUs - Number of CPUs available in this partition" + } + } + }, + "defaults": { + "type": "object", + "properties": { + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "Raw value for DefMemPerCPU or DefMemPerNode" + }, + "partition_memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "DefMemPerCPU - Default real memory size available per allocated CPU in megabytes (64 bit integer number with flags)" + }, + "partition_memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "DefMemPerNode - Default real memory size available per allocated node in megabytes (64 bit integer number with flags)" + }, + "time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "DefaultTime - Run time limit in minutes used for jobs that don't specify a value (32 bit integer number with flags)" + }, + "job": { + "type": "string", + "description": "JobDefaults - Comma-separated list of job default values (this field is only used to set new defaults)" + } + } + }, + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime - Grace time in seconds to be extended to a job which has been selected for preemption" + }, + "maximums": { + "type": "object", + "properties": { + "cpus_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxCPUsPerNode - Maximum number of CPUs on any node available to all jobs from this partition (32 bit integer number with flags)" + }, + "cpus_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxCPUsPerSocket - Maximum number of CPUs on any node available on the all jobs from this partition (32 bit integer number with flags)" + }, + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "Raw value for MaxMemPerCPU or MaxMemPerNode" + }, + "partition_memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "MaxMemPerCPU - Maximum real memory size available per allocated CPU in megabytes (64 bit integer number with flags)" + }, + "partition_memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "MaxMemPerNode - Maximum real memory size available per allocated node in a job allocation in megabytes (64 bit integer number with flags)" + }, + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxNodes - Maximum count of nodes which may be allocated to any single job (32 bit integer number with flags)" + }, + "shares": { + "type": "integer", + "format": "int32", + "description": "OverSubscribe - Controls the ability of the partition to execute more than one job at a time on each resource" + }, + "oversubscribe": { + "type": "object", + "properties": { + "jobs": { + "type": "integer", + "format": "int32", + "description": "Maximum number of jobs allowed to oversubscribe resources" + }, + "flags": { + "type": "array", + "description": "Flags applicable to the OverSubscribe setting", + "items": { + "enum": [ + "force" + ], + "type": "string" + } + } + } + }, + "time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxTime - Maximum run time limit for jobs (32 bit integer number with flags)" + }, + "over_time_limit": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "OverTimeLimit - Number of minutes by which a job can exceed its time limit before being canceled (16 bit integer number with flags)" + } + } + }, + "minimums": { + "type": "object", + "properties": { + "nodes": { + "type": "integer", + "format": "int32", + "description": "MinNodes - Minimum count of nodes which may be allocated to any single job" + } + } + }, + "name": { + "type": "string", + "description": "PartitionName - Name by which the partition may be referenced" + }, + "node_sets": { + "type": "string", + "description": "NodeSets - Comma-separated list of nodesets which are associated with this partition" + }, + "priority": { + "type": "object", + "properties": { + "job_factor": { + "type": "integer", + "format": "int32", + "description": "PriorityJobFactor - Partition factor used by priority\/multifactor plugin in calculating job priority" + }, + "tier": { + "type": "integer", + "format": "int32", + "description": "PriorityTier - Controls the order in which the scheduler evaluates jobs from different partitions" + } + } + }, + "timeouts": { + "type": "object", + "properties": { + "resume": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "ResumeTimeout - Resumed nodes which fail to respond in this time frame will be marked DOWN (GLOBAL if both set and infinite are false) (16 bit integer number with flags)" + }, + "suspend": { + "$ref": "#\/components\/schemas\/v0.0.44_uint16_no_val_struct", + "description": "SuspendTimeout - Maximum time permitted (in seconds) between when a node suspend request is issued and when the node is shutdown (GLOBAL if both set and infinite are false) (16 bit integer number with flags)" + } + } + }, + "topology": { + "type": "string", + "description": "Topology - Name of the topology, defined in topology.yaml, used by jobs in this partition" + }, + "partition": { + "type": "object", + "properties": { + "state": { + "type": "array", + "description": "Current state(s)", + "items": { + "enum": [ + "INACTIVE", + "UNKNOWN", + "UP", + "DOWN", + "DRAIN" + ], + "type": "string" + } + } + } + }, + "suspend_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "SuspendTime - Nodes which remain idle or down for this number of seconds will be placed into power save mode (GLOBAL if both set and infinite are false) (32 bit integer number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_partition_resp": { + "type": "object", + "properties": { + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.42_partition_info_msg", + "description": "List of partitions" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time of last partition change (UNIX timestamp)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "partitions", + "last_update" + ] + }, + "v0.0.42_partition_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_partition_info" + } + }, + "v0.0.42_partition_info": { + "type": "object", + "properties": { + "nodes": { + "type": "object", + "properties": { + "allowed_allocation": { + "type": "string", + "description": "AllocNodes" + }, + "configured": { + "type": "string", + "description": "Nodes" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalNodes" + } + } + }, + "accounts": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowAccounts" + }, + "deny": { + "type": "string", + "description": "DenyAccounts" + } + } + }, + "groups": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowGroups" + } + } + }, + "qos": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowQOS" + }, + "deny": { + "type": "string", + "description": "DenyQOS" + }, + "assigned": { + "type": "string", + "description": "QOS" + } + } + }, + "alternate": { + "type": "string", + "description": "Alternate" + }, + "tres": { + "type": "object", + "properties": { + "billing_weights": { + "type": "string", + "description": "TRESBillingWeights" + }, + "configured": { + "type": "string", + "description": "TRES" + } + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "select_type": { + "$ref": "#\/components\/schemas\/v0.0.42_cr_type", + "description": "Scheduler consumable resource selection type" + }, + "cpus": { + "type": "object", + "properties": { + "task_binding": { + "type": "integer", + "format": "int32", + "description": "CpuBind" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalCPUs" + } + } + }, + "defaults": { + "type": "object", + "properties": { + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "DefMemPerCPU or DefMemPerNode" + }, + "partition_memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "DefMemPerCPU" + }, + "partition_memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "DefMemPerNode" + }, + "time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "DefaultTime in minutes" + }, + "job": { + "type": "string", + "description": "JobDefaults" + } + } + }, + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime" + }, + "maximums": { + "type": "object", + "properties": { + "cpus_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxCPUsPerNode" + }, + "cpus_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxCPUsPerSocket" + }, + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "MaxMemPerCPU or MaxMemPerNode" + }, + "partition_memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "MaxMemPerCPU" + }, + "partition_memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "MaxMemPerNode" + }, + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxNodes" + }, + "shares": { + "type": "integer", + "format": "int32", + "description": "OverSubscribe" + }, + "oversubscribe": { + "type": "object", + "properties": { + "jobs": { + "type": "integer", + "format": "int32", + "description": "Maximum number of jobs allowed to oversubscribe resources" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_oversubscribe_flags", + "description": "Flags applicable to the OverSubscribe setting" + } + } + }, + "time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxTime" + }, + "over_time_limit": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "OverTimeLimit" + } + } + }, + "minimums": { + "type": "object", + "properties": { + "nodes": { + "type": "integer", + "format": "int32", + "description": "MinNodes" + } + } + }, + "name": { + "type": "string", + "description": "PartitionName" + }, + "node_sets": { + "type": "string", + "description": "NodeSets" + }, + "priority": { + "type": "object", + "properties": { + "job_factor": { + "type": "integer", + "format": "int32", + "description": "PriorityJobFactor" + }, + "tier": { + "type": "integer", + "format": "int32", + "description": "PriorityTier" + } + } + }, + "timeouts": { + "type": "object", + "properties": { + "resume": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "ResumeTimeout (GLOBAL if both set and infinite are false)" + }, + "suspend": { + "$ref": "#\/components\/schemas\/v0.0.42_uint16_no_val_struct", + "description": "SuspendTimeout (GLOBAL if both set and infinite are false)" + } + } + }, + "partition": { + "type": "object", + "properties": { + "state": { + "$ref": "#\/components\/schemas\/v0.0.42_partition_states", + "description": "Current state(s)" + } + } + }, + "suspend_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "SuspendTime (GLOBAL if both set and infinite are false)" + } + }, + "required": [ + ] + }, + "v0.0.42_oversubscribe_flags": { + "type": "array", + "items": { + "enum": [ + "force" + ], + "type": "string" + } + }, + "v0.0.42_partition_states": { + "type": "array", + "items": { + "enum": [ + "INACTIVE", + "UNKNOWN", + "UP", + "DOWN", + "DRAIN" + ], + "type": "string" + } + }, + "v0.0.43_openapi_partition_resp": { + "type": "object", + "properties": { + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.43_partition_info_msg", + "description": "List of partitions" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time of last partition change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "partitions", + "last_update" + ] + }, + "v0.0.43_partition_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_partition_info" + } + }, + "v0.0.43_partition_info": { + "type": "object", + "properties": { + "nodes": { + "type": "object", + "properties": { + "allowed_allocation": { + "type": "string", + "description": "AllocNodes - Comma-separated list of nodes from which users can submit jobs in the partition" + }, + "configured": { + "type": "string", + "description": "Nodes - Comma-separated list of nodes which are associated with this partition" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalNodes - Number of nodes available in this partition" + } + } + }, + "accounts": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowAccounts - Comma-separated list of accounts which may execute jobs in the partition" + }, + "deny": { + "type": "string", + "description": "DenyAccounts - Comma-separated list of accounts which may not execute jobs in the partition" + } + } + }, + "groups": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowGroups - Comma-separated list of group names which may execute jobs in this partition" + } + } + }, + "qos": { + "type": "object", + "properties": { + "allowed": { + "type": "string", + "description": "AllowQOS - Comma-separated list of Qos which may execute jobs in the partition" + }, + "deny": { + "type": "string", + "description": "DenyQOS - Comma-separated list of Qos which may not execute jobs in the partition" + }, + "assigned": { + "type": "string", + "description": "QOS - QOS name containing limits that will apply to all jobs in this partition" + } + } + }, + "alternate": { + "type": "string", + "description": "Alternate - Partition name of alternate partition to be used if the state of this partition is DRAIN or INACTIVE" + }, + "tres": { + "type": "object", + "properties": { + "billing_weights": { + "type": "string", + "description": "TRESBillingWeights - Billing weights of each tracked TRES type that will be used in calculating the usage of a job" + }, + "configured": { + "type": "string", + "description": "TRES - Number of each applicable TRES type available in this partition" + } + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "select_type": { + "type": "array", + "description": "Scheduler consumable resource selection type", + "items": { + "enum": [ + "CPU", + "SOCKET", + "CORE", + "BOARD", + "MEMORY", + "ONE_TASK_PER_CORE", + "PACK_NODES", + "CORE_DEFAULT_DIST_BLOCK", + "LLN", + "LINEAR" + ], + "type": "string" + } + }, + "cpus": { + "type": "object", + "properties": { + "task_binding": { + "type": "integer", + "format": "int32", + "description": "CpuBind - Default method controlling how tasks are bound to allocated resources" + }, + "total": { + "type": "integer", + "format": "int32", + "description": "TotalCPUs - Number of CPUs available in this partition" + } + } + }, + "defaults": { + "type": "object", + "properties": { + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "Raw value for DefMemPerCPU or DefMemPerNode" + }, + "partition_memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "DefMemPerCPU - Default real memory size available per allocated CPU in megabytes (64 bit integer number with flags)" + }, + "partition_memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "DefMemPerNode - Default real memory size available per allocated node in megabytes (64 bit integer number with flags)" + }, + "time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "DefaultTime - Run time limit in minutes used for jobs that don't specify a value (32 bit integer number with flags)" + }, + "job": { + "type": "string", + "description": "JobDefaults - Comma-separated list of job default values (this field is only used to set new defaults)" + } + } + }, + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime - Grace time in seconds to be extended to a job which has been selected for preemption" + }, + "maximums": { + "type": "object", + "properties": { + "cpus_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxCPUsPerNode - Maximum number of CPUs on any node available to all jobs from this partition (32 bit integer number with flags)" + }, + "cpus_per_socket": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxCPUsPerSocket - Maximum number of CPUs on any node available on the all jobs from this partition (32 bit integer number with flags)" + }, + "memory_per_cpu": { + "type": "integer", + "format": "int64", + "description": "Raw value for MaxMemPerCPU or MaxMemPerNode" + }, + "partition_memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "MaxMemPerCPU - Maximum real memory size available per allocated CPU in megabytes (64 bit integer number with flags)" + }, + "partition_memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "MaxMemPerNode - Maximum real memory size available per allocated node in a job allocation in megabytes (64 bit integer number with flags)" + }, + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxNodes - Maximum count of nodes which may be allocated to any single job (32 bit integer number with flags)" + }, + "shares": { + "type": "integer", + "format": "int32", + "description": "OverSubscribe - Controls the ability of the partition to execute more than one job at a time on each resource" + }, + "oversubscribe": { + "type": "object", + "properties": { + "jobs": { + "type": "integer", + "format": "int32", + "description": "Maximum number of jobs allowed to oversubscribe resources" + }, + "flags": { + "type": "array", + "description": "Flags applicable to the OverSubscribe setting", + "items": { + "enum": [ + "force" + ], + "type": "string" + } + } + } + }, + "time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxTime - Maximum run time limit for jobs (32 bit integer number with flags)" + }, + "over_time_limit": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "OverTimeLimit - Number of minutes by which a job can exceed its time limit before being canceled (16 bit integer number with flags)" + } + } + }, + "minimums": { + "type": "object", + "properties": { + "nodes": { + "type": "integer", + "format": "int32", + "description": "MinNodes - Minimum count of nodes which may be allocated to any single job" + } + } + }, + "name": { + "type": "string", + "description": "PartitionName - Name by which the partition may be referenced" + }, + "node_sets": { + "type": "string", + "description": "NodeSets - Comma-separated list of nodesets which are associated with this partition" + }, + "priority": { + "type": "object", + "properties": { + "job_factor": { + "type": "integer", + "format": "int32", + "description": "PriorityJobFactor - Partition factor used by priority\/multifactor plugin in calculating job priority" + }, + "tier": { + "type": "integer", + "format": "int32", + "description": "PriorityTier - Controls the order in which the scheduler evaluates jobs from different partitions" + } + } + }, + "timeouts": { + "type": "object", + "properties": { + "resume": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "ResumeTimeout - Resumed nodes which fail to respond in this time frame will be marked DOWN (GLOBAL if both set and infinite are false) (16 bit integer number with flags)" + }, + "suspend": { + "$ref": "#\/components\/schemas\/v0.0.43_uint16_no_val_struct", + "description": "SuspendTimeout - Maximum time permitted (in seconds) between when a node suspend request is issued and when the node is shutdown (GLOBAL if both set and infinite are false) (16 bit integer number with flags)" + } + } + }, + "topology": { + "type": "string", + "description": "Topology - Name of the topology, defined in topology.yaml, used by jobs in this partition" + }, + "partition": { + "type": "object", + "properties": { + "state": { + "type": "array", + "description": "Current state(s)", + "items": { + "enum": [ + "INACTIVE", + "UNKNOWN", + "UP", + "DOWN", + "DRAIN" + ], + "type": "string" + } + } + } + }, + "suspend_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "SuspendTime - Nodes which remain idle or down for this number of seconds will be placed into power save mode (GLOBAL if both set and infinite are false) (32 bit integer number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_reservation_resp": { + "type": "object", + "properties": { + "reservations": { + "type": "array", + "description": "List of reservations", + "items": { + "type": "object", + "properties": { + "accounts": { + "type": "string", + "description": "Comma separated list of permitted accounts" + }, + "burst_buffer": { + "type": "string", + "description": "BurstBuffer" + }, + "core_count": { + "type": "integer", + "format": "int32", + "description": "CoreCnt" + }, + "core_specializations": { + "type": "array", + "description": "Reserved cores specification", + "items": { + "type": "object", + "properties": { + "node": { + "type": "string", + "description": "Name of reserved node" + }, + "core": { + "type": "string", + "description": "IDs of reserved cores" + } + }, + "required": [ + ] + } + }, + "end_time": { + "type": "object", + "description": "EndTime (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "features": { + "type": "string", + "description": "Features" + }, + "flags": { + "type": "array", + "description": "Flags associated with the reservation", + "items": { + "enum": [ + "MAINT", + "NO_MAINT", + "DAILY", + "NO_DAILY", + "WEEKLY", + "NO_WEEKLY", + "IGNORE_JOBS", + "NO_IGNORE_JOBS", + "ANY_NODES", + "STATIC", + "NO_STATIC", + "PART_NODES", + "NO_PART_NODES", + "OVERLAP", + "SPEC_NODES", + "TIME_FLOAT", + "REPLACE", + "ALL_NODES", + "PURGE_COMP", + "WEEKDAY", + "NO_WEEKDAY", + "WEEKEND", + "NO_WEEKEND", + "FLEX", + "NO_FLEX", + "DURATION_PLUS", + "DURATION_MINUS", + "NO_HOLD_JOBS_AFTER_END", + "NO_PURGE_COMP", + "MAGNETIC", + "SKIP", + "HOURLY", + "NO_HOURLY", + "USER_DELETE", + "NO_USER_DELETE", + "REOCCURRING" + ], + "type": "string" + } + }, + "groups": { + "type": "string", + "description": "Groups" + }, + "licenses": { + "type": "string", + "description": "Licenses" + }, + "max_start_delay": { + "type": "integer", + "format": "int32", + "description": "MaxStartDelay in seconds" + }, + "name": { + "type": "string", + "description": "ReservationName" + }, + "node_count": { + "type": "integer", + "format": "int32", + "description": "NodeCnt" + }, + "node_list": { + "type": "string", + "description": "Nodes" + }, + "partition": { + "type": "string", + "description": "PartitionName" + }, + "purge_completed": { + "type": "object", + "properties": { + "time": { + "type": "object", + "description": "If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "start_time": { + "type": "object", + "description": "StartTime (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "watts": { + "type": "object", + "description": "32 bit integer number with flags", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ], + "deprecated": true + }, + "tres": { + "type": "string", + "description": "Comma separated list of required TRES" + }, + "users": { + "type": "string", + "description": "Comma separated list of permitted users" + } + }, + "required": [ + ] + } + }, + "last_update": { + "type": "object", + "description": "Time of last reservation change (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "reservations", + "last_update" + ] + }, + "v0.0.44_openapi_reservation_resp": { + "type": "object", + "properties": { + "reservations": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_info_msg", + "description": "List of reservations" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time of last reservation change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "reservations", + "last_update" + ] + }, + "v0.0.44_reservation_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_info" + } + }, + "v0.0.44_reservation_info": { + "type": "object", + "properties": { + "accounts": { + "type": "string", + "description": "Comma-separated list of permitted accounts" + }, + "burst_buffer": { + "type": "string", + "description": "BurstBuffer - Burst buffer resources reserved" + }, + "core_count": { + "type": "integer", + "format": "int32", + "description": "CoreCnt - Number of cores reserved" + }, + "core_specializations": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_info_core_spec", + "description": "Reserved cores specification" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "EndTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "features": { + "type": "string", + "description": "Features - Expression describing the reservation's required node features" + }, + "flags": { + "type": "array", + "description": "Flags associated with this reservation", + "items": { + "enum": [ + "MAINT", + "NO_MAINT", + "DAILY", + "NO_DAILY", + "WEEKLY", + "NO_WEEKLY", + "IGNORE_JOBS", + "NO_IGNORE_JOBS", + "ANY_NODES", + "NO_ANY_NODES", + "STATIC", + "NO_STATIC", + "PART_NODES", + "NO_PART_NODES", + "OVERLAP", + "SPEC_NODES", + "TIME_FLOAT", + "REPLACE", + "ALL_NODES", + "PURGE_COMP", + "WEEKDAY", + "NO_WEEKDAY", + "WEEKEND", + "NO_WEEKEND", + "FLEX", + "NO_FLEX", + "DURATION_PLUS", + "DURATION_MINUS", + "NO_HOLD_JOBS_AFTER_END", + "REPLACE_DOWN", + "NO_PURGE_COMP", + "MAGNETIC", + "NO_MAGNETIC", + "SKIP", + "HOURLY", + "NO_HOURLY", + "USER_DELETE", + "FORCE_START", + "NO_USER_DELETE", + "REOCCURRING", + "TRES_PER_NODE" + ], + "type": "string" + } + }, + "groups": { + "type": "string", + "description": "Groups - Comma-separated list of permitted groups" + }, + "licenses": { + "type": "string", + "description": "Licenses - Comma-separated list of licenses reserved" + }, + "max_start_delay": { + "type": "integer", + "format": "int32", + "description": "MaxStartDelay - Maximum time an eligible job not requesting this reservation can delay a job requesting it in seconds" + }, + "name": { + "type": "string", + "description": "ReservationName - Name of the reservation" + }, + "node_count": { + "type": "integer", + "format": "int32", + "description": "NodeCnt - Number of nodes reserved" + }, + "node_list": { + "type": "string", + "description": "Nodes - Comma-separated list of node names and\/or node ranges reserved" + }, + "partition": { + "type": "string", + "description": "PartitionName - Partition used to reserve nodes from" + }, + "purge_completed": { + "type": "object", + "properties": { + "time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked (32 bit integer number with flags)" + } + } + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "StartTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "watts": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "32 bit integer number with flags", + "deprecated": true + }, + "tres": { + "type": "string", + "description": "Comma-separated list of required TRES" + }, + "users": { + "type": "string", + "description": "Comma-separated list of permitted users" + } + }, + "required": [ + ] + }, + "v0.0.44_reservation_info_core_spec": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_core_spec" + } + }, + "v0.0.44_reservation_core_spec": { + "type": "object", + "properties": { + "node": { + "type": "string", + "description": "Name of reserved node" + }, + "core": { + "type": "string", + "description": "IDs of reserved cores" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_reservation_mod_resp": { + "type": "object", + "properties": { + "reservations": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_desc_msg_list", + "description": "Reservation descriptions" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "reservations" + ] + }, + "v0.0.44_reservation_desc_msg_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_desc_msg" + } + }, + "v0.0.44_reservation_desc_msg": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "List of permitted accounts" + }, + "burst_buffer": { + "type": "string", + "description": "BurstBuffer" + }, + "comment": { + "type": "string", + "description": "Arbitrary string" + }, + "core_count": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Number of cores to reserve (32 bit integer number with flags)" + }, + "duration": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "The length of a reservation in minutes (32 bit integer number with flags)" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "EndTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "features": { + "type": "string", + "description": "Requested node features. Multiple values may be \"&\" separated if all features are required (AND operation) or separated by \"|\" if any of the specified features are required (OR operation). Parenthesis are also supported for features to be ANDed together with counts of nodes having the specified features." + }, + "flags": { + "type": "array", + "description": "Flags associated with this reservation. Note, to remove flags use \"NO_\" prefixed flag excluding NO_HOLD_JOBS_AFTER_END", + "items": { + "enum": [ + "MAINT", + "NO_MAINT", + "DAILY", + "NO_DAILY", + "WEEKLY", + "NO_WEEKLY", + "IGNORE_JOBS", + "NO_IGNORE_JOBS", + "ANY_NODES", + "NO_ANY_NODES", + "STATIC", + "NO_STATIC", + "PART_NODES", + "NO_PART_NODES", + "OVERLAP", + "SPEC_NODES", + "TIME_FLOAT", + "REPLACE", + "ALL_NODES", + "PURGE_COMP", + "WEEKDAY", + "NO_WEEKDAY", + "WEEKEND", + "NO_WEEKEND", + "FLEX", + "NO_FLEX", + "DURATION_PLUS", + "DURATION_MINUS", + "NO_HOLD_JOBS_AFTER_END", + "REPLACE_DOWN", + "NO_PURGE_COMP", + "MAGNETIC", + "NO_MAGNETIC", + "SKIP", + "HOURLY", + "NO_HOURLY", + "USER_DELETE", + "FORCE_START", + "NO_USER_DELETE", + "REOCCURRING", + "TRES_PER_NODE" + ], + "type": "string" + } + }, + "groups": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "List of groups permitted to use the reservation. This is mutually exclusive with users." + }, + "licenses": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "List of license names" + }, + "max_start_delay": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxStartDelay in seconds (32 bit integer number with flags)" + }, + "name": { + "type": "string", + "description": "ReservationName" + }, + "node_count": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "NodeCnt (32 bit integer number with flags)" + }, + "node_list": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist_string", + "description": "The nodes to be reserved. Multiple node names may be specified using simple node range expressions." + }, + "partition": { + "type": "string", + "description": "Partition used to reserve nodes from. This will attempt to allocate all nodes in the specified partition unless you request fewer resources than are available with core_cnt, node_cnt or tres." + }, + "purge_completed": { + "type": "object", + "properties": { + "time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked (32 bit integer number with flags)" + } + } + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "StartTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "List of trackable resources" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.44_csv_string", + "description": "List of permitted users" + } + }, + "required": [ + ] + }, + "v0.0.44_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_tres" + } + }, + "v0.0.44_tres": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in the database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + }, + "v0.0.44_reservation_mod_req": { + "type": "object", + "properties": { + "reservations": { + "$ref": "#\/components\/schemas\/v0.0.44_reservation_desc_msg_list", + "description": "Array of reservation descriptions" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_reservation_resp": { + "type": "object", + "properties": { + "reservations": { + "$ref": "#\/components\/schemas\/v0.0.42_reservation_info_msg", + "description": "List of reservations" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time of last reservation change (UNIX timestamp)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "reservations", + "last_update" + ] + }, + "v0.0.42_reservation_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_reservation_info" + } + }, + "v0.0.42_reservation_info": { + "type": "object", + "properties": { + "accounts": { + "type": "string", + "description": "Comma separated list of permitted accounts" + }, + "burst_buffer": { + "type": "string", + "description": "BurstBuffer" + }, + "core_count": { + "type": "integer", + "format": "int32", + "description": "CoreCnt" + }, + "core_specializations": { + "$ref": "#\/components\/schemas\/v0.0.42_reservation_info_core_spec", + "description": "Reserved cores specification" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "EndTime (UNIX timestamp)" + }, + "features": { + "type": "string", + "description": "Features" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_reservation_flags", + "description": "Flags associated with this reservation" + }, + "groups": { + "type": "string", + "description": "Groups" + }, + "licenses": { + "type": "string", + "description": "Licenses" + }, + "max_start_delay": { + "type": "integer", + "format": "int32", + "description": "MaxStartDelay in seconds" + }, + "name": { + "type": "string", + "description": "ReservationName" + }, + "node_count": { + "type": "integer", + "format": "int32", + "description": "NodeCnt" + }, + "node_list": { + "type": "string", + "description": "Nodes" + }, + "partition": { + "type": "string", + "description": "PartitionName" + }, + "purge_completed": { + "type": "object", + "properties": { + "time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked" + } + } + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "StartTime (UNIX timestamp)" + }, + "watts": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "32 bit integer number with flags", + "deprecated": true + }, + "tres": { + "type": "string", + "description": "Comma separated list of required TRES" + }, + "users": { + "type": "string", + "description": "Comma separated list of permitted users" + } + }, + "required": [ + ] + }, + "v0.0.42_reservation_info_core_spec": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_reservation_core_spec" + } + }, + "v0.0.42_reservation_core_spec": { + "type": "object", + "properties": { + "node": { + "type": "string", + "description": "Name of reserved node" + }, + "core": { + "type": "string", + "description": "IDs of reserved cores" + } + }, + "required": [ + ] + }, + "v0.0.42_reservation_flags": { + "type": "array", + "items": { + "enum": [ + "MAINT", + "NO_MAINT", + "DAILY", + "NO_DAILY", + "WEEKLY", + "NO_WEEKLY", + "IGNORE_JOBS", + "NO_IGNORE_JOBS", + "ANY_NODES", + "STATIC", + "NO_STATIC", + "PART_NODES", + "NO_PART_NODES", + "OVERLAP", + "SPEC_NODES", + "TIME_FLOAT", + "REPLACE", + "ALL_NODES", + "PURGE_COMP", + "WEEKDAY", + "NO_WEEKDAY", + "WEEKEND", + "NO_WEEKEND", + "FLEX", + "NO_FLEX", + "DURATION_PLUS", + "DURATION_MINUS", + "NO_HOLD_JOBS_AFTER_END", + "NO_PURGE_COMP", + "MAGNETIC", + "SKIP", + "HOURLY", + "NO_HOURLY", + "USER_DELETE", + "NO_USER_DELETE", + "REOCCURRING" + ], + "type": "string" + } + }, + "v0.0.43_openapi_reservation_resp": { + "type": "object", + "properties": { + "reservations": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_info_msg", + "description": "List of reservations" + }, + "last_update": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time of last reservation change (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "reservations", + "last_update" + ] + }, + "v0.0.43_reservation_info_msg": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_info" + } + }, + "v0.0.43_reservation_info": { + "type": "object", + "properties": { + "accounts": { + "type": "string", + "description": "Comma-separated list of permitted accounts" + }, + "burst_buffer": { + "type": "string", + "description": "BurstBuffer - Burst buffer resources reserved" + }, + "core_count": { + "type": "integer", + "format": "int32", + "description": "CoreCnt - Number of cores reserved" + }, + "core_specializations": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_info_core_spec", + "description": "Reserved cores specification" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "EndTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "features": { + "type": "string", + "description": "Features - Expression describing the reservation's required node features" + }, + "flags": { + "type": "array", + "description": "Flags associated with this reservation", + "items": { + "enum": [ + "MAINT", + "NO_MAINT", + "DAILY", + "NO_DAILY", + "WEEKLY", + "NO_WEEKLY", + "IGNORE_JOBS", + "NO_IGNORE_JOBS", + "ANY_NODES", + "STATIC", + "NO_STATIC", + "PART_NODES", + "NO_PART_NODES", + "OVERLAP", + "SPEC_NODES", + "TIME_FLOAT", + "REPLACE", + "ALL_NODES", + "PURGE_COMP", + "WEEKDAY", + "NO_WEEKDAY", + "WEEKEND", + "NO_WEEKEND", + "FLEX", + "NO_FLEX", + "DURATION_PLUS", + "DURATION_MINUS", + "NO_HOLD_JOBS_AFTER_END", + "NO_PURGE_COMP", + "MAGNETIC", + "SKIP", + "HOURLY", + "NO_HOURLY", + "USER_DELETE", + "NO_USER_DELETE", + "REOCCURRING" + ], + "type": "string" + } + }, + "groups": { + "type": "string", + "description": "Groups - Comma-separated list of permitted groups" + }, + "licenses": { + "type": "string", + "description": "Licenses - Comma-separated list of licenses reserved" + }, + "max_start_delay": { + "type": "integer", + "format": "int32", + "description": "MaxStartDelay - Maximum time an eligible job not requesting this reservation can delay a job requesting it in seconds" + }, + "name": { + "type": "string", + "description": "ReservationName - Name of the reservation" + }, + "node_count": { + "type": "integer", + "format": "int32", + "description": "NodeCnt - Number of nodes reserved" + }, + "node_list": { + "type": "string", + "description": "Nodes - Comma-separated list of node names and\/or node ranges reserved" + }, + "partition": { + "type": "string", + "description": "PartitionName - Partition used to reserve nodes from" + }, + "purge_completed": { + "type": "object", + "properties": { + "time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked (32 bit integer number with flags)" + } + } + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "StartTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "watts": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "32 bit integer number with flags", + "deprecated": true + }, + "tres": { + "type": "string", + "description": "Comma-separated list of required TRES" + }, + "users": { + "type": "string", + "description": "Comma-separated list of permitted users" + } + }, + "required": [ + ] + }, + "v0.0.43_reservation_info_core_spec": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_core_spec" + } + }, + "v0.0.43_reservation_core_spec": { + "type": "object", + "properties": { + "node": { + "type": "string", + "description": "Name of reserved node" + }, + "core": { + "type": "string", + "description": "IDs of reserved cores" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_reservation_mod_resp": { + "type": "object", + "properties": { + "reservations": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_desc_msg_list", + "description": "Reservation descriptions" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "reservations" + ] + }, + "v0.0.43_reservation_desc_msg_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_desc_msg" + } + }, + "v0.0.43_reservation_desc_msg": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "List of permitted accounts" + }, + "burst_buffer": { + "type": "string", + "description": "BurstBuffer" + }, + "comment": { + "type": "string", + "description": "Arbitrary string" + }, + "core_count": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Number of cores to reserve (32 bit integer number with flags)" + }, + "duration": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "The length of a reservation in minutes (32 bit integer number with flags)" + }, + "end_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "EndTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "features": { + "type": "string", + "description": "Requested node features. Multiple values may be \"&\" separated if all features are required (AND operation) or separated by \"|\" if any of the specified features are required (OR operation). Parenthesis are also supported for features to be ANDed together with counts of nodes having the specified features." + }, + "flags": { + "type": "array", + "description": "Flags associated with this reservation. Note, to remove flags use \"NO_\" prefixed flag excluding NO_HOLD_JOBS_AFTER_END", + "items": { + "enum": [ + "MAINT", + "NO_MAINT", + "DAILY", + "NO_DAILY", + "WEEKLY", + "NO_WEEKLY", + "IGNORE_JOBS", + "NO_IGNORE_JOBS", + "ANY_NODES", + "STATIC", + "NO_STATIC", + "PART_NODES", + "NO_PART_NODES", + "OVERLAP", + "SPEC_NODES", + "TIME_FLOAT", + "REPLACE", + "ALL_NODES", + "PURGE_COMP", + "WEEKDAY", + "NO_WEEKDAY", + "WEEKEND", + "NO_WEEKEND", + "FLEX", + "NO_FLEX", + "DURATION_PLUS", + "DURATION_MINUS", + "NO_HOLD_JOBS_AFTER_END", + "NO_PURGE_COMP", + "MAGNETIC", + "SKIP", + "HOURLY", + "NO_HOURLY", + "USER_DELETE", + "NO_USER_DELETE", + "REOCCURRING" + ], + "type": "string" + } + }, + "groups": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "List of groups permitted to use the reservation. This is mutually exclusive with users." + }, + "licenses": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "List of license names" + }, + "max_start_delay": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxStartDelay in seconds (32 bit integer number with flags)" + }, + "name": { + "type": "string", + "description": "ReservationName" + }, + "node_count": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "NodeCnt (32 bit integer number with flags)" + }, + "node_list": { + "$ref": "#\/components\/schemas\/v0.0.43_hostlist_string", + "description": "The nodes to be reserved. Multiple node names may be specified using simple node range expressions." + }, + "partition": { + "type": "string", + "description": "Partition used to reserve nodes from. This will attempt to allocate all nodes in the specified partition unless you request fewer resources than are available with core_cnt, node_cnt or tres." + }, + "purge_completed": { + "type": "object", + "properties": { + "time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked (32 bit integer number with flags)" + } + } + }, + "start_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "StartTime (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "List of trackable resources" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.43_csv_string", + "description": "List of permitted users" + } + }, + "required": [ + ] + }, + "v0.0.43_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_tres" + } + }, + "v0.0.43_tres": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in the database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + }, + "v0.0.43_reservation_mod_req": { + "type": "object", + "properties": { + "reservations": { + "$ref": "#\/components\/schemas\/v0.0.43_reservation_desc_msg_list", + "description": "Array of reservation descriptions" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_create_node_req": { + "type": "object", + "properties": { + "node_conf": { + "type": "string", + "description": "Node configuration line" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "node_conf" + ] + }, + "v0.0.44_openapi_resource_layout_resp": { + "type": "object", + "properties": { + "nodes": { + "$ref": "#\/components\/schemas\/v0.0.44_node_resource_layout_list", + "description": "Node resource layouts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "nodes" + ] + }, + "v0.0.44_node_resource_layout_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_node_resource_layout" + } + }, + "v0.0.44_node_resource_layout": { + "type": "object", + "properties": { + "node": { + "type": "string", + "description": "Node name" + }, + "sockets_per_node": { + "type": "integer", + "format": "int32", + "description": "Sockets per node" + }, + "cores_per_socket": { + "type": "integer", + "format": "int32", + "description": "Cores per socket" + }, + "mem_alloc": { + "type": "integer", + "format": "int64", + "description": "Allocated memory" + }, + "core_bitmap": { + "type": "string", + "description": "Abstract core bitmap" + }, + "channel": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "IMEX channel (32 bit integer number with flags)" + }, + "gres": { + "$ref": "#\/components\/schemas\/v0.0.44_node_gres_layout_list", + "description": "Allocated GRES" + } + }, + "required": [ + "node" + ] + }, + "v0.0.44_node_gres_layout_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_node_gres_layout" + } + }, + "v0.0.44_node_gres_layout": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "GRES name" + }, + "type": { + "type": "string", + "description": "GRES type (optional)" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "Count" + }, + "index": { + "type": "string", + "description": "Index" + } + }, + "required": [ + "name" + ] + }, + "v0.0.41_openapi_slurmdbd_jobs_resp": { + "type": "object", + "properties": { + "jobs": { + "type": "array", + "description": "jobs", + "items": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account the job ran under" + }, + "comment": { + "type": "object", + "properties": { + "administrator": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "job": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "system": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + } + } + }, + "allocation_nodes": { + "type": "integer", + "format": "int32", + "description": "List of nodes allocated to the job" + }, + "array": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID of job array, or 0 if N\/A" + }, + "limits": { + "type": "object", + "properties": { + "max": { + "type": "object", + "properties": { + "running": { + "type": "object", + "properties": { + "tasks": { + "type": "integer", + "format": "int32", + "description": "Maximum number of simultaneously running tasks, 0 if no limit" + } + } + } + } + } + } + }, + "task_id": { + "type": "object", + "description": "Task ID of this task in job array", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "task": { + "type": "string", + "description": "String expression of task IDs in this record" + } + } + }, + "association": { + "type": "object", + "description": "Unique identifier for the association", + "properties": { + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster" + }, + "partition": { + "type": "string", + "description": "Partition" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + }, + "block": { + "type": "string", + "description": "The name of the block to be used (used with Blue Gene systems)" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "constraints": { + "type": "string", + "description": "Feature(s) the job requested as a constraint" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "derived_exit_code": { + "type": "object", + "description": "Highest exit code of all job steps", + "properties": { + "status": { + "type": "array", + "description": "Status given by return code", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "return_code": { + "type": "object", + "description": "Process return code (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "signal": { + "type": "object", + "properties": { + "id": { + "type": "object", + "description": "Signal sent to process (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "name": { + "type": "string", + "description": "Signal sent to process" + } + } + } + }, + "required": [ + ] + }, + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "eligible": { + "type": "integer", + "format": "int64", + "description": "Time when the job became eligible to run (UNIX timestamp)" + }, + "end": { + "type": "integer", + "format": "int64", + "description": "End time (UNIX timestamp)" + }, + "planned": { + "type": "object", + "description": "Time required to start job after becoming eligible to run in seconds", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "start": { + "type": "integer", + "format": "int64", + "description": "Time execution began (UNIX timestamp)" + }, + "submission": { + "type": "integer", + "format": "int64", + "description": "Time when the job was submitted (UNIX timestamp)" + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Total time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in microseconds" + } + } + }, + "limit": { + "type": "object", + "description": "Maximum run time in minutes", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in microseconds" + } + } + } + } + }, + "exit_code": { + "type": "object", + "description": "Exit code", + "properties": { + "status": { + "type": "array", + "description": "Status given by return code", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "return_code": { + "type": "object", + "description": "Process return code (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "signal": { + "type": "object", + "properties": { + "id": { + "type": "object", + "description": "Signal sent to process (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "name": { + "type": "string", + "description": "Signal sent to process" + } + } + } + }, + "required": [ + ] + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "flags": { + "type": "array", + "description": "Flags associated with the job", + "items": { + "enum": [ + "NONE", + "CLEAR_SCHEDULING", + "NOT_SET", + "STARTED_ON_SUBMIT", + "STARTED_ON_SCHEDULE", + "STARTED_ON_BACKFILL", + "START_RECEIVED" + ], + "type": "string" + } + }, + "group": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "het": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Heterogeneous job ID, if applicable" + }, + "job_offset": { + "type": "object", + "description": "Unique sequence number applied to this component of the heterogeneous job", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mcs": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Multi-Category Security label on the job" + } + } + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job" + }, + "priority": { + "type": "object", + "description": "Request specific job priority", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "required": { + "type": "object", + "properties": { + "CPUs": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "memory_per_cpu": { + "type": "object", + "description": "Minimum memory in megabytes per allocated CPU", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "memory_per_node": { + "type": "object", + "description": "Minimum memory in megabytes per allocated node", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the job" + }, + "reservation": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier of requested reservation" + }, + "name": { + "type": "string", + "description": "Name of reservation to use" + } + } + }, + "script": { + "type": "string", + "description": "Job batch script; only the first component in a HetJob is populated or honored" + }, + "stdin_expanded": { + "type": "string", + "description": "Job stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Job stdout with expanded fields" + }, + "stderr_expanded": { + "type": "string", + "description": "Job stderr with expanded fields" + }, + "stdout": { + "type": "string", + "description": "Path to stdout file" + }, + "stderr": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin": { + "type": "string", + "description": "Path to stdin file" + }, + "state": { + "type": "object", + "properties": { + "current": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "reason": { + "type": "string", + "description": "Reason for previous Pending or Failed state" + } + } + }, + "steps": { + "type": "array", + "description": "Individual steps in the job", + "items": { + "type": "object", + "properties": { + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "end": { + "type": "object", + "description": "End time (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "start": { + "type": "object", + "description": "Time execution began (UNIX timestamp)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "System CPU time used by the step in microseconds" + } + } + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Total CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "Total CPU time used by the step in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "User CPU time used by the step in microseconds" + } + } + } + } + }, + "exit_code": { + "type": "object", + "description": "Exit code", + "properties": { + "status": { + "type": "array", + "description": "Status given by return code", + "items": { + "enum": [ + "INVALID", + "PENDING", + "SUCCESS", + "ERROR", + "SIGNALED", + "CORE_DUMPED" + ], + "type": "string" + } + }, + "return_code": { + "type": "object", + "description": "Process return code (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "signal": { + "type": "object", + "properties": { + "id": { + "type": "object", + "description": "Signal sent to process (numeric)", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "name": { + "type": "string", + "description": "Signal sent to process" + } + } + } + }, + "required": [ + ] + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in the job step" + }, + "range": { + "type": "string", + "description": "Node(s) allocated to the job step" + }, + "list": { + "type": "array", + "description": "List of nodes used by the step", + "items": { + "type": "string" + } + } + } + }, + "tasks": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of tasks" + } + } + }, + "pid": { + "type": "string", + "description": "Process ID" + }, + "CPU": { + "type": "object", + "properties": { + "requested_frequency": { + "type": "object", + "properties": { + "min": { + "type": "object", + "description": "Minimum requested CPU frequency in kHz", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "max": { + "type": "object", + "description": "Maximum requested CPU frequency in kHz", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "governor": { + "type": "string", + "description": "Requested CPU frequency governor in kHz" + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the step" + }, + "state": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "statistics": { + "type": "object", + "properties": { + "CPU": { + "type": "object", + "properties": { + "actual_frequency": { + "type": "integer", + "format": "int64", + "description": "Average weighted CPU frequency of all tasks in kHz" + } + } + }, + "energy": { + "type": "object", + "properties": { + "consumed": { + "type": "object", + "description": "Total energy consumed by all tasks in a job in joules", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int64", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + }, + "step": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Step ID" + }, + "name": { + "type": "string", + "description": "Step name" + } + } + }, + "task": { + "type": "object", + "properties": { + "distribution": { + "type": "string", + "description": "The layout of the step was when it was running" + } + } + }, + "tres": { + "type": "object", + "properties": { + "requested": { + "type": "object", + "properties": { + "max": { + "type": "array", + "description": "Maximum TRES usage requested among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "min": { + "type": "array", + "description": "Minimum TRES usage requested among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "average": { + "type": "array", + "description": "Average TRES usage requested among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "total": { + "type": "array", + "description": "Total TRES usage requested among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "consumed": { + "type": "object", + "properties": { + "max": { + "type": "array", + "description": "Maximum TRES usage consumed among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "min": { + "type": "array", + "description": "Minimum TRES usage consumed among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "average": { + "type": "array", + "description": "Average TRES usage consumed among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "total": { + "type": "array", + "description": "Total TRES usage consumed among all tasks", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "allocated": { + "type": "array", + "description": "Trackable resources allocated to the step", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + }, + "required": [ + ] + } + }, + "submit_line": { + "type": "string", + "description": "Command used to submit the job" + }, + "tres": { + "type": "object", + "properties": { + "allocated": { + "type": "array", + "description": "Trackable resources allocated to the job", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "requested": { + "type": "array", + "description": "Trackable resources requested by job", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "used_gres": { + "type": "string", + "description": "Generic resources used by job" + }, + "user": { + "type": "string", + "description": "User that owns the job" + }, + "wckey": { + "type": "object", + "description": "Workload characterization key", + "properties": { + "wckey": { + "type": "string", + "description": "WCKey name" + }, + "flags": { + "type": "array", + "description": "Active flags", + "items": { + "enum": [ + "ASSIGNED_DEFAULT" + ], + "type": "string" + } + } + }, + "required": [ + "wckey", + "flags" + ] + }, + "working_directory": { + "type": "string", + "description": "Path to current working directory" + } + }, + "required": [ + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "jobs" + ] + }, + "v0.0.44_openapi_slurmdbd_jobs_resp": { + "type": "object", + "properties": { + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.44_job_list", + "description": "jobs" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "jobs" + ] + }, + "v0.0.44_job_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_job" + } + }, + "v0.0.44_job": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account the job ran under" + }, + "comment": { + "type": "object", + "properties": { + "administrator": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "job": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "system": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + } + } + }, + "allocation_nodes": { + "type": "integer", + "format": "int32", + "description": "List of nodes allocated to the job" + }, + "array": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID of job array, or 0 if N\/A" + }, + "limits": { + "type": "object", + "properties": { + "max": { + "type": "object", + "properties": { + "running": { + "type": "object", + "properties": { + "tasks": { + "type": "integer", + "format": "int32", + "description": "Maximum number of simultaneously running tasks, 0 if no limit" + } + } + } + } + } + } + }, + "task_id": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Task ID of this task in job array (32 bit integer number with flags)" + }, + "task": { + "type": "string", + "description": "String expression of task IDs in this record" + } + } + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_short", + "description": "Unique identifier for the association" + }, + "block": { + "type": "string", + "description": "The name of the block to be used (used with Blue Gene systems)" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "constraints": { + "type": "string", + "description": "Feature(s) the job requested as a constraint" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "derived_exit_code": { + "$ref": "#\/components\/schemas\/v0.0.44_process_exit_code_verbose", + "description": "Highest exit code of all job steps (return code returned by process)" + }, + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "eligible": { + "type": "integer", + "format": "int64", + "description": "Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "end": { + "type": "integer", + "format": "int64", + "description": "End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "planned": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time required to start job after becoming eligible to run in seconds (64 bit integer number with flags)" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "submission": { + "type": "integer", + "format": "int64", + "description": "Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Total time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in microseconds" + } + } + }, + "limit": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in microseconds" + } + } + } + } + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.44_process_exit_code_verbose", + "description": "Exit code (return code returned by process)" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "flags": { + "type": "array", + "description": "Flags associated with this job", + "items": { + "enum": [ + "NONE", + "CLEAR_SCHEDULING", + "NOT_SET", + "STARTED_ON_SUBMIT", + "STARTED_ON_SCHEDULE", + "STARTED_ON_BACKFILL", + "START_RECEIVED", + "JOB_ALTERED" + ], + "type": "string" + } + }, + "group": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "het": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Heterogeneous job ID, if applicable" + }, + "job_offset": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Unique sequence number applied to this component of the heterogeneous job (32 bit integer number with flags)" + } + } + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mcs": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Multi-Category Security label on the job" + } + } + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job (Job held)" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Request specific job priority (32 bit integer number with flags)" + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "qosreq": { + "type": "string", + "description": "Requested QOS" + }, + "required": { + "type": "object", + "properties": { + "CPUs": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU (64 bit integer number with flags)" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node (64 bit integer number with flags)" + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the job" + }, + "restart_cnt": { + "type": "integer", + "format": "int32", + "description": "How many times this job has been requeued\/restarted" + }, + "reservation": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier of requested reservation" + }, + "name": { + "type": "string", + "description": "Name of reservation to use" + }, + "requested": { + "type": "string", + "description": "Comma-separated list of requested reservation names" + } + } + }, + "script": { + "type": "string", + "description": "Job batch script contents; only the first component in a HetJob is populated or honored" + }, + "segment_size": { + "type": "integer", + "format": "int32", + "description": "Requested segment size" + }, + "stdin_expanded": { + "type": "string", + "description": "Job stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Job stdout with expanded fields" + }, + "stderr_expanded": { + "type": "string", + "description": "Job stderr with expanded fields" + }, + "stdout": { + "type": "string", + "description": "Path to stdout file" + }, + "stderr": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin": { + "type": "string", + "description": "Path to stdin file" + }, + "state": { + "type": "object", + "properties": { + "current": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT", + "EXPEDITING" + ], + "type": "string" + } + }, + "reason": { + "type": "string", + "description": "Reason for previous Pending or Failed state" + } + } + }, + "steps": { + "$ref": "#\/components\/schemas\/v0.0.44_step_list", + "description": "Individual steps in the job" + }, + "submit_line": { + "type": "string", + "description": "Command used to submit the job" + }, + "tres": { + "type": "object", + "properties": { + "allocated": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Trackable resources allocated to the job" + }, + "requested": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Trackable resources requested by job" + } + } + }, + "used_gres": { + "type": "string", + "description": "Generic resources used by job" + }, + "user": { + "type": "string", + "description": "User that owns the job" + }, + "wckey": { + "$ref": "#\/components\/schemas\/v0.0.44_wckey_tag_struct", + "description": "Workload characterization key (WCKey ID with tagging)" + }, + "working_directory": { + "type": "string", + "description": "Path to current working directory" + } + }, + "required": [ + ] + }, + "v0.0.44_assoc_short": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account name" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + }, + "v0.0.44_step_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_step" + } + }, + "v0.0.44_step": { + "type": "object", + "properties": { + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "end": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "start": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Total time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "System CPU time used by the step in microseconds" + } + } + }, + "limit": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Total CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "Total CPU time used by the step in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "User CPU time used by the step in microseconds" + } + } + } + } + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.44_process_exit_code_verbose", + "description": "Exit code (return code returned by process)" + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in the job step" + }, + "range": { + "type": "string", + "description": "Node(s) allocated to the job step" + }, + "list": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist", + "description": "List of nodes used by the step" + } + } + }, + "tasks": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of tasks" + } + } + }, + "pid": { + "type": "string", + "description": "Deprecated; Process ID", + "deprecated": true + }, + "CPU": { + "type": "object", + "properties": { + "requested_frequency": { + "type": "object", + "properties": { + "min": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Minimum requested CPU frequency in kHz (32 bit integer number with flags)" + }, + "max": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Maximum requested CPU frequency in kHz (32 bit integer number with flags)" + } + } + }, + "governor": { + "type": "string", + "description": "Requested CPU frequency governor in kHz" + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the step" + }, + "state": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT", + "EXPEDITING" + ], + "type": "string" + } + }, + "statistics": { + "type": "object", + "properties": { + "CPU": { + "type": "object", + "properties": { + "actual_frequency": { + "type": "integer", + "format": "int64", + "description": "Average weighted CPU frequency of all tasks in kHz" + } + } + }, + "energy": { + "type": "object", + "properties": { + "consumed": { + "$ref": "#\/components\/schemas\/v0.0.44_uint64_no_val_struct", + "description": "Total energy consumed by all tasks in a job in joules (64 bit integer number with flags)" + } + } + } + } + }, + "step": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Step ID (Slurm job step ID)" + }, + "name": { + "type": "string", + "description": "Step name" + }, + "stderr": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin": { + "type": "string", + "description": "Path to stdin file" + }, + "stdout": { + "type": "string", + "description": "Path to stdout file" + }, + "stderr_expanded": { + "type": "string", + "description": "Step stderr with expanded fields" + }, + "stdin_expanded": { + "type": "string", + "description": "Step stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Step stdout with expanded fields" + } + } + }, + "task": { + "type": "object", + "properties": { + "distribution": { + "type": "string", + "description": "The layout of the step was when it was running" + } + } + }, + "tres": { + "type": "object", + "properties": { + "requested": { + "type": "object", + "properties": { + "max": { + "$ref": "#\/components\/schemas\/v0.0.44_step_tres_req_max", + "description": "Maximum TRES usage requested among all tasks" + }, + "min": { + "$ref": "#\/components\/schemas\/v0.0.44_step_tres_req_min", + "description": "Minimum TRES usage requested among all tasks" + }, + "average": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Average TRES usage requested among all tasks" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Total TRES usage requested among all tasks" + } + } + }, + "consumed": { + "type": "object", + "properties": { + "max": { + "$ref": "#\/components\/schemas\/v0.0.44_step_tres_usage_max", + "description": "Maximum TRES usage consumed among all tasks" + }, + "min": { + "$ref": "#\/components\/schemas\/v0.0.44_step_tres_usage_min", + "description": "Minimum TRES usage consumed among all tasks" + }, + "average": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Average TRES usage consumed among all tasks" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Total TRES usage consumed among all tasks" + } + } + }, + "allocated": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Trackable resources allocated to the step" + } + } + } + }, + "required": [ + ] + }, + "v0.0.44_hostlist": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.44_step_tres_req_max": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_tres" + } + }, + "v0.0.44_step_tres_req_min": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_tres" + } + }, + "v0.0.44_step_tres_usage_max": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_tres" + } + }, + "v0.0.44_step_tres_usage_min": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_tres" + } + }, + "v0.0.44_wckey_tag_struct": { + "type": "object", + "properties": { + "wckey": { + "type": "string", + "description": "WCKey name" + }, + "flags": { + "type": "array", + "description": "Active flags", + "items": { + "enum": [ + "ASSIGNED_DEFAULT" + ], + "type": "string" + } + } + }, + "required": [ + "wckey", + "flags" + ] + }, + "v0.0.44_openapi_job_modify_resp": { + "type": "object", + "properties": { + "results": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "Job modify results" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "results" + ] + }, + "v0.0.44_string_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.44_job_modify": { + "type": "object", + "properties": { + "comment": { + "type": "object", + "properties": { + "administrator": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "job": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "system": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + } + } + }, + "derived_exit_code": { + "$ref": "#\/components\/schemas\/v0.0.44_process_exit_code_verbose", + "description": "Highest exit code of all job steps (return code returned by process)" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "tres": { + "type": "object", + "properties": { + "allocated": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Trackable resources allocated to the job" + } + } + }, + "wckey": { + "type": "string", + "description": "Workload characterization key" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_slurmdbd_jobs_resp": { + "type": "object", + "properties": { + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.42_job_list", + "description": "jobs" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "jobs" + ] + }, + "v0.0.42_job_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_job" + } + }, + "v0.0.42_job": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account the job ran under" + }, + "comment": { + "type": "object", + "properties": { + "administrator": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "job": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "system": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + } + } + }, + "allocation_nodes": { + "type": "integer", + "format": "int32", + "description": "List of nodes allocated to the job" + }, + "array": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID of job array, or 0 if N\/A" + }, + "limits": { + "type": "object", + "properties": { + "max": { + "type": "object", + "properties": { + "running": { + "type": "object", + "properties": { + "tasks": { + "type": "integer", + "format": "int32", + "description": "Maximum number of simultaneously running tasks, 0 if no limit" + } + } + } + } + } + } + }, + "task_id": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Task ID of this task in job array" + }, + "task": { + "type": "string", + "description": "String expression of task IDs in this record" + } + } + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_short", + "description": "Unique identifier for the association" + }, + "block": { + "type": "string", + "description": "The name of the block to be used (used with Blue Gene systems)" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "constraints": { + "type": "string", + "description": "Feature(s) the job requested as a constraint" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "derived_exit_code": { + "$ref": "#\/components\/schemas\/v0.0.42_process_exit_code_verbose", + "description": "Highest exit code of all job steps" + }, + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "eligible": { + "type": "integer", + "format": "int64", + "description": "Time when the job became eligible to run (UNIX timestamp)" + }, + "end": { + "type": "integer", + "format": "int64", + "description": "End time (UNIX timestamp)" + }, + "planned": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time required to start job after becoming eligible to run in seconds" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "Time execution began (UNIX timestamp)" + }, + "submission": { + "type": "integer", + "format": "int64", + "description": "Time when the job was submitted (UNIX timestamp)" + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Total time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in microseconds" + } + } + }, + "limit": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum run time in minutes" + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in microseconds" + } + } + } + } + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.42_process_exit_code_verbose", + "description": "Exit code" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_slurmdb_job_flags", + "description": "Flags associated with this job" + }, + "group": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "het": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Heterogeneous job ID, if applicable" + }, + "job_offset": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Unique sequence number applied to this component of the heterogeneous job" + } + } + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mcs": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Multi-Category Security label on the job" + } + } + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Request specific job priority" + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "qosreq": { + "type": "string", + "description": "Requested QOS" + }, + "required": { + "type": "object", + "properties": { + "CPUs": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node" + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the job" + }, + "restart_cnt": { + "type": "integer", + "format": "int32", + "description": "How many times this job has been requeued\/restarted" + }, + "reservation": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier of requested reservation" + }, + "name": { + "type": "string", + "description": "Name of reservation to use" + } + } + }, + "script": { + "type": "string", + "description": "Job batch script; only the first component in a HetJob is populated or honored" + }, + "stdin_expanded": { + "type": "string", + "description": "Job stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Job stdout with expanded fields" + }, + "stderr_expanded": { + "type": "string", + "description": "Job stderr with expanded fields" + }, + "stdout": { + "type": "string", + "description": "Path to stdout file" + }, + "stderr": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin": { + "type": "string", + "description": "Path to stdin file" + }, + "state": { + "type": "object", + "properties": { + "current": { + "$ref": "#\/components\/schemas\/v0.0.42_job_state", + "description": "Current state" + }, + "reason": { + "type": "string", + "description": "Reason for previous Pending or Failed state" + } + } + }, + "steps": { + "$ref": "#\/components\/schemas\/v0.0.42_step_list", + "description": "Individual steps in the job" + }, + "submit_line": { + "type": "string", + "description": "Command used to submit the job" + }, + "tres": { + "type": "object", + "properties": { + "allocated": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Trackable resources allocated to the job" + }, + "requested": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Trackable resources requested by job" + } + } + }, + "used_gres": { + "type": "string", + "description": "Generic resources used by job" + }, + "user": { + "type": "string", + "description": "User that owns the job" + }, + "wckey": { + "$ref": "#\/components\/schemas\/v0.0.42_wckey_tag_struct", + "description": "Workload characterization key" + }, + "working_directory": { + "type": "string", + "description": "Path to current working directory" + } + }, + "required": [ + ] + }, + "v0.0.42_assoc_short": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account name" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + }, + "v0.0.42_slurmdb_job_flags": { + "type": "array", + "items": { + "enum": [ + "NONE", + "CLEAR_SCHEDULING", + "NOT_SET", + "STARTED_ON_SUBMIT", + "STARTED_ON_SCHEDULE", + "STARTED_ON_BACKFILL", + "START_RECEIVED" + ], + "type": "string" + } + }, + "v0.0.42_step_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_step" + } + }, + "v0.0.42_step": { + "type": "object", + "properties": { + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "end": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "End time (UNIX timestamp)" + }, + "start": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Time execution began (UNIX timestamp)" + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Total time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "System CPU time used by the step in microseconds" + } + } + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Total CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "Total CPU time used by the step in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "User CPU time used by the step in microseconds" + } + } + } + } + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.42_process_exit_code_verbose", + "description": "Exit code" + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in the job step" + }, + "range": { + "type": "string", + "description": "Node(s) allocated to the job step" + }, + "list": { + "$ref": "#\/components\/schemas\/v0.0.42_hostlist", + "description": "List of nodes used by the step" + } + } + }, + "tasks": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of tasks" + } + } + }, + "pid": { + "type": "string", + "description": "Deprecated; Process ID", + "deprecated": true + }, + "CPU": { + "type": "object", + "properties": { + "requested_frequency": { + "type": "object", + "properties": { + "min": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum requested CPU frequency in kHz" + }, + "max": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum requested CPU frequency in kHz" + } + } + }, + "governor": { + "type": "string", + "description": "Requested CPU frequency governor in kHz" + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the step" + }, + "state": { + "$ref": "#\/components\/schemas\/v0.0.42_job_state", + "description": "Current state" + }, + "statistics": { + "type": "object", + "properties": { + "CPU": { + "type": "object", + "properties": { + "actual_frequency": { + "type": "integer", + "format": "int64", + "description": "Average weighted CPU frequency of all tasks in kHz" + } + } + }, + "energy": { + "type": "object", + "properties": { + "consumed": { + "$ref": "#\/components\/schemas\/v0.0.42_uint64_no_val_struct", + "description": "Total energy consumed by all tasks in a job in joules" + } + } + } + } + }, + "step": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Step ID" + }, + "name": { + "type": "string", + "description": "Step name" + } + } + }, + "task": { + "type": "object", + "properties": { + "distribution": { + "type": "string", + "description": "The layout of the step was when it was running" + } + } + }, + "tres": { + "type": "object", + "properties": { + "requested": { + "type": "object", + "properties": { + "max": { + "$ref": "#\/components\/schemas\/v0.0.42_step_tres_req_max", + "description": "Maximum TRES usage requested among all tasks" + }, + "min": { + "$ref": "#\/components\/schemas\/v0.0.42_step_tres_req_min", + "description": "Minimum TRES usage requested among all tasks" + }, + "average": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Average TRES usage requested among all tasks" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Total TRES usage requested among all tasks" + } + } + }, + "consumed": { + "type": "object", + "properties": { + "max": { + "$ref": "#\/components\/schemas\/v0.0.42_step_tres_usage_max", + "description": "Maximum TRES usage consumed among all tasks" + }, + "min": { + "$ref": "#\/components\/schemas\/v0.0.42_step_tres_usage_min", + "description": "Minimum TRES usage consumed among all tasks" + }, + "average": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Average TRES usage consumed among all tasks" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Total TRES usage consumed among all tasks" + } + } + }, + "allocated": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Trackable resources allocated to the step" + } + } + } + }, + "required": [ + ] + }, + "v0.0.42_hostlist": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.42_step_tres_req_max": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_tres" + } + }, + "v0.0.42_tres": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in the database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + }, + "v0.0.42_step_tres_req_min": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_tres" + } + }, + "v0.0.42_step_tres_usage_max": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_tres" + } + }, + "v0.0.42_step_tres_usage_min": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_tres" + } + }, + "v0.0.42_tres_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_tres" + } + }, + "v0.0.42_wckey_tag_struct": { + "type": "object", + "properties": { + "wckey": { + "type": "string", + "description": "WCKey name" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_wckey_tag_flags", + "description": "Active flags" + } + }, + "required": [ + "wckey", + "flags" + ] + }, + "v0.0.42_wckey_tag_flags": { + "type": "array", + "items": { + "enum": [ + "ASSIGNED_DEFAULT" + ], + "type": "string" + } + }, + "v0.0.43_openapi_slurmdbd_jobs_resp": { + "type": "object", + "properties": { + "jobs": { + "$ref": "#\/components\/schemas\/v0.0.43_job_list", + "description": "jobs" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "jobs" + ] + }, + "v0.0.43_job_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_job" + } + }, + "v0.0.43_job": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account the job ran under" + }, + "comment": { + "type": "object", + "properties": { + "administrator": { + "type": "string", + "description": "Arbitrary comment made by administrator" + }, + "job": { + "type": "string", + "description": "Arbitrary comment made by user" + }, + "system": { + "type": "string", + "description": "Arbitrary comment from slurmctld" + } + } + }, + "allocation_nodes": { + "type": "integer", + "format": "int32", + "description": "List of nodes allocated to the job" + }, + "array": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID of job array, or 0 if N\/A" + }, + "limits": { + "type": "object", + "properties": { + "max": { + "type": "object", + "properties": { + "running": { + "type": "object", + "properties": { + "tasks": { + "type": "integer", + "format": "int32", + "description": "Maximum number of simultaneously running tasks, 0 if no limit" + } + } + } + } + } + } + }, + "task_id": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Task ID of this task in job array (32 bit integer number with flags)" + }, + "task": { + "type": "string", + "description": "String expression of task IDs in this record" + } + } + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_short", + "description": "Unique identifier for the association" + }, + "block": { + "type": "string", + "description": "The name of the block to be used (used with Blue Gene systems)" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "constraints": { + "type": "string", + "description": "Feature(s) the job requested as a constraint" + }, + "container": { + "type": "string", + "description": "Absolute path to OCI container bundle" + }, + "derived_exit_code": { + "$ref": "#\/components\/schemas\/v0.0.43_process_exit_code_verbose", + "description": "Highest exit code of all job steps (return code returned by process)" + }, + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "eligible": { + "type": "integer", + "format": "int64", + "description": "Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "end": { + "type": "integer", + "format": "int64", + "description": "End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "planned": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time required to start job after becoming eligible to run in seconds (64 bit integer number with flags)" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "submission": { + "type": "integer", + "format": "int64", + "description": "Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Total time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the job in microseconds" + } + } + }, + "limit": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "Sum of System and User CPU time used by the job in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the job in microseconds" + } + } + } + } + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.43_process_exit_code_verbose", + "description": "Exit code (return code returned by process)" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "failed_node": { + "type": "string", + "description": "Name of node that caused job failure" + }, + "flags": { + "type": "array", + "description": "Flags associated with this job", + "items": { + "enum": [ + "NONE", + "CLEAR_SCHEDULING", + "NOT_SET", + "STARTED_ON_SUBMIT", + "STARTED_ON_SCHEDULE", + "STARTED_ON_BACKFILL", + "START_RECEIVED" + ], + "type": "string" + } + }, + "group": { + "type": "string", + "description": "Group ID of the user that owns the job" + }, + "het": { + "type": "object", + "properties": { + "job_id": { + "type": "integer", + "format": "int32", + "description": "Heterogeneous job ID, if applicable" + }, + "job_offset": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Unique sequence number applied to this component of the heterogeneous job (32 bit integer number with flags)" + } + } + }, + "job_id": { + "type": "integer", + "format": "int32", + "description": "Job ID" + }, + "name": { + "type": "string", + "description": "Job name" + }, + "licenses": { + "type": "string", + "description": "License(s) required by the job" + }, + "mcs": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Multi-Category Security label on the job" + } + } + }, + "nodes": { + "type": "string", + "description": "Node(s) allocated to the job" + }, + "partition": { + "type": "string", + "description": "Partition assigned to the job" + }, + "hold": { + "type": "boolean", + "description": "Hold (true) or release (false) job (Job held)" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Request specific job priority (32 bit integer number with flags)" + }, + "qos": { + "type": "string", + "description": "Quality of Service assigned to the job" + }, + "qosreq": { + "type": "string", + "description": "Requested QOS" + }, + "required": { + "type": "object", + "properties": { + "CPUs": { + "type": "integer", + "format": "int32", + "description": "Minimum number of CPUs required" + }, + "memory_per_cpu": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated CPU (64 bit integer number with flags)" + }, + "memory_per_node": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Minimum memory in megabytes per allocated node (64 bit integer number with flags)" + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the job" + }, + "restart_cnt": { + "type": "integer", + "format": "int32", + "description": "How many times this job has been requeued\/restarted" + }, + "reservation": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32", + "description": "Unique identifier of requested reservation" + }, + "name": { + "type": "string", + "description": "Name of reservation to use" + }, + "requested": { + "type": "string", + "description": "Comma-separated list of requested reservation names" + } + } + }, + "script": { + "type": "string", + "description": "Job batch script; only the first component in a HetJob is populated or honored" + }, + "segment_size": { + "type": "integer", + "format": "int32", + "description": "Requested segment size" + }, + "stdin_expanded": { + "type": "string", + "description": "Job stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Job stdout with expanded fields" + }, + "stderr_expanded": { + "type": "string", + "description": "Job stderr with expanded fields" + }, + "stdout": { + "type": "string", + "description": "Path to stdout file" + }, + "stderr": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin": { + "type": "string", + "description": "Path to stdin file" + }, + "state": { + "type": "object", + "properties": { + "current": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "reason": { + "type": "string", + "description": "Reason for previous Pending or Failed state" + } + } + }, + "steps": { + "$ref": "#\/components\/schemas\/v0.0.43_step_list", + "description": "Individual steps in the job" + }, + "submit_line": { + "type": "string", + "description": "Command used to submit the job" + }, + "tres": { + "type": "object", + "properties": { + "allocated": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Trackable resources allocated to the job" + }, + "requested": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Trackable resources requested by job" + } + } + }, + "used_gres": { + "type": "string", + "description": "Generic resources used by job" + }, + "user": { + "type": "string", + "description": "User that owns the job" + }, + "wckey": { + "$ref": "#\/components\/schemas\/v0.0.43_wckey_tag_struct", + "description": "Workload characterization key (WCKey ID with tagging)" + }, + "working_directory": { + "type": "string", + "description": "Path to current working directory" + } + }, + "required": [ + ] + }, + "v0.0.43_assoc_short": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account name" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + }, + "v0.0.43_step_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_step" + } + }, + "v0.0.43_step": { + "type": "object", + "properties": { + "time": { + "type": "object", + "properties": { + "elapsed": { + "type": "integer", + "format": "int32", + "description": "Elapsed time in seconds" + }, + "end": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "start": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'); may also be infinite or unset) (64 bit integer number with flags)" + }, + "suspended": { + "type": "integer", + "format": "int32", + "description": "Total time in suspended state in seconds" + }, + "system": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "System CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "System CPU time used by the step in microseconds" + } + } + }, + "limit": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum run time in minutes (32 bit integer number with flags)" + }, + "total": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Total CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "Total CPU time used by the step in microseconds" + } + } + }, + "user": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "User CPU time used by the step in seconds" + }, + "microseconds": { + "type": "integer", + "format": "int32", + "description": "User CPU time used by the step in microseconds" + } + } + } + } + }, + "exit_code": { + "$ref": "#\/components\/schemas\/v0.0.43_process_exit_code_verbose", + "description": "Exit code (return code returned by process)" + }, + "nodes": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of nodes in the job step" + }, + "range": { + "type": "string", + "description": "Node(s) allocated to the job step" + }, + "list": { + "$ref": "#\/components\/schemas\/v0.0.43_hostlist", + "description": "List of nodes used by the step" + } + } + }, + "tasks": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Total number of tasks" + } + } + }, + "pid": { + "type": "string", + "description": "Deprecated; Process ID", + "deprecated": true + }, + "CPU": { + "type": "object", + "properties": { + "requested_frequency": { + "type": "object", + "properties": { + "min": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Minimum requested CPU frequency in kHz (32 bit integer number with flags)" + }, + "max": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Maximum requested CPU frequency in kHz (32 bit integer number with flags)" + } + } + }, + "governor": { + "type": "string", + "description": "Requested CPU frequency governor in kHz" + } + } + }, + "kill_request_user": { + "type": "string", + "description": "User ID that requested termination of the step" + }, + "state": { + "type": "array", + "description": "Current state", + "items": { + "enum": [ + "PENDING", + "RUNNING", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "FAILED", + "TIMEOUT", + "NODE_FAIL", + "PREEMPTED", + "BOOT_FAIL", + "DEADLINE", + "OUT_OF_MEMORY", + "LAUNCH_FAILED", + "REQUEUED", + "REQUEUE_HOLD", + "SPECIAL_EXIT", + "RESIZING", + "CONFIGURING", + "COMPLETING", + "STOPPED", + "RECONFIG_FAIL", + "POWER_UP_NODE", + "REVOKED", + "REQUEUE_FED", + "RESV_DEL_HOLD", + "SIGNALING", + "STAGE_OUT" + ], + "type": "string" + } + }, + "statistics": { + "type": "object", + "properties": { + "CPU": { + "type": "object", + "properties": { + "actual_frequency": { + "type": "integer", + "format": "int64", + "description": "Average weighted CPU frequency of all tasks in kHz" + } + } + }, + "energy": { + "type": "object", + "properties": { + "consumed": { + "$ref": "#\/components\/schemas\/v0.0.43_uint64_no_val_struct", + "description": "Total energy consumed by all tasks in a job in joules (64 bit integer number with flags)" + } + } + } + } + }, + "step": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Step ID (Slurm job step ID)" + }, + "name": { + "type": "string", + "description": "Step name" + }, + "stderr": { + "type": "string", + "description": "Path to stderr file" + }, + "stdin": { + "type": "string", + "description": "Path to stdin file" + }, + "stdout": { + "type": "string", + "description": "Path to stdout file" + }, + "stderr_expanded": { + "type": "string", + "description": "Step stderr with expanded fields" + }, + "stdin_expanded": { + "type": "string", + "description": "Step stdin with expanded fields" + }, + "stdout_expanded": { + "type": "string", + "description": "Step stdout with expanded fields" + } + } + }, + "task": { + "type": "object", + "properties": { + "distribution": { + "type": "string", + "description": "The layout of the step was when it was running" + } + } + }, + "tres": { + "type": "object", + "properties": { + "requested": { + "type": "object", + "properties": { + "max": { + "$ref": "#\/components\/schemas\/v0.0.43_step_tres_req_max", + "description": "Maximum TRES usage requested among all tasks" + }, + "min": { + "$ref": "#\/components\/schemas\/v0.0.43_step_tres_req_min", + "description": "Minimum TRES usage requested among all tasks" + }, + "average": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Average TRES usage requested among all tasks" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Total TRES usage requested among all tasks" + } + } + }, + "consumed": { + "type": "object", + "properties": { + "max": { + "$ref": "#\/components\/schemas\/v0.0.43_step_tres_usage_max", + "description": "Maximum TRES usage consumed among all tasks" + }, + "min": { + "$ref": "#\/components\/schemas\/v0.0.43_step_tres_usage_min", + "description": "Minimum TRES usage consumed among all tasks" + }, + "average": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Average TRES usage consumed among all tasks" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Total TRES usage consumed among all tasks" + } + } + }, + "allocated": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Trackable resources allocated to the step" + } + } + } + }, + "required": [ + ] + }, + "v0.0.43_hostlist": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_step_tres_req_max": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_tres" + } + }, + "v0.0.43_step_tres_req_min": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_tres" + } + }, + "v0.0.43_step_tres_usage_max": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_tres" + } + }, + "v0.0.43_step_tres_usage_min": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_tres" + } + }, + "v0.0.43_wckey_tag_struct": { + "type": "object", + "properties": { + "wckey": { + "type": "string", + "description": "WCKey name" + }, + "flags": { + "type": "array", + "description": "Active flags", + "items": { + "enum": [ + "ASSIGNED_DEFAULT" + ], + "type": "string" + } + } + }, + "required": [ + "wckey", + "flags" + ] + }, + "v0.0.41_openapi_slurmdbd_config_resp": { + "type": "object", + "properties": { + "clusters": { + "type": "array", + "description": "Clusters", + "items": { + "type": "object", + "properties": { + "controller": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "ControlHost" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "ControlPort" + } + } + }, + "flags": { + "type": "array", + "description": "Flags", + "items": { + "enum": [ + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "ClusterName" + }, + "nodes": { + "type": "string", + "description": "Node names" + }, + "select_plugin": { + "type": "string", + "deprecated": true + }, + "associations": { + "type": "object", + "properties": { + "root": { + "type": "object", + "description": "Root association information", + "properties": { + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster" + }, + "partition": { + "type": "string", + "description": "Partition" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + } + } + }, + "rpc_version": { + "type": "integer", + "format": "int32", + "description": "RPC version used in the cluster" + }, + "tres": { + "type": "array", + "description": "Trackable resources", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + }, + "required": [ + ] + } + }, + "tres": { + "type": "array", + "description": "TRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "accounts": { + "type": "array", + "description": "Accounts", + "items": { + "type": "object", + "properties": { + "associations": { + "type": "array", + "description": "Associations involving this account (only populated if requested)", + "items": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster" + }, + "partition": { + "type": "string", + "description": "Partition" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + } + }, + "coordinators": { + "type": "array", + "description": "List of users that are a coordinator of this account (only populated if requested)", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User name" + }, + "direct": { + "type": "boolean", + "description": "Indicates whether the coordinator was directly assigned to this account" + } + }, + "required": [ + "name" + ] + } + }, + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "name": { + "type": "string", + "description": "Account name" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + }, + "flags": { + "type": "array", + "description": "Flags associated with the account", + "items": { + "enum": [ + "DELETED", + "WithAssociations", + "WithCoordinators", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + } + }, + "required": [ + "description", + "name", + "organization" + ] + } + }, + "users": { + "type": "array", + "description": "Users", + "items": { + "type": "object", + "properties": { + "administrator_level": { + "type": "array", + "description": "AdminLevel granted to the user", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "associations": { + "type": "array", + "description": "Associations created for this user", + "items": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster" + }, + "partition": { + "type": "string", + "description": "Partition" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + } + }, + "coordinators": { + "type": "array", + "description": "Accounts this user is a coordinator for", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User name" + }, + "direct": { + "type": "boolean", + "description": "Indicates whether the coordinator was directly assigned to this account" + } + }, + "required": [ + "name" + ] + } + }, + "default": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Default Account" + }, + "wckey": { + "type": "string", + "description": "Default WCKey" + } + } + }, + "flags": { + "type": "array", + "description": "Flags associated with user", + "items": { + "enum": [ + "NONE", + "DELETED" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "User name" + }, + "old_name": { + "type": "string", + "description": "Previous user name" + }, + "wckeys": { + "type": "array", + "description": "List of available WCKeys", + "items": { + "type": "object", + "properties": { + "accounting": { + "type": "array", + "description": "Accounting records containing related resource usage", + "items": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of cpu seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started" + }, + "TRES": { + "type": "object", + "description": "Trackable resources", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + ] + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID for this user-cluster-wckey combination" + }, + "name": { + "type": "string", + "description": "WCKey name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "flags": { + "type": "array", + "description": "Flags associated with the WCKey", + "items": { + "enum": [ + "DELETED" + ], + "type": "string" + } + } + }, + "required": [ + "cluster", + "name", + "user" + ] + } + } + }, + "required": [ + "name" + ] + } + }, + "qos": { + "type": "array", + "description": "QOS", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary description" + }, + "flags": { + "type": "array", + "description": "Flags, to avoid modifying current values specify NOT_SET", + "items": { + "enum": [ + "NOT_SET", + "ADD", + "REMOVE", + "PARTITION_MINIMUM_NODE", + "PARTITION_MAXIMUM_NODE", + "PARTITION_TIME_LIMIT", + "ENFORCE_USAGE_THRESHOLD", + "NO_RESERVE", + "REQUIRED_RESERVATION", + "DENY_LIMIT", + "OVERRIDE_PARTITION_QOS", + "NO_DECAY", + "USAGE_FACTOR_SAFE", + "RELATIVE" + ], + "type": "string" + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "limits": { + "type": "object", + "properties": { + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime" + }, + "max": { + "type": "object", + "properties": { + "active_jobs": { + "type": "object", + "properties": { + "accruing": { + "type": "object", + "description": "GrpJobsAccrue", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "count": { + "type": "object", + "description": "GrpJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "type": "array", + "description": "GrpTRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "minutes": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "qos": { + "type": "array", + "description": "GrpTRESRunMins", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "job": { + "type": "array", + "description": "MaxTRESMinsPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "account": { + "type": "array", + "description": "MaxTRESRunMinsPerAccount", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "user": { + "type": "array", + "description": "MaxTRESRunMinsPerUser", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "array", + "description": "MaxTRESPerAccount", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "job": { + "type": "array", + "description": "MaxTRESPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "node": { + "type": "array", + "description": "MaxTRESPerNode", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "user": { + "type": "array", + "description": "MaxTRESPerUser", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "wall_clock": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "qos": { + "type": "object", + "description": "GrpWall", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "job": { + "type": "object", + "description": "MaxWallDurationPerJob", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + }, + "jobs": { + "type": "object", + "properties": { + "active_jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "description": "MaxJobsPerAccount", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "user": { + "type": "object", + "description": "MaxJobsPerUser", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "description": "MaxSubmitJobsPerAccount", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "user": { + "type": "object", + "description": "MaxSubmitJobsPerUser", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + }, + "accruing": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "description": "MaxJobsAccruePerAccount", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "user": { + "type": "object", + "description": "MaxJobsAccruePerUser", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + } + } + }, + "factor": { + "type": "object", + "description": "LimitFactor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "type": "object", + "description": "MinPrioThreshold", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tres": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "job": { + "type": "array", + "description": "MinTRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + } + } + } + } + }, + "name": { + "type": "string", + "description": "Name" + }, + "preempt": { + "type": "object", + "properties": { + "list": { + "type": "array", + "description": "Other QOS's this QOS can preempt", + "items": { + "type": "string" + } + }, + "mode": { + "type": "array", + "description": "PreemptMode", + "items": { + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ], + "type": "string" + } + }, + "exempt_time": { + "type": "object", + "description": "PreemptExemptTime", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "priority": { + "type": "object", + "description": "Priority", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "usage_factor": { + "type": "object", + "description": "UsageFactor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "usage_threshold": { + "type": "object", + "description": "UsageThreshold", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + ] + } + }, + "wckeys": { + "type": "array", + "description": "WCKeys", + "items": { + "type": "object", + "properties": { + "accounting": { + "type": "array", + "description": "Accounting records containing related resource usage", + "items": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of cpu seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started" + }, + "TRES": { + "type": "object", + "description": "Trackable resources", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + ] + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID for this user-cluster-wckey combination" + }, + "name": { + "type": "string", + "description": "WCKey name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "flags": { + "type": "array", + "description": "Flags associated with the WCKey", + "items": { + "enum": [ + "DELETED" + ], + "type": "string" + } + } + }, + "required": [ + "cluster", + "name", + "user" + ] + } + }, + "associations": { + "type": "array", + "description": "Associations", + "items": { + "type": "object", + "properties": { + "accounting": { + "type": "array", + "description": "Accounting records containing related resource usage", + "items": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of cpu seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started" + }, + "TRES": { + "type": "object", + "description": "Trackable resources", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + ] + } + }, + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "default": { + "type": "object", + "properties": { + "qos": { + "type": "string", + "description": "Default QOS" + } + } + }, + "flags": { + "type": "array", + "description": "Flags on the association", + "items": { + "enum": [ + "DELETED", + "NoUpdate", + "Exact", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + }, + "max": { + "type": "object", + "properties": { + "jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "count": { + "type": "object", + "description": "GrpJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "accruing": { + "type": "object", + "description": "GrpJobsAccrue", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "submitted": { + "type": "object", + "description": "GrpSubmitJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "wall_clock": { + "type": "object", + "description": "MaxWallDurationPerJob", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "active": { + "type": "object", + "description": "MaxJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "accruing": { + "type": "object", + "description": "MaxJobsAccrue", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "total": { + "type": "object", + "description": "MaxSubmitJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "type": "array", + "description": "GrpTRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "group": { + "type": "object", + "properties": { + "minutes": { + "type": "array", + "description": "GrpTRESMins", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "active": { + "type": "array", + "description": "GrpTRESRunMins", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "type": "array", + "description": "MaxTRESMinsPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "per": { + "type": "object", + "properties": { + "job": { + "type": "array", + "description": "MaxTRESMinsPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "job": { + "type": "array", + "description": "MaxTRESPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "node": { + "type": "array", + "description": "MaxTRESPerNode", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "properties": { + "wall_clock": { + "type": "object", + "description": "GrpWall", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "is_default": { + "type": "boolean", + "description": "Is default association for user" + }, + "lineage": { + "type": "string", + "description": "Complete path up the hierarchy to the root association" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "type": "object", + "description": "MinPrioThreshold", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "parent_account": { + "type": "string", + "description": "Name of parent account" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "type": "object", + "description": "Association priority factor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "qos": { + "type": "array", + "description": "List of available QOS names", + "items": { + "type": "string", + "description": "List of QOS names" + } + }, + "shares_raw": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + }, + "user": { + "type": "string", + "description": "User name" + } + }, + "required": [ + "user" + ] + } + }, + "instances": { + "type": "array", + "description": "Instances", + "items": { + "type": "object", + "properties": { + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "node_name": { + "type": "string", + "description": "NodeName" + }, + "time": { + "type": "object", + "properties": { + "time_end": { + "type": "integer", + "format": "int64", + "description": "When the instance will end (UNIX timestamp)" + }, + "time_start": { + "type": "integer", + "format": "int64", + "description": "When the instance will start (UNIX timestamp)" + } + } + } + }, + "required": [ + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_slurmdbd_config_resp": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.44_cluster_rec_list", + "description": "Clusters" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "TRES" + }, + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.44_account_list", + "description": "Accounts" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.44_user_list", + "description": "Users" + }, + "qos": { + "$ref": "#\/components\/schemas\/v0.0.44_qos_list", + "description": "QOS" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.44_wckey_list", + "description": "WCKeys" + }, + "associations": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_list", + "description": "Associations" + }, + "instances": { + "$ref": "#\/components\/schemas\/v0.0.44_instance_list", + "deprecated": true + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.44_cluster_rec_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_cluster_rec" + } + }, + "v0.0.44_cluster_rec": { + "type": "object", + "properties": { + "controller": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "ControlHost" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "ControlPort" + } + } + }, + "flags": { + "type": "array", + "description": "Flags", + "items": { + "enum": [ + "DELETED", + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "ClusterName" + }, + "nodes": { + "type": "string", + "description": "Node names" + }, + "select_plugin": { + "type": "string", + "deprecated": true + }, + "associations": { + "type": "object", + "properties": { + "root": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_short", + "description": "Root association information" + } + } + }, + "rpc_version": { + "type": "integer", + "format": "int32", + "description": "RPC version used in the cluster" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Trackable resources" + } + }, + "required": [ + ] + }, + "v0.0.44_account_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_account" + } + }, + "v0.0.44_account": { + "type": "object", + "properties": { + "associations": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_short_list", + "description": "Associations involving this account (only populated if requested)" + }, + "coordinators": { + "$ref": "#\/components\/schemas\/v0.0.44_coord_list", + "description": "List of users that are a coordinator of this account (only populated if requested)" + }, + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "name": { + "type": "string", + "description": "Account name" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + }, + "flags": { + "type": "array", + "description": "Flags associated with this account", + "items": { + "enum": [ + "DELETED", + "WithAssociations", + "WithCoordinators", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + } + }, + "required": [ + "description", + "name", + "organization" + ] + }, + "v0.0.44_assoc_short_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_short" + } + }, + "v0.0.44_coord_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_coord" + } + }, + "v0.0.44_coord": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User name" + }, + "direct": { + "type": "boolean", + "description": "Indicates whether the coordinator was directly assigned to this account" + } + }, + "required": [ + "name" + ] + }, + "v0.0.44_user_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_user" + } + }, + "v0.0.44_user": { + "type": "object", + "properties": { + "administrator_level": { + "type": "array", + "description": "AdminLevel granted to the user", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "associations": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_short_list", + "description": "Associations created for this user" + }, + "coordinators": { + "$ref": "#\/components\/schemas\/v0.0.44_coord_list", + "description": "Accounts this user is a coordinator for" + }, + "default": { + "type": "object", + "properties": { + "qos": { + "type": "integer", + "format": "int32", + "description": "Default QOS" + }, + "account": { + "type": "string", + "description": "Default account" + }, + "wckey": { + "type": "string", + "description": "Default WCKey" + } + } + }, + "flags": { + "type": "array", + "description": "Flags associated with this user", + "items": { + "enum": [ + "NONE", + "DELETED" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "User name" + }, + "old_name": { + "type": "string", + "description": "Previous user name" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.44_wckey_list", + "description": "List of available WCKeys" + } + }, + "required": [ + "name" + ] + }, + "v0.0.44_wckey_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_wckey" + } + }, + "v0.0.44_wckey": { + "type": "object", + "properties": { + "accounting": { + "$ref": "#\/components\/schemas\/v0.0.44_accounting_list", + "description": "Accounting records containing related resource usage" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID for this user-cluster-wckey combination" + }, + "name": { + "type": "string", + "description": "WCKey name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "flags": { + "type": "array", + "description": "Flags associated with this WCKey", + "items": { + "enum": [ + "DELETED" + ], + "type": "string" + } + } + }, + "required": [ + "cluster", + "name", + "user" + ] + }, + "v0.0.44_accounting_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_accounting" + } + }, + "v0.0.44_accounting": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "id_alt": { + "type": "integer", + "format": "int32", + "description": "Alternate ID (not currently used)" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "TRES": { + "$ref": "#\/components\/schemas\/v0.0.44_tres", + "description": "Trackable resources" + } + }, + "required": [ + ] + }, + "v0.0.44_qos_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_qos" + } + }, + "v0.0.44_qos": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary description" + }, + "flags": { + "type": "array", + "description": "Flags, to avoid modifying current values specify NOT_SET", + "items": { + "enum": [ + "NOT_SET", + "ADD", + "REMOVE", + "DELETED", + "PARTITION_MINIMUM_NODE", + "PARTITION_MAXIMUM_NODE", + "PARTITION_TIME_LIMIT", + "ENFORCE_USAGE_THRESHOLD", + "NO_RESERVE", + "REQUIRED_RESERVATION", + "DENY_LIMIT", + "OVERRIDE_PARTITION_QOS", + "PARTITION_QOS", + "NO_DECAY", + "USAGE_FACTOR_SAFE", + "RELATIVE" + ], + "type": "string" + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "limits": { + "type": "object", + "properties": { + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime - Preemption grace time in seconds to be extended to a job which has been selected for preemption" + }, + "max": { + "type": "object", + "properties": { + "active_jobs": { + "type": "object", + "properties": { + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpJobsAccrue - Maximum number of pending jobs able to accrue age priority (32 bit integer number with flags)" + }, + "count": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpJobs - Maximum number of running jobs (32 bit integer number with flags)" + } + } + }, + "jobs": { + "type": "object", + "properties": { + "count": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpSubmitJobs - Maximum number of jobs in a pending or running state at any time (32 bit integer number with flags)" + }, + "active_jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobsPerAccount - Maximum number of running jobs per account (32 bit integer number with flags)" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobsPerUser - Maximum number of running jobs per user (32 bit integer number with flags)" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxSubmitJobsPerAccount - Maximum number of jobs in a pending or running state per account (32 bit integer number with flags)" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxSubmitJobsPerUser - Maximum number of jobs in a pending or running state per user (32 bit integer number with flags)" + } + } + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRES - Maximum number of TRES able to be allocated by running jobs" + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRESMins - Maximum number of TRES minutes that can possibly be used by past, present, and future jobs" + }, + "per": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRESRunMins - Maximum number of TRES minutes able to be allocated by running jobs" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESMinsPerJob - Maximum number of TRES minutes each job can use" + }, + "account": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESRunMinsPerAccount - Maximum number of TRES minutes each account can use" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESRunMinsPerUser - Maximum number of TRES minutes each user can use" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerAccount - Maximum number of TRES each account can use" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerJob - Maximum number of TRES each job can use" + }, + "node": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerNode - Maximum number of TRES each node in a job allocation can use" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerUser - Maximum number of TRES each user can use" + } + } + } + } + }, + "wall_clock": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpWall - Maximum wall clock time in minutes able to be allocated by running jobs (32 bit integer number with flags)" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxWallDurationPerJob - Maximum wall clock time in minutes each job can use (32 bit integer number with flags)" + } + } + } + } + }, + "accruing": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobsAccruePerAccount - Maximum number of pending jobs an account (or subacct) can have accruing age priority (32 bit integer number with flags)" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobsAccruePerUser - Maximum number of pending jobs a user can have accruing age priority (32 bit integer number with flags)" + } + } + } + } + } + } + }, + "factor": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "LimitFactor - A float that is factored into an association's [Grp|Max]TRES limits (64 bit floating point number with flags)" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MinPrioThreshold - Minimum priority required to reserve resources when scheduling (32 bit integer number with flags)" + }, + "tres": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MinTRESPerJob - Minimum number of TRES each job running under this QOS must request" + } + } + } + } + } + } + } + } + }, + "name": { + "type": "string", + "description": "Name" + }, + "preempt": { + "type": "object", + "properties": { + "list": { + "$ref": "#\/components\/schemas\/v0.0.44_qos_preempt_list", + "description": "Other QOS's this QOS can preempt" + }, + "mode": { + "type": "array", + "description": "PreemptMode - Mechanism used to preempt jobs or enable gang scheduling", + "items": { + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ], + "type": "string" + } + }, + "exempt_time": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "PreemptExemptTime - Specifies a minimum run time for jobs before they are considered for preemption (32 bit integer number with flags)" + } + } + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Priority - QOS priority factor (32 bit integer number with flags)" + }, + "usage_factor": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "UsageFactor - A float that is factored into a job's TRES usage (64 bit floating point number with flags)" + }, + "usage_threshold": { + "$ref": "#\/components\/schemas\/v0.0.44_float64_no_val_struct", + "description": "UsageThreshold - A float representing the lowest fairshare of an association allowed to run a job (64 bit floating point number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.44_qos_preempt_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.44_assoc_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc" + } + }, + "v0.0.44_assoc": { + "type": "object", + "properties": { + "accounting": { + "$ref": "#\/components\/schemas\/v0.0.44_accounting_list", + "description": "Accounting records containing related resource usage" + }, + "account": { + "type": "string", + "description": "Account name" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "default": { + "type": "object", + "properties": { + "qos": { + "type": "string", + "description": "Default QOS" + } + } + }, + "flags": { + "type": "array", + "description": "Flags on the association", + "items": { + "enum": [ + "DELETED", + "NoUpdate", + "Exact", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + }, + "max": { + "type": "object", + "properties": { + "jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "count": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpJobs - Maximum number of running jobs in this association and its children (32 bit integer number with flags)" + }, + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpJobsAccrue - Maximum number of pending jobs able to accrue age priority in this association and its children (32 bit integer number with flags)" + }, + "submitted": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association and its children (32 bit integer number with flags)" + }, + "wall_clock": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxWallDurationPerJob - Maximum wall clock time in minutes each job can use in this association (32 bit integer number with flags)" + } + } + }, + "active": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobs - Maximum number of running jobs per user in this association (32 bit integer number with flags)" + }, + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobsAccrue - Maximum number of pending jobs able to accrue age priority at any given time in this association (32 bit integer number with flags)" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association (32 bit integer number with flags)" + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRES - Maximum number of TRES able to be allocated by running jobs in this association and its children" + }, + "group": { + "type": "object", + "properties": { + "minutes": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRESMins - Maximum number of TRES minutes that can possibly be used by past, present, and future jobs in this association and its children" + }, + "active": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRESRunMins - Maximum number of TRES minutes able to be allocated by running jobs in this association and its children" + } + } + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Not implemented" + }, + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESMinsPerJob - Maximum number of TRES minutes each job can use in this association" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerJob - Maximum number of TRES each job can use in this association" + }, + "node": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerNode - Maximum number of TRES each node in a job allocation can use in this association" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "properties": { + "wall_clock": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpWall - Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children (32 bit integer number with flags)" + } + } + } + } + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID (Association ID)" + }, + "is_default": { + "type": "boolean", + "description": "Is default association for user" + }, + "lineage": { + "type": "string", + "description": "Complete path up the hierarchy to the root association" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MinPrioThreshold - Minimum priority required to reserve resources when scheduling (32 bit integer number with flags)" + } + } + }, + "parent_account": { + "type": "string", + "description": "Name of parent account" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Association priority factor (32 bit integer number with flags)" + }, + "qos": { + "$ref": "#\/components\/schemas\/v0.0.44_qos_string_id_list", + "description": "List of available QOS names (List of QOS names)" + }, + "shares_raw": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + }, + "user": { + "type": "string", + "description": "User name" + } + }, + "required": [ + "user" + ] + }, + "v0.0.44_qos_string_id_list": { + "type": "array", + "description": "List of QOS names", + "items": { + "type": "string" + } + }, + "v0.0.44_instance_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_instance" + } + }, + "v0.0.44_instance": { + "type": "object", + "properties": { + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "node_name": { + "type": "string", + "description": "NodeName" + }, + "time": { + "type": "object", + "properties": { + "time_end": { + "type": "integer", + "format": "int64", + "description": "When the instance will end (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "time_start": { + "type": "integer", + "format": "int64", + "description": "When the instance will start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + } + } + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_slurmdbd_config_resp": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.42_cluster_rec_list", + "description": "Clusters" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "TRES" + }, + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.42_account_list", + "description": "Accounts" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.42_user_list", + "description": "Users" + }, + "qos": { + "$ref": "#\/components\/schemas\/v0.0.42_qos_list", + "description": "QOS" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.42_wckey_list", + "description": "WCKeys" + }, + "associations": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_list", + "description": "Associations" + }, + "instances": { + "$ref": "#\/components\/schemas\/v0.0.42_instance_list", + "description": "Instances" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.42_cluster_rec_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_cluster_rec" + } + }, + "v0.0.42_cluster_rec": { + "type": "object", + "properties": { + "controller": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "ControlHost" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "ControlPort" + } + } + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_cluster_rec_flags", + "description": "Flags" + }, + "name": { + "type": "string", + "description": "ClusterName" + }, + "nodes": { + "type": "string", + "description": "Node names" + }, + "select_plugin": { + "type": "string", + "deprecated": true + }, + "associations": { + "type": "object", + "properties": { + "root": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_short", + "description": "Root association information" + } + } + }, + "rpc_version": { + "type": "integer", + "format": "int32", + "description": "RPC version used in the cluster" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Trackable resources" + } + }, + "required": [ + ] + }, + "v0.0.42_cluster_rec_flags": { + "type": "array", + "items": { + "enum": [ + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ], + "type": "string" + } + }, + "v0.0.42_account_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_account" + } + }, + "v0.0.42_account": { + "type": "object", + "properties": { + "associations": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_short_list", + "description": "Associations involving this account (only populated if requested)" + }, + "coordinators": { + "$ref": "#\/components\/schemas\/v0.0.42_coord_list", + "description": "List of users that are a coordinator of this account (only populated if requested)" + }, + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "name": { + "type": "string", + "description": "Account name" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_account_flags", + "description": "Flags associated with this account" + } + }, + "required": [ + "description", + "name", + "organization" + ] + }, + "v0.0.42_assoc_short_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_short" + } + }, + "v0.0.42_coord_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_coord" + } + }, + "v0.0.42_coord": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User name" + }, + "direct": { + "type": "boolean", + "description": "Indicates whether the coordinator was directly assigned to this account" + } + }, + "required": [ + "name" + ] + }, + "v0.0.42_account_flags": { + "type": "array", + "items": { + "enum": [ + "DELETED", + "WithAssociations", + "WithCoordinators", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + }, + "v0.0.42_user_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_user" + } + }, + "v0.0.42_user": { + "type": "object", + "properties": { + "administrator_level": { + "$ref": "#\/components\/schemas\/v0.0.42_admin_lvl", + "description": "AdminLevel granted to the user" + }, + "associations": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_short_list", + "description": "Associations created for this user" + }, + "coordinators": { + "$ref": "#\/components\/schemas\/v0.0.42_coord_list", + "description": "Accounts this user is a coordinator for" + }, + "default": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Default account" + }, + "wckey": { + "type": "string", + "description": "Default WCKey" + } + } + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_user_flags", + "description": "Flags associated with this user" + }, + "name": { + "type": "string", + "description": "User name" + }, + "old_name": { + "type": "string", + "description": "Previous user name" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.42_wckey_list", + "description": "List of available WCKeys" + } + }, + "required": [ + "name" + ] + }, + "v0.0.42_admin_lvl": { + "type": "array", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "v0.0.42_user_flags": { + "type": "array", + "items": { + "enum": [ + "NONE", + "DELETED" + ], + "type": "string" + } + }, + "v0.0.42_wckey_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_wckey" + } + }, + "v0.0.42_wckey": { + "type": "object", + "properties": { + "accounting": { + "$ref": "#\/components\/schemas\/v0.0.42_accounting_list", + "description": "Accounting records containing related resource usage" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID for this user-cluster-wckey combination" + }, + "name": { + "type": "string", + "description": "WCKey name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_wckey_flags", + "description": "Flags associated with this WCKey" + } + }, + "required": [ + "cluster", + "name", + "user" + ] + }, + "v0.0.42_accounting_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_accounting" + } + }, + "v0.0.42_accounting": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "id_alt": { + "type": "integer", + "format": "int32", + "description": "Alternate ID (not currently used)" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started (UNIX timestamp)" + }, + "TRES": { + "$ref": "#\/components\/schemas\/v0.0.42_tres", + "description": "Trackable resources" + } + }, + "required": [ + ] + }, + "v0.0.42_wckey_flags": { + "type": "array", + "items": { + "enum": [ + "DELETED" + ], + "type": "string" + } + }, + "v0.0.42_qos_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_qos" + } + }, + "v0.0.42_qos": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary description" + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_qos_flags", + "description": "Flags, to avoid modifying current values specify NOT_SET" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "limits": { + "type": "object", + "properties": { + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime" + }, + "max": { + "type": "object", + "properties": { + "active_jobs": { + "type": "object", + "properties": { + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpJobsAccrue" + }, + "count": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpJobs" + } + } + }, + "jobs": { + "type": "object", + "properties": { + "count": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpSubmitJobs" + }, + "active_jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxJobsPerAccount" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxJobsPerUser" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxSubmitJobsPerAccount" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxSubmitJobsPerUser" + } + } + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "GrpTRES" + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "GrpTRESMins" + }, + "per": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "GrpTRESRunMins" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESMinsPerJob" + }, + "account": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESRunMinsPerAccount" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESRunMinsPerUser" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESPerAccount" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESPerJob" + }, + "node": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESPerNode" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESPerUser" + } + } + } + } + }, + "wall_clock": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpWall" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxWallDurationPerJob" + } + } + } + } + }, + "accruing": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxJobsAccruePerAccount" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxJobsAccruePerUser" + } + } + } + } + } + } + }, + "factor": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "LimitFactor" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MinPrioThreshold" + }, + "tres": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MinTRES" + } + } + } + } + } + } + } + } + }, + "name": { + "type": "string", + "description": "Name" + }, + "preempt": { + "type": "object", + "properties": { + "list": { + "$ref": "#\/components\/schemas\/v0.0.42_qos_preempt_list", + "description": "Other QOS's this QOS can preempt" + }, + "mode": { + "$ref": "#\/components\/schemas\/v0.0.42_qos_preempt_modes", + "description": "PreemptMode" + }, + "exempt_time": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "PreemptExemptTime" + } + } + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Priority" + }, + "usage_factor": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "UsageFactor" + }, + "usage_threshold": { + "$ref": "#\/components\/schemas\/v0.0.42_float64_no_val_struct", + "description": "UsageThreshold" + } + }, + "required": [ + ] + }, + "v0.0.42_qos_flags": { + "type": "array", + "items": { + "enum": [ + "NOT_SET", + "ADD", + "REMOVE", + "PARTITION_MINIMUM_NODE", + "PARTITION_MAXIMUM_NODE", + "PARTITION_TIME_LIMIT", + "ENFORCE_USAGE_THRESHOLD", + "NO_RESERVE", + "REQUIRED_RESERVATION", + "DENY_LIMIT", + "OVERRIDE_PARTITION_QOS", + "NO_DECAY", + "USAGE_FACTOR_SAFE", + "RELATIVE" + ], + "type": "string" + } + }, + "v0.0.42_qos_preempt_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.42_qos_preempt_modes": { + "type": "array", + "items": { + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ], + "type": "string" + } + }, + "v0.0.42_assoc_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc" + } + }, + "v0.0.42_assoc": { + "type": "object", + "properties": { + "accounting": { + "$ref": "#\/components\/schemas\/v0.0.42_accounting_list", + "description": "Accounting records containing related resource usage" + }, + "account": { + "type": "string", + "description": "Account name" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "default": { + "type": "object", + "properties": { + "qos": { + "type": "string", + "description": "Default QOS" + } + } + }, + "flags": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_flags", + "description": "Flags on the association" + }, + "max": { + "type": "object", + "properties": { + "jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "count": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpJobs" + }, + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpJobsAccrue" + }, + "submitted": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpSubmitJobs" + }, + "wall_clock": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxWallDurationPerJob" + } + } + }, + "active": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxJobs" + }, + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxJobsAccrue" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MaxSubmitJobs" + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "GrpTRES" + }, + "group": { + "type": "object", + "properties": { + "minutes": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "GrpTRESMins" + }, + "active": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "GrpTRESRunMins" + } + } + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESMinsPerJob" + }, + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESMinsPerJob" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESPerJob" + }, + "node": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "MaxTRESPerNode" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "properties": { + "wall_clock": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "GrpWall" + } + } + } + } + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "is_default": { + "type": "boolean", + "description": "Is default association for user" + }, + "lineage": { + "type": "string", + "description": "Complete path up the hierarchy to the root association" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "MinPrioThreshold" + } + } + }, + "parent_account": { + "type": "string", + "description": "Name of parent account" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Association priority factor" + }, + "qos": { + "$ref": "#\/components\/schemas\/v0.0.42_qos_string_id_list", + "description": "List of available QOS names" + }, + "shares_raw": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + }, + "user": { + "type": "string", + "description": "User name" + } + }, + "required": [ + "user" + ] + }, + "v0.0.42_assoc_flags": { + "type": "array", + "items": { + "enum": [ + "DELETED", + "NoUpdate", + "Exact", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + }, + "v0.0.42_qos_string_id_list": { + "type": "array", + "description": "List of QOS names", + "items": { + "type": "string", + "description": "List of QOS names" + } + }, + "v0.0.42_instance_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_instance" + } + }, + "v0.0.42_instance": { + "type": "object", + "properties": { + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "node_name": { + "type": "string", + "description": "NodeName" + }, + "time": { + "type": "object", + "properties": { + "time_end": { + "type": "integer", + "format": "int64", + "description": "When the instance will end (UNIX timestamp)" + }, + "time_start": { + "type": "integer", + "format": "int64", + "description": "When the instance will start (UNIX timestamp)" + } + } + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_slurmdbd_config_resp": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.43_cluster_rec_list", + "description": "Clusters" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "TRES" + }, + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.43_account_list", + "description": "Accounts" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.43_user_list", + "description": "Users" + }, + "qos": { + "$ref": "#\/components\/schemas\/v0.0.43_qos_list", + "description": "QOS" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.43_wckey_list", + "description": "WCKeys" + }, + "associations": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_list", + "description": "Associations" + }, + "instances": { + "$ref": "#\/components\/schemas\/v0.0.43_instance_list", + "deprecated": true + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.43_cluster_rec_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_cluster_rec" + } + }, + "v0.0.43_cluster_rec": { + "type": "object", + "properties": { + "controller": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "ControlHost" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "ControlPort" + } + } + }, + "flags": { + "type": "array", + "description": "Flags", + "items": { + "enum": [ + "DELETED", + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "ClusterName" + }, + "nodes": { + "type": "string", + "description": "Node names" + }, + "select_plugin": { + "type": "string", + "deprecated": true + }, + "associations": { + "type": "object", + "properties": { + "root": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_short", + "description": "Root association information" + } + } + }, + "rpc_version": { + "type": "integer", + "format": "int32", + "description": "RPC version used in the cluster" + }, + "tres": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Trackable resources" + } + }, + "required": [ + ] + }, + "v0.0.43_account_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_account" + } + }, + "v0.0.43_account": { + "type": "object", + "properties": { + "associations": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_short_list", + "description": "Associations involving this account (only populated if requested)" + }, + "coordinators": { + "$ref": "#\/components\/schemas\/v0.0.43_coord_list", + "description": "List of users that are a coordinator of this account (only populated if requested)" + }, + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "name": { + "type": "string", + "description": "Account name" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + }, + "flags": { + "type": "array", + "description": "Flags associated with this account", + "items": { + "enum": [ + "DELETED", + "WithAssociations", + "WithCoordinators", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + } + }, + "required": [ + "description", + "name", + "organization" + ] + }, + "v0.0.43_assoc_short_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_short" + } + }, + "v0.0.43_coord_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_coord" + } + }, + "v0.0.43_coord": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User name" + }, + "direct": { + "type": "boolean", + "description": "Indicates whether the coordinator was directly assigned to this account" + } + }, + "required": [ + "name" + ] + }, + "v0.0.43_user_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_user" + } + }, + "v0.0.43_user": { + "type": "object", + "properties": { + "administrator_level": { + "type": "array", + "description": "AdminLevel granted to the user", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "associations": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_short_list", + "description": "Associations created for this user" + }, + "coordinators": { + "$ref": "#\/components\/schemas\/v0.0.43_coord_list", + "description": "Accounts this user is a coordinator for" + }, + "default": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Default account" + }, + "wckey": { + "type": "string", + "description": "Default WCKey" + } + } + }, + "flags": { + "type": "array", + "description": "Flags associated with this user", + "items": { + "enum": [ + "NONE", + "DELETED" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "User name" + }, + "old_name": { + "type": "string", + "description": "Previous user name" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.43_wckey_list", + "description": "List of available WCKeys" + } + }, + "required": [ + "name" + ] + }, + "v0.0.43_wckey_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_wckey" + } + }, + "v0.0.43_wckey": { + "type": "object", + "properties": { + "accounting": { + "$ref": "#\/components\/schemas\/v0.0.43_accounting_list", + "description": "Accounting records containing related resource usage" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID for this user-cluster-wckey combination" + }, + "name": { + "type": "string", + "description": "WCKey name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "flags": { + "type": "array", + "description": "Flags associated with this WCKey", + "items": { + "enum": [ + "DELETED" + ], + "type": "string" + } + } + }, + "required": [ + "cluster", + "name", + "user" + ] + }, + "v0.0.43_accounting_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_accounting" + } + }, + "v0.0.43_accounting": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "id_alt": { + "type": "integer", + "format": "int32", + "description": "Alternate ID (not currently used)" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "TRES": { + "$ref": "#\/components\/schemas\/v0.0.43_tres", + "description": "Trackable resources" + } + }, + "required": [ + ] + }, + "v0.0.43_qos_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_qos" + } + }, + "v0.0.43_qos": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary description" + }, + "flags": { + "type": "array", + "description": "Flags, to avoid modifying current values specify NOT_SET", + "items": { + "enum": [ + "NOT_SET", + "ADD", + "REMOVE", + "DELETED", + "PARTITION_MINIMUM_NODE", + "PARTITION_MAXIMUM_NODE", + "PARTITION_TIME_LIMIT", + "ENFORCE_USAGE_THRESHOLD", + "NO_RESERVE", + "REQUIRED_RESERVATION", + "DENY_LIMIT", + "OVERRIDE_PARTITION_QOS", + "PARTITION_QOS", + "NO_DECAY", + "USAGE_FACTOR_SAFE", + "RELATIVE" + ], + "type": "string" + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "limits": { + "type": "object", + "properties": { + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime - Preemption grace time in seconds to be extended to a job which has been selected for preemption" + }, + "max": { + "type": "object", + "properties": { + "active_jobs": { + "type": "object", + "properties": { + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpJobsAccrue - Maximum number of pending jobs able to accrue age priority (32 bit integer number with flags)" + }, + "count": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpJobs - Maximum number of running jobs (32 bit integer number with flags)" + } + } + }, + "jobs": { + "type": "object", + "properties": { + "count": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpSubmitJobs - Maximum number of jobs in a pending or running state at any time (32 bit integer number with flags)" + }, + "active_jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobsPerAccount - Maximum number of running jobs per account (32 bit integer number with flags)" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobsPerUser - Maximum number of running jobs per user (32 bit integer number with flags)" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxSubmitJobsPerAccount - Maximum number of jobs in a pending or running state per account (32 bit integer number with flags)" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxSubmitJobsPerUser - Maximum number of jobs in a pending or running state per user (32 bit integer number with flags)" + } + } + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRES - Maximum number of TRES able to be allocated by running jobs" + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRESMins - Maximum number of TRES minutes that can possibly be used by past, present, and future jobs" + }, + "per": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRESRunMins - Maximum number of TRES minutes able to be allocated by running jobs" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESMinsPerJob - Maximum number of TRES minutes each job can use" + }, + "account": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESRunMinsPerAccount - Maximum number of TRES minutes each account can use" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESRunMinsPerUser - Maximum number of TRES minutes each user can use" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerAccount - Maximum number of TRES each account can use" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerJob - Maximum number of TRES each job can use" + }, + "node": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerNode - Maximum number of TRES each node in a job allocation can use" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerUser - Maximum number of TRES each user can use" + } + } + } + } + }, + "wall_clock": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpWall - Maximum wall clock time in minutes able to be allocated by running jobs (32 bit integer number with flags)" + }, + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxWallDurationPerJob - Maximum wall clock time in minutes each job can use (32 bit integer number with flags)" + } + } + } + } + }, + "accruing": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobsAccruePerAccount - Maximum number of pending jobs an account (or subacct) can have accruing age priority (32 bit integer number with flags)" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobsAccruePerUser - Maximum number of pending jobs a user can have accruing age priority (32 bit integer number with flags)" + } + } + } + } + } + } + }, + "factor": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "LimitFactor - A float that is factored into an association's [Grp|Max]TRES limits (64 bit floating point number with flags)" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MinPrioThreshold - Minimum priority required to reserve resources when scheduling (32 bit integer number with flags)" + }, + "tres": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MinTRESPerJob - Minimum number of TRES each job running under this QOS must request" + } + } + } + } + } + } + } + } + }, + "name": { + "type": "string", + "description": "Name" + }, + "preempt": { + "type": "object", + "properties": { + "list": { + "$ref": "#\/components\/schemas\/v0.0.43_qos_preempt_list", + "description": "Other QOS's this QOS can preempt" + }, + "mode": { + "type": "array", + "description": "PreemptMode - Mechanism used to preempt jobs or enable gang scheduling", + "items": { + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ], + "type": "string" + } + }, + "exempt_time": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "PreemptExemptTime - Specifies a minimum run time for jobs before they are considered for preemption (32 bit integer number with flags)" + } + } + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Priority - QOS priority factor (32 bit integer number with flags)" + }, + "usage_factor": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "UsageFactor - A float that is factored into a job's TRES usage (64 bit floating point number with flags)" + }, + "usage_threshold": { + "$ref": "#\/components\/schemas\/v0.0.43_float64_no_val_struct", + "description": "UsageThreshold - A float representing the lowest fairshare of an association allowed to run a job (64 bit floating point number with flags)" + } + }, + "required": [ + ] + }, + "v0.0.43_qos_preempt_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_assoc_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc" + } + }, + "v0.0.43_assoc": { + "type": "object", + "properties": { + "accounting": { + "$ref": "#\/components\/schemas\/v0.0.43_accounting_list", + "description": "Accounting records containing related resource usage" + }, + "account": { + "type": "string", + "description": "Account name" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "default": { + "type": "object", + "properties": { + "qos": { + "type": "string", + "description": "Default QOS" + } + } + }, + "flags": { + "type": "array", + "description": "Flags on the association", + "items": { + "enum": [ + "DELETED", + "NoUpdate", + "Exact", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + }, + "max": { + "type": "object", + "properties": { + "jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "count": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpJobs - Maximum number of running jobs in this association and its children (32 bit integer number with flags)" + }, + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpJobsAccrue - Maximum number of pending jobs able to accrue age priority in this association and its children (32 bit integer number with flags)" + }, + "submitted": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association and its children (32 bit integer number with flags)" + }, + "wall_clock": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxWallDurationPerJob - Maximum wall clock time in minutes each job can use in this association (32 bit integer number with flags)" + } + } + }, + "active": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobs - Maximum number of running jobs per user in this association (32 bit integer number with flags)" + }, + "accruing": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobsAccrue - Maximum number of pending jobs able to accrue age priority at any given time in this association (32 bit integer number with flags)" + }, + "total": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association (32 bit integer number with flags)" + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRES - Maximum number of TRES able to be allocated by running jobs in this association and its children" + }, + "group": { + "type": "object", + "properties": { + "minutes": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRESMins - Maximum number of TRES minutes that can possibly be used by past, present, and future jobs in this association and its children" + }, + "active": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRESRunMins - Maximum number of TRES minutes able to be allocated by running jobs in this association and its children" + } + } + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Not implemented" + }, + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESMinsPerJob - Maximum number of TRES minutes each job can use in this association" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "job": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerJob - Maximum number of TRES each job can use in this association" + }, + "node": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerNode - Maximum number of TRES each node in a job allocation can use in this association" + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "properties": { + "wall_clock": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpWall - Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children (32 bit integer number with flags)" + } + } + } + } + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID (Association ID)" + }, + "is_default": { + "type": "boolean", + "description": "Is default association for user" + }, + "lineage": { + "type": "string", + "description": "Complete path up the hierarchy to the root association" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MinPrioThreshold - Minimum priority required to reserve resources when scheduling (32 bit integer number with flags)" + } + } + }, + "parent_account": { + "type": "string", + "description": "Name of parent account" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Association priority factor (32 bit integer number with flags)" + }, + "qos": { + "$ref": "#\/components\/schemas\/v0.0.43_qos_string_id_list", + "description": "List of available QOS names (List of QOS names)" + }, + "shares_raw": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + }, + "user": { + "type": "string", + "description": "User name" + } + }, + "required": [ + "user" + ] + }, + "v0.0.43_qos_string_id_list": { + "type": "array", + "description": "List of QOS names", + "items": { + "type": "string" + } + }, + "v0.0.43_instance_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_instance" + } + }, + "v0.0.43_instance": { + "type": "object", + "properties": { + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "node_name": { + "type": "string", + "description": "NodeName" + }, + "time": { + "type": "object", + "properties": { + "time_end": { + "type": "integer", + "format": "int64", + "description": "When the instance will end (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "time_start": { + "type": "integer", + "format": "int64", + "description": "When the instance will start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + } + } + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_tres_resp": { + "type": "object", + "properties": { + "TRES": { + "type": "array", + "description": "TRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "TRES" + ] + }, + "v0.0.44_openapi_tres_resp": { + "type": "object", + "properties": { + "TRES": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "TRES" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "TRES" + ] + }, + "v0.0.42_openapi_tres_resp": { + "type": "object", + "properties": { + "TRES": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "TRES" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "TRES" + ] + }, + "v0.0.43_openapi_tres_resp": { + "type": "object", + "properties": { + "TRES": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "TRES" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "TRES" + ] + }, + "v0.0.41_openapi_slurmdbd_qos_resp": { + "type": "object", + "properties": { + "qos": { + "type": "array", + "description": "List of QOS", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary description" + }, + "flags": { + "type": "array", + "description": "Flags, to avoid modifying current values specify NOT_SET", + "items": { + "enum": [ + "NOT_SET", + "ADD", + "REMOVE", + "PARTITION_MINIMUM_NODE", + "PARTITION_MAXIMUM_NODE", + "PARTITION_TIME_LIMIT", + "ENFORCE_USAGE_THRESHOLD", + "NO_RESERVE", + "REQUIRED_RESERVATION", + "DENY_LIMIT", + "OVERRIDE_PARTITION_QOS", + "NO_DECAY", + "USAGE_FACTOR_SAFE", + "RELATIVE" + ], + "type": "string" + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "limits": { + "type": "object", + "properties": { + "grace_time": { + "type": "integer", + "format": "int32", + "description": "GraceTime" + }, + "max": { + "type": "object", + "properties": { + "active_jobs": { + "type": "object", + "properties": { + "accruing": { + "type": "object", + "description": "GrpJobsAccrue", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "count": { + "type": "object", + "description": "GrpJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "type": "array", + "description": "GrpTRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "minutes": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "qos": { + "type": "array", + "description": "GrpTRESRunMins", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "job": { + "type": "array", + "description": "MaxTRESMinsPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "account": { + "type": "array", + "description": "MaxTRESRunMinsPerAccount", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "user": { + "type": "array", + "description": "MaxTRESRunMinsPerUser", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "array", + "description": "MaxTRESPerAccount", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "job": { + "type": "array", + "description": "MaxTRESPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "node": { + "type": "array", + "description": "MaxTRESPerNode", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "user": { + "type": "array", + "description": "MaxTRESPerUser", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "wall_clock": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "qos": { + "type": "object", + "description": "GrpWall", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "job": { + "type": "object", + "description": "MaxWallDurationPerJob", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + }, + "jobs": { + "type": "object", + "properties": { + "active_jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "description": "MaxJobsPerAccount", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "user": { + "type": "object", + "description": "MaxJobsPerUser", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "description": "MaxSubmitJobsPerAccount", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "user": { + "type": "object", + "description": "MaxSubmitJobsPerUser", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + }, + "accruing": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "description": "MaxJobsAccruePerAccount", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "user": { + "type": "object", + "description": "MaxJobsAccruePerUser", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + } + } + }, + "factor": { + "type": "object", + "description": "LimitFactor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "type": "object", + "description": "MinPrioThreshold", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "tres": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "job": { + "type": "array", + "description": "MinTRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + } + } + } + } + }, + "name": { + "type": "string", + "description": "Name" + }, + "preempt": { + "type": "object", + "properties": { + "list": { + "type": "array", + "description": "Other QOS's this QOS can preempt", + "items": { + "type": "string" + } + }, + "mode": { + "type": "array", + "description": "PreemptMode", + "items": { + "enum": [ + "DISABLED", + "SUSPEND", + "REQUEUE", + "CANCEL", + "GANG" + ], + "type": "string" + } + }, + "exempt_time": { + "type": "object", + "description": "PreemptExemptTime", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "priority": { + "type": "object", + "description": "Priority", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "usage_factor": { + "type": "object", + "description": "UsageFactor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "usage_threshold": { + "type": "object", + "description": "UsageThreshold", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "number", + "format": "double", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + }, + "required": [ + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "qos" + ] + }, + "v0.0.41_openapi_slurmdbd_qos_removed_resp": { + "type": "object", + "properties": { + "removed_qos": { + "type": "array", + "description": "removed QOS", + "items": { + "type": "string" + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "removed_qos" + ] + }, + "v0.0.44_openapi_slurmdbd_qos_resp": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.44_qos_list", + "description": "List of QOS" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "qos" + ] + }, + "v0.0.44_openapi_slurmdbd_qos_removed_resp": { + "type": "object", + "properties": { + "removed_qos": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "removed QOS" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_qos" + ] + }, + "v0.0.42_openapi_slurmdbd_qos_resp": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.42_qos_list", + "description": "List of QOS" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "qos" + ] + }, + "v0.0.42_openapi_slurmdbd_qos_removed_resp": { + "type": "object", + "properties": { + "removed_qos": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "removed QOS" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_qos" + ] + }, + "v0.0.42_string_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.43_openapi_slurmdbd_qos_resp": { + "type": "object", + "properties": { + "qos": { + "$ref": "#\/components\/schemas\/v0.0.43_qos_list", + "description": "List of QOS" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "qos" + ] + }, + "v0.0.43_openapi_slurmdbd_qos_removed_resp": { + "type": "object", + "properties": { + "removed_qos": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "removed QOS" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_qos" + ] + }, + "v0.0.43_string_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.41_openapi_assocs_resp": { + "type": "object", + "properties": { + "associations": { + "type": "array", + "description": "associations", + "items": { + "type": "object", + "properties": { + "accounting": { + "type": "array", + "description": "Accounting records containing related resource usage", + "items": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of cpu seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started" + }, + "TRES": { + "type": "object", + "description": "Trackable resources", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + ] + } + }, + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "default": { + "type": "object", + "properties": { + "qos": { + "type": "string", + "description": "Default QOS" + } + } + }, + "flags": { + "type": "array", + "description": "Flags on the association", + "items": { + "enum": [ + "DELETED", + "NoUpdate", + "Exact", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + }, + "max": { + "type": "object", + "properties": { + "jobs": { + "type": "object", + "properties": { + "per": { + "type": "object", + "properties": { + "count": { + "type": "object", + "description": "GrpJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "accruing": { + "type": "object", + "description": "GrpJobsAccrue", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "submitted": { + "type": "object", + "description": "GrpSubmitJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "wall_clock": { + "type": "object", + "description": "MaxWallDurationPerJob", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "active": { + "type": "object", + "description": "MaxJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "accruing": { + "type": "object", + "description": "MaxJobsAccrue", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "total": { + "type": "object", + "description": "MaxSubmitJobs", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "tres": { + "type": "object", + "properties": { + "total": { + "type": "array", + "description": "GrpTRES", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "group": { + "type": "object", + "properties": { + "minutes": { + "type": "array", + "description": "GrpTRESMins", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "active": { + "type": "array", + "description": "GrpTRESRunMins", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "minutes": { + "type": "object", + "properties": { + "total": { + "type": "array", + "description": "MaxTRESMinsPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "per": { + "type": "object", + "properties": { + "job": { + "type": "array", + "description": "MaxTRESMinsPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "job": { + "type": "array", + "description": "MaxTRESPerJob", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "node": { + "type": "array", + "description": "MaxTRESPerNode", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + } + } + } + }, + "per": { + "type": "object", + "properties": { + "account": { + "type": "object", + "properties": { + "wall_clock": { + "type": "object", + "description": "GrpWall", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + } + } + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID" + }, + "is_default": { + "type": "boolean", + "description": "Is default association for user" + }, + "lineage": { + "type": "string", + "description": "Complete path up the hierarchy to the root association" + }, + "min": { + "type": "object", + "properties": { + "priority_threshold": { + "type": "object", + "description": "MinPrioThreshold", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + } + } + }, + "parent_account": { + "type": "string", + "description": "Name of parent account" + }, + "partition": { + "type": "string", + "description": "Partition name" + }, + "priority": { + "type": "object", + "description": "Association priority factor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "qos": { + "type": "array", + "description": "List of available QOS names", + "items": { + "type": "string", + "description": "List of QOS names" + } + }, + "shares_raw": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + }, + "user": { + "type": "string", + "description": "User name" + } + }, + "required": [ + "user" + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "associations" + ] + }, + "v0.0.41_openapi_assocs_removed_resp": { + "type": "object", + "properties": { + "removed_associations": { + "type": "array", + "description": "removed_associations", + "items": { + "type": "string" + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "removed_associations" + ] + }, + "v0.0.44_openapi_assocs_resp": { + "type": "object", + "properties": { + "associations": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_list", + "description": "associations" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "associations" + ] + }, + "v0.0.44_openapi_assocs_removed_resp": { + "type": "object", + "properties": { + "removed_associations": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "removed_associations" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_associations" + ] + }, + "v0.0.42_openapi_assocs_resp": { + "type": "object", + "properties": { + "associations": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_list", + "description": "associations" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "associations" + ] + }, + "v0.0.42_openapi_assocs_removed_resp": { + "type": "object", + "properties": { + "removed_associations": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "removed_associations" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_associations" + ] + }, + "v0.0.43_openapi_assocs_resp": { + "type": "object", + "properties": { + "associations": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_list", + "description": "associations" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "associations" + ] + }, + "v0.0.43_openapi_assocs_removed_resp": { + "type": "object", + "properties": { + "removed_associations": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "removed_associations" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_associations" + ] + }, + "v0.0.41_openapi_instances_resp": { + "type": "object", + "properties": { + "instances": { + "type": "array", + "description": "instances", + "items": { + "type": "object", + "properties": { + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "extra": { + "type": "string", + "description": "Arbitrary string used for node filtering if extra constraints are enabled" + }, + "instance_id": { + "type": "string", + "description": "Cloud instance ID" + }, + "instance_type": { + "type": "string", + "description": "Cloud instance type" + }, + "node_name": { + "type": "string", + "description": "NodeName" + }, + "time": { + "type": "object", + "properties": { + "time_end": { + "type": "integer", + "format": "int64", + "description": "When the instance will end (UNIX timestamp)" + }, + "time_start": { + "type": "integer", + "format": "int64", + "description": "When the instance will start (UNIX timestamp)" + } + } + } + }, + "required": [ + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "instances" + ] + }, + "v0.0.44_openapi_instances_resp": { + "type": "object", + "properties": { + "instances": { + "$ref": "#\/components\/schemas\/v0.0.44_instance_list", + "description": "instances" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "instances" + ] + }, + "v0.0.42_openapi_instances_resp": { + "type": "object", + "properties": { + "instances": { + "$ref": "#\/components\/schemas\/v0.0.42_instance_list", + "description": "instances" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "instances" + ] + }, + "v0.0.43_openapi_instances_resp": { + "type": "object", + "properties": { + "instances": { + "$ref": "#\/components\/schemas\/v0.0.43_instance_list", + "description": "instances" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "instances" + ] + }, + "v0.0.41_openapi_users_resp": { + "type": "object", + "properties": { + "users": { + "type": "array", + "description": "users", + "items": { + "type": "object", + "properties": { + "administrator_level": { + "type": "array", + "description": "AdminLevel granted to the user", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "associations": { + "type": "array", + "description": "Associations created for this user", + "items": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster" + }, + "partition": { + "type": "string", + "description": "Partition" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + } + }, + "coordinators": { + "type": "array", + "description": "Accounts this user is a coordinator for", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User name" + }, + "direct": { + "type": "boolean", + "description": "Indicates whether the coordinator was directly assigned to this account" + } + }, + "required": [ + "name" + ] + } + }, + "default": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Default Account" + }, + "wckey": { + "type": "string", + "description": "Default WCKey" + } + } + }, + "flags": { + "type": "array", + "description": "Flags associated with user", + "items": { + "enum": [ + "NONE", + "DELETED" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "User name" + }, + "old_name": { + "type": "string", + "description": "Previous user name" + }, + "wckeys": { + "type": "array", + "description": "List of available WCKeys", + "items": { + "type": "object", + "properties": { + "accounting": { + "type": "array", + "description": "Accounting records containing related resource usage", + "items": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of cpu seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started" + }, + "TRES": { + "type": "object", + "description": "Trackable resources", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + ] + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID for this user-cluster-wckey combination" + }, + "name": { + "type": "string", + "description": "WCKey name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "flags": { + "type": "array", + "description": "Flags associated with the WCKey", + "items": { + "enum": [ + "DELETED" + ], + "type": "string" + } + } + }, + "required": [ + "cluster", + "name", + "user" + ] + } + } + }, + "required": [ + "name" + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "users" + ] + }, + "v0.0.44_openapi_users_resp": { + "type": "object", + "properties": { + "users": { + "$ref": "#\/components\/schemas\/v0.0.44_user_list", + "description": "users" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "users" + ] + }, + "v0.0.42_openapi_users_resp": { + "type": "object", + "properties": { + "users": { + "$ref": "#\/components\/schemas\/v0.0.42_user_list", + "description": "users" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "users" + ] + }, + "v0.0.43_openapi_users_resp": { + "type": "object", + "properties": { + "users": { + "$ref": "#\/components\/schemas\/v0.0.43_user_list", + "description": "users" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "users" + ] + }, + "v0.0.41_openapi_users_add_cond_resp_str": { + "type": "object", + "properties": { + "added_users": { + "type": "string", + "description": "added_users" + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "added_users" + ] + }, + "v0.0.41_openapi_users_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "type": "object", + "description": "Filters to select associations for users", + "properties": { + "accounts": { + "type": "array", + "description": "CSV accounts list", + "items": { + "type": "string" + } + }, + "association": { + "type": "object", + "description": "Association limits and options", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "defaultqos": { + "type": "string", + "description": "Default QOS" + }, + "grpjobs": { + "type": "object", + "description": "Maximum number of running jobs in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "grpjobsaccrue": { + "type": "object", + "description": "Maximum number of pending jobs able to accrue age priority in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "grpsubmitjobs": { + "type": "object", + "description": "Maximum number of jobs which can be in a pending or running state at any time in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "grptres": { + "type": "array", + "description": "Maximum number of TRES able to be allocated by running jobs in this association and its children", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "grptresmins": { + "type": "array", + "description": "Total number of TRES minutes that can possibly be used by past, present and future jobs in this association and its children", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "grptresrunmins": { + "type": "array", + "description": "Maximum number of TRES minutes able to be allocated by running jobs in this association and its children", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "grpwall": { + "type": "object", + "description": "Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxjobs": { + "type": "object", + "description": "Maximum number of running jobs per user in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxjobsaccrue": { + "type": "object", + "description": "Maximum number of pending jobs able to accrue age priority at any given time in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxsubmitjobs": { + "type": "object", + "description": "Maximum number of jobs which can be in a pending or running state at any time in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxtresminsperjob": { + "type": "array", + "description": "Maximum number of TRES minutes each job is able to use in this association", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxtresrunmins": { + "type": "array", + "description": "Maximum number of TRES minutes able to be allocated by running jobs in this association", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxtresperjob": { + "type": "array", + "description": "Maximum number of TRES each job is able to use in this association", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxtrespernode": { + "type": "array", + "description": "Maximum number of TRES each node is able to use", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxwalldurationperjob": { + "type": "object", + "description": "Maximum wall clock time each job is able to use in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "minpriothresh": { + "type": "object", + "description": "Minimum priority required to reserve resources when scheduling", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "parent": { + "type": "string", + "description": "Name of parent account" + }, + "priority": { + "type": "object", + "description": "Association priority factor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "qoslevel": { + "type": "array", + "description": "List of available QOS names", + "items": { + "type": "string", + "description": "List of QOS names" + } + }, + "fairshare": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + } + }, + "required": [ + ] + }, + "clusters": { + "type": "array", + "description": "CSV clusters list", + "items": { + "type": "string" + } + }, + "partitions": { + "type": "array", + "description": "CSV partitions list", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "description": "CSV users list", + "items": { + "type": "string" + } + }, + "wckeys": { + "type": "array", + "description": "CSV WCKeys list", + "items": { + "type": "string" + } + } + }, + "required": [ + "users" + ] + }, + "user": { + "type": "object", + "description": "Admin level of user, DefaultAccount, DefaultWCKey", + "properties": { + "adminlevel": { + "type": "array", + "description": "AdminLevel granted to the user", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "defaultaccount": { + "type": "string", + "description": "Default account" + }, + "defaultwckey": { + "type": "string", + "description": "Default WCKey" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "association_condition", + "user" + ] + }, + "v0.0.44_openapi_users_add_cond_resp_str": { + "type": "object", + "properties": { + "added_users": { + "type": "string", + "description": "added_users" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "added_users" + ] + }, + "v0.0.44_openapi_users_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "$ref": "#\/components\/schemas\/v0.0.44_users_add_cond", + "description": "Filters to select associations for users" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.44_user_short", + "description": "Admin level of user, DefaultAccount, DefaultWCKey" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "association_condition", + "user" + ] + }, + "v0.0.44_users_add_cond": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "CSV accounts list" + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_rec_set", + "description": "Association limits and options" + }, + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "CSV clusters list" + }, + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "CSV partitions list" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "CSV users list" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "CSV WCKeys list" + } + }, + "required": [ + "users" + ] + }, + "v0.0.44_assoc_rec_set": { + "type": "object", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "defaultqos": { + "type": "string", + "description": "Default QOS" + }, + "grpjobs": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpJobs - Maximum number of running jobs in this association and its children (32 bit integer number with flags)" + }, + "grpjobsaccrue": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpJobsAccrue - Maximum number of pending jobs able to accrue age priority in this association and its children (32 bit integer number with flags)" + }, + "grpsubmitjobs": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association and its children (32 bit integer number with flags)" + }, + "grptres": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRES - Maximum number of TRES able to be allocated by running jobs in this association and its children" + }, + "grptresmins": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRESMins - Maximum number of TRES minutes that can possibly be used by past, present, and future jobs in this association and its children" + }, + "grptresrunmins": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "GrpTRESRunMins - Maximum number of TRES minutes able to be allocated by running jobs in this association and its children" + }, + "grpwall": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "GrpWall - Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children (32 bit integer number with flags)" + }, + "maxjobs": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobs - Maximum number of running jobs per user in this association (32 bit integer number with flags)" + }, + "maxjobsaccrue": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxJobsAccrue - Maximum number of pending jobs able to accrue age priority at any given time in this association (32 bit integer number with flags)" + }, + "maxsubmitjobs": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association (32 bit integer number with flags)" + }, + "maxtresminsperjob": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESMinsPerJob - Maximum number of TRES minutes each job can use in this association" + }, + "maxtresrunmins": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "Not implemented" + }, + "maxtresperjob": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerJob - Maximum number of TRES each job can use in this association" + }, + "maxtrespernode": { + "$ref": "#\/components\/schemas\/v0.0.44_tres_list", + "description": "MaxTRESPerNode - Maximum number of TRES each node in a job allocation can use in this association" + }, + "maxwalldurationperjob": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MaxWallDurationPerJob - Maximum wall clock time in minutes each job can use in this association (32 bit integer number with flags)" + }, + "minpriothresh": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "MinPrioThreshold - Minimum priority required to reserve resources when scheduling (32 bit integer number with flags)" + }, + "parent": { + "type": "string", + "description": "Name of parent account" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.44_uint32_no_val_struct", + "description": "Association priority factor (32 bit integer number with flags)" + }, + "qoslevel": { + "$ref": "#\/components\/schemas\/v0.0.44_qos_string_id_list", + "description": "List of available QOS names (List of QOS names)" + }, + "fairshare": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + } + }, + "required": [ + ] + }, + "v0.0.44_user_short": { + "type": "object", + "properties": { + "adminlevel": { + "type": "array", + "description": "AdminLevel granted to the user", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "defaultqos": { + "type": "integer", + "format": "int32", + "description": "Default QOS" + }, + "defaultaccount": { + "type": "string", + "description": "Default account" + }, + "defaultwckey": { + "type": "string", + "description": "Default WCKey" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_users_add_cond_resp_str": { + "type": "object", + "properties": { + "added_users": { + "type": "string", + "description": "added_users" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "added_users" + ] + }, + "v0.0.42_openapi_users_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "$ref": "#\/components\/schemas\/v0.0.42_users_add_cond", + "description": "Filters to select associations for users" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.42_user_short", + "description": "Admin level of user, DefaultAccount, DefaultWCKey" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "association_condition", + "user" + ] + }, + "v0.0.42_users_add_cond": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "CSV accounts list" + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_rec_set", + "description": "Association limits and options" + }, + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "CSV clusters list" + }, + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "CSV partitions list" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "CSV users list" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "CSV WCKeys list" + } + }, + "required": [ + "users" + ] + }, + "v0.0.42_assoc_rec_set": { + "type": "object", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "defaultqos": { + "type": "string", + "description": "Default QOS" + }, + "grpjobs": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of running jobs in this association and its children" + }, + "grpjobsaccrue": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of pending jobs able to accrue age priority in this association and its children" + }, + "grpsubmitjobs": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of jobs which can be in a pending or running state at any time in this association and its children" + }, + "grptres": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Maximum number of TRES able to be allocated by running jobs in this association and its children" + }, + "grptresmins": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Total number of TRES minutes that can possibly be used by past, present and future jobs in this association and its children" + }, + "grptresrunmins": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Maximum number of TRES minutes able to be allocated by running jobs in this association and its children" + }, + "grpwall": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children" + }, + "maxjobs": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of running jobs per user in this association" + }, + "maxjobsaccrue": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of pending jobs able to accrue age priority at any given time in this association" + }, + "maxsubmitjobs": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum number of jobs which can be in a pending or running state at any time in this association" + }, + "maxtresminsperjob": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Maximum number of TRES minutes each job is able to use in this association" + }, + "maxtresrunmins": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Maximum number of TRES minutes able to be allocated by running jobs in this association" + }, + "maxtresperjob": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Maximum number of TRES each job is able to use in this association" + }, + "maxtrespernode": { + "$ref": "#\/components\/schemas\/v0.0.42_tres_list", + "description": "Maximum number of TRES each node is able to use" + }, + "maxwalldurationperjob": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Maximum wall clock time each job is able to use in this association" + }, + "minpriothresh": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Minimum priority required to reserve resources when scheduling" + }, + "parent": { + "type": "string", + "description": "Name of parent account" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.42_uint32_no_val_struct", + "description": "Association priority factor" + }, + "qoslevel": { + "$ref": "#\/components\/schemas\/v0.0.42_qos_string_id_list", + "description": "List of available QOS names" + }, + "fairshare": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + } + }, + "required": [ + ] + }, + "v0.0.42_user_short": { + "type": "object", + "properties": { + "adminlevel": { + "$ref": "#\/components\/schemas\/v0.0.42_admin_lvl", + "description": "AdminLevel granted to the user" + }, + "defaultaccount": { + "type": "string", + "description": "Default account" + }, + "defaultwckey": { + "type": "string", + "description": "Default WCKey" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_users_add_cond_resp_str": { + "type": "object", + "properties": { + "added_users": { + "type": "string", + "description": "added_users" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "added_users" + ] + }, + "v0.0.43_openapi_users_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "$ref": "#\/components\/schemas\/v0.0.43_users_add_cond", + "description": "Filters to select associations for users" + }, + "user": { + "$ref": "#\/components\/schemas\/v0.0.43_user_short", + "description": "Admin level of user, DefaultAccount, DefaultWCKey" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "association_condition", + "user" + ] + }, + "v0.0.43_users_add_cond": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "CSV accounts list" + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_rec_set", + "description": "Association limits and options" + }, + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "CSV clusters list" + }, + "partitions": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "CSV partitions list" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "CSV users list" + }, + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "CSV WCKeys list" + } + }, + "required": [ + "users" + ] + }, + "v0.0.43_assoc_rec_set": { + "type": "object", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "defaultqos": { + "type": "string", + "description": "Default QOS" + }, + "grpjobs": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpJobs - Maximum number of running jobs in this association and its children (32 bit integer number with flags)" + }, + "grpjobsaccrue": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpJobsAccrue - Maximum number of pending jobs able to accrue age priority in this association and its children (32 bit integer number with flags)" + }, + "grpsubmitjobs": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association and its children (32 bit integer number with flags)" + }, + "grptres": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRES - Maximum number of TRES able to be allocated by running jobs in this association and its children" + }, + "grptresmins": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRESMins - Maximum number of TRES minutes that can possibly be used by past, present, and future jobs in this association and its children" + }, + "grptresrunmins": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "GrpTRESRunMins - Maximum number of TRES minutes able to be allocated by running jobs in this association and its children" + }, + "grpwall": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "GrpWall - Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children (32 bit integer number with flags)" + }, + "maxjobs": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobs - Maximum number of running jobs per user in this association (32 bit integer number with flags)" + }, + "maxjobsaccrue": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxJobsAccrue - Maximum number of pending jobs able to accrue age priority at any given time in this association (32 bit integer number with flags)" + }, + "maxsubmitjobs": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxSubmitJobs - Maximum number of jobs in a pending or running state at any time in this association (32 bit integer number with flags)" + }, + "maxtresminsperjob": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESMinsPerJob - Maximum number of TRES minutes each job can use in this association" + }, + "maxtresrunmins": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "Not implemented" + }, + "maxtresperjob": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerJob - Maximum number of TRES each job can use in this association" + }, + "maxtrespernode": { + "$ref": "#\/components\/schemas\/v0.0.43_tres_list", + "description": "MaxTRESPerNode - Maximum number of TRES each node in a job allocation can use in this association" + }, + "maxwalldurationperjob": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MaxWallDurationPerJob - Maximum wall clock time in minutes each job can use in this association (32 bit integer number with flags)" + }, + "minpriothresh": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "MinPrioThreshold - Minimum priority required to reserve resources when scheduling (32 bit integer number with flags)" + }, + "parent": { + "type": "string", + "description": "Name of parent account" + }, + "priority": { + "$ref": "#\/components\/schemas\/v0.0.43_uint32_no_val_struct", + "description": "Association priority factor (32 bit integer number with flags)" + }, + "qoslevel": { + "$ref": "#\/components\/schemas\/v0.0.43_qos_string_id_list", + "description": "List of available QOS names (List of QOS names)" + }, + "fairshare": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + } + }, + "required": [ + ] + }, + "v0.0.43_user_short": { + "type": "object", + "properties": { + "adminlevel": { + "type": "array", + "description": "AdminLevel granted to the user", + "items": { + "enum": [ + "Not Set", + "None", + "Operator", + "Administrator" + ], + "type": "string" + } + }, + "defaultaccount": { + "type": "string", + "description": "Default account" + }, + "defaultwckey": { + "type": "string", + "description": "Default WCKey" + } + }, + "required": [ + ] + }, + "v0.0.41_openapi_clusters_removed_resp": { + "type": "object", + "properties": { + "deleted_clusters": { + "type": "array", + "description": "deleted_clusters", + "items": { + "type": "string" + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "deleted_clusters" + ] + }, + "v0.0.41_openapi_clusters_resp": { + "type": "object", + "properties": { + "clusters": { + "type": "array", + "description": "clusters", + "items": { + "type": "object", + "properties": { + "controller": { + "type": "object", + "properties": { + "host": { + "type": "string", + "description": "ControlHost" + }, + "port": { + "type": "integer", + "format": "int32", + "description": "ControlPort" + } + } + }, + "flags": { + "type": "array", + "description": "Flags", + "items": { + "enum": [ + "REGISTERING", + "MULTIPLE_SLURMD", + "FEDERATION", + "EXTERNAL" + ], + "type": "string" + } + }, + "name": { + "type": "string", + "description": "ClusterName" + }, + "nodes": { + "type": "string", + "description": "Node names" + }, + "select_plugin": { + "type": "string", + "deprecated": true + }, + "associations": { + "type": "object", + "properties": { + "root": { + "type": "object", + "description": "Root association information", + "properties": { + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster" + }, + "partition": { + "type": "string", + "description": "Partition" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + } + } + }, + "rpc_version": { + "type": "integer", + "format": "int32", + "description": "RPC version used in the cluster" + }, + "tres": { + "type": "array", + "description": "Trackable resources", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + } + }, + "required": [ + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "clusters" + ] + }, + "v0.0.44_openapi_clusters_removed_resp": { + "type": "object", + "properties": { + "deleted_clusters": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "deleted_clusters" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "deleted_clusters" + ] + }, + "v0.0.44_openapi_clusters_resp": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.44_cluster_rec_list", + "description": "clusters" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "clusters" + ] + }, + "v0.0.42_openapi_clusters_removed_resp": { + "type": "object", + "properties": { + "deleted_clusters": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "deleted_clusters" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "deleted_clusters" + ] + }, + "v0.0.42_openapi_clusters_resp": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.42_cluster_rec_list", + "description": "clusters" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "clusters" + ] + }, + "v0.0.43_openapi_clusters_removed_resp": { + "type": "object", + "properties": { + "deleted_clusters": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "deleted_clusters" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "deleted_clusters" + ] + }, + "v0.0.43_openapi_clusters_resp": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.43_cluster_rec_list", + "description": "clusters" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "clusters" + ] + }, + "v0.0.41_openapi_wckey_removed_resp": { + "type": "object", + "properties": { + "deleted_wckeys": { + "type": "array", + "description": "deleted wckeys", + "items": { + "type": "string" + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "deleted_wckeys" + ] + }, + "v0.0.41_openapi_wckey_resp": { + "type": "object", + "properties": { + "wckeys": { + "type": "array", + "description": "wckeys", + "items": { + "type": "object", + "properties": { + "accounting": { + "type": "array", + "description": "Accounting records containing related resource usage", + "items": { + "type": "object", + "properties": { + "allocated": { + "type": "object", + "properties": { + "seconds": { + "type": "integer", + "format": "int64", + "description": "Number of cpu seconds allocated" + } + } + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Association ID or Workload characterization key ID" + }, + "start": { + "type": "integer", + "format": "int64", + "description": "When the record was started" + }, + "TRES": { + "type": "object", + "description": "Trackable resources", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + ] + } + }, + "cluster": { + "type": "string", + "description": "Cluster name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Unique ID for this user-cluster-wckey combination" + }, + "name": { + "type": "string", + "description": "WCKey name" + }, + "user": { + "type": "string", + "description": "User name" + }, + "flags": { + "type": "array", + "description": "Flags associated with the WCKey", + "items": { + "enum": [ + "DELETED" + ], + "type": "string" + } + } + }, + "required": [ + "cluster", + "name", + "user" + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "wckeys" + ] + }, + "v0.0.44_openapi_wckey_removed_resp": { + "type": "object", + "properties": { + "deleted_wckeys": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "deleted wckeys" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "deleted_wckeys" + ] + }, + "v0.0.44_openapi_wckey_resp": { + "type": "object", + "properties": { + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.44_wckey_list", + "description": "wckeys" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "wckeys" + ] + }, + "v0.0.42_openapi_wckey_removed_resp": { + "type": "object", + "properties": { + "deleted_wckeys": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "deleted wckeys" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "deleted_wckeys" + ] + }, + "v0.0.42_openapi_wckey_resp": { + "type": "object", + "properties": { + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.42_wckey_list", + "description": "wckeys" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "wckeys" + ] + }, + "v0.0.43_openapi_wckey_removed_resp": { + "type": "object", + "properties": { + "deleted_wckeys": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "deleted wckeys" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "deleted_wckeys" + ] + }, + "v0.0.43_openapi_wckey_resp": { + "type": "object", + "properties": { + "wckeys": { + "$ref": "#\/components\/schemas\/v0.0.43_wckey_list", + "description": "wckeys" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "wckeys" + ] + }, + "v0.0.41_openapi_accounts_removed_resp": { + "type": "object", + "properties": { + "removed_accounts": { + "type": "array", + "description": "removed_accounts", + "items": { + "type": "string" + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "removed_accounts" + ] + }, + "v0.0.41_openapi_accounts_resp": { + "type": "object", + "properties": { + "accounts": { + "type": "array", + "description": "accounts", + "items": { + "type": "object", + "properties": { + "associations": { + "type": "array", + "description": "Associations involving this account (only populated if requested)", + "items": { + "type": "object", + "properties": { + "account": { + "type": "string", + "description": "Account" + }, + "cluster": { + "type": "string", + "description": "Cluster" + }, + "partition": { + "type": "string", + "description": "Partition" + }, + "user": { + "type": "string", + "description": "User name" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "Numeric association ID" + } + }, + "required": [ + "user" + ] + } + }, + "coordinators": { + "type": "array", + "description": "List of users that are a coordinator of this account (only populated if requested)", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "User name" + }, + "direct": { + "type": "boolean", + "description": "Indicates whether the coordinator was directly assigned to this account" + } + }, + "required": [ + "name" + ] + } + }, + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "name": { + "type": "string", + "description": "Account name" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + }, + "flags": { + "type": "array", + "description": "Flags associated with the account", + "items": { + "enum": [ + "DELETED", + "WithAssociations", + "WithCoordinators", + "NoUsersAreCoords", + "UsersAreCoords" + ], + "type": "string" + } + } + }, + "required": [ + "description", + "name", + "organization" + ] + } + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "accounts" + ] + }, + "v0.0.44_openapi_accounts_removed_resp": { + "type": "object", + "properties": { + "removed_accounts": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "removed_accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_accounts" + ] + }, + "v0.0.44_openapi_accounts_resp": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.44_account_list", + "description": "accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "accounts" + ] + }, + "v0.0.42_openapi_accounts_removed_resp": { + "type": "object", + "properties": { + "removed_accounts": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "removed_accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_accounts" + ] + }, + "v0.0.42_openapi_accounts_resp": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.42_account_list", + "description": "accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "accounts" + ] + }, + "v0.0.43_openapi_accounts_removed_resp": { + "type": "object", + "properties": { + "removed_accounts": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "removed_accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "removed_accounts" + ] + }, + "v0.0.43_openapi_accounts_resp": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.43_account_list", + "description": "accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "accounts" + ] + }, + "v0.0.41_openapi_accounts_add_cond_resp_str": { + "type": "object", + "properties": { + "added_accounts": { + "type": "string", + "description": "added_accounts" + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "added_accounts" + ] + }, + "v0.0.41_openapi_accounts_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "type": "object", + "description": "CSV list of accounts, association limits and options, CSV list of clusters", + "properties": { + "accounts": { + "type": "array", + "description": "CSV accounts list", + "items": { + "type": "string" + } + }, + "association": { + "type": "object", + "description": "Association limits and options", + "properties": { + "comment": { + "type": "string", + "description": "Arbitrary comment" + }, + "defaultqos": { + "type": "string", + "description": "Default QOS" + }, + "grpjobs": { + "type": "object", + "description": "Maximum number of running jobs in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "grpjobsaccrue": { + "type": "object", + "description": "Maximum number of pending jobs able to accrue age priority in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "grpsubmitjobs": { + "type": "object", + "description": "Maximum number of jobs which can be in a pending or running state at any time in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "grptres": { + "type": "array", + "description": "Maximum number of TRES able to be allocated by running jobs in this association and its children", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "grptresmins": { + "type": "array", + "description": "Total number of TRES minutes that can possibly be used by past, present and future jobs in this association and its children", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "grptresrunmins": { + "type": "array", + "description": "Maximum number of TRES minutes able to be allocated by running jobs in this association and its children", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "grpwall": { + "type": "object", + "description": "Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxjobs": { + "type": "object", + "description": "Maximum number of running jobs per user in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxjobsaccrue": { + "type": "object", + "description": "Maximum number of pending jobs able to accrue age priority at any given time in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxsubmitjobs": { + "type": "object", + "description": "Maximum number of jobs which can be in a pending or running state at any time in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "maxtresminsperjob": { + "type": "array", + "description": "Maximum number of TRES minutes each job is able to use in this association", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxtresrunmins": { + "type": "array", + "description": "Maximum number of TRES minutes able to be allocated by running jobs in this association", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxtresperjob": { + "type": "array", + "description": "Maximum number of TRES each job is able to use in this association", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxtrespernode": { + "type": "array", + "description": "Maximum number of TRES each node is able to use", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "TRES type (CPU, MEM, etc)" + }, + "name": { + "type": "string", + "description": "TRES name (if applicable)" + }, + "id": { + "type": "integer", + "format": "int32", + "description": "ID used in database" + }, + "count": { + "type": "integer", + "format": "int64", + "description": "TRES count (0 if listed generically)" + } + }, + "required": [ + "type" + ] + } + }, + "maxwalldurationperjob": { + "type": "object", + "description": "Maximum wall clock time each job is able to use in this association", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "minpriothresh": { + "type": "object", + "description": "Minimum priority required to reserve resources when scheduling", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "parent": { + "type": "string", + "description": "Name of parent account" + }, + "priority": { + "type": "object", + "description": "Association priority factor", + "properties": { + "set": { + "type": "boolean", + "description": "True if number has been set; False if number is unset" + }, + "infinite": { + "type": "boolean", + "description": "True if number has been set to infinite; \"set\" and \"number\" will be ignored" + }, + "number": { + "type": "integer", + "format": "int32", + "description": "If \"set\" is True the number will be set with value; otherwise ignore number contents" + } + }, + "required": [ + ] + }, + "qoslevel": { + "type": "array", + "description": "List of available QOS names", + "items": { + "type": "string", + "description": "List of QOS names" + } + }, + "fairshare": { + "type": "integer", + "format": "int32", + "description": "Allocated shares used for fairshare calculation" + } + }, + "required": [ + ] + }, + "clusters": { + "type": "array", + "description": "CSV clusters list", + "items": { + "type": "string" + } + } + }, + "required": [ + "accounts" + ] + }, + "account": { + "type": "object", + "description": "Account organization and description", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_accounts_add_cond_resp_str": { + "type": "object", + "properties": { + "added_accounts": { + "type": "string", + "description": "added_accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "added_accounts" + ] + }, + "v0.0.44_openapi_accounts_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "$ref": "#\/components\/schemas\/v0.0.44_accounts_add_cond", + "description": "CSV list of accounts, association limits and options, CSV list of clusters" + }, + "account": { + "$ref": "#\/components\/schemas\/v0.0.44_account_short", + "description": "Account organization and description" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "association_condition" + ] + }, + "v0.0.44_accounts_add_cond": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "CSV accounts list" + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.44_assoc_rec_set", + "description": "Association limits and options" + }, + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.44_string_list", + "description": "CSV clusters list" + } + }, + "required": [ + "accounts" + ] + }, + "v0.0.44_account_short": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_accounts_add_cond_resp_str": { + "type": "object", + "properties": { + "added_accounts": { + "type": "string", + "description": "added_accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "added_accounts" + ] + }, + "v0.0.42_openapi_accounts_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "$ref": "#\/components\/schemas\/v0.0.42_accounts_add_cond", + "description": "CSV list of accounts, association limits and options, CSV list of clusters" + }, + "account": { + "$ref": "#\/components\/schemas\/v0.0.42_account_short", + "description": "Account organization and description" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.42_accounts_add_cond": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "CSV accounts list" + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.42_assoc_rec_set", + "description": "Association limits and options" + }, + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.42_string_list", + "description": "CSV clusters list" + } + }, + "required": [ + "accounts" + ] + }, + "v0.0.42_account_short": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_accounts_add_cond_resp_str": { + "type": "object", + "properties": { + "added_accounts": { + "type": "string", + "description": "added_accounts" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "added_accounts" + ] + }, + "v0.0.43_openapi_accounts_add_cond_resp": { + "type": "object", + "properties": { + "association_condition": { + "$ref": "#\/components\/schemas\/v0.0.43_accounts_add_cond", + "description": "CSV list of accounts, association limits and options, CSV list of clusters" + }, + "account": { + "$ref": "#\/components\/schemas\/v0.0.43_account_short", + "description": "Account organization and description" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.43_accounts_add_cond": { + "type": "object", + "properties": { + "accounts": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "CSV accounts list" + }, + "association": { + "$ref": "#\/components\/schemas\/v0.0.43_assoc_rec_set", + "description": "Association limits and options" + }, + "clusters": { + "$ref": "#\/components\/schemas\/v0.0.43_string_list", + "description": "CSV clusters list" + } + }, + "required": [ + "accounts" + ] + }, + "v0.0.43_account_short": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Arbitrary string describing the account" + }, + "organization": { + "type": "string", + "description": "Organization to which the account belongs" + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_job_modify_req": { + "type": "object", + "properties": { + "job_id_list": { + "$ref": "#\/components\/schemas\/v0.0.44_selected_step_list", + "description": "CSV list of Job IDs to modify" + }, + "job_rec": { + "$ref": "#\/components\/schemas\/v0.0.44_job_modify", + "description": "Job modify message" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + ] + }, + "v0.0.44_selected_step_list": { + "type": "array", + "items": { + "type": "string" + } + }, + "v0.0.41_openapi_slurmdbd_stats_resp": { + "type": "object", + "properties": { + "statistics": { + "type": "object", + "description": "statistics", + "properties": { + "time_start": { + "type": "integer", + "format": "int64", + "description": "When data collection started (UNIX timestamp)" + }, + "rollups": { + "type": "object", + "description": "Rollup statistics", + "properties": { + "hourly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of hourly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time hourly rollup ran (UNIX timestamp)" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing last daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest hourly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing hourly rollups (seconds)" + } + } + } + } + }, + "daily": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of daily rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time daily rollup ran (UNIX timestamp)" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest daily rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily rollups (seconds)" + } + } + } + } + }, + "monthly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of monthly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time monthly rollup ran (UNIX timestamp)" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest monthly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly rollups (seconds)" + } + } + } + } + } + }, + "required": [ + "hourly\/count", + "daily\/count", + "monthly\/count", + "hourly\/last_run", + "daily\/last_run", + "monthly\/last_run", + "hourly\/duration\/last", + "daily\/duration\/last", + "monthly\/duration\/last", + "hourly\/duration\/max", + "daily\/duration\/max", + "monthly\/duration\/max", + "hourly\/duration\/time", + "daily\/duration\/time", + "monthly\/duration\/time" + ] + }, + "RPCs": { + "type": "array", + "description": "List of RPCs sent to the slurmdbd", + "items": { + "type": "object", + "properties": { + "rpc": { + "type": "string", + "description": "RPC type" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + } + }, + "users": { + "type": "array", + "description": "List of users that issued RPCs", + "items": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User ID" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + } + } + }, + "required": [ + ] + }, + "meta": { + "type": "object", + "description": "Slurm meta values", + "properties": { + "plugin": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Slurm plugin type (if applicable)" + }, + "name": { + "type": "string", + "description": "Slurm plugin name (if applicable)" + }, + "data_parser": { + "type": "string", + "description": "Slurm data_parser plugin" + }, + "accounting_storage": { + "type": "string", + "description": "Slurm accounting plugin" + } + } + }, + "client": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "Client source description" + }, + "user": { + "type": "string", + "description": "Client user (if known)" + }, + "group": { + "type": "string", + "description": "Client group (if known)" + } + } + }, + "command": { + "type": "array", + "description": "CLI command (if applicable)", + "items": { + "type": "string" + } + }, + "slurm": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "major": { + "type": "string", + "description": "Slurm release major version" + }, + "micro": { + "type": "string", + "description": "Slurm release micro version" + }, + "minor": { + "type": "string", + "description": "Slurm release minor version" + } + } + }, + "release": { + "type": "string", + "description": "Slurm release string" + }, + "cluster": { + "type": "string", + "description": "Slurm cluster name" + } + } + } + }, + "required": [ + ] + }, + "errors": { + "type": "array", + "description": "Query errors", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form error description" + }, + "error_number": { + "type": "integer", + "format": "int32", + "description": "Slurm numeric error identifier" + }, + "error": { + "type": "string", + "description": "Short form error description" + }, + "source": { + "type": "string", + "description": "Source of error or where error was first detected" + } + }, + "required": [ + ] + } + }, + "warnings": { + "type": "array", + "description": "Query warnings", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Long form warning description" + }, + "source": { + "type": "string", + "description": "Source of warning or where warning was first detected" + } + }, + "required": [ + ] + } + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.44_openapi_slurmdbd_stats_resp": { + "type": "object", + "properties": { + "statistics": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_rec", + "description": "statistics" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.44_stats_rec": { + "type": "object", + "properties": { + "time_start": { + "type": "integer", + "format": "int64", + "description": "When data collection started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "rollups": { + "$ref": "#\/components\/schemas\/v0.0.44_rollup_stats", + "description": "Rollup statistics" + }, + "RPCs": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_rpc_list", + "description": "List of RPCs sent to the slurmdbd" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_user_list", + "description": "List of users that issued RPCs" + } + }, + "required": [ + ] + }, + "v0.0.44_rollup_stats": { + "type": "object", + "properties": { + "hourly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of hourly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time hourly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing last daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest hourly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing hourly rollups (seconds)" + } + } + } + } + }, + "daily": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of daily rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time daily rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest daily rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily rollups (seconds)" + } + } + } + } + }, + "monthly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of monthly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time monthly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest monthly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly rollups (seconds)" + } + } + } + } + } + }, + "required": [ + "hourly\/count", + "daily\/count", + "monthly\/count", + "hourly\/last_run", + "daily\/last_run", + "monthly\/last_run", + "hourly\/duration\/last", + "daily\/duration\/last", + "monthly\/duration\/last", + "hourly\/duration\/max", + "daily\/duration\/max", + "monthly\/duration\/max", + "hourly\/duration\/time", + "daily\/duration\/time", + "monthly\/duration\/time" + ] + }, + "v0.0.44_stats_rpc_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_rpc" + } + }, + "v0.0.44_stats_rpc": { + "type": "object", + "properties": { + "rpc": { + "type": "string", + "description": "RPC type" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + }, + "v0.0.44_stats_user_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_stats_user" + } + }, + "v0.0.44_stats_user": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User ID" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + }, + "v0.0.42_openapi_slurmdbd_stats_resp": { + "type": "object", + "properties": { + "statistics": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_rec", + "description": "statistics" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.42_stats_rec": { + "type": "object", + "properties": { + "time_start": { + "type": "integer", + "format": "int64", + "description": "When data collection started (UNIX timestamp)" + }, + "rollups": { + "$ref": "#\/components\/schemas\/v0.0.42_rollup_stats", + "description": "Rollup statistics" + }, + "RPCs": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_rpc_list", + "description": "List of RPCs sent to the slurmdbd" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_user_list", + "description": "List of users that issued RPCs" + } + }, + "required": [ + ] + }, + "v0.0.42_rollup_stats": { + "type": "object", + "properties": { + "hourly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of hourly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time hourly rollup ran (UNIX timestamp)" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing last daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest hourly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing hourly rollups (seconds)" + } + } + } + } + }, + "daily": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of daily rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time daily rollup ran (UNIX timestamp)" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest daily rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily rollups (seconds)" + } + } + } + } + }, + "monthly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of monthly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time monthly rollup ran (UNIX timestamp)" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest monthly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly rollups (seconds)" + } + } + } + } + } + }, + "required": [ + "hourly\/count", + "daily\/count", + "monthly\/count", + "hourly\/last_run", + "daily\/last_run", + "monthly\/last_run", + "hourly\/duration\/last", + "daily\/duration\/last", + "monthly\/duration\/last", + "hourly\/duration\/max", + "daily\/duration\/max", + "monthly\/duration\/max", + "hourly\/duration\/time", + "daily\/duration\/time", + "monthly\/duration\/time" + ] + }, + "v0.0.42_stats_rpc_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_rpc" + } + }, + "v0.0.42_stats_rpc": { + "type": "object", + "properties": { + "rpc": { + "type": "string", + "description": "RPC type" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + }, + "v0.0.42_stats_user_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_stats_user" + } + }, + "v0.0.42_stats_user": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User ID" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + }, + "v0.0.43_openapi_slurmdbd_stats_resp": { + "type": "object", + "properties": { + "statistics": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_rec", + "description": "statistics" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "statistics" + ] + }, + "v0.0.43_stats_rec": { + "type": "object", + "properties": { + "time_start": { + "type": "integer", + "format": "int64", + "description": "When data collection started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "rollups": { + "$ref": "#\/components\/schemas\/v0.0.43_rollup_stats", + "description": "Rollup statistics" + }, + "RPCs": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_rpc_list", + "description": "List of RPCs sent to the slurmdbd" + }, + "users": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_user_list", + "description": "List of users that issued RPCs" + } + }, + "required": [ + ] + }, + "v0.0.43_rollup_stats": { + "type": "object", + "properties": { + "hourly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of hourly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time hourly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing last daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest hourly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing hourly rollups (seconds)" + } + } + } + } + }, + "daily": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of daily rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time daily rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest daily rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing daily rollups (seconds)" + } + } + } + } + }, + "monthly": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of monthly rollups since last_run" + }, + "last_run": { + "type": "integer", + "format": "int64", + "description": "Last time monthly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM\/DD[\/YY]-]HH:MM[:SS]'))" + }, + "duration": { + "type": "object", + "properties": { + "last": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly daily rollup (seconds)" + }, + "max": { + "type": "integer", + "format": "int64", + "description": "Longest monthly rollup time (seconds)" + }, + "time": { + "type": "integer", + "format": "int64", + "description": "Total time spent doing monthly rollups (seconds)" + } + } + } + } + } + }, + "required": [ + "hourly\/count", + "daily\/count", + "monthly\/count", + "hourly\/last_run", + "daily\/last_run", + "monthly\/last_run", + "hourly\/duration\/last", + "daily\/duration\/last", + "monthly\/duration\/last", + "hourly\/duration\/max", + "daily\/duration\/max", + "monthly\/duration\/max", + "hourly\/duration\/time", + "daily\/duration\/time", + "monthly\/duration\/time" + ] + }, + "v0.0.43_stats_rpc_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_rpc" + } + }, + "v0.0.43_stats_rpc": { + "type": "object", + "properties": { + "rpc": { + "type": "string", + "description": "RPC type" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + }, + "v0.0.43_stats_user_list": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_stats_user" + } + }, + "v0.0.43_stats_user": { + "type": "object", + "properties": { + "user": { + "type": "string", + "description": "User ID" + }, + "count": { + "type": "integer", + "format": "int32", + "description": "Number of RPCs processed" + }, + "time": { + "type": "object", + "properties": { + "average": { + "type": "integer", + "format": "int64", + "description": "Average RPC processing time in microseconds" + }, + "total": { + "type": "integer", + "format": "int64", + "description": "Total RPC processing time in microseconds" + } + } + } + }, + "required": [ + ] + }, + "v0.0.44_openapi_slurmdbd_ping_resp": { + "type": "object", + "properties": { + "pings": { + "$ref": "#\/components\/schemas\/v0.0.44_slurmdbd_ping_array", + "description": "pings" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "pings" + ] + }, + "v0.0.44_slurmdbd_ping_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.44_slurmdbd_ping" + } + }, + "v0.0.44_slurmdbd_ping": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Target for ping" + }, + "responding": { + "type": "boolean", + "description": "If ping RPC responded with pong from slurmdbd" + }, + "latency": { + "type": "integer", + "format": "int64", + "description": "Number of microseconds it took to successfully ping or timeout" + }, + "primary": { + "type": "boolean", + "description": "Is responding slurmdbd the primary controller (Is responding slurmctld the primary controller)" + } + }, + "required": [ + "hostname", + "responding", + "latency", + "primary" + ] + }, + "v0.0.42_openapi_slurmdbd_ping_resp": { + "type": "object", + "properties": { + "pings": { + "$ref": "#\/components\/schemas\/v0.0.42_slurmdbd_ping_array", + "description": "pings" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.42_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "pings" + ] + }, + "v0.0.42_slurmdbd_ping_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.42_slurmdbd_ping" + } + }, + "v0.0.42_slurmdbd_ping": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Target for ping" + }, + "responding": { + "type": "boolean", + "description": "If ping RPC responded with pong from slurmdbd" + }, + "latency": { + "type": "integer", + "format": "int64", + "description": "Number of microseconds it took to successfully ping or timeout" + }, + "primary": { + "type": "boolean", + "description": "Is responding slurmdbd the primary controller" + } + }, + "required": [ + "hostname", + "responding", + "latency", + "primary" + ] + }, + "v0.0.43_openapi_slurmdbd_ping_resp": { + "type": "object", + "properties": { + "pings": { + "$ref": "#\/components\/schemas\/v0.0.43_slurmdbd_ping_array", + "description": "pings" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.43_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "pings" + ] + }, + "v0.0.43_slurmdbd_ping_array": { + "type": "array", + "items": { + "$ref": "#\/components\/schemas\/v0.0.43_slurmdbd_ping" + } + }, + "v0.0.43_slurmdbd_ping": { + "type": "object", + "properties": { + "hostname": { + "type": "string", + "description": "Target for ping" + }, + "responding": { + "type": "boolean", + "description": "If ping RPC responded with pong from slurmdbd" + }, + "latency": { + "type": "integer", + "format": "int64", + "description": "Number of microseconds it took to successfully ping or timeout" + }, + "primary": { + "type": "boolean", + "description": "Is responding slurmdbd the primary controller (Is responding slurmctld the primary controller)" + } + }, + "required": [ + "hostname", + "responding", + "latency", + "primary" + ] + }, + "v0.0.44_openapi_hostnames_req_resp": { + "type": "object", + "properties": { + "hostnames": { + "$ref": "#\/components\/schemas\/v0.0.44_hostlist_string", + "description": "Array of host names" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "hostnames" + ] + }, + "v0.0.44_openapi_hostlist_req_resp": { + "type": "object", + "properties": { + "hostlist": { + "type": "string", + "description": "Hostlist expression string (Hostlist expression string)" + }, + "meta": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_meta", + "description": "Slurm meta values" + }, + "errors": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_errors", + "description": "Query errors" + }, + "warnings": { + "$ref": "#\/components\/schemas\/v0.0.44_openapi_warnings", + "description": "Query warnings" + } + }, + "required": [ + "hostlist" + ] + } + }, + "securitySchemes": { + "user": { + "type": "apiKey", + "description": "User name", + "name": "X-SLURM-USER-NAME", + "in": "header" + }, + "token": { + "type": "apiKey", + "description": "User access token", + "name": "X-SLURM-USER-TOKEN", + "in": "header" + }, + "bearerAuth": { + "type": "http", + "description": "Bearer Authentication", + "scheme": "bearer", + "bearerFormat": "JWT" + } + } + }, + "info": { + "contact": { + "name": "SchedMD LLC", + "url": "https:\/\/www.schedmd.com\/", + "email": "sales@schedmd.com" + }, + "license": { + "name": "Apache 2.0", + "url": "https:\/\/www.apache.org\/licenses\/LICENSE-2.0.html" + }, + "x-slurm": { + "data_parsers": [ + { + "plugin": "v0.0.41", + "flags": [ + "NONE" + ] + }, + { + "plugin": "v0.0.44", + "flags": [ + "NONE" + ] + }, + { + "plugin": "v0.0.42", + "flags": [ + "NONE" + ] + }, + { + "plugin": "v0.0.43", + "flags": [ + "NONE" + ] + } + ], + "openapi": [ + "openapi\/slurmctld", + "openapi\/slurmdbd", + "openapi\/util" + ], + "version": { + "major": "25", + "micro": "2", + "minor": "11" + }, + "release": "25.11.2" + }, + "title": "Slurm REST API", + "description": "API to access and control Slurm", + "termsOfService": "https:\/\/github.com\/SchedMD\/slurm\/blob\/master\/DISCLAIMER", + "version": "Slurm-25.11.2" + }, + "servers": [ + { + "url": "\/" + } + ], + "security": [ + { + "user": [ + ], + "token": [ + ] + }, + { + "token": [ + ] + }, + { + "bearerAuth": [ + ] + }, + { + } + ], + "openapi": "3.0.3" + } \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 6e96c6e..b27fb9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,95 @@ -[build-system] -requires = [ - "setuptools>=42", - "git+https://github.com/fasrc/slurmrest_python_sdk.git", - "wheel" +[project] +name = "slurmrest_python" +version = "0.0.1" +description = "Slurm REST API" +authors = [ + {name = "SchedMD LLC",email = "sales@schedmd.com"}, +] +license = "Apache 2.0" +readme = "README.md" +keywords = ["OpenAPI", "OpenAPI-Generator", "Slurm REST API"] +requires-python = ">=3.9" + +dependencies = [ + "urllib3 (>=2.1.0,<3.0.0)", + "python-dateutil (>=2.8.2)", + "pydantic (>=2)", + "typing-extensions (>=4.7.1)" ] + +[project.urls] +Repository = "https://github.com/coldfront/slurm-python-sdk" + +[tool.poetry] +requires-poetry = ">=2.0" + +[tool.poetry.group.dev.dependencies] +pytest = ">= 7.2.1" +pytest-cov = ">= 2.8.1" +tox = ">= 3.9.0" +flake8 = ">= 4.0.0" +types-python-dateutil = ">= 2.8.19.14" +mypy = ">= 1.5" + + +[build-system] +requires = ["setuptools"] build-backend = "setuptools.build_meta" + +[tool.pylint.'MESSAGES CONTROL'] +extension-pkg-whitelist = "pydantic" + +[tool.mypy] +files = [ + "slurmrest_python", + #"test", # auto-generated tests + "tests", # hand-written tests +] +# TODO: enable "strict" once all these individual checks are passing +# strict = true + +# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true + +## Getting these passing should be easy +strict_equality = true +extra_checks = true + +## Strongly recommend enabling this one as soon as you can +check_untyped_defs = true + +## These shouldn't be too much additional work, but may be tricky to +## get passing if you use a lot of untyped libraries +disallow_subclassing_any = true +disallow_untyped_decorators = true +disallow_any_generics = true + +### These next few are various gradations of forcing use of type annotations +#disallow_untyped_calls = true +#disallow_incomplete_defs = true +#disallow_untyped_defs = true +# +### This one isn't too hard to get passing, but return on investment is lower +#no_implicit_reexport = true +# +### This one can be tricky to get passing if you use a lot of untyped libraries +#warn_return_any = true + +[[tool.mypy.overrides]] +module = [ + "slurmrest_python.configuration", +] +warn_unused_ignores = true +strict_equality = true +extra_checks = true +check_untyped_defs = true +disallow_subclassing_any = true +disallow_untyped_decorators = true +disallow_any_generics = true +disallow_untyped_calls = true +disallow_incomplete_defs = true +disallow_untyped_defs = true +no_implicit_reexport = true +warn_return_any = true diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6cbb2b9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +urllib3 >= 2.1.0, < 3.0.0 +python_dateutil >= 2.8.2 +pydantic >= 2 +typing-extensions >= 4.7.1 diff --git a/setup.cfg b/setup.cfg index 437295a..11433ee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,26 +1,2 @@ -[metadata] -name = coldfront_plugin_slurmrest -version = 0.0.1 -author = Claire Peters -author_email = clairepeters@g.harvard.edu -description = Slurm REST API plugin for ColdFront -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/coldfront/coldfront-slurm-plugin -project_urls = - Bug Tracker = https://github.com/coldfront/coldfront-slurm-plugin/issues -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: MIT License - Operating System :: OS Independent - -[options] -package_dir = - = src -packages = find: -python_requires = >=3.9 -install_requires = - coldfront >= 1.1.0 - -[options.packages.find] -where = src +[flake8] +max-line-length=99 diff --git a/setup.py b/setup.py index bac24a4..49990cf 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,51 @@ -#!/usr/bin/env python +# coding: utf-8 -import setuptools +""" + Slurm REST API -if __name__ == "__main__": - setuptools.setup() + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from setuptools import setup, find_packages # noqa: H301 + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools +NAME = "slurmrest_python" +VERSION = "0.0.1" +PYTHON_REQUIRES = ">= 3.9" +REQUIRES = [ + "urllib3 >= 2.1.0, < 3.0.0", + "python-dateutil >= 2.8.2", + "pydantic >= 2", + "typing-extensions >= 4.7.1", +] + +setup( + name=NAME, + version=VERSION, + description="Slurm REST API", + author="SchedMD LLC", + author_email="sales@schedmd.com", + url="", + keywords=["OpenAPI", "OpenAPI-Generator", "Slurm REST API"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + license="Apache 2.0", + long_description_content_type='text/markdown', + long_description="""\ + API to access and control Slurm + """, # noqa: E501 + package_data={"slurmrest_python": ["py.typed"]}, +) \ No newline at end of file diff --git a/slurmrest_python/__init__.py b/slurmrest_python/__init__.py new file mode 100644 index 0000000..90137ad --- /dev/null +++ b/slurmrest_python/__init__.py @@ -0,0 +1,1700 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +__version__ = "0.0.1" + +# Define package exports +__all__ = [ + "SlurmApi", + "SlurmdbApi", + "UtilApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "V0041JobAllocReq", + "V0041JobDescMsg", + "V0041JobDescMsgBeginTime", + "V0041JobDescMsgCrontab", + "V0041JobDescMsgCrontabLine", + "V0041JobDescMsgDistributionPlaneSize", + "V0041JobDescMsgKillWarningDelay", + "V0041JobDescMsgMemoryPerCpu", + "V0041JobDescMsgPriority", + "V0041JobDescMsgRequiredSwitches", + "V0041JobDescMsgRlimits", + "V0041JobDescMsgRlimitsAs", + "V0041JobDescMsgRlimitsCore", + "V0041JobDescMsgRlimitsCpu", + "V0041JobDescMsgRlimitsData", + "V0041JobDescMsgRlimitsFsize", + "V0041JobDescMsgRlimitsMemlock", + "V0041JobDescMsgRlimitsNofile", + "V0041JobDescMsgRlimitsNproc", + "V0041JobDescMsgRlimitsRss", + "V0041JobDescMsgRlimitsStack", + "V0041JobDescMsgSegmentSize", + "V0041JobDescMsgTimeLimit", + "V0041JobDescMsgTimeMinimum", + "V0041JobSubmitReq", + "V0041KillJobsMsg", + "V0041OpenapiAccountsAddCondResp", + "V0041OpenapiAccountsAddCondRespAccount", + "V0041OpenapiAccountsAddCondRespAssociationCondition", + "V0041OpenapiAccountsAddCondRespStr", + "V0041OpenapiAccountsRemovedResp", + "V0041OpenapiAccountsResp", + "V0041OpenapiAssocsRemovedResp", + "V0041OpenapiAssocsResp", + "V0041OpenapiClustersRemovedResp", + "V0041OpenapiClustersResp", + "V0041OpenapiDiagResp", + "V0041OpenapiDiagRespStatistics", + "V0041OpenapiDiagRespStatisticsBfExit", + "V0041OpenapiDiagRespStatisticsBfWhenLastCycle", + "V0041OpenapiDiagRespStatisticsJobStatesTs", + "V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner", + "V0041OpenapiDiagRespStatisticsPendingRpcsInner", + "V0041OpenapiDiagRespStatisticsReqTime", + "V0041OpenapiDiagRespStatisticsReqTimeStart", + "V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner", + "V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime", + "V0041OpenapiDiagRespStatisticsRpcsByUserInner", + "V0041OpenapiDiagRespStatisticsScheduleExit", + "V0041OpenapiInstancesResp", + "V0041OpenapiJobAllocResp", + "V0041OpenapiJobInfoResp", + "V0041OpenapiJobInfoRespJobsInner", + "V0041OpenapiJobInfoRespJobsInnerAccrueTime", + "V0041OpenapiJobInfoRespJobsInnerArrayJobId", + "V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks", + "V0041OpenapiJobInfoRespJobsInnerArrayTaskId", + "V0041OpenapiJobInfoRespJobsInnerBillableTres", + "V0041OpenapiJobInfoRespJobsInnerCoresPerSocket", + "V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor", + "V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum", + "V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum", + "V0041OpenapiJobInfoRespJobsInnerCpus", + "V0041OpenapiJobInfoRespJobsInnerCpusPerTask", + "V0041OpenapiJobInfoRespJobsInnerDeadline", + "V0041OpenapiJobInfoRespJobsInnerDelayBoot", + "V0041OpenapiJobInfoRespJobsInnerDerivedExitCode", + "V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode", + "V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal", + "V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId", + "V0041OpenapiJobInfoRespJobsInnerEligibleTime", + "V0041OpenapiJobInfoRespJobsInnerEndTime", + "V0041OpenapiJobInfoRespJobsInnerExitCode", + "V0041OpenapiJobInfoRespJobsInnerHetJobId", + "V0041OpenapiJobInfoRespJobsInnerHetJobOffset", + "V0041OpenapiJobInfoRespJobsInnerJobResources", + "V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes", + "V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner", + "V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus", + "V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory", + "V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner", + "V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner", + "V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore", + "V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation", + "V0041OpenapiJobInfoRespJobsInnerMaxCpus", + "V0041OpenapiJobInfoRespJobsInnerMaxNodes", + "V0041OpenapiJobInfoRespJobsInnerMemoryPerNode", + "V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode", + "V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode", + "V0041OpenapiJobInfoRespJobsInnerNodeCount", + "V0041OpenapiJobInfoRespJobsInnerPower", + "V0041OpenapiJobInfoRespJobsInnerPreSusTime", + "V0041OpenapiJobInfoRespJobsInnerPreemptTime", + "V0041OpenapiJobInfoRespJobsInnerPreemptableTime", + "V0041OpenapiJobInfoRespJobsInnerResizeTime", + "V0041OpenapiJobInfoRespJobsInnerSocketsPerNode", + "V0041OpenapiJobInfoRespJobsInnerStartTime", + "V0041OpenapiJobInfoRespJobsInnerSubmitTime", + "V0041OpenapiJobInfoRespJobsInnerSuspendTime", + "V0041OpenapiJobInfoRespJobsInnerTasks", + "V0041OpenapiJobInfoRespJobsInnerTasksPerBoard", + "V0041OpenapiJobInfoRespJobsInnerTasksPerCore", + "V0041OpenapiJobInfoRespJobsInnerTasksPerNode", + "V0041OpenapiJobInfoRespJobsInnerTasksPerSocket", + "V0041OpenapiJobInfoRespJobsInnerTasksPerTres", + "V0041OpenapiJobInfoRespJobsInnerThreadsPerCore", + "V0041OpenapiJobInfoRespLastBackfill", + "V0041OpenapiJobInfoRespLastUpdate", + "V0041OpenapiJobPostResponse", + "V0041OpenapiJobPostResponseResultsInner", + "V0041OpenapiJobSubmitResponse", + "V0041OpenapiJobSubmitResponseResult", + "V0041OpenapiKillJobsResp", + "V0041OpenapiKillJobsRespStatusInner", + "V0041OpenapiKillJobsRespStatusInnerError", + "V0041OpenapiKillJobsRespStatusInnerFederation", + "V0041OpenapiKillJobsRespStatusInnerJobId", + "V0041OpenapiLicensesResp", + "V0041OpenapiLicensesRespLastUpdate", + "V0041OpenapiLicensesRespLicensesInner", + "V0041OpenapiNodesResp", + "V0041OpenapiNodesRespLastUpdate", + "V0041OpenapiNodesRespNodesInner", + "V0041OpenapiNodesRespNodesInnerBootTime", + "V0041OpenapiNodesRespNodesInnerEnergy", + "V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts", + "V0041OpenapiNodesRespNodesInnerFreeMem", + "V0041OpenapiNodesRespNodesInnerLastBusy", + "V0041OpenapiNodesRespNodesInnerReasonChangedAt", + "V0041OpenapiNodesRespNodesInnerResumeAfter", + "V0041OpenapiNodesRespNodesInnerSlurmdStartTime", + "V0041OpenapiPartitionResp", + "V0041OpenapiPartitionRespLastUpdate", + "V0041OpenapiPartitionRespPartitionsInner", + "V0041OpenapiPartitionRespPartitionsInnerAccounts", + "V0041OpenapiPartitionRespPartitionsInnerCpus", + "V0041OpenapiPartitionRespPartitionsInnerDefaults", + "V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu", + "V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode", + "V0041OpenapiPartitionRespPartitionsInnerDefaultsTime", + "V0041OpenapiPartitionRespPartitionsInnerGroups", + "V0041OpenapiPartitionRespPartitionsInnerMaximums", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode", + "V0041OpenapiPartitionRespPartitionsInnerMaximumsTime", + "V0041OpenapiPartitionRespPartitionsInnerMinimums", + "V0041OpenapiPartitionRespPartitionsInnerNodes", + "V0041OpenapiPartitionRespPartitionsInnerPartition", + "V0041OpenapiPartitionRespPartitionsInnerPriority", + "V0041OpenapiPartitionRespPartitionsInnerQos", + "V0041OpenapiPartitionRespPartitionsInnerSuspendTime", + "V0041OpenapiPartitionRespPartitionsInnerTimeouts", + "V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume", + "V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend", + "V0041OpenapiPartitionRespPartitionsInnerTres", + "V0041OpenapiPingArrayResp", + "V0041OpenapiPingArrayRespPingsInner", + "V0041OpenapiReservationResp", + "V0041OpenapiReservationRespLastUpdate", + "V0041OpenapiReservationRespReservationsInner", + "V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner", + "V0041OpenapiReservationRespReservationsInnerEndTime", + "V0041OpenapiReservationRespReservationsInnerPurgeCompleted", + "V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime", + "V0041OpenapiReservationRespReservationsInnerStartTime", + "V0041OpenapiReservationRespReservationsInnerWatts", + "V0041OpenapiResp", + "V0041OpenapiSharesResp", + "V0041OpenapiSharesRespErrorsInner", + "V0041OpenapiSharesRespMeta", + "V0041OpenapiSharesRespMetaClient", + "V0041OpenapiSharesRespMetaPlugin", + "V0041OpenapiSharesRespMetaSlurm", + "V0041OpenapiSharesRespMetaSlurmVersion", + "V0041OpenapiSharesRespShares", + "V0041OpenapiSharesRespSharesSharesInner", + "V0041OpenapiSharesRespSharesSharesInnerFairshare", + "V0041OpenapiSharesRespSharesSharesInnerShares", + "V0041OpenapiSharesRespSharesSharesInnerSharesNormalized", + "V0041OpenapiSharesRespSharesSharesInnerTres", + "V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner", + "V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue", + "V0041OpenapiSharesRespSharesSharesInnerTresUsageInner", + "V0041OpenapiSharesRespSharesSharesInnerUsageNormalized", + "V0041OpenapiSharesRespWarningsInner", + "V0041OpenapiSlurmdbdConfigResp", + "V0041OpenapiSlurmdbdConfigRespAccountsInner", + "V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner", + "V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner", + "V0041OpenapiSlurmdbdConfigRespAssociationsInner", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin", + "V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority", + "V0041OpenapiSlurmdbdConfigRespClustersInner", + "V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations", + "V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot", + "V0041OpenapiSlurmdbdConfigRespClustersInnerController", + "V0041OpenapiSlurmdbdConfigRespInstancesInner", + "V0041OpenapiSlurmdbdConfigRespInstancesInnerTime", + "V0041OpenapiSlurmdbdConfigRespQosInner", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimits", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres", + "V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer", + "V0041OpenapiSlurmdbdConfigRespQosInnerPreempt", + "V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime", + "V0041OpenapiSlurmdbdConfigRespQosInnerPriority", + "V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor", + "V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold", + "V0041OpenapiSlurmdbdConfigRespUsersInner", + "V0041OpenapiSlurmdbdConfigRespUsersInnerDefault", + "V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner", + "V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner", + "V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated", + "V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES", + "V0041OpenapiSlurmdbdJobsResp", + "V0041OpenapiSlurmdbdJobsRespJobsInner", + "V0041OpenapiSlurmdbdJobsRespJobsInnerArray", + "V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits", + "V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax", + "V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning", + "V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation", + "V0041OpenapiSlurmdbdJobsRespJobsInnerComment", + "V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode", + "V0041OpenapiSlurmdbdJobsRespJobsInnerHet", + "V0041OpenapiSlurmdbdJobsRespJobsInnerMcs", + "V0041OpenapiSlurmdbdJobsRespJobsInnerRequired", + "V0041OpenapiSlurmdbdJobsRespJobsInnerReservation", + "V0041OpenapiSlurmdbdJobsRespJobsInnerState", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested", + "V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner", + "V0041OpenapiSlurmdbdJobsRespJobsInnerTime", + "V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned", + "V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem", + "V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal", + "V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser", + "V0041OpenapiSlurmdbdJobsRespJobsInnerTres", + "V0041OpenapiSlurmdbdJobsRespJobsInnerWckey", + "V0041OpenapiSlurmdbdQosRemovedResp", + "V0041OpenapiSlurmdbdQosResp", + "V0041OpenapiSlurmdbdStatsResp", + "V0041OpenapiSlurmdbdStatsRespStatistics", + "V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner", + "V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime", + "V0041OpenapiSlurmdbdStatsRespStatisticsRollups", + "V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily", + "V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration", + "V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly", + "V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration", + "V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly", + "V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration", + "V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner", + "V0041OpenapiTresResp", + "V0041OpenapiUsersAddCondResp", + "V0041OpenapiUsersAddCondRespAssociationCondition", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociation", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob", + "V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh", + "V0041OpenapiUsersAddCondRespStr", + "V0041OpenapiUsersAddCondRespUser", + "V0041OpenapiUsersResp", + "V0041OpenapiWckeyRemovedResp", + "V0041OpenapiWckeyResp", + "V0041UpdateNodeMsg", + "V0041UpdateNodeMsgResumeAfter", + "V0041UpdateNodeMsgWeight", + "V0042Account", + "V0042AccountShort", + "V0042Accounting", + "V0042AccountsAddCond", + "V0042AcctGatherEnergy", + "V0042Assoc", + "V0042AssocMax", + "V0042AssocMaxJobs", + "V0042AssocMaxJobsPer", + "V0042AssocMaxPer", + "V0042AssocMaxPerAccount", + "V0042AssocMaxTres", + "V0042AssocMaxTresGroup", + "V0042AssocMaxTresMinutes", + "V0042AssocMaxTresPer", + "V0042AssocMin", + "V0042AssocRecSet", + "V0042AssocSharesObjWrap", + "V0042AssocSharesObjWrapFairshare", + "V0042AssocSharesObjWrapTres", + "V0042AssocShort", + "V0042BfExitFields", + "V0042ClusterRec", + "V0042ClusterRecAssociations", + "V0042ControllerPing", + "V0042Coord", + "V0042CronEntry", + "V0042Float64NoValStruct", + "V0042Instance", + "V0042Job", + "V0042JobAllocReq", + "V0042JobArray", + "V0042JobArrayResponseMsgEntry", + "V0042JobDescMsg", + "V0042JobDescMsgRlimits", + "V0042JobHet", + "V0042JobInfo", + "V0042JobRequired", + "V0042JobRes", + "V0042JobResCore", + "V0042JobResNode", + "V0042JobResNodes", + "V0042JobResSocket", + "V0042JobState", + "V0042JobSubmitReq", + "V0042JobTime", + "V0042JobTres", + "V0042KillJobsMsg", + "V0042KillJobsRespJob", + "V0042License", + "V0042Node", + "V0042OpenapiAccountsAddCondResp", + "V0042OpenapiAccountsAddCondRespStr", + "V0042OpenapiAccountsRemovedResp", + "V0042OpenapiAccountsResp", + "V0042OpenapiAssocsRemovedResp", + "V0042OpenapiAssocsResp", + "V0042OpenapiClustersRemovedResp", + "V0042OpenapiClustersResp", + "V0042OpenapiDiagResp", + "V0042OpenapiError", + "V0042OpenapiInstancesResp", + "V0042OpenapiJobAllocResp", + "V0042OpenapiJobInfoResp", + "V0042OpenapiJobPostResponse", + "V0042OpenapiJobSubmitResponse", + "V0042OpenapiKillJobResp", + "V0042OpenapiKillJobsResp", + "V0042OpenapiLicensesResp", + "V0042OpenapiMeta", + "V0042OpenapiNodesResp", + "V0042OpenapiPartitionResp", + "V0042OpenapiPingArrayResp", + "V0042OpenapiReservationResp", + "V0042OpenapiResp", + "V0042OpenapiSharesResp", + "V0042OpenapiSlurmdbdConfigResp", + "V0042OpenapiSlurmdbdJobsResp", + "V0042OpenapiSlurmdbdPingResp", + "V0042OpenapiSlurmdbdQosRemovedResp", + "V0042OpenapiSlurmdbdQosResp", + "V0042OpenapiSlurmdbdStatsResp", + "V0042OpenapiTresResp", + "V0042OpenapiUsersAddCondResp", + "V0042OpenapiUsersAddCondRespStr", + "V0042OpenapiUsersResp", + "V0042OpenapiWarning", + "V0042OpenapiWckeyRemovedResp", + "V0042OpenapiWckeyResp", + "V0042PartPrio", + "V0042PartitionInfo", + "V0042PartitionInfoDefaults", + "V0042PartitionInfoMaximums", + "V0042PartitionInfoMaximumsOversubscribe", + "V0042PartitionInfoPartition", + "V0042PartitionInfoTimeouts", + "V0042ProcessExitCodeVerbose", + "V0042ProcessExitCodeVerboseSignal", + "V0042Qos", + "V0042QosLimits", + "V0042QosLimitsMax", + "V0042QosLimitsMaxActiveJobs", + "V0042QosLimitsMaxJobs", + "V0042QosLimitsMaxJobsActiveJobs", + "V0042QosLimitsMaxJobsActiveJobsPer", + "V0042QosLimitsMaxTres", + "V0042QosLimitsMaxTresMinutes", + "V0042QosLimitsMaxTresMinutesPer", + "V0042QosLimitsMaxTresPer", + "V0042QosLimitsMaxWallClock", + "V0042QosLimitsMaxWallClockPer", + "V0042QosLimitsMin", + "V0042QosLimitsMinTres", + "V0042QosLimitsMinTresPer", + "V0042QosPreempt", + "V0042ReservationCoreSpec", + "V0042ReservationInfo", + "V0042ReservationInfoPurgeCompleted", + "V0042RollupStats", + "V0042ScheduleExitFields", + "V0042SharesFloat128Tres", + "V0042SharesRespMsg", + "V0042SharesUint64Tres", + "V0042SlurmdbdPing", + "V0042StatsMsg", + "V0042StatsMsgRpcDump", + "V0042StatsMsgRpcQueue", + "V0042StatsMsgRpcType", + "V0042StatsMsgRpcUser", + "V0042StatsRec", + "V0042StatsRpc", + "V0042StatsUser", + "V0042Step", + "V0042StepCPU", + "V0042StepCPURequestedFrequency", + "V0042StepNodes", + "V0042StepStatistics", + "V0042StepStatisticsEnergy", + "V0042StepTime", + "V0042StepTres", + "V0042StepTresConsumed", + "V0042StepTresRequested", + "V0042Tres", + "V0042Uint16NoValStruct", + "V0042Uint32NoValStruct", + "V0042Uint64NoValStruct", + "V0042UpdateNodeMsg", + "V0042User", + "V0042UserDefault", + "V0042UserShort", + "V0042UsersAddCond", + "V0042Wckey", + "V0042WckeyTagStruct", + "V0043Account", + "V0043AccountShort", + "V0043Accounting", + "V0043AccountsAddCond", + "V0043AcctGatherEnergy", + "V0043Assoc", + "V0043AssocMax", + "V0043AssocMaxJobs", + "V0043AssocMaxJobsPer", + "V0043AssocMaxPer", + "V0043AssocMaxPerAccount", + "V0043AssocMaxTres", + "V0043AssocMaxTresGroup", + "V0043AssocMaxTresMinutes", + "V0043AssocMaxTresPer", + "V0043AssocMin", + "V0043AssocRecSet", + "V0043AssocSharesObjWrap", + "V0043AssocSharesObjWrapFairshare", + "V0043AssocSharesObjWrapTres", + "V0043AssocShort", + "V0043BfExitFields", + "V0043ClusterRec", + "V0043ClusterRecAssociations", + "V0043ControllerPing", + "V0043Coord", + "V0043CronEntry", + "V0043Float64NoValStruct", + "V0043Instance", + "V0043Job", + "V0043JobAllocReq", + "V0043JobArray", + "V0043JobArrayResponseMsgEntry", + "V0043JobDescMsg", + "V0043JobDescMsgRlimits", + "V0043JobHet", + "V0043JobInfo", + "V0043JobRequired", + "V0043JobRes", + "V0043JobResCore", + "V0043JobResNode", + "V0043JobResNodes", + "V0043JobResSocket", + "V0043JobSubmitReq", + "V0043JobTime", + "V0043JobTres", + "V0043KillJobsMsg", + "V0043KillJobsRespJob", + "V0043License", + "V0043Node", + "V0043OpenapiAccountsAddCondResp", + "V0043OpenapiAccountsAddCondRespStr", + "V0043OpenapiAccountsRemovedResp", + "V0043OpenapiAccountsResp", + "V0043OpenapiAssocsRemovedResp", + "V0043OpenapiAssocsResp", + "V0043OpenapiClustersRemovedResp", + "V0043OpenapiClustersResp", + "V0043OpenapiDiagResp", + "V0043OpenapiError", + "V0043OpenapiInstancesResp", + "V0043OpenapiJobAllocResp", + "V0043OpenapiJobInfoResp", + "V0043OpenapiJobPostResponse", + "V0043OpenapiJobSubmitResponse", + "V0043OpenapiKillJobResp", + "V0043OpenapiKillJobsResp", + "V0043OpenapiLicensesResp", + "V0043OpenapiMeta", + "V0043OpenapiNodesResp", + "V0043OpenapiPartitionResp", + "V0043OpenapiPingArrayResp", + "V0043OpenapiReservationModResp", + "V0043OpenapiReservationResp", + "V0043OpenapiResp", + "V0043OpenapiSharesResp", + "V0043OpenapiSlurmdbdConfigResp", + "V0043OpenapiSlurmdbdJobsResp", + "V0043OpenapiSlurmdbdPingResp", + "V0043OpenapiSlurmdbdQosRemovedResp", + "V0043OpenapiSlurmdbdQosResp", + "V0043OpenapiSlurmdbdStatsResp", + "V0043OpenapiTresResp", + "V0043OpenapiUsersAddCondResp", + "V0043OpenapiUsersAddCondRespStr", + "V0043OpenapiUsersResp", + "V0043OpenapiWarning", + "V0043OpenapiWckeyRemovedResp", + "V0043OpenapiWckeyResp", + "V0043PartPrio", + "V0043PartitionInfo", + "V0043PartitionInfoDefaults", + "V0043PartitionInfoMaximums", + "V0043PartitionInfoTimeouts", + "V0043ProcessExitCodeVerbose", + "V0043ProcessExitCodeVerboseSignal", + "V0043Qos", + "V0043QosLimits", + "V0043QosLimitsMax", + "V0043QosLimitsMaxActiveJobs", + "V0043QosLimitsMaxJobs", + "V0043QosLimitsMaxJobsActiveJobs", + "V0043QosLimitsMaxJobsActiveJobsPer", + "V0043QosLimitsMaxTres", + "V0043QosLimitsMaxTresMinutes", + "V0043QosLimitsMaxTresMinutesPer", + "V0043QosLimitsMaxTresPer", + "V0043QosLimitsMaxWallClock", + "V0043QosLimitsMaxWallClockPer", + "V0043QosLimitsMin", + "V0043QosLimitsMinTres", + "V0043QosLimitsMinTresPer", + "V0043QosPreempt", + "V0043ReservationCoreSpec", + "V0043ReservationDescMsg", + "V0043ReservationInfo", + "V0043ReservationInfoPurgeCompleted", + "V0043ReservationModReq", + "V0043RollupStats", + "V0043ScheduleExitFields", + "V0043SharesFloat128Tres", + "V0043SharesRespMsg", + "V0043SharesUint64Tres", + "V0043SlurmdbdPing", + "V0043StatsMsg", + "V0043StatsMsgRpcDump", + "V0043StatsMsgRpcQueue", + "V0043StatsMsgRpcType", + "V0043StatsMsgRpcUser", + "V0043StatsRec", + "V0043StatsRpc", + "V0043StatsUser", + "V0043Step", + "V0043StepCPU", + "V0043StepCPURequestedFrequency", + "V0043StepNodes", + "V0043StepStatistics", + "V0043StepStatisticsEnergy", + "V0043StepTime", + "V0043StepTres", + "V0043StepTresConsumed", + "V0043StepTresRequested", + "V0043Tres", + "V0043Uint16NoValStruct", + "V0043Uint32NoValStruct", + "V0043Uint64NoValStruct", + "V0043UpdateNodeMsg", + "V0043User", + "V0043UserShort", + "V0043UsersAddCond", + "V0043Wckey", + "V0043WckeyTagStruct", + "V0044Account", + "V0044AccountShort", + "V0044Accounting", + "V0044AccountingAllocated", + "V0044AccountsAddCond", + "V0044AcctGatherEnergy", + "V0044Assoc", + "V0044AssocMax", + "V0044AssocMaxJobs", + "V0044AssocMaxJobsPer", + "V0044AssocMaxPer", + "V0044AssocMaxPerAccount", + "V0044AssocMaxTres", + "V0044AssocMaxTresGroup", + "V0044AssocMaxTresMinutes", + "V0044AssocMaxTresPer", + "V0044AssocMin", + "V0044AssocRecSet", + "V0044AssocSharesObjWrap", + "V0044AssocSharesObjWrapFairshare", + "V0044AssocSharesObjWrapTres", + "V0044AssocShort", + "V0044BfExitFields", + "V0044ClusterRec", + "V0044ClusterRecAssociations", + "V0044ControllerPing", + "V0044Coord", + "V0044CronEntry", + "V0044Float64NoValStruct", + "V0044Instance", + "V0044InstanceTime", + "V0044Job", + "V0044JobAllocReq", + "V0044JobArray", + "V0044JobArrayResponseMsgEntry", + "V0044JobDescMsg", + "V0044JobDescMsgRlimits", + "V0044JobHet", + "V0044JobInfo", + "V0044JobModify", + "V0044JobModifyTres", + "V0044JobRequired", + "V0044JobRes", + "V0044JobResCore", + "V0044JobResNode", + "V0044JobResNodes", + "V0044JobResSocket", + "V0044JobReservation", + "V0044JobState", + "V0044JobSubmitReq", + "V0044JobTime", + "V0044JobTres", + "V0044KillJobsMsg", + "V0044KillJobsRespJob", + "V0044License", + "V0044Node", + "V0044NodeGresLayout", + "V0044NodeResourceLayout", + "V0044OpenapiAccountsAddCondResp", + "V0044OpenapiAccountsAddCondRespStr", + "V0044OpenapiAccountsRemovedResp", + "V0044OpenapiAccountsResp", + "V0044OpenapiAssocsRemovedResp", + "V0044OpenapiAssocsResp", + "V0044OpenapiClustersRemovedResp", + "V0044OpenapiClustersResp", + "V0044OpenapiCreateNodeReq", + "V0044OpenapiDiagResp", + "V0044OpenapiError", + "V0044OpenapiHostlistReqResp", + "V0044OpenapiHostnamesReqResp", + "V0044OpenapiInstancesResp", + "V0044OpenapiJobAllocResp", + "V0044OpenapiJobInfoResp", + "V0044OpenapiJobModifyReq", + "V0044OpenapiJobModifyResp", + "V0044OpenapiJobPostResponse", + "V0044OpenapiJobSubmitResponse", + "V0044OpenapiKillJobResp", + "V0044OpenapiKillJobsResp", + "V0044OpenapiLicensesResp", + "V0044OpenapiMeta", + "V0044OpenapiNodesResp", + "V0044OpenapiPartitionResp", + "V0044OpenapiPingArrayResp", + "V0044OpenapiReservationModResp", + "V0044OpenapiReservationResp", + "V0044OpenapiResourceLayoutResp", + "V0044OpenapiResp", + "V0044OpenapiSharesResp", + "V0044OpenapiSlurmdbdConfigResp", + "V0044OpenapiSlurmdbdJobsResp", + "V0044OpenapiSlurmdbdPingResp", + "V0044OpenapiSlurmdbdQosRemovedResp", + "V0044OpenapiSlurmdbdQosResp", + "V0044OpenapiSlurmdbdStatsResp", + "V0044OpenapiTresResp", + "V0044OpenapiUsersAddCondResp", + "V0044OpenapiUsersAddCondRespStr", + "V0044OpenapiUsersResp", + "V0044OpenapiWarning", + "V0044OpenapiWckeyRemovedResp", + "V0044OpenapiWckeyResp", + "V0044PartPrio", + "V0044PartitionInfo", + "V0044PartitionInfoAccounts", + "V0044PartitionInfoCpus", + "V0044PartitionInfoDefaults", + "V0044PartitionInfoGroups", + "V0044PartitionInfoMaximums", + "V0044PartitionInfoMinimums", + "V0044PartitionInfoNodes", + "V0044PartitionInfoPriority", + "V0044PartitionInfoQos", + "V0044PartitionInfoTimeouts", + "V0044PartitionInfoTres", + "V0044ProcessExitCodeVerbose", + "V0044ProcessExitCodeVerboseSignal", + "V0044Qos", + "V0044QosLimits", + "V0044QosLimitsMax", + "V0044QosLimitsMaxActiveJobs", + "V0044QosLimitsMaxJobs", + "V0044QosLimitsMaxJobsActiveJobs", + "V0044QosLimitsMaxJobsActiveJobsPer", + "V0044QosLimitsMaxTres", + "V0044QosLimitsMaxTresMinutes", + "V0044QosLimitsMaxTresMinutesPer", + "V0044QosLimitsMaxTresPer", + "V0044QosLimitsMaxWallClock", + "V0044QosLimitsMaxWallClockPer", + "V0044QosLimitsMin", + "V0044QosLimitsMinTres", + "V0044QosLimitsMinTresPer", + "V0044QosPreempt", + "V0044ReservationCoreSpec", + "V0044ReservationDescMsg", + "V0044ReservationInfo", + "V0044ReservationInfoPurgeCompleted", + "V0044ReservationModReq", + "V0044RollupStats", + "V0044RollupStatsDaily", + "V0044RollupStatsHourly", + "V0044RollupStatsMonthly", + "V0044ScheduleExitFields", + "V0044SharesFloat128Tres", + "V0044SharesRespMsg", + "V0044SharesUint64Tres", + "V0044SlurmStepId", + "V0044SlurmdbdPing", + "V0044StatsMsg", + "V0044StatsMsgRpcDump", + "V0044StatsMsgRpcQueue", + "V0044StatsMsgRpcType", + "V0044StatsMsgRpcUser", + "V0044StatsRec", + "V0044StatsRpc", + "V0044StatsUser", + "V0044Step", + "V0044StepCPU", + "V0044StepCPURequestedFrequency", + "V0044StepNodes", + "V0044StepStatistics", + "V0044StepStatisticsEnergy", + "V0044StepStep", + "V0044StepTime", + "V0044StepTres", + "V0044StepTresConsumed", + "V0044StepTresRequested", + "V0044Tres", + "V0044Uint16NoValStruct", + "V0044Uint32NoValStruct", + "V0044Uint64NoValStruct", + "V0044UpdateNodeMsg", + "V0044User", + "V0044UserDefault", + "V0044UserShort", + "V0044UsersAddCond", + "V0044Wckey", + "V0044WckeyTagStruct", +] + +# import apis into sdk package +from slurmrest_python.api.slurm_api import SlurmApi as SlurmApi +from slurmrest_python.api.slurmdb_api import SlurmdbApi as SlurmdbApi +from slurmrest_python.api.util_api import UtilApi as UtilApi + +# import ApiClient +from slurmrest_python.api_response import ApiResponse as ApiResponse +from slurmrest_python.api_client import ApiClient as ApiClient +from slurmrest_python.configuration import Configuration as Configuration +from slurmrest_python.exceptions import OpenApiException as OpenApiException +from slurmrest_python.exceptions import ApiTypeError as ApiTypeError +from slurmrest_python.exceptions import ApiValueError as ApiValueError +from slurmrest_python.exceptions import ApiKeyError as ApiKeyError +from slurmrest_python.exceptions import ApiAttributeError as ApiAttributeError +from slurmrest_python.exceptions import ApiException as ApiException + +# import models into sdk package +from slurmrest_python.models.v0041_job_alloc_req import V0041JobAllocReq as V0041JobAllocReq +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg as V0041JobDescMsg +from slurmrest_python.models.v0041_job_desc_msg_begin_time import V0041JobDescMsgBeginTime as V0041JobDescMsgBeginTime +from slurmrest_python.models.v0041_job_desc_msg_crontab import V0041JobDescMsgCrontab as V0041JobDescMsgCrontab +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine as V0041JobDescMsgCrontabLine +from slurmrest_python.models.v0041_job_desc_msg_distribution_plane_size import V0041JobDescMsgDistributionPlaneSize as V0041JobDescMsgDistributionPlaneSize +from slurmrest_python.models.v0041_job_desc_msg_kill_warning_delay import V0041JobDescMsgKillWarningDelay as V0041JobDescMsgKillWarningDelay +from slurmrest_python.models.v0041_job_desc_msg_memory_per_cpu import V0041JobDescMsgMemoryPerCpu as V0041JobDescMsgMemoryPerCpu +from slurmrest_python.models.v0041_job_desc_msg_priority import V0041JobDescMsgPriority as V0041JobDescMsgPriority +from slurmrest_python.models.v0041_job_desc_msg_required_switches import V0041JobDescMsgRequiredSwitches as V0041JobDescMsgRequiredSwitches +from slurmrest_python.models.v0041_job_desc_msg_rlimits import V0041JobDescMsgRlimits as V0041JobDescMsgRlimits +from slurmrest_python.models.v0041_job_desc_msg_rlimits_as import V0041JobDescMsgRlimitsAs as V0041JobDescMsgRlimitsAs +from slurmrest_python.models.v0041_job_desc_msg_rlimits_core import V0041JobDescMsgRlimitsCore as V0041JobDescMsgRlimitsCore +from slurmrest_python.models.v0041_job_desc_msg_rlimits_cpu import V0041JobDescMsgRlimitsCpu as V0041JobDescMsgRlimitsCpu +from slurmrest_python.models.v0041_job_desc_msg_rlimits_data import V0041JobDescMsgRlimitsData as V0041JobDescMsgRlimitsData +from slurmrest_python.models.v0041_job_desc_msg_rlimits_fsize import V0041JobDescMsgRlimitsFsize as V0041JobDescMsgRlimitsFsize +from slurmrest_python.models.v0041_job_desc_msg_rlimits_memlock import V0041JobDescMsgRlimitsMemlock as V0041JobDescMsgRlimitsMemlock +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nofile import V0041JobDescMsgRlimitsNofile as V0041JobDescMsgRlimitsNofile +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nproc import V0041JobDescMsgRlimitsNproc as V0041JobDescMsgRlimitsNproc +from slurmrest_python.models.v0041_job_desc_msg_rlimits_rss import V0041JobDescMsgRlimitsRss as V0041JobDescMsgRlimitsRss +from slurmrest_python.models.v0041_job_desc_msg_rlimits_stack import V0041JobDescMsgRlimitsStack as V0041JobDescMsgRlimitsStack +from slurmrest_python.models.v0041_job_desc_msg_segment_size import V0041JobDescMsgSegmentSize as V0041JobDescMsgSegmentSize +from slurmrest_python.models.v0041_job_desc_msg_time_limit import V0041JobDescMsgTimeLimit as V0041JobDescMsgTimeLimit +from slurmrest_python.models.v0041_job_desc_msg_time_minimum import V0041JobDescMsgTimeMinimum as V0041JobDescMsgTimeMinimum +from slurmrest_python.models.v0041_job_submit_req import V0041JobSubmitReq as V0041JobSubmitReq +from slurmrest_python.models.v0041_kill_jobs_msg import V0041KillJobsMsg as V0041KillJobsMsg +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp import V0041OpenapiAccountsAddCondResp as V0041OpenapiAccountsAddCondResp +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_account import V0041OpenapiAccountsAddCondRespAccount as V0041OpenapiAccountsAddCondRespAccount +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_association_condition import V0041OpenapiAccountsAddCondRespAssociationCondition as V0041OpenapiAccountsAddCondRespAssociationCondition +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_str import V0041OpenapiAccountsAddCondRespStr as V0041OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0041_openapi_accounts_removed_resp import V0041OpenapiAccountsRemovedResp as V0041OpenapiAccountsRemovedResp +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp as V0041OpenapiAccountsResp +from slurmrest_python.models.v0041_openapi_assocs_removed_resp import V0041OpenapiAssocsRemovedResp as V0041OpenapiAssocsRemovedResp +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp as V0041OpenapiAssocsResp +from slurmrest_python.models.v0041_openapi_clusters_removed_resp import V0041OpenapiClustersRemovedResp as V0041OpenapiClustersRemovedResp +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp as V0041OpenapiClustersResp +from slurmrest_python.models.v0041_openapi_diag_resp import V0041OpenapiDiagResp as V0041OpenapiDiagResp +from slurmrest_python.models.v0041_openapi_diag_resp_statistics import V0041OpenapiDiagRespStatistics as V0041OpenapiDiagRespStatistics +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_exit import V0041OpenapiDiagRespStatisticsBfExit as V0041OpenapiDiagRespStatisticsBfExit +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_when_last_cycle import V0041OpenapiDiagRespStatisticsBfWhenLastCycle as V0041OpenapiDiagRespStatisticsBfWhenLastCycle +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_job_states_ts import V0041OpenapiDiagRespStatisticsJobStatesTs as V0041OpenapiDiagRespStatisticsJobStatesTs +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner import V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner as V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_inner import V0041OpenapiDiagRespStatisticsPendingRpcsInner as V0041OpenapiDiagRespStatisticsPendingRpcsInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time import V0041OpenapiDiagRespStatisticsReqTime as V0041OpenapiDiagRespStatisticsReqTime +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time_start import V0041OpenapiDiagRespStatisticsReqTimeStart as V0041OpenapiDiagRespStatisticsReqTimeStart +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner as V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime as V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_user_inner import V0041OpenapiDiagRespStatisticsRpcsByUserInner as V0041OpenapiDiagRespStatisticsRpcsByUserInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_schedule_exit import V0041OpenapiDiagRespStatisticsScheduleExit as V0041OpenapiDiagRespStatisticsScheduleExit +from slurmrest_python.models.v0041_openapi_instances_resp import V0041OpenapiInstancesResp as V0041OpenapiInstancesResp +from slurmrest_python.models.v0041_openapi_job_alloc_resp import V0041OpenapiJobAllocResp as V0041OpenapiJobAllocResp +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp as V0041OpenapiJobInfoResp +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner import V0041OpenapiJobInfoRespJobsInner as V0041OpenapiJobInfoRespJobsInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_accrue_time import V0041OpenapiJobInfoRespJobsInnerAccrueTime as V0041OpenapiJobInfoRespJobsInnerAccrueTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_job_id import V0041OpenapiJobInfoRespJobsInnerArrayJobId as V0041OpenapiJobInfoRespJobsInnerArrayJobId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_max_tasks import V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks as V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_task_id import V0041OpenapiJobInfoRespJobsInnerArrayTaskId as V0041OpenapiJobInfoRespJobsInnerArrayTaskId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_billable_tres import V0041OpenapiJobInfoRespJobsInnerBillableTres as V0041OpenapiJobInfoRespJobsInnerBillableTres +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cores_per_socket import V0041OpenapiJobInfoRespJobsInnerCoresPerSocket as V0041OpenapiJobInfoRespJobsInnerCoresPerSocket +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor as V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum as V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum as V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus import V0041OpenapiJobInfoRespJobsInnerCpus as V0041OpenapiJobInfoRespJobsInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus_per_task import V0041OpenapiJobInfoRespJobsInnerCpusPerTask as V0041OpenapiJobInfoRespJobsInnerCpusPerTask +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_deadline import V0041OpenapiJobInfoRespJobsInnerDeadline as V0041OpenapiJobInfoRespJobsInnerDeadline +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_delay_boot import V0041OpenapiJobInfoRespJobsInnerDelayBoot as V0041OpenapiJobInfoRespJobsInnerDelayBoot +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCode as V0041OpenapiJobInfoRespJobsInnerDerivedExitCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode as V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal as V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId as V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_eligible_time import V0041OpenapiJobInfoRespJobsInnerEligibleTime as V0041OpenapiJobInfoRespJobsInnerEligibleTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_end_time import V0041OpenapiJobInfoRespJobsInnerEndTime as V0041OpenapiJobInfoRespJobsInnerEndTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_exit_code import V0041OpenapiJobInfoRespJobsInnerExitCode as V0041OpenapiJobInfoRespJobsInnerExitCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_id import V0041OpenapiJobInfoRespJobsInnerHetJobId as V0041OpenapiJobInfoRespJobsInnerHetJobId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_offset import V0041OpenapiJobInfoRespJobsInnerHetJobOffset as V0041OpenapiJobInfoRespJobsInnerHetJobOffset +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources import V0041OpenapiJobInfoRespJobsInnerJobResources as V0041OpenapiJobInfoRespJobsInnerJobResources +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes as V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner as V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus as V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory as V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner as V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner as V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core import V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore as V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation import V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation as V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_cpus import V0041OpenapiJobInfoRespJobsInnerMaxCpus as V0041OpenapiJobInfoRespJobsInnerMaxCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_nodes import V0041OpenapiJobInfoRespJobsInnerMaxNodes as V0041OpenapiJobInfoRespJobsInnerMaxNodes +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_memory_per_node import V0041OpenapiJobInfoRespJobsInnerMemoryPerNode as V0041OpenapiJobInfoRespJobsInnerMemoryPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode as V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode as V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_node_count import V0041OpenapiJobInfoRespJobsInnerNodeCount as V0041OpenapiJobInfoRespJobsInnerNodeCount +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower as V0041OpenapiJobInfoRespJobsInnerPower +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_pre_sus_time import V0041OpenapiJobInfoRespJobsInnerPreSusTime as V0041OpenapiJobInfoRespJobsInnerPreSusTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preempt_time import V0041OpenapiJobInfoRespJobsInnerPreemptTime as V0041OpenapiJobInfoRespJobsInnerPreemptTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preemptable_time import V0041OpenapiJobInfoRespJobsInnerPreemptableTime as V0041OpenapiJobInfoRespJobsInnerPreemptableTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_resize_time import V0041OpenapiJobInfoRespJobsInnerResizeTime as V0041OpenapiJobInfoRespJobsInnerResizeTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_sockets_per_node import V0041OpenapiJobInfoRespJobsInnerSocketsPerNode as V0041OpenapiJobInfoRespJobsInnerSocketsPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_start_time import V0041OpenapiJobInfoRespJobsInnerStartTime as V0041OpenapiJobInfoRespJobsInnerStartTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_submit_time import V0041OpenapiJobInfoRespJobsInnerSubmitTime as V0041OpenapiJobInfoRespJobsInnerSubmitTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_suspend_time import V0041OpenapiJobInfoRespJobsInnerSuspendTime as V0041OpenapiJobInfoRespJobsInnerSuspendTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks import V0041OpenapiJobInfoRespJobsInnerTasks as V0041OpenapiJobInfoRespJobsInnerTasks +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_board import V0041OpenapiJobInfoRespJobsInnerTasksPerBoard as V0041OpenapiJobInfoRespJobsInnerTasksPerBoard +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_core import V0041OpenapiJobInfoRespJobsInnerTasksPerCore as V0041OpenapiJobInfoRespJobsInnerTasksPerCore +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_node import V0041OpenapiJobInfoRespJobsInnerTasksPerNode as V0041OpenapiJobInfoRespJobsInnerTasksPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket import V0041OpenapiJobInfoRespJobsInnerTasksPerSocket as V0041OpenapiJobInfoRespJobsInnerTasksPerSocket +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres import V0041OpenapiJobInfoRespJobsInnerTasksPerTres as V0041OpenapiJobInfoRespJobsInnerTasksPerTres +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_threads_per_core import V0041OpenapiJobInfoRespJobsInnerThreadsPerCore as V0041OpenapiJobInfoRespJobsInnerThreadsPerCore +from slurmrest_python.models.v0041_openapi_job_info_resp_last_backfill import V0041OpenapiJobInfoRespLastBackfill as V0041OpenapiJobInfoRespLastBackfill +from slurmrest_python.models.v0041_openapi_job_info_resp_last_update import V0041OpenapiJobInfoRespLastUpdate as V0041OpenapiJobInfoRespLastUpdate +from slurmrest_python.models.v0041_openapi_job_post_response import V0041OpenapiJobPostResponse as V0041OpenapiJobPostResponse +from slurmrest_python.models.v0041_openapi_job_post_response_results_inner import V0041OpenapiJobPostResponseResultsInner as V0041OpenapiJobPostResponseResultsInner +from slurmrest_python.models.v0041_openapi_job_submit_response import V0041OpenapiJobSubmitResponse as V0041OpenapiJobSubmitResponse +from slurmrest_python.models.v0041_openapi_job_submit_response_result import V0041OpenapiJobSubmitResponseResult as V0041OpenapiJobSubmitResponseResult +from slurmrest_python.models.v0041_openapi_kill_jobs_resp import V0041OpenapiKillJobsResp as V0041OpenapiKillJobsResp +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner import V0041OpenapiKillJobsRespStatusInner as V0041OpenapiKillJobsRespStatusInner +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError as V0041OpenapiKillJobsRespStatusInnerError +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation as V0041OpenapiKillJobsRespStatusInnerFederation +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_job_id import V0041OpenapiKillJobsRespStatusInnerJobId as V0041OpenapiKillJobsRespStatusInnerJobId +from slurmrest_python.models.v0041_openapi_licenses_resp import V0041OpenapiLicensesResp as V0041OpenapiLicensesResp +from slurmrest_python.models.v0041_openapi_licenses_resp_last_update import V0041OpenapiLicensesRespLastUpdate as V0041OpenapiLicensesRespLastUpdate +from slurmrest_python.models.v0041_openapi_licenses_resp_licenses_inner import V0041OpenapiLicensesRespLicensesInner as V0041OpenapiLicensesRespLicensesInner +from slurmrest_python.models.v0041_openapi_nodes_resp import V0041OpenapiNodesResp as V0041OpenapiNodesResp +from slurmrest_python.models.v0041_openapi_nodes_resp_last_update import V0041OpenapiNodesRespLastUpdate as V0041OpenapiNodesRespLastUpdate +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner import V0041OpenapiNodesRespNodesInner as V0041OpenapiNodesRespNodesInner +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_boot_time import V0041OpenapiNodesRespNodesInnerBootTime as V0041OpenapiNodesRespNodesInnerBootTime +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy import V0041OpenapiNodesRespNodesInnerEnergy as V0041OpenapiNodesRespNodesInnerEnergy +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy_current_watts import V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts as V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_free_mem import V0041OpenapiNodesRespNodesInnerFreeMem as V0041OpenapiNodesRespNodesInnerFreeMem +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_last_busy import V0041OpenapiNodesRespNodesInnerLastBusy as V0041OpenapiNodesRespNodesInnerLastBusy +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_reason_changed_at import V0041OpenapiNodesRespNodesInnerReasonChangedAt as V0041OpenapiNodesRespNodesInnerReasonChangedAt +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_resume_after import V0041OpenapiNodesRespNodesInnerResumeAfter as V0041OpenapiNodesRespNodesInnerResumeAfter +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time import V0041OpenapiNodesRespNodesInnerSlurmdStartTime as V0041OpenapiNodesRespNodesInnerSlurmdStartTime +from slurmrest_python.models.v0041_openapi_partition_resp import V0041OpenapiPartitionResp as V0041OpenapiPartitionResp +from slurmrest_python.models.v0041_openapi_partition_resp_last_update import V0041OpenapiPartitionRespLastUpdate as V0041OpenapiPartitionRespLastUpdate +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner import V0041OpenapiPartitionRespPartitionsInner as V0041OpenapiPartitionRespPartitionsInner +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_accounts import V0041OpenapiPartitionRespPartitionsInnerAccounts as V0041OpenapiPartitionRespPartitionsInnerAccounts +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_cpus import V0041OpenapiPartitionRespPartitionsInnerCpus as V0041OpenapiPartitionRespPartitionsInnerCpus +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults import V0041OpenapiPartitionRespPartitionsInnerDefaults as V0041OpenapiPartitionRespPartitionsInnerDefaults +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu as V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode as V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_time import V0041OpenapiPartitionRespPartitionsInnerDefaultsTime as V0041OpenapiPartitionRespPartitionsInnerDefaultsTime +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_groups import V0041OpenapiPartitionRespPartitionsInnerGroups as V0041OpenapiPartitionRespPartitionsInnerGroups +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums import V0041OpenapiPartitionRespPartitionsInnerMaximums as V0041OpenapiPartitionRespPartitionsInnerMaximums +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode as V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket as V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_nodes import V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes as V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit import V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit as V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe import V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe as V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu as V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode as V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_time import V0041OpenapiPartitionRespPartitionsInnerMaximumsTime as V0041OpenapiPartitionRespPartitionsInnerMaximumsTime +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_minimums import V0041OpenapiPartitionRespPartitionsInnerMinimums as V0041OpenapiPartitionRespPartitionsInnerMinimums +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_nodes import V0041OpenapiPartitionRespPartitionsInnerNodes as V0041OpenapiPartitionRespPartitionsInnerNodes +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_partition import V0041OpenapiPartitionRespPartitionsInnerPartition as V0041OpenapiPartitionRespPartitionsInnerPartition +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_priority import V0041OpenapiPartitionRespPartitionsInnerPriority as V0041OpenapiPartitionRespPartitionsInnerPriority +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_qos import V0041OpenapiPartitionRespPartitionsInnerQos as V0041OpenapiPartitionRespPartitionsInnerQos +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_suspend_time import V0041OpenapiPartitionRespPartitionsInnerSuspendTime as V0041OpenapiPartitionRespPartitionsInnerSuspendTime +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts import V0041OpenapiPartitionRespPartitionsInnerTimeouts as V0041OpenapiPartitionRespPartitionsInnerTimeouts +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_resume import V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume as V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_suspend import V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend as V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_tres import V0041OpenapiPartitionRespPartitionsInnerTres as V0041OpenapiPartitionRespPartitionsInnerTres +from slurmrest_python.models.v0041_openapi_ping_array_resp import V0041OpenapiPingArrayResp as V0041OpenapiPingArrayResp +from slurmrest_python.models.v0041_openapi_ping_array_resp_pings_inner import V0041OpenapiPingArrayRespPingsInner as V0041OpenapiPingArrayRespPingsInner +from slurmrest_python.models.v0041_openapi_reservation_resp import V0041OpenapiReservationResp as V0041OpenapiReservationResp +from slurmrest_python.models.v0041_openapi_reservation_resp_last_update import V0041OpenapiReservationRespLastUpdate as V0041OpenapiReservationRespLastUpdate +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner import V0041OpenapiReservationRespReservationsInner as V0041OpenapiReservationRespReservationsInner +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner import V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner as V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_end_time import V0041OpenapiReservationRespReservationsInnerEndTime as V0041OpenapiReservationRespReservationsInnerEndTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed import V0041OpenapiReservationRespReservationsInnerPurgeCompleted as V0041OpenapiReservationRespReservationsInnerPurgeCompleted +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed_time import V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime as V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_start_time import V0041OpenapiReservationRespReservationsInnerStartTime as V0041OpenapiReservationRespReservationsInnerStartTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_watts import V0041OpenapiReservationRespReservationsInnerWatts as V0041OpenapiReservationRespReservationsInnerWatts +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp as V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_shares_resp import V0041OpenapiSharesResp as V0041OpenapiSharesResp +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner as V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta as V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient as V0041OpenapiSharesRespMetaClient +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin as V0041OpenapiSharesRespMetaPlugin +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm as V0041OpenapiSharesRespMetaSlurm +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm_version import V0041OpenapiSharesRespMetaSlurmVersion as V0041OpenapiSharesRespMetaSlurmVersion +from slurmrest_python.models.v0041_openapi_shares_resp_shares import V0041OpenapiSharesRespShares as V0041OpenapiSharesRespShares +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner import V0041OpenapiSharesRespSharesSharesInner as V0041OpenapiSharesRespSharesSharesInner +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_fairshare import V0041OpenapiSharesRespSharesSharesInnerFairshare as V0041OpenapiSharesRespSharesSharesInnerFairshare +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares import V0041OpenapiSharesRespSharesSharesInnerShares as V0041OpenapiSharesRespSharesSharesInnerShares +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares_normalized import V0041OpenapiSharesRespSharesSharesInnerSharesNormalized as V0041OpenapiSharesRespSharesSharesInnerSharesNormalized +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres import V0041OpenapiSharesRespSharesSharesInnerTres as V0041OpenapiSharesRespSharesSharesInnerTres +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner as V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue as V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner import V0041OpenapiSharesRespSharesSharesInnerTresUsageInner as V0041OpenapiSharesRespSharesSharesInnerTresUsageInner +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_usage_normalized import V0041OpenapiSharesRespSharesSharesInnerUsageNormalized as V0041OpenapiSharesRespSharesSharesInnerUsageNormalized +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner as V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp import V0041OpenapiSlurmdbdConfigResp as V0041OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner import V0041OpenapiSlurmdbdConfigRespAccountsInner as V0041OpenapiSlurmdbdConfigRespAccountsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner as V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner as V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner import V0041OpenapiSlurmdbdConfigRespAssociationsInner as V0041OpenapiSlurmdbdConfigRespAssociationsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault as V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_min import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin as V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_priority import V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority as V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner import V0041OpenapiSlurmdbdConfigRespClustersInner as V0041OpenapiSlurmdbdConfigRespClustersInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations as V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot as V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController as V0041OpenapiSlurmdbdConfigRespClustersInnerController +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner import V0041OpenapiSlurmdbdConfigRespInstancesInner as V0041OpenapiSlurmdbdConfigRespInstancesInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner_time import V0041OpenapiSlurmdbdConfigRespInstancesInnerTime as V0041OpenapiSlurmdbdConfigRespInstancesInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner import V0041OpenapiSlurmdbdConfigRespQosInner as V0041OpenapiSlurmdbdConfigRespQosInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits import V0041OpenapiSlurmdbdConfigRespQosInnerLimits as V0041OpenapiSlurmdbdConfigRespQosInnerLimits +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer as V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt import V0041OpenapiSlurmdbdConfigRespQosInnerPreempt as V0041OpenapiSlurmdbdConfigRespQosInnerPreempt +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time import V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime as V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_priority import V0041OpenapiSlurmdbdConfigRespQosInnerPriority as V0041OpenapiSlurmdbdConfigRespQosInnerPriority +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor import V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor as V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold as V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner import V0041OpenapiSlurmdbdConfigRespUsersInner as V0041OpenapiSlurmdbdConfigRespUsersInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_default import V0041OpenapiSlurmdbdConfigRespUsersInnerDefault as V0041OpenapiSlurmdbdConfigRespUsersInnerDefault +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner as V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner as V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated as V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES as V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp import V0041OpenapiSlurmdbdJobsResp as V0041OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner import V0041OpenapiSlurmdbdJobsRespJobsInner as V0041OpenapiSlurmdbdJobsRespJobsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array import V0041OpenapiSlurmdbdJobsRespJobsInnerArray as V0041OpenapiSlurmdbdJobsRespJobsInnerArray +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits as V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax as V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning as V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association import V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation as V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment as V0041OpenapiSlurmdbdJobsRespJobsInnerComment +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code import V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode as V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het import V0041OpenapiSlurmdbdJobsRespJobsInnerHet as V0041OpenapiSlurmdbdJobsRespJobsInnerHet +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs as V0041OpenapiSlurmdbdJobsRespJobsInnerMcs +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required import V0041OpenapiSlurmdbdJobsRespJobsInnerRequired as V0041OpenapiSlurmdbdJobsRespJobsInnerRequired +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation import V0041OpenapiSlurmdbdJobsRespJobsInnerReservation as V0041OpenapiSlurmdbdJobsRespJobsInnerReservation +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state import V0041OpenapiSlurmdbdJobsRespJobsInnerState as V0041OpenapiSlurmdbdJobsRespJobsInnerState +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner as V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerTime as V0041OpenapiSlurmdbdJobsRespJobsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned import V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned as V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem as V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal as V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser as V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerTres as V0041OpenapiSlurmdbdJobsRespJobsInnerTres +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey import V0041OpenapiSlurmdbdJobsRespJobsInnerWckey as V0041OpenapiSlurmdbdJobsRespJobsInnerWckey +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_removed_resp import V0041OpenapiSlurmdbdQosRemovedResp as V0041OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp as V0041OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp import V0041OpenapiSlurmdbdStatsResp as V0041OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics import V0041OpenapiSlurmdbdStatsRespStatistics as V0041OpenapiSlurmdbdStatsRespStatistics +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner as V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime as V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups import V0041OpenapiSlurmdbdStatsRespStatisticsRollups as V0041OpenapiSlurmdbdStatsRespStatisticsRollups +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily as V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration as V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly as V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration as V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly as V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration as V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_users_inner import V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner as V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner +from slurmrest_python.models.v0041_openapi_tres_resp import V0041OpenapiTresResp as V0041OpenapiTresResp +from slurmrest_python.models.v0041_openapi_users_add_cond_resp import V0041OpenapiUsersAddCondResp as V0041OpenapiUsersAddCondResp +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition import V0041OpenapiUsersAddCondRespAssociationCondition as V0041OpenapiUsersAddCondRespAssociationCondition +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association import V0041OpenapiUsersAddCondRespAssociationConditionAssociation as V0041OpenapiUsersAddCondRespAssociationConditionAssociation +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs as V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue as V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs as V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpwall import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall as V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs as V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue as V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs as V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob as V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh as V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_str import V0041OpenapiUsersAddCondRespStr as V0041OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_user import V0041OpenapiUsersAddCondRespUser as V0041OpenapiUsersAddCondRespUser +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp as V0041OpenapiUsersResp +from slurmrest_python.models.v0041_openapi_wckey_removed_resp import V0041OpenapiWckeyRemovedResp as V0041OpenapiWckeyRemovedResp +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp as V0041OpenapiWckeyResp +from slurmrest_python.models.v0041_update_node_msg import V0041UpdateNodeMsg as V0041UpdateNodeMsg +from slurmrest_python.models.v0041_update_node_msg_resume_after import V0041UpdateNodeMsgResumeAfter as V0041UpdateNodeMsgResumeAfter +from slurmrest_python.models.v0041_update_node_msg_weight import V0041UpdateNodeMsgWeight as V0041UpdateNodeMsgWeight +from slurmrest_python.models.v0042_account import V0042Account as V0042Account +from slurmrest_python.models.v0042_account_short import V0042AccountShort as V0042AccountShort +from slurmrest_python.models.v0042_accounting import V0042Accounting as V0042Accounting +from slurmrest_python.models.v0042_accounts_add_cond import V0042AccountsAddCond as V0042AccountsAddCond +from slurmrest_python.models.v0042_acct_gather_energy import V0042AcctGatherEnergy as V0042AcctGatherEnergy +from slurmrest_python.models.v0042_assoc import V0042Assoc as V0042Assoc +from slurmrest_python.models.v0042_assoc_max import V0042AssocMax as V0042AssocMax +from slurmrest_python.models.v0042_assoc_max_jobs import V0042AssocMaxJobs as V0042AssocMaxJobs +from slurmrest_python.models.v0042_assoc_max_jobs_per import V0042AssocMaxJobsPer as V0042AssocMaxJobsPer +from slurmrest_python.models.v0042_assoc_max_per import V0042AssocMaxPer as V0042AssocMaxPer +from slurmrest_python.models.v0042_assoc_max_per_account import V0042AssocMaxPerAccount as V0042AssocMaxPerAccount +from slurmrest_python.models.v0042_assoc_max_tres import V0042AssocMaxTres as V0042AssocMaxTres +from slurmrest_python.models.v0042_assoc_max_tres_group import V0042AssocMaxTresGroup as V0042AssocMaxTresGroup +from slurmrest_python.models.v0042_assoc_max_tres_minutes import V0042AssocMaxTresMinutes as V0042AssocMaxTresMinutes +from slurmrest_python.models.v0042_assoc_max_tres_per import V0042AssocMaxTresPer as V0042AssocMaxTresPer +from slurmrest_python.models.v0042_assoc_min import V0042AssocMin as V0042AssocMin +from slurmrest_python.models.v0042_assoc_rec_set import V0042AssocRecSet as V0042AssocRecSet +from slurmrest_python.models.v0042_assoc_shares_obj_wrap import V0042AssocSharesObjWrap as V0042AssocSharesObjWrap +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_fairshare import V0042AssocSharesObjWrapFairshare as V0042AssocSharesObjWrapFairshare +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_tres import V0042AssocSharesObjWrapTres as V0042AssocSharesObjWrapTres +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort as V0042AssocShort +from slurmrest_python.models.v0042_bf_exit_fields import V0042BfExitFields as V0042BfExitFields +from slurmrest_python.models.v0042_cluster_rec import V0042ClusterRec as V0042ClusterRec +from slurmrest_python.models.v0042_cluster_rec_associations import V0042ClusterRecAssociations as V0042ClusterRecAssociations +from slurmrest_python.models.v0042_controller_ping import V0042ControllerPing as V0042ControllerPing +from slurmrest_python.models.v0042_coord import V0042Coord as V0042Coord +from slurmrest_python.models.v0042_cron_entry import V0042CronEntry as V0042CronEntry +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct as V0042Float64NoValStruct +from slurmrest_python.models.v0042_instance import V0042Instance as V0042Instance +from slurmrest_python.models.v0042_job import V0042Job as V0042Job +from slurmrest_python.models.v0042_job_alloc_req import V0042JobAllocReq as V0042JobAllocReq +from slurmrest_python.models.v0042_job_array import V0042JobArray as V0042JobArray +from slurmrest_python.models.v0042_job_array_response_msg_entry import V0042JobArrayResponseMsgEntry as V0042JobArrayResponseMsgEntry +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg as V0042JobDescMsg +from slurmrest_python.models.v0042_job_desc_msg_rlimits import V0042JobDescMsgRlimits as V0042JobDescMsgRlimits +from slurmrest_python.models.v0042_job_het import V0042JobHet as V0042JobHet +from slurmrest_python.models.v0042_job_info import V0042JobInfo as V0042JobInfo +from slurmrest_python.models.v0042_job_required import V0042JobRequired as V0042JobRequired +from slurmrest_python.models.v0042_job_res import V0042JobRes as V0042JobRes +from slurmrest_python.models.v0042_job_res_core import V0042JobResCore as V0042JobResCore +from slurmrest_python.models.v0042_job_res_node import V0042JobResNode as V0042JobResNode +from slurmrest_python.models.v0042_job_res_nodes import V0042JobResNodes as V0042JobResNodes +from slurmrest_python.models.v0042_job_res_socket import V0042JobResSocket as V0042JobResSocket +from slurmrest_python.models.v0042_job_state import V0042JobState as V0042JobState +from slurmrest_python.models.v0042_job_submit_req import V0042JobSubmitReq as V0042JobSubmitReq +from slurmrest_python.models.v0042_job_time import V0042JobTime as V0042JobTime +from slurmrest_python.models.v0042_job_tres import V0042JobTres as V0042JobTres +from slurmrest_python.models.v0042_kill_jobs_msg import V0042KillJobsMsg as V0042KillJobsMsg +from slurmrest_python.models.v0042_kill_jobs_resp_job import V0042KillJobsRespJob as V0042KillJobsRespJob +from slurmrest_python.models.v0042_license import V0042License as V0042License +from slurmrest_python.models.v0042_node import V0042Node as V0042Node +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp import V0042OpenapiAccountsAddCondResp as V0042OpenapiAccountsAddCondResp +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp_str import V0042OpenapiAccountsAddCondRespStr as V0042OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0042_openapi_accounts_removed_resp import V0042OpenapiAccountsRemovedResp as V0042OpenapiAccountsRemovedResp +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp as V0042OpenapiAccountsResp +from slurmrest_python.models.v0042_openapi_assocs_removed_resp import V0042OpenapiAssocsRemovedResp as V0042OpenapiAssocsRemovedResp +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp as V0042OpenapiAssocsResp +from slurmrest_python.models.v0042_openapi_clusters_removed_resp import V0042OpenapiClustersRemovedResp as V0042OpenapiClustersRemovedResp +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp as V0042OpenapiClustersResp +from slurmrest_python.models.v0042_openapi_diag_resp import V0042OpenapiDiagResp as V0042OpenapiDiagResp +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError as V0042OpenapiError +from slurmrest_python.models.v0042_openapi_instances_resp import V0042OpenapiInstancesResp as V0042OpenapiInstancesResp +from slurmrest_python.models.v0042_openapi_job_alloc_resp import V0042OpenapiJobAllocResp as V0042OpenapiJobAllocResp +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp as V0042OpenapiJobInfoResp +from slurmrest_python.models.v0042_openapi_job_post_response import V0042OpenapiJobPostResponse as V0042OpenapiJobPostResponse +from slurmrest_python.models.v0042_openapi_job_submit_response import V0042OpenapiJobSubmitResponse as V0042OpenapiJobSubmitResponse +from slurmrest_python.models.v0042_openapi_kill_job_resp import V0042OpenapiKillJobResp as V0042OpenapiKillJobResp +from slurmrest_python.models.v0042_openapi_kill_jobs_resp import V0042OpenapiKillJobsResp as V0042OpenapiKillJobsResp +from slurmrest_python.models.v0042_openapi_licenses_resp import V0042OpenapiLicensesResp as V0042OpenapiLicensesResp +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta as V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_nodes_resp import V0042OpenapiNodesResp as V0042OpenapiNodesResp +from slurmrest_python.models.v0042_openapi_partition_resp import V0042OpenapiPartitionResp as V0042OpenapiPartitionResp +from slurmrest_python.models.v0042_openapi_ping_array_resp import V0042OpenapiPingArrayResp as V0042OpenapiPingArrayResp +from slurmrest_python.models.v0042_openapi_reservation_resp import V0042OpenapiReservationResp as V0042OpenapiReservationResp +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp as V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_shares_resp import V0042OpenapiSharesResp as V0042OpenapiSharesResp +from slurmrest_python.models.v0042_openapi_slurmdbd_config_resp import V0042OpenapiSlurmdbdConfigResp as V0042OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0042_openapi_slurmdbd_jobs_resp import V0042OpenapiSlurmdbdJobsResp as V0042OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0042_openapi_slurmdbd_ping_resp import V0042OpenapiSlurmdbdPingResp as V0042OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_removed_resp import V0042OpenapiSlurmdbdQosRemovedResp as V0042OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp as V0042OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0042_openapi_slurmdbd_stats_resp import V0042OpenapiSlurmdbdStatsResp as V0042OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0042_openapi_tres_resp import V0042OpenapiTresResp as V0042OpenapiTresResp +from slurmrest_python.models.v0042_openapi_users_add_cond_resp import V0042OpenapiUsersAddCondResp as V0042OpenapiUsersAddCondResp +from slurmrest_python.models.v0042_openapi_users_add_cond_resp_str import V0042OpenapiUsersAddCondRespStr as V0042OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp as V0042OpenapiUsersResp +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning as V0042OpenapiWarning +from slurmrest_python.models.v0042_openapi_wckey_removed_resp import V0042OpenapiWckeyRemovedResp as V0042OpenapiWckeyRemovedResp +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp as V0042OpenapiWckeyResp +from slurmrest_python.models.v0042_part_prio import V0042PartPrio as V0042PartPrio +from slurmrest_python.models.v0042_partition_info import V0042PartitionInfo as V0042PartitionInfo +from slurmrest_python.models.v0042_partition_info_defaults import V0042PartitionInfoDefaults as V0042PartitionInfoDefaults +from slurmrest_python.models.v0042_partition_info_maximums import V0042PartitionInfoMaximums as V0042PartitionInfoMaximums +from slurmrest_python.models.v0042_partition_info_maximums_oversubscribe import V0042PartitionInfoMaximumsOversubscribe as V0042PartitionInfoMaximumsOversubscribe +from slurmrest_python.models.v0042_partition_info_partition import V0042PartitionInfoPartition as V0042PartitionInfoPartition +from slurmrest_python.models.v0042_partition_info_timeouts import V0042PartitionInfoTimeouts as V0042PartitionInfoTimeouts +from slurmrest_python.models.v0042_process_exit_code_verbose import V0042ProcessExitCodeVerbose as V0042ProcessExitCodeVerbose +from slurmrest_python.models.v0042_process_exit_code_verbose_signal import V0042ProcessExitCodeVerboseSignal as V0042ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0042_qos import V0042Qos as V0042Qos +from slurmrest_python.models.v0042_qos_limits import V0042QosLimits as V0042QosLimits +from slurmrest_python.models.v0042_qos_limits_max import V0042QosLimitsMax as V0042QosLimitsMax +from slurmrest_python.models.v0042_qos_limits_max_active_jobs import V0042QosLimitsMaxActiveJobs as V0042QosLimitsMaxActiveJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs import V0042QosLimitsMaxJobs as V0042QosLimitsMaxJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs import V0042QosLimitsMaxJobsActiveJobs as V0042QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs_per import V0042QosLimitsMaxJobsActiveJobsPer as V0042QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0042_qos_limits_max_tres import V0042QosLimitsMaxTres as V0042QosLimitsMaxTres +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes import V0042QosLimitsMaxTresMinutes as V0042QosLimitsMaxTresMinutes +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes_per import V0042QosLimitsMaxTresMinutesPer as V0042QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0042_qos_limits_max_tres_per import V0042QosLimitsMaxTresPer as V0042QosLimitsMaxTresPer +from slurmrest_python.models.v0042_qos_limits_max_wall_clock import V0042QosLimitsMaxWallClock as V0042QosLimitsMaxWallClock +from slurmrest_python.models.v0042_qos_limits_max_wall_clock_per import V0042QosLimitsMaxWallClockPer as V0042QosLimitsMaxWallClockPer +from slurmrest_python.models.v0042_qos_limits_min import V0042QosLimitsMin as V0042QosLimitsMin +from slurmrest_python.models.v0042_qos_limits_min_tres import V0042QosLimitsMinTres as V0042QosLimitsMinTres +from slurmrest_python.models.v0042_qos_limits_min_tres_per import V0042QosLimitsMinTresPer as V0042QosLimitsMinTresPer +from slurmrest_python.models.v0042_qos_preempt import V0042QosPreempt as V0042QosPreempt +from slurmrest_python.models.v0042_reservation_core_spec import V0042ReservationCoreSpec as V0042ReservationCoreSpec +from slurmrest_python.models.v0042_reservation_info import V0042ReservationInfo as V0042ReservationInfo +from slurmrest_python.models.v0042_reservation_info_purge_completed import V0042ReservationInfoPurgeCompleted as V0042ReservationInfoPurgeCompleted +from slurmrest_python.models.v0042_rollup_stats import V0042RollupStats as V0042RollupStats +from slurmrest_python.models.v0042_schedule_exit_fields import V0042ScheduleExitFields as V0042ScheduleExitFields +from slurmrest_python.models.v0042_shares_float128_tres import V0042SharesFloat128Tres as V0042SharesFloat128Tres +from slurmrest_python.models.v0042_shares_resp_msg import V0042SharesRespMsg as V0042SharesRespMsg +from slurmrest_python.models.v0042_shares_uint64_tres import V0042SharesUint64Tres as V0042SharesUint64Tres +from slurmrest_python.models.v0042_slurmdbd_ping import V0042SlurmdbdPing as V0042SlurmdbdPing +from slurmrest_python.models.v0042_stats_msg import V0042StatsMsg as V0042StatsMsg +from slurmrest_python.models.v0042_stats_msg_rpc_dump import V0042StatsMsgRpcDump as V0042StatsMsgRpcDump +from slurmrest_python.models.v0042_stats_msg_rpc_queue import V0042StatsMsgRpcQueue as V0042StatsMsgRpcQueue +from slurmrest_python.models.v0042_stats_msg_rpc_type import V0042StatsMsgRpcType as V0042StatsMsgRpcType +from slurmrest_python.models.v0042_stats_msg_rpc_user import V0042StatsMsgRpcUser as V0042StatsMsgRpcUser +from slurmrest_python.models.v0042_stats_rec import V0042StatsRec as V0042StatsRec +from slurmrest_python.models.v0042_stats_rpc import V0042StatsRpc as V0042StatsRpc +from slurmrest_python.models.v0042_stats_user import V0042StatsUser as V0042StatsUser +from slurmrest_python.models.v0042_step import V0042Step as V0042Step +from slurmrest_python.models.v0042_step_cpu import V0042StepCPU as V0042StepCPU +from slurmrest_python.models.v0042_step_cpu_requested_frequency import V0042StepCPURequestedFrequency as V0042StepCPURequestedFrequency +from slurmrest_python.models.v0042_step_nodes import V0042StepNodes as V0042StepNodes +from slurmrest_python.models.v0042_step_statistics import V0042StepStatistics as V0042StepStatistics +from slurmrest_python.models.v0042_step_statistics_energy import V0042StepStatisticsEnergy as V0042StepStatisticsEnergy +from slurmrest_python.models.v0042_step_time import V0042StepTime as V0042StepTime +from slurmrest_python.models.v0042_step_tres import V0042StepTres as V0042StepTres +from slurmrest_python.models.v0042_step_tres_consumed import V0042StepTresConsumed as V0042StepTresConsumed +from slurmrest_python.models.v0042_step_tres_requested import V0042StepTresRequested as V0042StepTresRequested +from slurmrest_python.models.v0042_tres import V0042Tres as V0042Tres +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct as V0042Uint16NoValStruct +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct as V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct as V0042Uint64NoValStruct +from slurmrest_python.models.v0042_update_node_msg import V0042UpdateNodeMsg as V0042UpdateNodeMsg +from slurmrest_python.models.v0042_user import V0042User as V0042User +from slurmrest_python.models.v0042_user_default import V0042UserDefault as V0042UserDefault +from slurmrest_python.models.v0042_user_short import V0042UserShort as V0042UserShort +from slurmrest_python.models.v0042_users_add_cond import V0042UsersAddCond as V0042UsersAddCond +from slurmrest_python.models.v0042_wckey import V0042Wckey as V0042Wckey +from slurmrest_python.models.v0042_wckey_tag_struct import V0042WckeyTagStruct as V0042WckeyTagStruct +from slurmrest_python.models.v0043_account import V0043Account as V0043Account +from slurmrest_python.models.v0043_account_short import V0043AccountShort as V0043AccountShort +from slurmrest_python.models.v0043_accounting import V0043Accounting as V0043Accounting +from slurmrest_python.models.v0043_accounts_add_cond import V0043AccountsAddCond as V0043AccountsAddCond +from slurmrest_python.models.v0043_acct_gather_energy import V0043AcctGatherEnergy as V0043AcctGatherEnergy +from slurmrest_python.models.v0043_assoc import V0043Assoc as V0043Assoc +from slurmrest_python.models.v0043_assoc_max import V0043AssocMax as V0043AssocMax +from slurmrest_python.models.v0043_assoc_max_jobs import V0043AssocMaxJobs as V0043AssocMaxJobs +from slurmrest_python.models.v0043_assoc_max_jobs_per import V0043AssocMaxJobsPer as V0043AssocMaxJobsPer +from slurmrest_python.models.v0043_assoc_max_per import V0043AssocMaxPer as V0043AssocMaxPer +from slurmrest_python.models.v0043_assoc_max_per_account import V0043AssocMaxPerAccount as V0043AssocMaxPerAccount +from slurmrest_python.models.v0043_assoc_max_tres import V0043AssocMaxTres as V0043AssocMaxTres +from slurmrest_python.models.v0043_assoc_max_tres_group import V0043AssocMaxTresGroup as V0043AssocMaxTresGroup +from slurmrest_python.models.v0043_assoc_max_tres_minutes import V0043AssocMaxTresMinutes as V0043AssocMaxTresMinutes +from slurmrest_python.models.v0043_assoc_max_tres_per import V0043AssocMaxTresPer as V0043AssocMaxTresPer +from slurmrest_python.models.v0043_assoc_min import V0043AssocMin as V0043AssocMin +from slurmrest_python.models.v0043_assoc_rec_set import V0043AssocRecSet as V0043AssocRecSet +from slurmrest_python.models.v0043_assoc_shares_obj_wrap import V0043AssocSharesObjWrap as V0043AssocSharesObjWrap +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_fairshare import V0043AssocSharesObjWrapFairshare as V0043AssocSharesObjWrapFairshare +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_tres import V0043AssocSharesObjWrapTres as V0043AssocSharesObjWrapTres +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort as V0043AssocShort +from slurmrest_python.models.v0043_bf_exit_fields import V0043BfExitFields as V0043BfExitFields +from slurmrest_python.models.v0043_cluster_rec import V0043ClusterRec as V0043ClusterRec +from slurmrest_python.models.v0043_cluster_rec_associations import V0043ClusterRecAssociations as V0043ClusterRecAssociations +from slurmrest_python.models.v0043_controller_ping import V0043ControllerPing as V0043ControllerPing +from slurmrest_python.models.v0043_coord import V0043Coord as V0043Coord +from slurmrest_python.models.v0043_cron_entry import V0043CronEntry as V0043CronEntry +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct as V0043Float64NoValStruct +from slurmrest_python.models.v0043_instance import V0043Instance as V0043Instance +from slurmrest_python.models.v0043_job import V0043Job as V0043Job +from slurmrest_python.models.v0043_job_alloc_req import V0043JobAllocReq as V0043JobAllocReq +from slurmrest_python.models.v0043_job_array import V0043JobArray as V0043JobArray +from slurmrest_python.models.v0043_job_array_response_msg_entry import V0043JobArrayResponseMsgEntry as V0043JobArrayResponseMsgEntry +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg as V0043JobDescMsg +from slurmrest_python.models.v0043_job_desc_msg_rlimits import V0043JobDescMsgRlimits as V0043JobDescMsgRlimits +from slurmrest_python.models.v0043_job_het import V0043JobHet as V0043JobHet +from slurmrest_python.models.v0043_job_info import V0043JobInfo as V0043JobInfo +from slurmrest_python.models.v0043_job_required import V0043JobRequired as V0043JobRequired +from slurmrest_python.models.v0043_job_res import V0043JobRes as V0043JobRes +from slurmrest_python.models.v0043_job_res_core import V0043JobResCore as V0043JobResCore +from slurmrest_python.models.v0043_job_res_node import V0043JobResNode as V0043JobResNode +from slurmrest_python.models.v0043_job_res_nodes import V0043JobResNodes as V0043JobResNodes +from slurmrest_python.models.v0043_job_res_socket import V0043JobResSocket as V0043JobResSocket +from slurmrest_python.models.v0043_job_submit_req import V0043JobSubmitReq as V0043JobSubmitReq +from slurmrest_python.models.v0043_job_time import V0043JobTime as V0043JobTime +from slurmrest_python.models.v0043_job_tres import V0043JobTres as V0043JobTres +from slurmrest_python.models.v0043_kill_jobs_msg import V0043KillJobsMsg as V0043KillJobsMsg +from slurmrest_python.models.v0043_kill_jobs_resp_job import V0043KillJobsRespJob as V0043KillJobsRespJob +from slurmrest_python.models.v0043_license import V0043License as V0043License +from slurmrest_python.models.v0043_node import V0043Node as V0043Node +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp import V0043OpenapiAccountsAddCondResp as V0043OpenapiAccountsAddCondResp +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp_str import V0043OpenapiAccountsAddCondRespStr as V0043OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0043_openapi_accounts_removed_resp import V0043OpenapiAccountsRemovedResp as V0043OpenapiAccountsRemovedResp +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp as V0043OpenapiAccountsResp +from slurmrest_python.models.v0043_openapi_assocs_removed_resp import V0043OpenapiAssocsRemovedResp as V0043OpenapiAssocsRemovedResp +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp as V0043OpenapiAssocsResp +from slurmrest_python.models.v0043_openapi_clusters_removed_resp import V0043OpenapiClustersRemovedResp as V0043OpenapiClustersRemovedResp +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp as V0043OpenapiClustersResp +from slurmrest_python.models.v0043_openapi_diag_resp import V0043OpenapiDiagResp as V0043OpenapiDiagResp +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError as V0043OpenapiError +from slurmrest_python.models.v0043_openapi_instances_resp import V0043OpenapiInstancesResp as V0043OpenapiInstancesResp +from slurmrest_python.models.v0043_openapi_job_alloc_resp import V0043OpenapiJobAllocResp as V0043OpenapiJobAllocResp +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp as V0043OpenapiJobInfoResp +from slurmrest_python.models.v0043_openapi_job_post_response import V0043OpenapiJobPostResponse as V0043OpenapiJobPostResponse +from slurmrest_python.models.v0043_openapi_job_submit_response import V0043OpenapiJobSubmitResponse as V0043OpenapiJobSubmitResponse +from slurmrest_python.models.v0043_openapi_kill_job_resp import V0043OpenapiKillJobResp as V0043OpenapiKillJobResp +from slurmrest_python.models.v0043_openapi_kill_jobs_resp import V0043OpenapiKillJobsResp as V0043OpenapiKillJobsResp +from slurmrest_python.models.v0043_openapi_licenses_resp import V0043OpenapiLicensesResp as V0043OpenapiLicensesResp +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta as V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_nodes_resp import V0043OpenapiNodesResp as V0043OpenapiNodesResp +from slurmrest_python.models.v0043_openapi_partition_resp import V0043OpenapiPartitionResp as V0043OpenapiPartitionResp +from slurmrest_python.models.v0043_openapi_ping_array_resp import V0043OpenapiPingArrayResp as V0043OpenapiPingArrayResp +from slurmrest_python.models.v0043_openapi_reservation_mod_resp import V0043OpenapiReservationModResp as V0043OpenapiReservationModResp +from slurmrest_python.models.v0043_openapi_reservation_resp import V0043OpenapiReservationResp as V0043OpenapiReservationResp +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp as V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_shares_resp import V0043OpenapiSharesResp as V0043OpenapiSharesResp +from slurmrest_python.models.v0043_openapi_slurmdbd_config_resp import V0043OpenapiSlurmdbdConfigResp as V0043OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0043_openapi_slurmdbd_jobs_resp import V0043OpenapiSlurmdbdJobsResp as V0043OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0043_openapi_slurmdbd_ping_resp import V0043OpenapiSlurmdbdPingResp as V0043OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_removed_resp import V0043OpenapiSlurmdbdQosRemovedResp as V0043OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp as V0043OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0043_openapi_slurmdbd_stats_resp import V0043OpenapiSlurmdbdStatsResp as V0043OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0043_openapi_tres_resp import V0043OpenapiTresResp as V0043OpenapiTresResp +from slurmrest_python.models.v0043_openapi_users_add_cond_resp import V0043OpenapiUsersAddCondResp as V0043OpenapiUsersAddCondResp +from slurmrest_python.models.v0043_openapi_users_add_cond_resp_str import V0043OpenapiUsersAddCondRespStr as V0043OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp as V0043OpenapiUsersResp +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning as V0043OpenapiWarning +from slurmrest_python.models.v0043_openapi_wckey_removed_resp import V0043OpenapiWckeyRemovedResp as V0043OpenapiWckeyRemovedResp +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp as V0043OpenapiWckeyResp +from slurmrest_python.models.v0043_part_prio import V0043PartPrio as V0043PartPrio +from slurmrest_python.models.v0043_partition_info import V0043PartitionInfo as V0043PartitionInfo +from slurmrest_python.models.v0043_partition_info_defaults import V0043PartitionInfoDefaults as V0043PartitionInfoDefaults +from slurmrest_python.models.v0043_partition_info_maximums import V0043PartitionInfoMaximums as V0043PartitionInfoMaximums +from slurmrest_python.models.v0043_partition_info_timeouts import V0043PartitionInfoTimeouts as V0043PartitionInfoTimeouts +from slurmrest_python.models.v0043_process_exit_code_verbose import V0043ProcessExitCodeVerbose as V0043ProcessExitCodeVerbose +from slurmrest_python.models.v0043_process_exit_code_verbose_signal import V0043ProcessExitCodeVerboseSignal as V0043ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0043_qos import V0043Qos as V0043Qos +from slurmrest_python.models.v0043_qos_limits import V0043QosLimits as V0043QosLimits +from slurmrest_python.models.v0043_qos_limits_max import V0043QosLimitsMax as V0043QosLimitsMax +from slurmrest_python.models.v0043_qos_limits_max_active_jobs import V0043QosLimitsMaxActiveJobs as V0043QosLimitsMaxActiveJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs import V0043QosLimitsMaxJobs as V0043QosLimitsMaxJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs import V0043QosLimitsMaxJobsActiveJobs as V0043QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs_per import V0043QosLimitsMaxJobsActiveJobsPer as V0043QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0043_qos_limits_max_tres import V0043QosLimitsMaxTres as V0043QosLimitsMaxTres +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes import V0043QosLimitsMaxTresMinutes as V0043QosLimitsMaxTresMinutes +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes_per import V0043QosLimitsMaxTresMinutesPer as V0043QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0043_qos_limits_max_tres_per import V0043QosLimitsMaxTresPer as V0043QosLimitsMaxTresPer +from slurmrest_python.models.v0043_qos_limits_max_wall_clock import V0043QosLimitsMaxWallClock as V0043QosLimitsMaxWallClock +from slurmrest_python.models.v0043_qos_limits_max_wall_clock_per import V0043QosLimitsMaxWallClockPer as V0043QosLimitsMaxWallClockPer +from slurmrest_python.models.v0043_qos_limits_min import V0043QosLimitsMin as V0043QosLimitsMin +from slurmrest_python.models.v0043_qos_limits_min_tres import V0043QosLimitsMinTres as V0043QosLimitsMinTres +from slurmrest_python.models.v0043_qos_limits_min_tres_per import V0043QosLimitsMinTresPer as V0043QosLimitsMinTresPer +from slurmrest_python.models.v0043_qos_preempt import V0043QosPreempt as V0043QosPreempt +from slurmrest_python.models.v0043_reservation_core_spec import V0043ReservationCoreSpec as V0043ReservationCoreSpec +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg as V0043ReservationDescMsg +from slurmrest_python.models.v0043_reservation_info import V0043ReservationInfo as V0043ReservationInfo +from slurmrest_python.models.v0043_reservation_info_purge_completed import V0043ReservationInfoPurgeCompleted as V0043ReservationInfoPurgeCompleted +from slurmrest_python.models.v0043_reservation_mod_req import V0043ReservationModReq as V0043ReservationModReq +from slurmrest_python.models.v0043_rollup_stats import V0043RollupStats as V0043RollupStats +from slurmrest_python.models.v0043_schedule_exit_fields import V0043ScheduleExitFields as V0043ScheduleExitFields +from slurmrest_python.models.v0043_shares_float128_tres import V0043SharesFloat128Tres as V0043SharesFloat128Tres +from slurmrest_python.models.v0043_shares_resp_msg import V0043SharesRespMsg as V0043SharesRespMsg +from slurmrest_python.models.v0043_shares_uint64_tres import V0043SharesUint64Tres as V0043SharesUint64Tres +from slurmrest_python.models.v0043_slurmdbd_ping import V0043SlurmdbdPing as V0043SlurmdbdPing +from slurmrest_python.models.v0043_stats_msg import V0043StatsMsg as V0043StatsMsg +from slurmrest_python.models.v0043_stats_msg_rpc_dump import V0043StatsMsgRpcDump as V0043StatsMsgRpcDump +from slurmrest_python.models.v0043_stats_msg_rpc_queue import V0043StatsMsgRpcQueue as V0043StatsMsgRpcQueue +from slurmrest_python.models.v0043_stats_msg_rpc_type import V0043StatsMsgRpcType as V0043StatsMsgRpcType +from slurmrest_python.models.v0043_stats_msg_rpc_user import V0043StatsMsgRpcUser as V0043StatsMsgRpcUser +from slurmrest_python.models.v0043_stats_rec import V0043StatsRec as V0043StatsRec +from slurmrest_python.models.v0043_stats_rpc import V0043StatsRpc as V0043StatsRpc +from slurmrest_python.models.v0043_stats_user import V0043StatsUser as V0043StatsUser +from slurmrest_python.models.v0043_step import V0043Step as V0043Step +from slurmrest_python.models.v0043_step_cpu import V0043StepCPU as V0043StepCPU +from slurmrest_python.models.v0043_step_cpu_requested_frequency import V0043StepCPURequestedFrequency as V0043StepCPURequestedFrequency +from slurmrest_python.models.v0043_step_nodes import V0043StepNodes as V0043StepNodes +from slurmrest_python.models.v0043_step_statistics import V0043StepStatistics as V0043StepStatistics +from slurmrest_python.models.v0043_step_statistics_energy import V0043StepStatisticsEnergy as V0043StepStatisticsEnergy +from slurmrest_python.models.v0043_step_time import V0043StepTime as V0043StepTime +from slurmrest_python.models.v0043_step_tres import V0043StepTres as V0043StepTres +from slurmrest_python.models.v0043_step_tres_consumed import V0043StepTresConsumed as V0043StepTresConsumed +from slurmrest_python.models.v0043_step_tres_requested import V0043StepTresRequested as V0043StepTresRequested +from slurmrest_python.models.v0043_tres import V0043Tres as V0043Tres +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct as V0043Uint16NoValStruct +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct as V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct as V0043Uint64NoValStruct +from slurmrest_python.models.v0043_update_node_msg import V0043UpdateNodeMsg as V0043UpdateNodeMsg +from slurmrest_python.models.v0043_user import V0043User as V0043User +from slurmrest_python.models.v0043_user_short import V0043UserShort as V0043UserShort +from slurmrest_python.models.v0043_users_add_cond import V0043UsersAddCond as V0043UsersAddCond +from slurmrest_python.models.v0043_wckey import V0043Wckey as V0043Wckey +from slurmrest_python.models.v0043_wckey_tag_struct import V0043WckeyTagStruct as V0043WckeyTagStruct +from slurmrest_python.models.v0044_account import V0044Account as V0044Account +from slurmrest_python.models.v0044_account_short import V0044AccountShort as V0044AccountShort +from slurmrest_python.models.v0044_accounting import V0044Accounting as V0044Accounting +from slurmrest_python.models.v0044_accounting_allocated import V0044AccountingAllocated as V0044AccountingAllocated +from slurmrest_python.models.v0044_accounts_add_cond import V0044AccountsAddCond as V0044AccountsAddCond +from slurmrest_python.models.v0044_acct_gather_energy import V0044AcctGatherEnergy as V0044AcctGatherEnergy +from slurmrest_python.models.v0044_assoc import V0044Assoc as V0044Assoc +from slurmrest_python.models.v0044_assoc_max import V0044AssocMax as V0044AssocMax +from slurmrest_python.models.v0044_assoc_max_jobs import V0044AssocMaxJobs as V0044AssocMaxJobs +from slurmrest_python.models.v0044_assoc_max_jobs_per import V0044AssocMaxJobsPer as V0044AssocMaxJobsPer +from slurmrest_python.models.v0044_assoc_max_per import V0044AssocMaxPer as V0044AssocMaxPer +from slurmrest_python.models.v0044_assoc_max_per_account import V0044AssocMaxPerAccount as V0044AssocMaxPerAccount +from slurmrest_python.models.v0044_assoc_max_tres import V0044AssocMaxTres as V0044AssocMaxTres +from slurmrest_python.models.v0044_assoc_max_tres_group import V0044AssocMaxTresGroup as V0044AssocMaxTresGroup +from slurmrest_python.models.v0044_assoc_max_tres_minutes import V0044AssocMaxTresMinutes as V0044AssocMaxTresMinutes +from slurmrest_python.models.v0044_assoc_max_tres_per import V0044AssocMaxTresPer as V0044AssocMaxTresPer +from slurmrest_python.models.v0044_assoc_min import V0044AssocMin as V0044AssocMin +from slurmrest_python.models.v0044_assoc_rec_set import V0044AssocRecSet as V0044AssocRecSet +from slurmrest_python.models.v0044_assoc_shares_obj_wrap import V0044AssocSharesObjWrap as V0044AssocSharesObjWrap +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_fairshare import V0044AssocSharesObjWrapFairshare as V0044AssocSharesObjWrapFairshare +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_tres import V0044AssocSharesObjWrapTres as V0044AssocSharesObjWrapTres +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort as V0044AssocShort +from slurmrest_python.models.v0044_bf_exit_fields import V0044BfExitFields as V0044BfExitFields +from slurmrest_python.models.v0044_cluster_rec import V0044ClusterRec as V0044ClusterRec +from slurmrest_python.models.v0044_cluster_rec_associations import V0044ClusterRecAssociations as V0044ClusterRecAssociations +from slurmrest_python.models.v0044_controller_ping import V0044ControllerPing as V0044ControllerPing +from slurmrest_python.models.v0044_coord import V0044Coord as V0044Coord +from slurmrest_python.models.v0044_cron_entry import V0044CronEntry as V0044CronEntry +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct as V0044Float64NoValStruct +from slurmrest_python.models.v0044_instance import V0044Instance as V0044Instance +from slurmrest_python.models.v0044_instance_time import V0044InstanceTime as V0044InstanceTime +from slurmrest_python.models.v0044_job import V0044Job as V0044Job +from slurmrest_python.models.v0044_job_alloc_req import V0044JobAllocReq as V0044JobAllocReq +from slurmrest_python.models.v0044_job_array import V0044JobArray as V0044JobArray +from slurmrest_python.models.v0044_job_array_response_msg_entry import V0044JobArrayResponseMsgEntry as V0044JobArrayResponseMsgEntry +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg as V0044JobDescMsg +from slurmrest_python.models.v0044_job_desc_msg_rlimits import V0044JobDescMsgRlimits as V0044JobDescMsgRlimits +from slurmrest_python.models.v0044_job_het import V0044JobHet as V0044JobHet +from slurmrest_python.models.v0044_job_info import V0044JobInfo as V0044JobInfo +from slurmrest_python.models.v0044_job_modify import V0044JobModify as V0044JobModify +from slurmrest_python.models.v0044_job_modify_tres import V0044JobModifyTres as V0044JobModifyTres +from slurmrest_python.models.v0044_job_required import V0044JobRequired as V0044JobRequired +from slurmrest_python.models.v0044_job_res import V0044JobRes as V0044JobRes +from slurmrest_python.models.v0044_job_res_core import V0044JobResCore as V0044JobResCore +from slurmrest_python.models.v0044_job_res_node import V0044JobResNode as V0044JobResNode +from slurmrest_python.models.v0044_job_res_nodes import V0044JobResNodes as V0044JobResNodes +from slurmrest_python.models.v0044_job_res_socket import V0044JobResSocket as V0044JobResSocket +from slurmrest_python.models.v0044_job_reservation import V0044JobReservation as V0044JobReservation +from slurmrest_python.models.v0044_job_state import V0044JobState as V0044JobState +from slurmrest_python.models.v0044_job_submit_req import V0044JobSubmitReq as V0044JobSubmitReq +from slurmrest_python.models.v0044_job_time import V0044JobTime as V0044JobTime +from slurmrest_python.models.v0044_job_tres import V0044JobTres as V0044JobTres +from slurmrest_python.models.v0044_kill_jobs_msg import V0044KillJobsMsg as V0044KillJobsMsg +from slurmrest_python.models.v0044_kill_jobs_resp_job import V0044KillJobsRespJob as V0044KillJobsRespJob +from slurmrest_python.models.v0044_license import V0044License as V0044License +from slurmrest_python.models.v0044_node import V0044Node as V0044Node +from slurmrest_python.models.v0044_node_gres_layout import V0044NodeGresLayout as V0044NodeGresLayout +from slurmrest_python.models.v0044_node_resource_layout import V0044NodeResourceLayout as V0044NodeResourceLayout +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp import V0044OpenapiAccountsAddCondResp as V0044OpenapiAccountsAddCondResp +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp_str import V0044OpenapiAccountsAddCondRespStr as V0044OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0044_openapi_accounts_removed_resp import V0044OpenapiAccountsRemovedResp as V0044OpenapiAccountsRemovedResp +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp as V0044OpenapiAccountsResp +from slurmrest_python.models.v0044_openapi_assocs_removed_resp import V0044OpenapiAssocsRemovedResp as V0044OpenapiAssocsRemovedResp +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp as V0044OpenapiAssocsResp +from slurmrest_python.models.v0044_openapi_clusters_removed_resp import V0044OpenapiClustersRemovedResp as V0044OpenapiClustersRemovedResp +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp as V0044OpenapiClustersResp +from slurmrest_python.models.v0044_openapi_create_node_req import V0044OpenapiCreateNodeReq as V0044OpenapiCreateNodeReq +from slurmrest_python.models.v0044_openapi_diag_resp import V0044OpenapiDiagResp as V0044OpenapiDiagResp +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError as V0044OpenapiError +from slurmrest_python.models.v0044_openapi_hostlist_req_resp import V0044OpenapiHostlistReqResp as V0044OpenapiHostlistReqResp +from slurmrest_python.models.v0044_openapi_hostnames_req_resp import V0044OpenapiHostnamesReqResp as V0044OpenapiHostnamesReqResp +from slurmrest_python.models.v0044_openapi_instances_resp import V0044OpenapiInstancesResp as V0044OpenapiInstancesResp +from slurmrest_python.models.v0044_openapi_job_alloc_resp import V0044OpenapiJobAllocResp as V0044OpenapiJobAllocResp +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp as V0044OpenapiJobInfoResp +from slurmrest_python.models.v0044_openapi_job_modify_req import V0044OpenapiJobModifyReq as V0044OpenapiJobModifyReq +from slurmrest_python.models.v0044_openapi_job_modify_resp import V0044OpenapiJobModifyResp as V0044OpenapiJobModifyResp +from slurmrest_python.models.v0044_openapi_job_post_response import V0044OpenapiJobPostResponse as V0044OpenapiJobPostResponse +from slurmrest_python.models.v0044_openapi_job_submit_response import V0044OpenapiJobSubmitResponse as V0044OpenapiJobSubmitResponse +from slurmrest_python.models.v0044_openapi_kill_job_resp import V0044OpenapiKillJobResp as V0044OpenapiKillJobResp +from slurmrest_python.models.v0044_openapi_kill_jobs_resp import V0044OpenapiKillJobsResp as V0044OpenapiKillJobsResp +from slurmrest_python.models.v0044_openapi_licenses_resp import V0044OpenapiLicensesResp as V0044OpenapiLicensesResp +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta as V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_nodes_resp import V0044OpenapiNodesResp as V0044OpenapiNodesResp +from slurmrest_python.models.v0044_openapi_partition_resp import V0044OpenapiPartitionResp as V0044OpenapiPartitionResp +from slurmrest_python.models.v0044_openapi_ping_array_resp import V0044OpenapiPingArrayResp as V0044OpenapiPingArrayResp +from slurmrest_python.models.v0044_openapi_reservation_mod_resp import V0044OpenapiReservationModResp as V0044OpenapiReservationModResp +from slurmrest_python.models.v0044_openapi_reservation_resp import V0044OpenapiReservationResp as V0044OpenapiReservationResp +from slurmrest_python.models.v0044_openapi_resource_layout_resp import V0044OpenapiResourceLayoutResp as V0044OpenapiResourceLayoutResp +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp as V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_shares_resp import V0044OpenapiSharesResp as V0044OpenapiSharesResp +from slurmrest_python.models.v0044_openapi_slurmdbd_config_resp import V0044OpenapiSlurmdbdConfigResp as V0044OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0044_openapi_slurmdbd_jobs_resp import V0044OpenapiSlurmdbdJobsResp as V0044OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0044_openapi_slurmdbd_ping_resp import V0044OpenapiSlurmdbdPingResp as V0044OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_removed_resp import V0044OpenapiSlurmdbdQosRemovedResp as V0044OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp as V0044OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0044_openapi_slurmdbd_stats_resp import V0044OpenapiSlurmdbdStatsResp as V0044OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0044_openapi_tres_resp import V0044OpenapiTresResp as V0044OpenapiTresResp +from slurmrest_python.models.v0044_openapi_users_add_cond_resp import V0044OpenapiUsersAddCondResp as V0044OpenapiUsersAddCondResp +from slurmrest_python.models.v0044_openapi_users_add_cond_resp_str import V0044OpenapiUsersAddCondRespStr as V0044OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp as V0044OpenapiUsersResp +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning as V0044OpenapiWarning +from slurmrest_python.models.v0044_openapi_wckey_removed_resp import V0044OpenapiWckeyRemovedResp as V0044OpenapiWckeyRemovedResp +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp as V0044OpenapiWckeyResp +from slurmrest_python.models.v0044_part_prio import V0044PartPrio as V0044PartPrio +from slurmrest_python.models.v0044_partition_info import V0044PartitionInfo as V0044PartitionInfo +from slurmrest_python.models.v0044_partition_info_accounts import V0044PartitionInfoAccounts as V0044PartitionInfoAccounts +from slurmrest_python.models.v0044_partition_info_cpus import V0044PartitionInfoCpus as V0044PartitionInfoCpus +from slurmrest_python.models.v0044_partition_info_defaults import V0044PartitionInfoDefaults as V0044PartitionInfoDefaults +from slurmrest_python.models.v0044_partition_info_groups import V0044PartitionInfoGroups as V0044PartitionInfoGroups +from slurmrest_python.models.v0044_partition_info_maximums import V0044PartitionInfoMaximums as V0044PartitionInfoMaximums +from slurmrest_python.models.v0044_partition_info_minimums import V0044PartitionInfoMinimums as V0044PartitionInfoMinimums +from slurmrest_python.models.v0044_partition_info_nodes import V0044PartitionInfoNodes as V0044PartitionInfoNodes +from slurmrest_python.models.v0044_partition_info_priority import V0044PartitionInfoPriority as V0044PartitionInfoPriority +from slurmrest_python.models.v0044_partition_info_qos import V0044PartitionInfoQos as V0044PartitionInfoQos +from slurmrest_python.models.v0044_partition_info_timeouts import V0044PartitionInfoTimeouts as V0044PartitionInfoTimeouts +from slurmrest_python.models.v0044_partition_info_tres import V0044PartitionInfoTres as V0044PartitionInfoTres +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose as V0044ProcessExitCodeVerbose +from slurmrest_python.models.v0044_process_exit_code_verbose_signal import V0044ProcessExitCodeVerboseSignal as V0044ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0044_qos import V0044Qos as V0044Qos +from slurmrest_python.models.v0044_qos_limits import V0044QosLimits as V0044QosLimits +from slurmrest_python.models.v0044_qos_limits_max import V0044QosLimitsMax as V0044QosLimitsMax +from slurmrest_python.models.v0044_qos_limits_max_active_jobs import V0044QosLimitsMaxActiveJobs as V0044QosLimitsMaxActiveJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs import V0044QosLimitsMaxJobs as V0044QosLimitsMaxJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs import V0044QosLimitsMaxJobsActiveJobs as V0044QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs_per import V0044QosLimitsMaxJobsActiveJobsPer as V0044QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0044_qos_limits_max_tres import V0044QosLimitsMaxTres as V0044QosLimitsMaxTres +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes import V0044QosLimitsMaxTresMinutes as V0044QosLimitsMaxTresMinutes +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes_per import V0044QosLimitsMaxTresMinutesPer as V0044QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0044_qos_limits_max_tres_per import V0044QosLimitsMaxTresPer as V0044QosLimitsMaxTresPer +from slurmrest_python.models.v0044_qos_limits_max_wall_clock import V0044QosLimitsMaxWallClock as V0044QosLimitsMaxWallClock +from slurmrest_python.models.v0044_qos_limits_max_wall_clock_per import V0044QosLimitsMaxWallClockPer as V0044QosLimitsMaxWallClockPer +from slurmrest_python.models.v0044_qos_limits_min import V0044QosLimitsMin as V0044QosLimitsMin +from slurmrest_python.models.v0044_qos_limits_min_tres import V0044QosLimitsMinTres as V0044QosLimitsMinTres +from slurmrest_python.models.v0044_qos_limits_min_tres_per import V0044QosLimitsMinTresPer as V0044QosLimitsMinTresPer +from slurmrest_python.models.v0044_qos_preempt import V0044QosPreempt as V0044QosPreempt +from slurmrest_python.models.v0044_reservation_core_spec import V0044ReservationCoreSpec as V0044ReservationCoreSpec +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg as V0044ReservationDescMsg +from slurmrest_python.models.v0044_reservation_info import V0044ReservationInfo as V0044ReservationInfo +from slurmrest_python.models.v0044_reservation_info_purge_completed import V0044ReservationInfoPurgeCompleted as V0044ReservationInfoPurgeCompleted +from slurmrest_python.models.v0044_reservation_mod_req import V0044ReservationModReq as V0044ReservationModReq +from slurmrest_python.models.v0044_rollup_stats import V0044RollupStats as V0044RollupStats +from slurmrest_python.models.v0044_rollup_stats_daily import V0044RollupStatsDaily as V0044RollupStatsDaily +from slurmrest_python.models.v0044_rollup_stats_hourly import V0044RollupStatsHourly as V0044RollupStatsHourly +from slurmrest_python.models.v0044_rollup_stats_monthly import V0044RollupStatsMonthly as V0044RollupStatsMonthly +from slurmrest_python.models.v0044_schedule_exit_fields import V0044ScheduleExitFields as V0044ScheduleExitFields +from slurmrest_python.models.v0044_shares_float128_tres import V0044SharesFloat128Tres as V0044SharesFloat128Tres +from slurmrest_python.models.v0044_shares_resp_msg import V0044SharesRespMsg as V0044SharesRespMsg +from slurmrest_python.models.v0044_shares_uint64_tres import V0044SharesUint64Tres as V0044SharesUint64Tres +from slurmrest_python.models.v0044_slurm_step_id import V0044SlurmStepId as V0044SlurmStepId +from slurmrest_python.models.v0044_slurmdbd_ping import V0044SlurmdbdPing as V0044SlurmdbdPing +from slurmrest_python.models.v0044_stats_msg import V0044StatsMsg as V0044StatsMsg +from slurmrest_python.models.v0044_stats_msg_rpc_dump import V0044StatsMsgRpcDump as V0044StatsMsgRpcDump +from slurmrest_python.models.v0044_stats_msg_rpc_queue import V0044StatsMsgRpcQueue as V0044StatsMsgRpcQueue +from slurmrest_python.models.v0044_stats_msg_rpc_type import V0044StatsMsgRpcType as V0044StatsMsgRpcType +from slurmrest_python.models.v0044_stats_msg_rpc_user import V0044StatsMsgRpcUser as V0044StatsMsgRpcUser +from slurmrest_python.models.v0044_stats_rec import V0044StatsRec as V0044StatsRec +from slurmrest_python.models.v0044_stats_rpc import V0044StatsRpc as V0044StatsRpc +from slurmrest_python.models.v0044_stats_user import V0044StatsUser as V0044StatsUser +from slurmrest_python.models.v0044_step import V0044Step as V0044Step +from slurmrest_python.models.v0044_step_cpu import V0044StepCPU as V0044StepCPU +from slurmrest_python.models.v0044_step_cpu_requested_frequency import V0044StepCPURequestedFrequency as V0044StepCPURequestedFrequency +from slurmrest_python.models.v0044_step_nodes import V0044StepNodes as V0044StepNodes +from slurmrest_python.models.v0044_step_statistics import V0044StepStatistics as V0044StepStatistics +from slurmrest_python.models.v0044_step_statistics_energy import V0044StepStatisticsEnergy as V0044StepStatisticsEnergy +from slurmrest_python.models.v0044_step_step import V0044StepStep as V0044StepStep +from slurmrest_python.models.v0044_step_time import V0044StepTime as V0044StepTime +from slurmrest_python.models.v0044_step_tres import V0044StepTres as V0044StepTres +from slurmrest_python.models.v0044_step_tres_consumed import V0044StepTresConsumed as V0044StepTresConsumed +from slurmrest_python.models.v0044_step_tres_requested import V0044StepTresRequested as V0044StepTresRequested +from slurmrest_python.models.v0044_tres import V0044Tres as V0044Tres +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct as V0044Uint16NoValStruct +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct as V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct as V0044Uint64NoValStruct +from slurmrest_python.models.v0044_update_node_msg import V0044UpdateNodeMsg as V0044UpdateNodeMsg +from slurmrest_python.models.v0044_user import V0044User as V0044User +from slurmrest_python.models.v0044_user_default import V0044UserDefault as V0044UserDefault +from slurmrest_python.models.v0044_user_short import V0044UserShort as V0044UserShort +from slurmrest_python.models.v0044_users_add_cond import V0044UsersAddCond as V0044UsersAddCond +from slurmrest_python.models.v0044_wckey import V0044Wckey as V0044Wckey +from slurmrest_python.models.v0044_wckey_tag_struct import V0044WckeyTagStruct as V0044WckeyTagStruct diff --git a/slurmrest_python/api/__init__.py b/slurmrest_python/api/__init__.py new file mode 100644 index 0000000..24f0a44 --- /dev/null +++ b/slurmrest_python/api/__init__.py @@ -0,0 +1,7 @@ +# flake8: noqa + +# import apis into api package +from slurmrest_python.api.slurm_api import SlurmApi +from slurmrest_python.api.slurmdb_api import SlurmdbApi +from slurmrest_python.api.util_api import UtilApi + diff --git a/slurmrest_python/api/slurm_api.py b/slurmrest_python/api/slurm_api.py new file mode 100644 index 0000000..51b700f --- /dev/null +++ b/slurmrest_python/api/slurm_api.py @@ -0,0 +1,26987 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from slurmrest_python.models.v0041_job_alloc_req import V0041JobAllocReq +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg +from slurmrest_python.models.v0041_job_submit_req import V0041JobSubmitReq +from slurmrest_python.models.v0041_kill_jobs_msg import V0041KillJobsMsg +from slurmrest_python.models.v0041_openapi_diag_resp import V0041OpenapiDiagResp +from slurmrest_python.models.v0041_openapi_job_alloc_resp import V0041OpenapiJobAllocResp +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp +from slurmrest_python.models.v0041_openapi_job_post_response import V0041OpenapiJobPostResponse +from slurmrest_python.models.v0041_openapi_job_submit_response import V0041OpenapiJobSubmitResponse +from slurmrest_python.models.v0041_openapi_kill_jobs_resp import V0041OpenapiKillJobsResp +from slurmrest_python.models.v0041_openapi_licenses_resp import V0041OpenapiLicensesResp +from slurmrest_python.models.v0041_openapi_nodes_resp import V0041OpenapiNodesResp +from slurmrest_python.models.v0041_openapi_partition_resp import V0041OpenapiPartitionResp +from slurmrest_python.models.v0041_openapi_ping_array_resp import V0041OpenapiPingArrayResp +from slurmrest_python.models.v0041_openapi_reservation_resp import V0041OpenapiReservationResp +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_shares_resp import V0041OpenapiSharesResp +from slurmrest_python.models.v0041_update_node_msg import V0041UpdateNodeMsg +from slurmrest_python.models.v0042_job_alloc_req import V0042JobAllocReq +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg +from slurmrest_python.models.v0042_job_submit_req import V0042JobSubmitReq +from slurmrest_python.models.v0042_kill_jobs_msg import V0042KillJobsMsg +from slurmrest_python.models.v0042_openapi_diag_resp import V0042OpenapiDiagResp +from slurmrest_python.models.v0042_openapi_job_alloc_resp import V0042OpenapiJobAllocResp +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp +from slurmrest_python.models.v0042_openapi_job_post_response import V0042OpenapiJobPostResponse +from slurmrest_python.models.v0042_openapi_job_submit_response import V0042OpenapiJobSubmitResponse +from slurmrest_python.models.v0042_openapi_kill_job_resp import V0042OpenapiKillJobResp +from slurmrest_python.models.v0042_openapi_kill_jobs_resp import V0042OpenapiKillJobsResp +from slurmrest_python.models.v0042_openapi_licenses_resp import V0042OpenapiLicensesResp +from slurmrest_python.models.v0042_openapi_nodes_resp import V0042OpenapiNodesResp +from slurmrest_python.models.v0042_openapi_partition_resp import V0042OpenapiPartitionResp +from slurmrest_python.models.v0042_openapi_ping_array_resp import V0042OpenapiPingArrayResp +from slurmrest_python.models.v0042_openapi_reservation_resp import V0042OpenapiReservationResp +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_shares_resp import V0042OpenapiSharesResp +from slurmrest_python.models.v0042_update_node_msg import V0042UpdateNodeMsg +from slurmrest_python.models.v0043_job_alloc_req import V0043JobAllocReq +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg +from slurmrest_python.models.v0043_job_submit_req import V0043JobSubmitReq +from slurmrest_python.models.v0043_kill_jobs_msg import V0043KillJobsMsg +from slurmrest_python.models.v0043_openapi_diag_resp import V0043OpenapiDiagResp +from slurmrest_python.models.v0043_openapi_job_alloc_resp import V0043OpenapiJobAllocResp +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp +from slurmrest_python.models.v0043_openapi_job_post_response import V0043OpenapiJobPostResponse +from slurmrest_python.models.v0043_openapi_job_submit_response import V0043OpenapiJobSubmitResponse +from slurmrest_python.models.v0043_openapi_kill_job_resp import V0043OpenapiKillJobResp +from slurmrest_python.models.v0043_openapi_kill_jobs_resp import V0043OpenapiKillJobsResp +from slurmrest_python.models.v0043_openapi_licenses_resp import V0043OpenapiLicensesResp +from slurmrest_python.models.v0043_openapi_nodes_resp import V0043OpenapiNodesResp +from slurmrest_python.models.v0043_openapi_partition_resp import V0043OpenapiPartitionResp +from slurmrest_python.models.v0043_openapi_ping_array_resp import V0043OpenapiPingArrayResp +from slurmrest_python.models.v0043_openapi_reservation_mod_resp import V0043OpenapiReservationModResp +from slurmrest_python.models.v0043_openapi_reservation_resp import V0043OpenapiReservationResp +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_shares_resp import V0043OpenapiSharesResp +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg +from slurmrest_python.models.v0043_reservation_mod_req import V0043ReservationModReq +from slurmrest_python.models.v0043_update_node_msg import V0043UpdateNodeMsg +from slurmrest_python.models.v0044_job_alloc_req import V0044JobAllocReq +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg +from slurmrest_python.models.v0044_job_submit_req import V0044JobSubmitReq +from slurmrest_python.models.v0044_kill_jobs_msg import V0044KillJobsMsg +from slurmrest_python.models.v0044_openapi_create_node_req import V0044OpenapiCreateNodeReq +from slurmrest_python.models.v0044_openapi_diag_resp import V0044OpenapiDiagResp +from slurmrest_python.models.v0044_openapi_job_alloc_resp import V0044OpenapiJobAllocResp +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp +from slurmrest_python.models.v0044_openapi_job_post_response import V0044OpenapiJobPostResponse +from slurmrest_python.models.v0044_openapi_job_submit_response import V0044OpenapiJobSubmitResponse +from slurmrest_python.models.v0044_openapi_kill_job_resp import V0044OpenapiKillJobResp +from slurmrest_python.models.v0044_openapi_kill_jobs_resp import V0044OpenapiKillJobsResp +from slurmrest_python.models.v0044_openapi_licenses_resp import V0044OpenapiLicensesResp +from slurmrest_python.models.v0044_openapi_nodes_resp import V0044OpenapiNodesResp +from slurmrest_python.models.v0044_openapi_partition_resp import V0044OpenapiPartitionResp +from slurmrest_python.models.v0044_openapi_ping_array_resp import V0044OpenapiPingArrayResp +from slurmrest_python.models.v0044_openapi_reservation_mod_resp import V0044OpenapiReservationModResp +from slurmrest_python.models.v0044_openapi_reservation_resp import V0044OpenapiReservationResp +from slurmrest_python.models.v0044_openapi_resource_layout_resp import V0044OpenapiResourceLayoutResp +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_shares_resp import V0044OpenapiSharesResp +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg +from slurmrest_python.models.v0044_reservation_mod_req import V0044ReservationModReq +from slurmrest_python.models.v0044_update_node_msg import V0044UpdateNodeMsg + +from slurmrest_python.api_client import ApiClient, RequestSerialized +from slurmrest_python.api_response import ApiResponse +from slurmrest_python.rest import RESTResponseType + + +class SlurmApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def slurm_v0041_delete_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_delete_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_delete_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_delete_job_serialize( + self, + job_id, + signal, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if signal is not None: + + _query_params.append(('signal', signal)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.41/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_delete_jobs( + self, + v0041_kill_jobs_msg: Annotated[Optional[V0041KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiKillJobsResp: + """(Deprecated) send signal to list of jobs + + + :param v0041_kill_jobs_msg: Signal or cancel jobs + :type v0041_kill_jobs_msg: V0041KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_jobs_serialize( + v0041_kill_jobs_msg=v0041_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_delete_jobs_with_http_info( + self, + v0041_kill_jobs_msg: Annotated[Optional[V0041KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiKillJobsResp]: + """(Deprecated) send signal to list of jobs + + + :param v0041_kill_jobs_msg: Signal or cancel jobs + :type v0041_kill_jobs_msg: V0041KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_jobs_serialize( + v0041_kill_jobs_msg=v0041_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_delete_jobs_without_preload_content( + self, + v0041_kill_jobs_msg: Annotated[Optional[V0041KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) send signal to list of jobs + + + :param v0041_kill_jobs_msg: Signal or cancel jobs + :type v0041_kill_jobs_msg: V0041KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_jobs_serialize( + v0041_kill_jobs_msg=v0041_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_delete_jobs_serialize( + self, + v0041_kill_jobs_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_kill_jobs_msg is not None: + _body_params = v0041_kill_jobs_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.41/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_delete_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_delete_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_delete_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_delete_node_serialize( + self, + node_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.41/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_delete_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/reservation/{reservation_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_delete_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/reservation/{reservation_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_delete_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurm/v0.0.41/reservation/{reservation_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_delete_reservation_serialize( + self, + reservation_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.41/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiDiagResp: + """(Deprecated) get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/diag/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiDiagResp]: + """(Deprecated) get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/diag/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/diag/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiJobInfoResp: + """(Deprecated) get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiJobInfoResp]: + """(Deprecated) get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_job_serialize( + self, + job_id, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_jobs( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiJobInfoResp: + """(Deprecated) get list of jobs + + + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_jobs_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiJobInfoResp]: + """(Deprecated) get list of jobs + + + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_jobs_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get list of jobs + + + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_jobs_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_jobs_state( + self, + job_id: Annotated[Optional[StrictStr], Field(description="Search for CSV list of Job IDs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiJobInfoResp: + """(Deprecated) get list of job states + + + :param job_id: Search for CSV list of Job IDs + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/jobs/state/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_jobs_state_with_http_info( + self, + job_id: Annotated[Optional[StrictStr], Field(description="Search for CSV list of Job IDs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiJobInfoResp]: + """(Deprecated) get list of job states + + + :param job_id: Search for CSV list of Job IDs + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/jobs/state/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_jobs_state_without_preload_content( + self, + job_id: Annotated[Optional[StrictStr], Field(description="Search for CSV list of Job IDs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get list of job states + + + :param job_id: Search for CSV list of Job IDs + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/jobs/state/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_jobs_state_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if job_id is not None: + + _query_params.append(('job_id', job_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/jobs/state/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_licenses( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiLicensesResp: + """(Deprecated) get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/licenses/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_licenses_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiLicensesResp]: + """(Deprecated) get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/licenses/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_licenses_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/licenses/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_licenses_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/licenses/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiNodesResp: + """(Deprecated) get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiNodesResp]: + """(Deprecated) get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_node_serialize( + self, + node_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_nodes( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiNodesResp: + """(Deprecated) get node(s) info + + + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/nodes/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_nodes_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiNodesResp]: + """(Deprecated) get node(s) info + + + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/nodes/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_nodes_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter jobs since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get node(s) info + + + :param update_time: Filter jobs since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/nodes/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_nodes_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_partition( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiPartitionResp: + """(Deprecated) get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/partition/{partition_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_partition_with_http_info( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiPartitionResp]: + """(Deprecated) get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/partition/{partition_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_partition_without_preload_content( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/partition/{partition_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_partition_serialize( + self, + partition_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if partition_name is not None: + _path_params['partition_name'] = partition_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/partition/{partition_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_partitions( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiPartitionResp: + """(Deprecated) get all partition info + + + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/partitions/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_partitions_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiPartitionResp]: + """(Deprecated) get all partition info + + + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/partitions/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_partitions_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get all partition info + + + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/partitions/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_partitions_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/partitions/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_ping( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiPingArrayResp: + """(Deprecated) ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/ping/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_ping_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiPingArrayResp]: + """(Deprecated) ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/ping/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_ping_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/ping/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_ping_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/ping/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_reconfigure( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reconfigure/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_reconfigure_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reconfigure/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_reconfigure_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reconfigure/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_reconfigure_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/reconfigure/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiReservationResp: + """(Deprecated) get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reservation/{reservation_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiReservationResp]: + """(Deprecated) get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reservation/{reservation_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reservation/{reservation_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_reservation_serialize( + self, + reservation_name, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_reservations( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiReservationResp: + """(Deprecated) get all reservation info + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reservations/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_reservations_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiReservationResp]: + """(Deprecated) get all reservation info + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reservations/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_reservations_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get all reservation info + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/reservations/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_reservations_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/reservations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_get_shares( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSharesResp: + """(Deprecated) get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/shares is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_get_shares_with_http_info( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSharesResp]: + """(Deprecated) get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/shares is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_get_shares_without_preload_content( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurm/v0.0.41/shares is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_get_shares_serialize( + self, + accounts, + users, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if accounts is not None: + + _query_params.append(('accounts', accounts)) + + if users is not None: + + _query_params.append(('users', users)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.41/shares', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_post_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0041_job_desc_msg: Annotated[Optional[V0041JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiJobPostResponse: + """(Deprecated) update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0041_job_desc_msg: Job update description + :type v0041_job_desc_msg: V0041JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_serialize( + job_id=job_id, + v0041_job_desc_msg=v0041_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_post_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0041_job_desc_msg: Annotated[Optional[V0041JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiJobPostResponse]: + """(Deprecated) update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0041_job_desc_msg: Job update description + :type v0041_job_desc_msg: V0041JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_serialize( + job_id=job_id, + v0041_job_desc_msg=v0041_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_post_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0041_job_desc_msg: Annotated[Optional[V0041JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0041_job_desc_msg: Job update description + :type v0041_job_desc_msg: V0041JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_serialize( + job_id=job_id, + v0041_job_desc_msg=v0041_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_post_job_serialize( + self, + job_id, + v0041_job_desc_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_job_desc_msg is not None: + _body_params = v0041_job_desc_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.41/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_post_job_allocate( + self, + v0041_job_alloc_req: Annotated[Optional[V0041JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiJobAllocResp: + """(Deprecated) submit new job allocation without any steps that must be signaled to stop + + + :param v0041_job_alloc_req: Job allocation description + :type v0041_job_alloc_req: V0041JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/allocate is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_allocate_serialize( + v0041_job_alloc_req=v0041_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_post_job_allocate_with_http_info( + self, + v0041_job_alloc_req: Annotated[Optional[V0041JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiJobAllocResp]: + """(Deprecated) submit new job allocation without any steps that must be signaled to stop + + + :param v0041_job_alloc_req: Job allocation description + :type v0041_job_alloc_req: V0041JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/allocate is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_allocate_serialize( + v0041_job_alloc_req=v0041_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_post_job_allocate_without_preload_content( + self, + v0041_job_alloc_req: Annotated[Optional[V0041JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) submit new job allocation without any steps that must be signaled to stop + + + :param v0041_job_alloc_req: Job allocation description + :type v0041_job_alloc_req: V0041JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/allocate is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_allocate_serialize( + v0041_job_alloc_req=v0041_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_post_job_allocate_serialize( + self, + v0041_job_alloc_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_job_alloc_req is not None: + _body_params = v0041_job_alloc_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.41/job/allocate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_post_job_submit( + self, + v0041_job_submit_req: Annotated[Optional[V0041JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiJobSubmitResponse: + """(Deprecated) submit new job + + + :param v0041_job_submit_req: Job description + :type v0041_job_submit_req: V0041JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/submit is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_submit_serialize( + v0041_job_submit_req=v0041_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_post_job_submit_with_http_info( + self, + v0041_job_submit_req: Annotated[Optional[V0041JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiJobSubmitResponse]: + """(Deprecated) submit new job + + + :param v0041_job_submit_req: Job description + :type v0041_job_submit_req: V0041JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/submit is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_submit_serialize( + v0041_job_submit_req=v0041_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_post_job_submit_without_preload_content( + self, + v0041_job_submit_req: Annotated[Optional[V0041JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) submit new job + + + :param v0041_job_submit_req: Job description + :type v0041_job_submit_req: V0041JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/job/submit is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_job_submit_serialize( + v0041_job_submit_req=v0041_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_post_job_submit_serialize( + self, + v0041_job_submit_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_job_submit_req is not None: + _body_params = v0041_job_submit_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.41/job/submit', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_post_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0041_update_node_msg: Annotated[Optional[V0041UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0041_update_node_msg: Node update description + :type v0041_update_node_msg: V0041UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_node_serialize( + node_name=node_name, + v0041_update_node_msg=v0041_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_post_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0041_update_node_msg: Annotated[Optional[V0041UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0041_update_node_msg: Node update description + :type v0041_update_node_msg: V0041UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_node_serialize( + node_name=node_name, + v0041_update_node_msg=v0041_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_post_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0041_update_node_msg: Annotated[Optional[V0041UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0041_update_node_msg: Node update description + :type v0041_update_node_msg: V0041UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/node/{node_name} is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_node_serialize( + node_name=node_name, + v0041_update_node_msg=v0041_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_post_node_serialize( + self, + node_name, + v0041_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_update_node_msg is not None: + _body_params = v0041_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.41/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0041_post_nodes( + self, + v0041_update_node_msg: Annotated[Optional[V0041UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) batch update node(s) + + + :param v0041_update_node_msg: Nodelist update description + :type v0041_update_node_msg: V0041UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/nodes/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_nodes_serialize( + v0041_update_node_msg=v0041_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0041_post_nodes_with_http_info( + self, + v0041_update_node_msg: Annotated[Optional[V0041UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) batch update node(s) + + + :param v0041_update_node_msg: Nodelist update description + :type v0041_update_node_msg: V0041UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/nodes/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_nodes_serialize( + v0041_update_node_msg=v0041_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0041_post_nodes_without_preload_content( + self, + v0041_update_node_msg: Annotated[Optional[V0041UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) batch update node(s) + + + :param v0041_update_node_msg: Nodelist update description + :type v0041_update_node_msg: V0041UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurm/v0.0.41/nodes/ is deprecated.", DeprecationWarning) + + _param = self._slurm_v0041_post_nodes_serialize( + v0041_update_node_msg=v0041_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0041_post_nodes_serialize( + self, + v0041_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_update_node_msg is not None: + _body_params = v0041_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.41/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_delete_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiKillJobResp: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_delete_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiKillJobResp]: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_delete_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_delete_job_serialize( + self, + job_id, + signal, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if signal is not None: + + _query_params.append(('signal', signal)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.42/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_delete_jobs( + self, + v0042_kill_jobs_msg: Annotated[Optional[V0042KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiKillJobsResp: + """send signal to list of jobs + + + :param v0042_kill_jobs_msg: Signal or cancel jobs + :type v0042_kill_jobs_msg: V0042KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_jobs_serialize( + v0042_kill_jobs_msg=v0042_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_delete_jobs_with_http_info( + self, + v0042_kill_jobs_msg: Annotated[Optional[V0042KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiKillJobsResp]: + """send signal to list of jobs + + + :param v0042_kill_jobs_msg: Signal or cancel jobs + :type v0042_kill_jobs_msg: V0042KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_jobs_serialize( + v0042_kill_jobs_msg=v0042_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_delete_jobs_without_preload_content( + self, + v0042_kill_jobs_msg: Annotated[Optional[V0042KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """send signal to list of jobs + + + :param v0042_kill_jobs_msg: Signal or cancel jobs + :type v0042_kill_jobs_msg: V0042KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_jobs_serialize( + v0042_kill_jobs_msg=v0042_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_delete_jobs_serialize( + self, + v0042_kill_jobs_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_kill_jobs_msg is not None: + _body_params = v0042_kill_jobs_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.42/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_delete_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_delete_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_delete_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_delete_node_serialize( + self, + node_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.42/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_delete_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_delete_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_delete_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_delete_reservation_serialize( + self, + reservation_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.42/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiDiagResp: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiDiagResp]: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiJobInfoResp: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiJobInfoResp]: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_job_serialize( + self, + job_id, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_jobs( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiJobInfoResp: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_jobs_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiJobInfoResp]: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_jobs_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_jobs_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_jobs_state( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiJobInfoResp: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_jobs_state_with_http_info( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiJobInfoResp]: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_jobs_state_without_preload_content( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_jobs_state_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if job_id is not None: + + _query_params.append(('job_id', job_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/jobs/state/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_licenses( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiLicensesResp: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_licenses_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiLicensesResp]: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_licenses_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_licenses_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/licenses/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiNodesResp: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiNodesResp]: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_node_serialize( + self, + node_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_nodes( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiNodesResp: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_nodes_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiNodesResp]: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_nodes_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_nodes_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_partition( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiPartitionResp: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_partition_with_http_info( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiPartitionResp]: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_partition_without_preload_content( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_partition_serialize( + self, + partition_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if partition_name is not None: + _path_params['partition_name'] = partition_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/partition/{partition_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_partitions( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiPartitionResp: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_partitions_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiPartitionResp]: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_partitions_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_partitions_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/partitions/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_ping( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiPingArrayResp: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_ping_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiPingArrayResp]: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_ping_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_ping_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/ping/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_reconfigure( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_reconfigure_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_reconfigure_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_reconfigure_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/reconfigure/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiReservationResp: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiReservationResp]: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_reservation_serialize( + self, + reservation_name, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_reservations( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiReservationResp: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_reservations_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiReservationResp]: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_reservations_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_reservations_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/reservations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_get_shares( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSharesResp: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_get_shares_with_http_info( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSharesResp]: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_get_shares_without_preload_content( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_get_shares_serialize( + self, + accounts, + users, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if accounts is not None: + + _query_params.append(('accounts', accounts)) + + if users is not None: + + _query_params.append(('users', users)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.42/shares', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_post_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0042_job_desc_msg: Annotated[Optional[V0042JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiJobPostResponse: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0042_job_desc_msg: Job update description + :type v0042_job_desc_msg: V0042JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_serialize( + job_id=job_id, + v0042_job_desc_msg=v0042_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_post_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0042_job_desc_msg: Annotated[Optional[V0042JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiJobPostResponse]: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0042_job_desc_msg: Job update description + :type v0042_job_desc_msg: V0042JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_serialize( + job_id=job_id, + v0042_job_desc_msg=v0042_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_post_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0042_job_desc_msg: Annotated[Optional[V0042JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0042_job_desc_msg: Job update description + :type v0042_job_desc_msg: V0042JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_serialize( + job_id=job_id, + v0042_job_desc_msg=v0042_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_post_job_serialize( + self, + job_id, + v0042_job_desc_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_job_desc_msg is not None: + _body_params = v0042_job_desc_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.42/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_post_job_allocate( + self, + v0042_job_alloc_req: Annotated[Optional[V0042JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiJobAllocResp: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0042_job_alloc_req: Job allocation description + :type v0042_job_alloc_req: V0042JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_allocate_serialize( + v0042_job_alloc_req=v0042_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_post_job_allocate_with_http_info( + self, + v0042_job_alloc_req: Annotated[Optional[V0042JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiJobAllocResp]: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0042_job_alloc_req: Job allocation description + :type v0042_job_alloc_req: V0042JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_allocate_serialize( + v0042_job_alloc_req=v0042_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_post_job_allocate_without_preload_content( + self, + v0042_job_alloc_req: Annotated[Optional[V0042JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0042_job_alloc_req: Job allocation description + :type v0042_job_alloc_req: V0042JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_allocate_serialize( + v0042_job_alloc_req=v0042_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_post_job_allocate_serialize( + self, + v0042_job_alloc_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_job_alloc_req is not None: + _body_params = v0042_job_alloc_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.42/job/allocate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_post_job_submit( + self, + v0042_job_submit_req: Annotated[Optional[V0042JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiJobSubmitResponse: + """submit new job + + + :param v0042_job_submit_req: Job description + :type v0042_job_submit_req: V0042JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_submit_serialize( + v0042_job_submit_req=v0042_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_post_job_submit_with_http_info( + self, + v0042_job_submit_req: Annotated[Optional[V0042JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiJobSubmitResponse]: + """submit new job + + + :param v0042_job_submit_req: Job description + :type v0042_job_submit_req: V0042JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_submit_serialize( + v0042_job_submit_req=v0042_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_post_job_submit_without_preload_content( + self, + v0042_job_submit_req: Annotated[Optional[V0042JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """submit new job + + + :param v0042_job_submit_req: Job description + :type v0042_job_submit_req: V0042JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_job_submit_serialize( + v0042_job_submit_req=v0042_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_post_job_submit_serialize( + self, + v0042_job_submit_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_job_submit_req is not None: + _body_params = v0042_job_submit_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.42/job/submit', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_post_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0042_update_node_msg: Annotated[Optional[V0042UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0042_update_node_msg: Node update description + :type v0042_update_node_msg: V0042UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_node_serialize( + node_name=node_name, + v0042_update_node_msg=v0042_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_post_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0042_update_node_msg: Annotated[Optional[V0042UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0042_update_node_msg: Node update description + :type v0042_update_node_msg: V0042UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_node_serialize( + node_name=node_name, + v0042_update_node_msg=v0042_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_post_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0042_update_node_msg: Annotated[Optional[V0042UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0042_update_node_msg: Node update description + :type v0042_update_node_msg: V0042UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_node_serialize( + node_name=node_name, + v0042_update_node_msg=v0042_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_post_node_serialize( + self, + node_name, + v0042_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_update_node_msg is not None: + _body_params = v0042_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.42/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0042_post_nodes( + self, + v0042_update_node_msg: Annotated[Optional[V0042UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """batch update node(s) + + + :param v0042_update_node_msg: Nodelist update description + :type v0042_update_node_msg: V0042UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_nodes_serialize( + v0042_update_node_msg=v0042_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0042_post_nodes_with_http_info( + self, + v0042_update_node_msg: Annotated[Optional[V0042UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """batch update node(s) + + + :param v0042_update_node_msg: Nodelist update description + :type v0042_update_node_msg: V0042UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_nodes_serialize( + v0042_update_node_msg=v0042_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0042_post_nodes_without_preload_content( + self, + v0042_update_node_msg: Annotated[Optional[V0042UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """batch update node(s) + + + :param v0042_update_node_msg: Nodelist update description + :type v0042_update_node_msg: V0042UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0042_post_nodes_serialize( + v0042_update_node_msg=v0042_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0042_post_nodes_serialize( + self, + v0042_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_update_node_msg is not None: + _body_params = v0042_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.42/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_delete_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiKillJobResp: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_delete_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiKillJobResp]: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_delete_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_delete_job_serialize( + self, + job_id, + signal, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if signal is not None: + + _query_params.append(('signal', signal)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.43/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_delete_jobs( + self, + v0043_kill_jobs_msg: Annotated[Optional[V0043KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiKillJobsResp: + """send signal to list of jobs + + + :param v0043_kill_jobs_msg: Signal or cancel jobs + :type v0043_kill_jobs_msg: V0043KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_jobs_serialize( + v0043_kill_jobs_msg=v0043_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_delete_jobs_with_http_info( + self, + v0043_kill_jobs_msg: Annotated[Optional[V0043KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiKillJobsResp]: + """send signal to list of jobs + + + :param v0043_kill_jobs_msg: Signal or cancel jobs + :type v0043_kill_jobs_msg: V0043KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_jobs_serialize( + v0043_kill_jobs_msg=v0043_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_delete_jobs_without_preload_content( + self, + v0043_kill_jobs_msg: Annotated[Optional[V0043KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """send signal to list of jobs + + + :param v0043_kill_jobs_msg: Signal or cancel jobs + :type v0043_kill_jobs_msg: V0043KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_jobs_serialize( + v0043_kill_jobs_msg=v0043_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_delete_jobs_serialize( + self, + v0043_kill_jobs_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_kill_jobs_msg is not None: + _body_params = v0043_kill_jobs_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.43/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_delete_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_delete_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_delete_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_delete_node_serialize( + self, + node_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.43/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_delete_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_delete_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_delete_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_delete_reservation_serialize( + self, + reservation_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.43/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiDiagResp: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiDiagResp]: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiJobInfoResp: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiJobInfoResp]: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_job_serialize( + self, + job_id, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_jobs( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiJobInfoResp: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_jobs_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiJobInfoResp]: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_jobs_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_jobs_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_jobs_state( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiJobInfoResp: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_jobs_state_with_http_info( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiJobInfoResp]: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_jobs_state_without_preload_content( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_jobs_state_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if job_id is not None: + + _query_params.append(('job_id', job_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/jobs/state/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_licenses( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiLicensesResp: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_licenses_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiLicensesResp]: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_licenses_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_licenses_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/licenses/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiNodesResp: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiNodesResp]: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_node_serialize( + self, + node_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_nodes( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiNodesResp: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_nodes_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiNodesResp]: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_nodes_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_nodes_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_partition( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiPartitionResp: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_partition_with_http_info( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiPartitionResp]: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_partition_without_preload_content( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_partition_serialize( + self, + partition_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if partition_name is not None: + _path_params['partition_name'] = partition_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/partition/{partition_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_partitions( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiPartitionResp: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_partitions_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiPartitionResp]: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_partitions_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_partitions_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/partitions/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_ping( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiPingArrayResp: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_ping_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiPingArrayResp]: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_ping_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_ping_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/ping/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_reconfigure( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_reconfigure_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_reconfigure_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_reconfigure_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/reconfigure/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiReservationResp: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiReservationResp]: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_reservation_serialize( + self, + reservation_name, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_reservations( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiReservationResp: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_reservations_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiReservationResp]: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_reservations_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_reservations_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/reservations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_get_shares( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSharesResp: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_get_shares_with_http_info( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSharesResp]: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_get_shares_without_preload_content( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_get_shares_serialize( + self, + accounts, + users, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if accounts is not None: + + _query_params.append(('accounts', accounts)) + + if users is not None: + + _query_params.append(('users', users)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.43/shares', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_post_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0043_job_desc_msg: Annotated[Optional[V0043JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiJobPostResponse: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0043_job_desc_msg: Job update description + :type v0043_job_desc_msg: V0043JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_serialize( + job_id=job_id, + v0043_job_desc_msg=v0043_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_post_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0043_job_desc_msg: Annotated[Optional[V0043JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiJobPostResponse]: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0043_job_desc_msg: Job update description + :type v0043_job_desc_msg: V0043JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_serialize( + job_id=job_id, + v0043_job_desc_msg=v0043_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_post_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0043_job_desc_msg: Annotated[Optional[V0043JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0043_job_desc_msg: Job update description + :type v0043_job_desc_msg: V0043JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_serialize( + job_id=job_id, + v0043_job_desc_msg=v0043_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_post_job_serialize( + self, + job_id, + v0043_job_desc_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_job_desc_msg is not None: + _body_params = v0043_job_desc_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.43/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_post_job_allocate( + self, + v0043_job_alloc_req: Annotated[Optional[V0043JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiJobAllocResp: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0043_job_alloc_req: Job allocation description + :type v0043_job_alloc_req: V0043JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_allocate_serialize( + v0043_job_alloc_req=v0043_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_post_job_allocate_with_http_info( + self, + v0043_job_alloc_req: Annotated[Optional[V0043JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiJobAllocResp]: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0043_job_alloc_req: Job allocation description + :type v0043_job_alloc_req: V0043JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_allocate_serialize( + v0043_job_alloc_req=v0043_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_post_job_allocate_without_preload_content( + self, + v0043_job_alloc_req: Annotated[Optional[V0043JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0043_job_alloc_req: Job allocation description + :type v0043_job_alloc_req: V0043JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_allocate_serialize( + v0043_job_alloc_req=v0043_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_post_job_allocate_serialize( + self, + v0043_job_alloc_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_job_alloc_req is not None: + _body_params = v0043_job_alloc_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.43/job/allocate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_post_job_submit( + self, + v0043_job_submit_req: Annotated[Optional[V0043JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiJobSubmitResponse: + """submit new job + + + :param v0043_job_submit_req: Job description + :type v0043_job_submit_req: V0043JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_submit_serialize( + v0043_job_submit_req=v0043_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_post_job_submit_with_http_info( + self, + v0043_job_submit_req: Annotated[Optional[V0043JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiJobSubmitResponse]: + """submit new job + + + :param v0043_job_submit_req: Job description + :type v0043_job_submit_req: V0043JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_submit_serialize( + v0043_job_submit_req=v0043_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_post_job_submit_without_preload_content( + self, + v0043_job_submit_req: Annotated[Optional[V0043JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """submit new job + + + :param v0043_job_submit_req: Job description + :type v0043_job_submit_req: V0043JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_job_submit_serialize( + v0043_job_submit_req=v0043_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_post_job_submit_serialize( + self, + v0043_job_submit_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_job_submit_req is not None: + _body_params = v0043_job_submit_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.43/job/submit', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_post_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0043_update_node_msg: Annotated[Optional[V0043UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0043_update_node_msg: Node update description + :type v0043_update_node_msg: V0043UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_node_serialize( + node_name=node_name, + v0043_update_node_msg=v0043_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_post_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0043_update_node_msg: Annotated[Optional[V0043UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0043_update_node_msg: Node update description + :type v0043_update_node_msg: V0043UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_node_serialize( + node_name=node_name, + v0043_update_node_msg=v0043_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_post_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0043_update_node_msg: Annotated[Optional[V0043UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0043_update_node_msg: Node update description + :type v0043_update_node_msg: V0043UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_node_serialize( + node_name=node_name, + v0043_update_node_msg=v0043_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_post_node_serialize( + self, + node_name, + v0043_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_update_node_msg is not None: + _body_params = v0043_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.43/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_post_nodes( + self, + v0043_update_node_msg: Annotated[Optional[V0043UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """batch update node(s) + + + :param v0043_update_node_msg: Nodelist update description + :type v0043_update_node_msg: V0043UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_nodes_serialize( + v0043_update_node_msg=v0043_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_post_nodes_with_http_info( + self, + v0043_update_node_msg: Annotated[Optional[V0043UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """batch update node(s) + + + :param v0043_update_node_msg: Nodelist update description + :type v0043_update_node_msg: V0043UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_nodes_serialize( + v0043_update_node_msg=v0043_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_post_nodes_without_preload_content( + self, + v0043_update_node_msg: Annotated[Optional[V0043UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """batch update node(s) + + + :param v0043_update_node_msg: Nodelist update description + :type v0043_update_node_msg: V0043UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_nodes_serialize( + v0043_update_node_msg=v0043_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_post_nodes_serialize( + self, + v0043_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_update_node_msg is not None: + _body_params = v0043_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.43/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_post_reservation( + self, + v0043_reservation_desc_msg: Annotated[Optional[V0043ReservationDescMsg], Field(description="reservation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiReservationModResp: + """create or update a reservation + + + :param v0043_reservation_desc_msg: reservation description + :type v0043_reservation_desc_msg: V0043ReservationDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_reservation_serialize( + v0043_reservation_desc_msg=v0043_reservation_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_post_reservation_with_http_info( + self, + v0043_reservation_desc_msg: Annotated[Optional[V0043ReservationDescMsg], Field(description="reservation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiReservationModResp]: + """create or update a reservation + + + :param v0043_reservation_desc_msg: reservation description + :type v0043_reservation_desc_msg: V0043ReservationDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_reservation_serialize( + v0043_reservation_desc_msg=v0043_reservation_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_post_reservation_without_preload_content( + self, + v0043_reservation_desc_msg: Annotated[Optional[V0043ReservationDescMsg], Field(description="reservation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create or update a reservation + + + :param v0043_reservation_desc_msg: reservation description + :type v0043_reservation_desc_msg: V0043ReservationDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_reservation_serialize( + v0043_reservation_desc_msg=v0043_reservation_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_post_reservation_serialize( + self, + v0043_reservation_desc_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_reservation_desc_msg is not None: + _body_params = v0043_reservation_desc_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.43/reservation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0043_post_reservations( + self, + v0043_reservation_mod_req: Annotated[Optional[V0043ReservationModReq], Field(description="reservation descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiReservationModResp: + """create or update reservations + + + :param v0043_reservation_mod_req: reservation descriptions + :type v0043_reservation_mod_req: V0043ReservationModReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_reservations_serialize( + v0043_reservation_mod_req=v0043_reservation_mod_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0043_post_reservations_with_http_info( + self, + v0043_reservation_mod_req: Annotated[Optional[V0043ReservationModReq], Field(description="reservation descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiReservationModResp]: + """create or update reservations + + + :param v0043_reservation_mod_req: reservation descriptions + :type v0043_reservation_mod_req: V0043ReservationModReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_reservations_serialize( + v0043_reservation_mod_req=v0043_reservation_mod_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0043_post_reservations_without_preload_content( + self, + v0043_reservation_mod_req: Annotated[Optional[V0043ReservationModReq], Field(description="reservation descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create or update reservations + + + :param v0043_reservation_mod_req: reservation descriptions + :type v0043_reservation_mod_req: V0043ReservationModReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0043_post_reservations_serialize( + v0043_reservation_mod_req=v0043_reservation_mod_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0043_post_reservations_serialize( + self, + v0043_reservation_mod_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_reservation_mod_req is not None: + _body_params = v0043_reservation_mod_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.43/reservations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_delete_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiKillJobResp: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_delete_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiKillJobResp]: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_delete_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + signal: Annotated[Optional[StrictStr], Field(description="Signal to send to Job")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Signalling flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """cancel or signal job + + + :param job_id: Job ID (required) + :type job_id: str + :param signal: Signal to send to Job + :type signal: str + :param flags: Signalling flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_job_serialize( + job_id=job_id, + signal=signal, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiKillJobResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_delete_job_serialize( + self, + job_id, + signal, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if signal is not None: + + _query_params.append(('signal', signal)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.44/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_delete_jobs( + self, + v0044_kill_jobs_msg: Annotated[Optional[V0044KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiKillJobsResp: + """send signal to list of jobs + + + :param v0044_kill_jobs_msg: Signal or cancel jobs + :type v0044_kill_jobs_msg: V0044KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_jobs_serialize( + v0044_kill_jobs_msg=v0044_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_delete_jobs_with_http_info( + self, + v0044_kill_jobs_msg: Annotated[Optional[V0044KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiKillJobsResp]: + """send signal to list of jobs + + + :param v0044_kill_jobs_msg: Signal or cancel jobs + :type v0044_kill_jobs_msg: V0044KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_jobs_serialize( + v0044_kill_jobs_msg=v0044_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_delete_jobs_without_preload_content( + self, + v0044_kill_jobs_msg: Annotated[Optional[V0044KillJobsMsg], Field(description="Signal or cancel jobs")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """send signal to list of jobs + + + :param v0044_kill_jobs_msg: Signal or cancel jobs + :type v0044_kill_jobs_msg: V0044KillJobsMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_jobs_serialize( + v0044_kill_jobs_msg=v0044_kill_jobs_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiKillJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_delete_jobs_serialize( + self, + v0044_kill_jobs_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_kill_jobs_msg is not None: + _body_params = v0044_kill_jobs_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.44/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_delete_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_delete_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_delete_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete node + + + :param node_name: Node name (required) + :type node_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_node_serialize( + node_name=node_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_delete_node_serialize( + self, + node_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.44/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_delete_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_delete_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_delete_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete a reservation + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_delete_reservation_serialize( + reservation_name=reservation_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_delete_reservation_serialize( + self, + reservation_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurm/v0.0.44/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiDiagResp: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiDiagResp]: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiDiagResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobInfoResp: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobInfoResp]: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get job info + + + :param job_id: Job ID (required) + :type job_id: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_job_serialize( + job_id=job_id, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_job_serialize( + self, + job_id, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_jobs( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobInfoResp: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_jobs_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobInfoResp]: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_jobs_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get list of jobs + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_jobs_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_jobs_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_jobs_state( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobInfoResp: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_jobs_state_with_http_info( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobInfoResp]: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_jobs_state_without_preload_content( + self, + job_id: Annotated[Optional[StrictStr], Field(description="CSV list of Job IDs to search for")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get list of job states + + + :param job_id: CSV list of Job IDs to search for + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_jobs_state_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobInfoResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_jobs_state_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if job_id is not None: + + _query_params.append(('job_id', job_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/jobs/state/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_licenses( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiLicensesResp: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_licenses_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiLicensesResp]: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_licenses_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all Slurm tracked license info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_licenses_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiLicensesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_licenses_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/licenses/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiNodesResp: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiNodesResp]: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get node info + + + :param node_name: Node name (required) + :type node_name: str + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_node_serialize( + node_name=node_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_node_serialize( + self, + node_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_nodes( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiNodesResp: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_nodes_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiNodesResp]: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_nodes_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query jobs updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get node(s) info + + + :param update_time: Query jobs updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_nodes_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiNodesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_nodes_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_partition( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiPartitionResp: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_partition_with_http_info( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiPartitionResp]: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_partition_without_preload_content( + self, + partition_name: Annotated[StrictStr, Field(description="Partition name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get partition info + + + :param partition_name: Partition name (required) + :type partition_name: str + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_partition_serialize( + partition_name=partition_name, + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_partition_serialize( + self, + partition_name, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if partition_name is not None: + _path_params['partition_name'] = partition_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/partition/{partition_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_partitions( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiPartitionResp: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_partitions_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiPartitionResp]: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_partitions_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all partition info + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_partitions_serialize( + update_time=update_time, + flags=flags, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPartitionResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_partitions_serialize( + self, + update_time, + flags, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/partitions/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_ping( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiPingArrayResp: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_ping_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiPingArrayResp]: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_ping_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiPingArrayResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_ping_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/ping/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_reconfigure( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_reconfigure_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_reconfigure_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """request slurmctld reconfigure + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reconfigure_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_reconfigure_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/reconfigure/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_reservation( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiReservationResp: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_reservation_with_http_info( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiReservationResp]: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_reservation_without_preload_content( + self, + reservation_name: Annotated[StrictStr, Field(description="Reservation name")], + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get reservation info + + + :param reservation_name: Reservation name (required) + :type reservation_name: str + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reservation_serialize( + reservation_name=reservation_name, + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_reservation_serialize( + self, + reservation_name, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if reservation_name is not None: + _path_params['reservation_name'] = reservation_name + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/reservation/{reservation_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_reservations( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiReservationResp: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_reservations_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiReservationResp]: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_reservations_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get all reservation info + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_reservations_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_reservations_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/reservations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_resources( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResourceLayoutResp: + """get resource layout info + + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_resources_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResourceLayoutResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_resources_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResourceLayoutResp]: + """get resource layout info + + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_resources_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResourceLayoutResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_resources_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get resource layout info + + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_resources_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResourceLayoutResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_resources_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/resources/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_get_shares( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSharesResp: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_get_shares_with_http_info( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSharesResp]: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_get_shares_without_preload_content( + self, + accounts: Annotated[Optional[StrictStr], Field(description="Accounts to query")] = None, + users: Annotated[Optional[StrictStr], Field(description="Users to query")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get fairshare info + + + :param accounts: Accounts to query + :type accounts: str + :param users: Users to query + :type users: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_get_shares_serialize( + accounts=accounts, + users=users, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSharesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_get_shares_serialize( + self, + accounts, + users, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if accounts is not None: + + _query_params.append(('accounts', accounts)) + + if users is not None: + + _query_params.append(('users', users)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurm/v0.0.44/shares', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0044_job_desc_msg: Annotated[Optional[V0044JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobPostResponse: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0044_job_desc_msg: Job update description + :type v0044_job_desc_msg: V0044JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_serialize( + job_id=job_id, + v0044_job_desc_msg=v0044_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0044_job_desc_msg: Annotated[Optional[V0044JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobPostResponse]: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0044_job_desc_msg: Job update description + :type v0044_job_desc_msg: V0044JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_serialize( + job_id=job_id, + v0044_job_desc_msg=v0044_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0044_job_desc_msg: Annotated[Optional[V0044JobDescMsg], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0044_job_desc_msg: Job update description + :type v0044_job_desc_msg: V0044JobDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_serialize( + job_id=job_id, + v0044_job_desc_msg=v0044_job_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_job_serialize( + self, + job_id, + v0044_job_desc_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_job_desc_msg is not None: + _body_params = v0044_job_desc_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_job_allocate( + self, + v0044_job_alloc_req: Annotated[Optional[V0044JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobAllocResp: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0044_job_alloc_req: Job allocation description + :type v0044_job_alloc_req: V0044JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_allocate_serialize( + v0044_job_alloc_req=v0044_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_job_allocate_with_http_info( + self, + v0044_job_alloc_req: Annotated[Optional[V0044JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobAllocResp]: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0044_job_alloc_req: Job allocation description + :type v0044_job_alloc_req: V0044JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_allocate_serialize( + v0044_job_alloc_req=v0044_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_job_allocate_without_preload_content( + self, + v0044_job_alloc_req: Annotated[Optional[V0044JobAllocReq], Field(description="Job allocation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """submit new job allocation without any steps that must be signaled to stop + + + :param v0044_job_alloc_req: Job allocation description + :type v0044_job_alloc_req: V0044JobAllocReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_allocate_serialize( + v0044_job_alloc_req=v0044_job_alloc_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobAllocResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_job_allocate_serialize( + self, + v0044_job_alloc_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_job_alloc_req is not None: + _body_params = v0044_job_alloc_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/job/allocate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_job_submit( + self, + v0044_job_submit_req: Annotated[Optional[V0044JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobSubmitResponse: + """submit new job + + + :param v0044_job_submit_req: Job description + :type v0044_job_submit_req: V0044JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_submit_serialize( + v0044_job_submit_req=v0044_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_job_submit_with_http_info( + self, + v0044_job_submit_req: Annotated[Optional[V0044JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobSubmitResponse]: + """submit new job + + + :param v0044_job_submit_req: Job description + :type v0044_job_submit_req: V0044JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_submit_serialize( + v0044_job_submit_req=v0044_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_job_submit_without_preload_content( + self, + v0044_job_submit_req: Annotated[Optional[V0044JobSubmitReq], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """submit new job + + + :param v0044_job_submit_req: Job description + :type v0044_job_submit_req: V0044JobSubmitReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_job_submit_serialize( + v0044_job_submit_req=v0044_job_submit_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobSubmitResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_job_submit_serialize( + self, + v0044_job_submit_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_job_submit_req is not None: + _body_params = v0044_job_submit_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/job/submit', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_new_node( + self, + v0044_openapi_create_node_req: Annotated[Optional[V0044OpenapiCreateNodeReq], Field(description="node create request")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """create node + + + :param v0044_openapi_create_node_req: node create request + :type v0044_openapi_create_node_req: V0044OpenapiCreateNodeReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_new_node_serialize( + v0044_openapi_create_node_req=v0044_openapi_create_node_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_new_node_with_http_info( + self, + v0044_openapi_create_node_req: Annotated[Optional[V0044OpenapiCreateNodeReq], Field(description="node create request")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """create node + + + :param v0044_openapi_create_node_req: node create request + :type v0044_openapi_create_node_req: V0044OpenapiCreateNodeReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_new_node_serialize( + v0044_openapi_create_node_req=v0044_openapi_create_node_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_new_node_without_preload_content( + self, + v0044_openapi_create_node_req: Annotated[Optional[V0044OpenapiCreateNodeReq], Field(description="node create request")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create node + + + :param v0044_openapi_create_node_req: node create request + :type v0044_openapi_create_node_req: V0044OpenapiCreateNodeReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_new_node_serialize( + v0044_openapi_create_node_req=v0044_openapi_create_node_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_new_node_serialize( + self, + v0044_openapi_create_node_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_create_node_req is not None: + _body_params = v0044_openapi_create_node_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/new/node/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_node( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0044_update_node_msg: Annotated[Optional[V0044UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0044_update_node_msg: Node update description + :type v0044_update_node_msg: V0044UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_node_serialize( + node_name=node_name, + v0044_update_node_msg=v0044_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_node_with_http_info( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0044_update_node_msg: Annotated[Optional[V0044UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0044_update_node_msg: Node update description + :type v0044_update_node_msg: V0044UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_node_serialize( + node_name=node_name, + v0044_update_node_msg=v0044_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_node_without_preload_content( + self, + node_name: Annotated[StrictStr, Field(description="Node name")], + v0044_update_node_msg: Annotated[Optional[V0044UpdateNodeMsg], Field(description="Node update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update node properties + + + :param node_name: Node name (required) + :type node_name: str + :param v0044_update_node_msg: Node update description + :type v0044_update_node_msg: V0044UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_node_serialize( + node_name=node_name, + v0044_update_node_msg=v0044_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_node_serialize( + self, + node_name, + v0044_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if node_name is not None: + _path_params['node_name'] = node_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_update_node_msg is not None: + _body_params = v0044_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/node/{node_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_nodes( + self, + v0044_update_node_msg: Annotated[Optional[V0044UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """batch update node(s) + + + :param v0044_update_node_msg: Nodelist update description + :type v0044_update_node_msg: V0044UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_nodes_serialize( + v0044_update_node_msg=v0044_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_nodes_with_http_info( + self, + v0044_update_node_msg: Annotated[Optional[V0044UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """batch update node(s) + + + :param v0044_update_node_msg: Nodelist update description + :type v0044_update_node_msg: V0044UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_nodes_serialize( + v0044_update_node_msg=v0044_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_nodes_without_preload_content( + self, + v0044_update_node_msg: Annotated[Optional[V0044UpdateNodeMsg], Field(description="Nodelist update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """batch update node(s) + + + :param v0044_update_node_msg: Nodelist update description + :type v0044_update_node_msg: V0044UpdateNodeMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_nodes_serialize( + v0044_update_node_msg=v0044_update_node_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_nodes_serialize( + self, + v0044_update_node_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_update_node_msg is not None: + _body_params = v0044_update_node_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/nodes/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_reservation( + self, + v0044_reservation_desc_msg: Annotated[Optional[V0044ReservationDescMsg], Field(description="reservation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiReservationModResp: + """create or update a reservation + + + :param v0044_reservation_desc_msg: reservation description + :type v0044_reservation_desc_msg: V0044ReservationDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_reservation_serialize( + v0044_reservation_desc_msg=v0044_reservation_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_reservation_with_http_info( + self, + v0044_reservation_desc_msg: Annotated[Optional[V0044ReservationDescMsg], Field(description="reservation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiReservationModResp]: + """create or update a reservation + + + :param v0044_reservation_desc_msg: reservation description + :type v0044_reservation_desc_msg: V0044ReservationDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_reservation_serialize( + v0044_reservation_desc_msg=v0044_reservation_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_reservation_without_preload_content( + self, + v0044_reservation_desc_msg: Annotated[Optional[V0044ReservationDescMsg], Field(description="reservation description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create or update a reservation + + + :param v0044_reservation_desc_msg: reservation description + :type v0044_reservation_desc_msg: V0044ReservationDescMsg + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_reservation_serialize( + v0044_reservation_desc_msg=v0044_reservation_desc_msg, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_reservation_serialize( + self, + v0044_reservation_desc_msg, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_reservation_desc_msg is not None: + _body_params = v0044_reservation_desc_msg + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/reservation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurm_v0044_post_reservations( + self, + v0044_reservation_mod_req: Annotated[Optional[V0044ReservationModReq], Field(description="reservation descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiReservationModResp: + """create or update reservations + + + :param v0044_reservation_mod_req: reservation descriptions + :type v0044_reservation_mod_req: V0044ReservationModReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_reservations_serialize( + v0044_reservation_mod_req=v0044_reservation_mod_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurm_v0044_post_reservations_with_http_info( + self, + v0044_reservation_mod_req: Annotated[Optional[V0044ReservationModReq], Field(description="reservation descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiReservationModResp]: + """create or update reservations + + + :param v0044_reservation_mod_req: reservation descriptions + :type v0044_reservation_mod_req: V0044ReservationModReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_reservations_serialize( + v0044_reservation_mod_req=v0044_reservation_mod_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurm_v0044_post_reservations_without_preload_content( + self, + v0044_reservation_mod_req: Annotated[Optional[V0044ReservationModReq], Field(description="reservation descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create or update reservations + + + :param v0044_reservation_mod_req: reservation descriptions + :type v0044_reservation_mod_req: V0044ReservationModReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurm_v0044_post_reservations_serialize( + v0044_reservation_mod_req=v0044_reservation_mod_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiReservationModResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurm_v0044_post_reservations_serialize( + self, + v0044_reservation_mod_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_reservation_mod_req is not None: + _body_params = v0044_reservation_mod_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurm/v0.0.44/reservations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/slurmrest_python/api/slurmdb_api.py b/slurmrest_python/api/slurmdb_api.py new file mode 100644 index 0000000..2da562c --- /dev/null +++ b/slurmrest_python/api/slurmdb_api.py @@ -0,0 +1,52413 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp import V0041OpenapiAccountsAddCondResp +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_str import V0041OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0041_openapi_accounts_removed_resp import V0041OpenapiAccountsRemovedResp +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp +from slurmrest_python.models.v0041_openapi_assocs_removed_resp import V0041OpenapiAssocsRemovedResp +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp +from slurmrest_python.models.v0041_openapi_clusters_removed_resp import V0041OpenapiClustersRemovedResp +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp +from slurmrest_python.models.v0041_openapi_instances_resp import V0041OpenapiInstancesResp +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp import V0041OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp import V0041OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_removed_resp import V0041OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp import V0041OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0041_openapi_tres_resp import V0041OpenapiTresResp +from slurmrest_python.models.v0041_openapi_users_add_cond_resp import V0041OpenapiUsersAddCondResp +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_str import V0041OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp +from slurmrest_python.models.v0041_openapi_wckey_removed_resp import V0041OpenapiWckeyRemovedResp +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp import V0042OpenapiAccountsAddCondResp +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp_str import V0042OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0042_openapi_accounts_removed_resp import V0042OpenapiAccountsRemovedResp +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp +from slurmrest_python.models.v0042_openapi_assocs_removed_resp import V0042OpenapiAssocsRemovedResp +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp +from slurmrest_python.models.v0042_openapi_clusters_removed_resp import V0042OpenapiClustersRemovedResp +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp +from slurmrest_python.models.v0042_openapi_instances_resp import V0042OpenapiInstancesResp +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_slurmdbd_config_resp import V0042OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0042_openapi_slurmdbd_jobs_resp import V0042OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0042_openapi_slurmdbd_ping_resp import V0042OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_removed_resp import V0042OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0042_openapi_slurmdbd_stats_resp import V0042OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0042_openapi_tres_resp import V0042OpenapiTresResp +from slurmrest_python.models.v0042_openapi_users_add_cond_resp import V0042OpenapiUsersAddCondResp +from slurmrest_python.models.v0042_openapi_users_add_cond_resp_str import V0042OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp +from slurmrest_python.models.v0042_openapi_wckey_removed_resp import V0042OpenapiWckeyRemovedResp +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp import V0043OpenapiAccountsAddCondResp +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp_str import V0043OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0043_openapi_accounts_removed_resp import V0043OpenapiAccountsRemovedResp +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp +from slurmrest_python.models.v0043_openapi_assocs_removed_resp import V0043OpenapiAssocsRemovedResp +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp +from slurmrest_python.models.v0043_openapi_clusters_removed_resp import V0043OpenapiClustersRemovedResp +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp +from slurmrest_python.models.v0043_openapi_instances_resp import V0043OpenapiInstancesResp +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_slurmdbd_config_resp import V0043OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0043_openapi_slurmdbd_jobs_resp import V0043OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0043_openapi_slurmdbd_ping_resp import V0043OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_removed_resp import V0043OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0043_openapi_slurmdbd_stats_resp import V0043OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0043_openapi_tres_resp import V0043OpenapiTresResp +from slurmrest_python.models.v0043_openapi_users_add_cond_resp import V0043OpenapiUsersAddCondResp +from slurmrest_python.models.v0043_openapi_users_add_cond_resp_str import V0043OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp +from slurmrest_python.models.v0043_openapi_wckey_removed_resp import V0043OpenapiWckeyRemovedResp +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp +from slurmrest_python.models.v0044_job_modify import V0044JobModify +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp import V0044OpenapiAccountsAddCondResp +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp_str import V0044OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0044_openapi_accounts_removed_resp import V0044OpenapiAccountsRemovedResp +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp +from slurmrest_python.models.v0044_openapi_assocs_removed_resp import V0044OpenapiAssocsRemovedResp +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp +from slurmrest_python.models.v0044_openapi_clusters_removed_resp import V0044OpenapiClustersRemovedResp +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp +from slurmrest_python.models.v0044_openapi_instances_resp import V0044OpenapiInstancesResp +from slurmrest_python.models.v0044_openapi_job_modify_req import V0044OpenapiJobModifyReq +from slurmrest_python.models.v0044_openapi_job_modify_resp import V0044OpenapiJobModifyResp +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_slurmdbd_config_resp import V0044OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0044_openapi_slurmdbd_jobs_resp import V0044OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0044_openapi_slurmdbd_ping_resp import V0044OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_removed_resp import V0044OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0044_openapi_slurmdbd_stats_resp import V0044OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0044_openapi_tres_resp import V0044OpenapiTresResp +from slurmrest_python.models.v0044_openapi_users_add_cond_resp import V0044OpenapiUsersAddCondResp +from slurmrest_python.models.v0044_openapi_users_add_cond_resp_str import V0044OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp +from slurmrest_python.models.v0044_openapi_wckey_removed_resp import V0044OpenapiWckeyRemovedResp +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp + +from slurmrest_python.api_client import ApiClient, RequestSerialized +from slurmrest_python.api_response import ApiResponse +from slurmrest_python.rest import RESTResponseType + + +class SlurmdbApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def slurmdb_v0041_delete_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAccountsRemovedResp: + """(Deprecated) Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/account/{account_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_delete_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAccountsRemovedResp]: + """(Deprecated) Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/account/{account_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_delete_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/account/{account_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_delete_account_serialize( + self, + account_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.41/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_delete_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAssocsRemovedResp: + """(Deprecated) Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_delete_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAssocsRemovedResp]: + """(Deprecated) Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_delete_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_delete_association_serialize( + self, + account, + cluster, + default_qos, + format, + id, + only_defaults, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + with_raw_qos, + with_sub_accts, + without_parent_info, + without_parent_limits, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_raw_qos is not None: + + _query_params.append(('with_raw_qos', with_raw_qos)) + + if with_sub_accts is not None: + + _query_params.append(('with_sub_accts', with_sub_accts)) + + if without_parent_info is not None: + + _query_params.append(('without_parent_info', without_parent_info)) + + if without_parent_limits is not None: + + _query_params.append(('without_parent_limits', without_parent_limits)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.41/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_delete_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAssocsRemovedResp: + """(Deprecated) Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_delete_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAssocsRemovedResp]: + """(Deprecated) Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_delete_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_delete_associations_serialize( + self, + account, + cluster, + default_qos, + format, + id, + only_defaults, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + with_raw_qos, + with_sub_accts, + without_parent_info, + without_parent_limits, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_raw_qos is not None: + + _query_params.append(('with_raw_qos', with_raw_qos)) + + if with_sub_accts is not None: + + _query_params.append(('with_sub_accts', with_sub_accts)) + + if without_parent_info is not None: + + _query_params.append(('without_parent_info', without_parent_info)) + + if without_parent_limits is not None: + + _query_params.append(('without_parent_limits', without_parent_limits)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.41/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_delete_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiClustersRemovedResp: + """(Deprecated) Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/cluster/{cluster_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_delete_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiClustersRemovedResp]: + """(Deprecated) Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/cluster/{cluster_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_delete_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/cluster/{cluster_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_delete_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.41/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_delete_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSlurmdbdQosRemovedResp: + """(Deprecated) Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/qos/{qos} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_delete_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSlurmdbdQosRemovedResp]: + """(Deprecated) Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/qos/{qos} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_delete_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/qos/{qos} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_delete_single_qos_serialize( + self, + qos, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.41/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_delete_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/user/{name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_delete_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/user/{name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_delete_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/user/{name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_delete_user_serialize( + self, + name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.41/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_delete_wckey( + self, + id: Annotated[StrictStr, Field(description="wckey id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiWckeyRemovedResp: + """(Deprecated) Delete wckey + + + :param id: wckey id (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/wckey/{id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_delete_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="wckey id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiWckeyRemovedResp]: + """(Deprecated) Delete wckey + + + :param id: wckey id (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/wckey/{id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_delete_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="wckey id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Delete wckey + + + :param id: wckey id (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("DELETE /slurmdb/v0.0.41/wckey/{id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_delete_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.41/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAccountsResp: + """(Deprecated) Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/account/{account_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAccountsResp]: + """(Deprecated) Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/account/{account_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/account/{account_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_account_serialize( + self, + account_name, + with_assocs, + with_coords, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_accounts( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAccountsResp: + """(Deprecated) Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/accounts/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_accounts_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAccountsResp]: + """(Deprecated) Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/accounts/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_accounts_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/accounts/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_accounts_serialize( + self, + description, + deleted, + with_associations, + with_coordinators, + no_users_are_coords, + users_are_coords, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if deleted is not None: + + _query_params.append(('DELETED', deleted)) + + if with_associations is not None: + + _query_params.append(('WithAssociations', with_associations)) + + if with_coordinators is not None: + + _query_params.append(('WithCoordinators', with_coordinators)) + + if no_users_are_coords is not None: + + _query_params.append(('NoUsersAreCoords', no_users_are_coords)) + + if users_are_coords is not None: + + _query_params.append(('UsersAreCoords', users_are_coords)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAssocsResp: + """(Deprecated) Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAssocsResp]: + """(Deprecated) Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_association_serialize( + self, + account, + cluster, + default_qos, + format, + id, + only_defaults, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + with_raw_qos, + with_sub_accts, + without_parent_info, + without_parent_limits, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_raw_qos is not None: + + _query_params.append(('with_raw_qos', with_raw_qos)) + + if with_sub_accts is not None: + + _query_params.append(('with_sub_accts', with_sub_accts)) + + if without_parent_info is not None: + + _query_params.append(('without_parent_info', without_parent_info)) + + if without_parent_limits is not None: + + _query_params.append(('without_parent_limits', without_parent_limits)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAssocsResp: + """(Deprecated) Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAssocsResp]: + """(Deprecated) Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Filter to only defaults")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted associations")] = None, + with_raw_qos: Annotated[Optional[StrictStr], Field(description="Include a raw qos or delta_qos")] = None, + with_sub_accts: Annotated[Optional[StrictStr], Field(description="Include sub acct information")] = None, + without_parent_info: Annotated[Optional[StrictStr], Field(description="Exclude parent id/name")] = None, + without_parent_limits: Annotated[Optional[StrictStr], Field(description="Exclude limits from parents")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param only_defaults: Filter to only defaults + :type only_defaults: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted associations + :type with_deleted: str + :param with_raw_qos: Include a raw qos or delta_qos + :type with_raw_qos: str + :param with_sub_accts: Include sub acct information + :type with_sub_accts: str + :param without_parent_info: Exclude parent id/name + :type without_parent_info: str + :param without_parent_limits: Exclude limits from parents + :type without_parent_limits: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + format=format, + id=id, + only_defaults=only_defaults, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + with_raw_qos=with_raw_qos, + with_sub_accts=with_sub_accts, + without_parent_info=without_parent_info, + without_parent_limits=without_parent_limits, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_associations_serialize( + self, + account, + cluster, + default_qos, + format, + id, + only_defaults, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + with_raw_qos, + with_sub_accts, + without_parent_info, + without_parent_limits, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_raw_qos is not None: + + _query_params.append(('with_raw_qos', with_raw_qos)) + + if with_sub_accts is not None: + + _query_params.append(('with_sub_accts', with_sub_accts)) + + if without_parent_info is not None: + + _query_params.append(('without_parent_info', without_parent_info)) + + if without_parent_limits is not None: + + _query_params.append(('without_parent_limits', without_parent_limits)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiClustersResp: + """(Deprecated) Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/cluster/{cluster_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiClustersResp]: + """(Deprecated) Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/cluster/{cluster_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/cluster/{cluster_name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiClustersResp: + """(Deprecated) Get cluster list + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/clusters/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiClustersResp]: + """(Deprecated) Get cluster list + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/clusters/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get cluster list + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/clusters/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_clusters_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_config( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSlurmdbdConfigResp: + """(Deprecated) Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/config is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_config_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSlurmdbdConfigResp]: + """(Deprecated) Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/config is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_config_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/config is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_config_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSlurmdbdStatsResp: + """(Deprecated) Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/diag/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSlurmdbdStatsResp]: + """(Deprecated) Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/diag/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/diag/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_instance( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiInstancesResp: + """(Deprecated) Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/instance/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_instance_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiInstancesResp]: + """(Deprecated) Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/instance/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_instance_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/instance/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_instance_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/instance/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_instances( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiInstancesResp: + """(Deprecated) Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/instances/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_instances_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiInstancesResp]: + """(Deprecated) Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/instances/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_instances_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/instances/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_instances_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/instances/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSlurmdbdJobsResp: + """(Deprecated) Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job id (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSlurmdbdJobsResp]: + """(Deprecated) Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job id (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job id (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/job/{job_id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_job_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_jobs( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV wckey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSlurmdbdJobsResp: + """(Deprecated) Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV wckey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_jobs_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV wckey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSlurmdbdJobsResp]: + """(Deprecated) Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV wckey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_jobs_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV wckey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV wckey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/jobs/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_jobs_serialize( + self, + account, + association, + cluster, + constraints, + scheduler_unset, + scheduled_on_submit, + scheduled_by_main, + scheduled_by_backfill, + job_started, + exit_code, + show_duplicates, + skip_steps, + disable_truncate_usage_time, + whole_hetjob, + disable_whole_hetjob, + disable_wait_for_result, + usage_time_as_submit_time, + show_batch_script, + show_job_environment, + format, + groups, + job_name, + partition, + qos, + reason, + reservation, + reservation_id, + state, + step, + end_time, + start_time, + node, + users, + wckey, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if association is not None: + + _query_params.append(('association', association)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if constraints is not None: + + _query_params.append(('constraints', constraints)) + + if scheduler_unset is not None: + + _query_params.append(('scheduler_unset', scheduler_unset)) + + if scheduled_on_submit is not None: + + _query_params.append(('scheduled_on_submit', scheduled_on_submit)) + + if scheduled_by_main is not None: + + _query_params.append(('scheduled_by_main', scheduled_by_main)) + + if scheduled_by_backfill is not None: + + _query_params.append(('scheduled_by_backfill', scheduled_by_backfill)) + + if job_started is not None: + + _query_params.append(('job_started', job_started)) + + if exit_code is not None: + + _query_params.append(('exit_code', exit_code)) + + if show_duplicates is not None: + + _query_params.append(('show_duplicates', show_duplicates)) + + if skip_steps is not None: + + _query_params.append(('skip_steps', skip_steps)) + + if disable_truncate_usage_time is not None: + + _query_params.append(('disable_truncate_usage_time', disable_truncate_usage_time)) + + if whole_hetjob is not None: + + _query_params.append(('whole_hetjob', whole_hetjob)) + + if disable_whole_hetjob is not None: + + _query_params.append(('disable_whole_hetjob', disable_whole_hetjob)) + + if disable_wait_for_result is not None: + + _query_params.append(('disable_wait_for_result', disable_wait_for_result)) + + if usage_time_as_submit_time is not None: + + _query_params.append(('usage_time_as_submit_time', usage_time_as_submit_time)) + + if show_batch_script is not None: + + _query_params.append(('show_batch_script', show_batch_script)) + + if show_job_environment is not None: + + _query_params.append(('show_job_environment', show_job_environment)) + + if format is not None: + + _query_params.append(('format', format)) + + if groups is not None: + + _query_params.append(('groups', groups)) + + if job_name is not None: + + _query_params.append(('job_name', job_name)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if reason is not None: + + _query_params.append(('reason', reason)) + + if reservation is not None: + + _query_params.append(('reservation', reservation)) + + if reservation_id is not None: + + _query_params.append(('reservation_id', reservation_id)) + + if state is not None: + + _query_params.append(('state', state)) + + if step is not None: + + _query_params.append(('step', step)) + + if end_time is not None: + + _query_params.append(('end_time', end_time)) + + if start_time is not None: + + _query_params.append(('start_time', start_time)) + + if node is not None: + + _query_params.append(('node', node)) + + if users is not None: + + _query_params.append(('users', users)) + + if wckey is not None: + + _query_params.append(('wckey', wckey)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSlurmdbdQosResp: + """(Deprecated) Get QOS list + + + :param description: CSV description list + :type description: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param with_deleted: Include deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/qos/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_qos_serialize( + description=description, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSlurmdbdQosResp]: + """(Deprecated) Get QOS list + + + :param description: CSV description list + :type description: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param with_deleted: Include deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/qos/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_qos_serialize( + description=description, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get QOS list + + + :param description: CSV description list + :type description: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param with_deleted: Include deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/qos/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_qos_serialize( + description=description, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_qos_serialize( + self, + description, + id, + format, + name, + preempt_mode, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiSlurmdbdQosResp: + """(Deprecated) Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/qos/{qos} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiSlurmdbdQosResp]: + """(Deprecated) Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/qos/{qos} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/qos/{qos} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_single_qos_serialize( + self, + qos, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_tres( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiTresResp: + """(Deprecated) Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/tres/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_tres_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiTresResp]: + """(Deprecated) Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/tres/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_tres_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/tres/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_tres_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include wckeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiUsersResp: + """(Deprecated) Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include wckeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/user/{name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include wckeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiUsersResp]: + """(Deprecated) Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include wckeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/user/{name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include wckeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include wckeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/user/{name} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_user_serialize( + self, + name, + with_deleted, + with_assocs, + with_coords, + with_wckeys, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_users( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default wckey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With wckeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiUsersResp: + """(Deprecated) Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default wckey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With wckeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/users/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_users_with_http_info( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default wckey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With wckeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiUsersResp]: + """(Deprecated) Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default wckey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With wckeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/users/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_users_without_preload_content( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default wckey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With wckeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default wckey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With wckeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/users/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_users_serialize( + self, + admin_level, + default_account, + default_wckey, + with_assocs, + with_coords, + with_deleted, + with_wckeys, + without_defaults, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if admin_level is not None: + + _query_params.append(('admin_level', admin_level)) + + if default_account is not None: + + _query_params.append(('default_account', default_account)) + + if default_wckey is not None: + + _query_params.append(('default_wckey', default_wckey)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + if without_defaults is not None: + + _query_params.append(('without_defaults', without_defaults)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_wckey( + self, + id: Annotated[StrictStr, Field(description="wckey id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiWckeyResp: + """(Deprecated) Get wckey info + + + :param id: wckey id (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/wckey/{id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="wckey id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiWckeyResp]: + """(Deprecated) Get wckey info + + + :param id: wckey id (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/wckey/{id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="wckey id")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get wckey info + + + :param id: wckey id (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/wckey/{id} is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_get_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted wckeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiWckeyResp: + """(Deprecated) Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted wckeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/wckeys/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_get_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted wckeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiWckeyResp]: + """(Deprecated) Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted wckeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/wckeys/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_get_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted wckeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted wckeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("GET /slurmdb/v0.0.41/wckeys/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_get_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.41/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_accounts( + self, + v0041_openapi_accounts_resp: Annotated[Optional[V0041OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Add/update list of accounts + + + :param v0041_openapi_accounts_resp: Description of accounts to update/create + :type v0041_openapi_accounts_resp: V0041OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/accounts/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_accounts_serialize( + v0041_openapi_accounts_resp=v0041_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_accounts_with_http_info( + self, + v0041_openapi_accounts_resp: Annotated[Optional[V0041OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Add/update list of accounts + + + :param v0041_openapi_accounts_resp: Description of accounts to update/create + :type v0041_openapi_accounts_resp: V0041OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/accounts/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_accounts_serialize( + v0041_openapi_accounts_resp=v0041_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_accounts_without_preload_content( + self, + v0041_openapi_accounts_resp: Annotated[Optional[V0041OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Add/update list of accounts + + + :param v0041_openapi_accounts_resp: Description of accounts to update/create + :type v0041_openapi_accounts_resp: V0041OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/accounts/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_accounts_serialize( + v0041_openapi_accounts_resp=v0041_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_accounts_serialize( + self, + v0041_openapi_accounts_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_accounts_resp is not None: + _body_params = v0041_openapi_accounts_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_accounts_association( + self, + v0041_openapi_accounts_add_cond_resp: Annotated[Optional[V0041OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiAccountsAddCondRespStr: + """(Deprecated) Add accounts with conditional association + + + :param v0041_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0041_openapi_accounts_add_cond_resp: V0041OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/accounts_association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_accounts_association_serialize( + v0041_openapi_accounts_add_cond_resp=v0041_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_accounts_association_with_http_info( + self, + v0041_openapi_accounts_add_cond_resp: Annotated[Optional[V0041OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiAccountsAddCondRespStr]: + """(Deprecated) Add accounts with conditional association + + + :param v0041_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0041_openapi_accounts_add_cond_resp: V0041OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/accounts_association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_accounts_association_serialize( + v0041_openapi_accounts_add_cond_resp=v0041_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_accounts_association_without_preload_content( + self, + v0041_openapi_accounts_add_cond_resp: Annotated[Optional[V0041OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Add accounts with conditional association + + + :param v0041_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0041_openapi_accounts_add_cond_resp: V0041OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/accounts_association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_accounts_association_serialize( + v0041_openapi_accounts_add_cond_resp=v0041_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_accounts_association_serialize( + self, + v0041_openapi_accounts_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_accounts_add_cond_resp is not None: + _body_params = v0041_openapi_accounts_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/accounts_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_associations( + self, + v0041_openapi_assocs_resp: Annotated[Optional[V0041OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Set associations info + + + :param v0041_openapi_assocs_resp: Job description + :type v0041_openapi_assocs_resp: V0041OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_associations_serialize( + v0041_openapi_assocs_resp=v0041_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_associations_with_http_info( + self, + v0041_openapi_assocs_resp: Annotated[Optional[V0041OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Set associations info + + + :param v0041_openapi_assocs_resp: Job description + :type v0041_openapi_assocs_resp: V0041OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_associations_serialize( + v0041_openapi_assocs_resp=v0041_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_associations_without_preload_content( + self, + v0041_openapi_assocs_resp: Annotated[Optional[V0041OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Set associations info + + + :param v0041_openapi_assocs_resp: Job description + :type v0041_openapi_assocs_resp: V0041OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/associations/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_associations_serialize( + v0041_openapi_assocs_resp=v0041_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_associations_serialize( + self, + v0041_openapi_assocs_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_assocs_resp is not None: + _body_params = v0041_openapi_assocs_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + v0041_openapi_clusters_resp: Annotated[Optional[V0041OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Get cluster list + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param v0041_openapi_clusters_resp: Cluster add or update descriptions + :type v0041_openapi_clusters_resp: V0041OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/clusters/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_clusters_serialize( + update_time=update_time, + v0041_openapi_clusters_resp=v0041_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + v0041_openapi_clusters_resp: Annotated[Optional[V0041OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Get cluster list + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param v0041_openapi_clusters_resp: Cluster add or update descriptions + :type v0041_openapi_clusters_resp: V0041OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/clusters/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_clusters_serialize( + update_time=update_time, + v0041_openapi_clusters_resp=v0041_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter reservations since update timestamp")] = None, + v0041_openapi_clusters_resp: Annotated[Optional[V0041OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Get cluster list + + + :param update_time: Filter reservations since update timestamp + :type update_time: str + :param v0041_openapi_clusters_resp: Cluster add or update descriptions + :type v0041_openapi_clusters_resp: V0041OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/clusters/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_clusters_serialize( + update_time=update_time, + v0041_openapi_clusters_resp=v0041_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_clusters_serialize( + self, + update_time, + v0041_openapi_clusters_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_clusters_resp is not None: + _body_params = v0041_openapi_clusters_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_config( + self, + v0041_openapi_slurmdbd_config_resp: Annotated[Optional[V0041OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Load all configuration information + + + :param v0041_openapi_slurmdbd_config_resp: Add or update config + :type v0041_openapi_slurmdbd_config_resp: V0041OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/config is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_config_serialize( + v0041_openapi_slurmdbd_config_resp=v0041_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_config_with_http_info( + self, + v0041_openapi_slurmdbd_config_resp: Annotated[Optional[V0041OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Load all configuration information + + + :param v0041_openapi_slurmdbd_config_resp: Add or update config + :type v0041_openapi_slurmdbd_config_resp: V0041OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/config is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_config_serialize( + v0041_openapi_slurmdbd_config_resp=v0041_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_config_without_preload_content( + self, + v0041_openapi_slurmdbd_config_resp: Annotated[Optional[V0041OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Load all configuration information + + + :param v0041_openapi_slurmdbd_config_resp: Add or update config + :type v0041_openapi_slurmdbd_config_resp: V0041OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/config is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_config_serialize( + v0041_openapi_slurmdbd_config_resp=v0041_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_config_serialize( + self, + v0041_openapi_slurmdbd_config_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_slurmdbd_config_resp is not None: + _body_params = v0041_openapi_slurmdbd_config_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted QOS")] = None, + v0041_openapi_slurmdbd_qos_resp: Annotated[Optional[V0041OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Add or update QOSs + + + :param description: CSV description list + :type description: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param with_deleted: Include deleted QOS + :type with_deleted: str + :param v0041_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0041_openapi_slurmdbd_qos_resp: V0041OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/qos/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_qos_serialize( + description=description, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + with_deleted=with_deleted, + v0041_openapi_slurmdbd_qos_resp=v0041_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted QOS")] = None, + v0041_openapi_slurmdbd_qos_resp: Annotated[Optional[V0041OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Add or update QOSs + + + :param description: CSV description list + :type description: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param with_deleted: Include deleted QOS + :type with_deleted: str + :param v0041_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0041_openapi_slurmdbd_qos_resp: V0041OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/qos/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_qos_serialize( + description=description, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + with_deleted=with_deleted, + v0041_openapi_slurmdbd_qos_resp=v0041_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted QOS")] = None, + v0041_openapi_slurmdbd_qos_resp: Annotated[Optional[V0041OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Add or update QOSs + + + :param description: CSV description list + :type description: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param with_deleted: Include deleted QOS + :type with_deleted: str + :param v0041_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0041_openapi_slurmdbd_qos_resp: V0041OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/qos/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_qos_serialize( + description=description, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + with_deleted=with_deleted, + v0041_openapi_slurmdbd_qos_resp=v0041_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_qos_serialize( + self, + description, + id, + format, + name, + preempt_mode, + with_deleted, + v0041_openapi_slurmdbd_qos_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_slurmdbd_qos_resp is not None: + _body_params = v0041_openapi_slurmdbd_qos_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_tres( + self, + v0041_openapi_tres_resp: Annotated[Optional[V0041OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Add TRES + + + :param v0041_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0041_openapi_tres_resp: V0041OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/tres/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_tres_serialize( + v0041_openapi_tres_resp=v0041_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_tres_with_http_info( + self, + v0041_openapi_tres_resp: Annotated[Optional[V0041OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Add TRES + + + :param v0041_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0041_openapi_tres_resp: V0041OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/tres/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_tres_serialize( + v0041_openapi_tres_resp=v0041_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_tres_without_preload_content( + self, + v0041_openapi_tres_resp: Annotated[Optional[V0041OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Add TRES + + + :param v0041_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0041_openapi_tres_resp: V0041OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/tres/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_tres_serialize( + v0041_openapi_tres_resp=v0041_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_tres_serialize( + self, + v0041_openapi_tres_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_tres_resp is not None: + _body_params = v0041_openapi_tres_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_users( + self, + v0041_openapi_users_resp: Annotated[Optional[V0041OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Update users + + + :param v0041_openapi_users_resp: add or update user + :type v0041_openapi_users_resp: V0041OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/users/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_users_serialize( + v0041_openapi_users_resp=v0041_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_users_with_http_info( + self, + v0041_openapi_users_resp: Annotated[Optional[V0041OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Update users + + + :param v0041_openapi_users_resp: add or update user + :type v0041_openapi_users_resp: V0041OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/users/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_users_serialize( + v0041_openapi_users_resp=v0041_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_users_without_preload_content( + self, + v0041_openapi_users_resp: Annotated[Optional[V0041OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Update users + + + :param v0041_openapi_users_resp: add or update user + :type v0041_openapi_users_resp: V0041OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/users/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_users_serialize( + v0041_openapi_users_resp=v0041_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_users_serialize( + self, + v0041_openapi_users_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_users_resp is not None: + _body_params = v0041_openapi_users_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_users_association( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0041_openapi_users_add_cond_resp: Annotated[Optional[V0041OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiUsersAddCondRespStr: + """(Deprecated) Add users with conditional association + + + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0041_openapi_users_add_cond_resp: Create users with conditional association + :type v0041_openapi_users_add_cond_resp: V0041OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/users_association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0041_openapi_users_add_cond_resp=v0041_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_users_association_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0041_openapi_users_add_cond_resp: Annotated[Optional[V0041OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiUsersAddCondRespStr]: + """(Deprecated) Add users with conditional association + + + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0041_openapi_users_add_cond_resp: Create users with conditional association + :type v0041_openapi_users_add_cond_resp: V0041OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/users_association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0041_openapi_users_add_cond_resp=v0041_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_users_association_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Filter partitions since update timestamp")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0041_openapi_users_add_cond_resp: Annotated[Optional[V0041OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Add users with conditional association + + + :param update_time: Filter partitions since update timestamp + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0041_openapi_users_add_cond_resp: Create users with conditional association + :type v0041_openapi_users_add_cond_resp: V0041OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/users_association/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0041_openapi_users_add_cond_resp=v0041_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_users_association_serialize( + self, + update_time, + flags, + v0041_openapi_users_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_users_add_cond_resp is not None: + _body_params = v0041_openapi_users_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/users_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0041_post_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted wckeys")] = None, + v0041_openapi_wckey_resp: Annotated[Optional[V0041OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0041OpenapiResp: + """(Deprecated) Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted wckeys + :type with_deleted: str + :param v0041_openapi_wckey_resp: wckeys description + :type v0041_openapi_wckey_resp: V0041OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/wckeys/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0041_openapi_wckey_resp=v0041_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0041_post_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted wckeys")] = None, + v0041_openapi_wckey_resp: Annotated[Optional[V0041OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0041OpenapiResp]: + """(Deprecated) Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted wckeys + :type with_deleted: str + :param v0041_openapi_wckey_resp: wckeys description + :type v0041_openapi_wckey_resp: V0041OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/wckeys/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0041_openapi_wckey_resp=v0041_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0041_post_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV id list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted wckeys")] = None, + v0041_openapi_wckey_resp: Annotated[Optional[V0041OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """(Deprecated) Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV id list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted wckeys + :type with_deleted: str + :param v0041_openapi_wckey_resp: wckeys description + :type v0041_openapi_wckey_resp: V0041OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + warnings.warn("POST /slurmdb/v0.0.41/wckeys/ is deprecated.", DeprecationWarning) + + _param = self._slurmdb_v0041_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0041_openapi_wckey_resp=v0041_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0041OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0041_post_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + v0041_openapi_wckey_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0041_openapi_wckey_resp is not None: + _body_params = v0041_openapi_wckey_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.41/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_delete_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAccountsRemovedResp: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_delete_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAccountsRemovedResp]: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_delete_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_delete_account_serialize( + self, + account_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.42/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_delete_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAssocsRemovedResp: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_delete_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAssocsRemovedResp]: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_delete_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_delete_association_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.42/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_delete_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAssocsRemovedResp: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_delete_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAssocsRemovedResp]: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_delete_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_delete_associations_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.42/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_delete_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiClustersRemovedResp: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_delete_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiClustersRemovedResp]: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_delete_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_delete_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.42/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_delete_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdQosRemovedResp: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_delete_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdQosRemovedResp]: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_delete_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_delete_single_qos_serialize( + self, + qos, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.42/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_delete_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_delete_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_delete_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_delete_user_serialize( + self, + name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.42/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_delete_wckey( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiWckeyRemovedResp: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_delete_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiWckeyRemovedResp]: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_delete_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_delete_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.42/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAccountsResp: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAccountsResp]: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_account_serialize( + self, + account_name, + with_assocs, + with_coords, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_accounts( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAccountsResp: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_accounts_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAccountsResp]: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_accounts_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_accounts_serialize( + self, + description, + deleted, + with_associations, + with_coordinators, + no_users_are_coords, + users_are_coords, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if deleted is not None: + + _query_params.append(('DELETED', deleted)) + + if with_associations is not None: + + _query_params.append(('WithAssociations', with_associations)) + + if with_coordinators is not None: + + _query_params.append(('WithCoordinators', with_coordinators)) + + if no_users_are_coords is not None: + + _query_params.append(('NoUsersAreCoords', no_users_are_coords)) + + if users_are_coords is not None: + + _query_params.append(('UsersAreCoords', users_are_coords)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAssocsResp: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAssocsResp]: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_association_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAssocsResp: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAssocsResp]: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_associations_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiClustersResp: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiClustersResp]: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiClustersResp: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiClustersResp]: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_clusters_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_config( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdConfigResp: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_config_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdConfigResp]: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_config_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_config_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdStatsResp: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdStatsResp]: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_instance( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiInstancesResp: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_instance_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiInstancesResp]: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_instance_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_instance_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/instance/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_instances( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiInstancesResp: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_instances_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiInstancesResp]: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_instances_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_instances_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/instances/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdJobsResp: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdJobsResp]: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_job_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_jobs( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdJobsResp: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_jobs_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdJobsResp]: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_jobs_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_jobs_serialize( + self, + account, + association, + cluster, + constraints, + scheduler_unset, + scheduled_on_submit, + scheduled_by_main, + scheduled_by_backfill, + job_started, + exit_code, + show_duplicates, + skip_steps, + disable_truncate_usage_time, + whole_hetjob, + disable_whole_hetjob, + disable_wait_for_result, + usage_time_as_submit_time, + show_batch_script, + show_job_environment, + format, + groups, + job_name, + partition, + qos, + reason, + reservation, + reservation_id, + state, + step, + end_time, + start_time, + node, + users, + wckey, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if association is not None: + + _query_params.append(('association', association)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if constraints is not None: + + _query_params.append(('constraints', constraints)) + + if scheduler_unset is not None: + + _query_params.append(('scheduler_unset', scheduler_unset)) + + if scheduled_on_submit is not None: + + _query_params.append(('scheduled_on_submit', scheduled_on_submit)) + + if scheduled_by_main is not None: + + _query_params.append(('scheduled_by_main', scheduled_by_main)) + + if scheduled_by_backfill is not None: + + _query_params.append(('scheduled_by_backfill', scheduled_by_backfill)) + + if job_started is not None: + + _query_params.append(('job_started', job_started)) + + if exit_code is not None: + + _query_params.append(('exit_code', exit_code)) + + if show_duplicates is not None: + + _query_params.append(('show_duplicates', show_duplicates)) + + if skip_steps is not None: + + _query_params.append(('skip_steps', skip_steps)) + + if disable_truncate_usage_time is not None: + + _query_params.append(('disable_truncate_usage_time', disable_truncate_usage_time)) + + if whole_hetjob is not None: + + _query_params.append(('whole_hetjob', whole_hetjob)) + + if disable_whole_hetjob is not None: + + _query_params.append(('disable_whole_hetjob', disable_whole_hetjob)) + + if disable_wait_for_result is not None: + + _query_params.append(('disable_wait_for_result', disable_wait_for_result)) + + if usage_time_as_submit_time is not None: + + _query_params.append(('usage_time_as_submit_time', usage_time_as_submit_time)) + + if show_batch_script is not None: + + _query_params.append(('show_batch_script', show_batch_script)) + + if show_job_environment is not None: + + _query_params.append(('show_job_environment', show_job_environment)) + + if format is not None: + + _query_params.append(('format', format)) + + if groups is not None: + + _query_params.append(('groups', groups)) + + if job_name is not None: + + _query_params.append(('job_name', job_name)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if reason is not None: + + _query_params.append(('reason', reason)) + + if reservation is not None: + + _query_params.append(('reservation', reservation)) + + if reservation_id is not None: + + _query_params.append(('reservation_id', reservation_id)) + + if state is not None: + + _query_params.append(('state', state)) + + if step is not None: + + _query_params.append(('step', step)) + + if end_time is not None: + + _query_params.append(('end_time', end_time)) + + if start_time is not None: + + _query_params.append(('start_time', start_time)) + + if node is not None: + + _query_params.append(('node', node)) + + if users is not None: + + _query_params.append(('users', users)) + + if wckey is not None: + + _query_params.append(('wckey', wckey)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_ping( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdPingResp: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_ping_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdPingResp]: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_ping_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_ping_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/ping/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdQosResp: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdQosResp]: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_qos_serialize( + self, + description, + include_deleted_qos, + id, + format, + name, + preempt_mode, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if include_deleted_qos is not None: + + _query_params.append(('Include deleted QOS', include_deleted_qos)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiSlurmdbdQosResp: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiSlurmdbdQosResp]: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_single_qos_serialize( + self, + qos, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_tres( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiTresResp: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_tres_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiTresResp]: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_tres_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_tres_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiUsersResp: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiUsersResp]: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_user_serialize( + self, + name, + with_deleted, + with_assocs, + with_coords, + with_wckeys, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_users( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiUsersResp: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_users_with_http_info( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiUsersResp]: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_users_without_preload_content( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_users_serialize( + self, + admin_level, + default_account, + default_wckey, + with_assocs, + with_coords, + with_deleted, + with_wckeys, + without_defaults, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if admin_level is not None: + + _query_params.append(('admin_level', admin_level)) + + if default_account is not None: + + _query_params.append(('default_account', default_account)) + + if default_wckey is not None: + + _query_params.append(('default_wckey', default_wckey)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + if without_defaults is not None: + + _query_params.append(('without_defaults', without_defaults)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_wckey( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiWckeyResp: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiWckeyResp]: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_get_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiWckeyResp: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_get_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiWckeyResp]: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_get_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_get_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.42/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_accounts( + self, + v0042_openapi_accounts_resp: Annotated[Optional[V0042OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Add/update list of accounts + + + :param v0042_openapi_accounts_resp: Description of accounts to update/create + :type v0042_openapi_accounts_resp: V0042OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_accounts_serialize( + v0042_openapi_accounts_resp=v0042_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_accounts_with_http_info( + self, + v0042_openapi_accounts_resp: Annotated[Optional[V0042OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Add/update list of accounts + + + :param v0042_openapi_accounts_resp: Description of accounts to update/create + :type v0042_openapi_accounts_resp: V0042OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_accounts_serialize( + v0042_openapi_accounts_resp=v0042_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_accounts_without_preload_content( + self, + v0042_openapi_accounts_resp: Annotated[Optional[V0042OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add/update list of accounts + + + :param v0042_openapi_accounts_resp: Description of accounts to update/create + :type v0042_openapi_accounts_resp: V0042OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_accounts_serialize( + v0042_openapi_accounts_resp=v0042_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_accounts_serialize( + self, + v0042_openapi_accounts_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_accounts_resp is not None: + _body_params = v0042_openapi_accounts_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_accounts_association( + self, + v0042_openapi_accounts_add_cond_resp: Annotated[Optional[V0042OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiAccountsAddCondRespStr: + """Add accounts with conditional association + + + :param v0042_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0042_openapi_accounts_add_cond_resp: V0042OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_accounts_association_serialize( + v0042_openapi_accounts_add_cond_resp=v0042_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_accounts_association_with_http_info( + self, + v0042_openapi_accounts_add_cond_resp: Annotated[Optional[V0042OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiAccountsAddCondRespStr]: + """Add accounts with conditional association + + + :param v0042_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0042_openapi_accounts_add_cond_resp: V0042OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_accounts_association_serialize( + v0042_openapi_accounts_add_cond_resp=v0042_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_accounts_association_without_preload_content( + self, + v0042_openapi_accounts_add_cond_resp: Annotated[Optional[V0042OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add accounts with conditional association + + + :param v0042_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0042_openapi_accounts_add_cond_resp: V0042OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_accounts_association_serialize( + v0042_openapi_accounts_add_cond_resp=v0042_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_accounts_association_serialize( + self, + v0042_openapi_accounts_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_accounts_add_cond_resp is not None: + _body_params = v0042_openapi_accounts_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/accounts_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_associations( + self, + v0042_openapi_assocs_resp: Annotated[Optional[V0042OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Set associations info + + + :param v0042_openapi_assocs_resp: Job description + :type v0042_openapi_assocs_resp: V0042OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_associations_serialize( + v0042_openapi_assocs_resp=v0042_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_associations_with_http_info( + self, + v0042_openapi_assocs_resp: Annotated[Optional[V0042OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Set associations info + + + :param v0042_openapi_assocs_resp: Job description + :type v0042_openapi_assocs_resp: V0042OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_associations_serialize( + v0042_openapi_assocs_resp=v0042_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_associations_without_preload_content( + self, + v0042_openapi_assocs_resp: Annotated[Optional[V0042OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set associations info + + + :param v0042_openapi_assocs_resp: Job description + :type v0042_openapi_assocs_resp: V0042OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_associations_serialize( + v0042_openapi_assocs_resp=v0042_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_associations_serialize( + self, + v0042_openapi_assocs_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_assocs_resp is not None: + _body_params = v0042_openapi_assocs_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0042_openapi_clusters_resp: Annotated[Optional[V0042OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0042_openapi_clusters_resp: Cluster add or update descriptions + :type v0042_openapi_clusters_resp: V0042OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_clusters_serialize( + update_time=update_time, + v0042_openapi_clusters_resp=v0042_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0042_openapi_clusters_resp: Annotated[Optional[V0042OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0042_openapi_clusters_resp: Cluster add or update descriptions + :type v0042_openapi_clusters_resp: V0042OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_clusters_serialize( + update_time=update_time, + v0042_openapi_clusters_resp=v0042_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0042_openapi_clusters_resp: Annotated[Optional[V0042OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0042_openapi_clusters_resp: Cluster add or update descriptions + :type v0042_openapi_clusters_resp: V0042OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_clusters_serialize( + update_time=update_time, + v0042_openapi_clusters_resp=v0042_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_clusters_serialize( + self, + update_time, + v0042_openapi_clusters_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_clusters_resp is not None: + _body_params = v0042_openapi_clusters_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_config( + self, + v0042_openapi_slurmdbd_config_resp: Annotated[Optional[V0042OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Load all configuration information + + + :param v0042_openapi_slurmdbd_config_resp: Add or update config + :type v0042_openapi_slurmdbd_config_resp: V0042OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_config_serialize( + v0042_openapi_slurmdbd_config_resp=v0042_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_config_with_http_info( + self, + v0042_openapi_slurmdbd_config_resp: Annotated[Optional[V0042OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Load all configuration information + + + :param v0042_openapi_slurmdbd_config_resp: Add or update config + :type v0042_openapi_slurmdbd_config_resp: V0042OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_config_serialize( + v0042_openapi_slurmdbd_config_resp=v0042_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_config_without_preload_content( + self, + v0042_openapi_slurmdbd_config_resp: Annotated[Optional[V0042OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Load all configuration information + + + :param v0042_openapi_slurmdbd_config_resp: Add or update config + :type v0042_openapi_slurmdbd_config_resp: V0042OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_config_serialize( + v0042_openapi_slurmdbd_config_resp=v0042_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_config_serialize( + self, + v0042_openapi_slurmdbd_config_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_slurmdbd_config_resp is not None: + _body_params = v0042_openapi_slurmdbd_config_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0042_openapi_slurmdbd_qos_resp: Annotated[Optional[V0042OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0042_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0042_openapi_slurmdbd_qos_resp: V0042OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0042_openapi_slurmdbd_qos_resp=v0042_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0042_openapi_slurmdbd_qos_resp: Annotated[Optional[V0042OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0042_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0042_openapi_slurmdbd_qos_resp: V0042OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0042_openapi_slurmdbd_qos_resp=v0042_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0042_openapi_slurmdbd_qos_resp: Annotated[Optional[V0042OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0042_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0042_openapi_slurmdbd_qos_resp: V0042OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0042_openapi_slurmdbd_qos_resp=v0042_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_qos_serialize( + self, + description, + include_deleted_qos, + id, + format, + name, + preempt_mode, + v0042_openapi_slurmdbd_qos_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if include_deleted_qos is not None: + + _query_params.append(('Include deleted QOS', include_deleted_qos)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_slurmdbd_qos_resp is not None: + _body_params = v0042_openapi_slurmdbd_qos_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_tres( + self, + v0042_openapi_tres_resp: Annotated[Optional[V0042OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Add TRES + + + :param v0042_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0042_openapi_tres_resp: V0042OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_tres_serialize( + v0042_openapi_tres_resp=v0042_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_tres_with_http_info( + self, + v0042_openapi_tres_resp: Annotated[Optional[V0042OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Add TRES + + + :param v0042_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0042_openapi_tres_resp: V0042OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_tres_serialize( + v0042_openapi_tres_resp=v0042_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_tres_without_preload_content( + self, + v0042_openapi_tres_resp: Annotated[Optional[V0042OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add TRES + + + :param v0042_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0042_openapi_tres_resp: V0042OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_tres_serialize( + v0042_openapi_tres_resp=v0042_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_tres_serialize( + self, + v0042_openapi_tres_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_tres_resp is not None: + _body_params = v0042_openapi_tres_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_users( + self, + v0042_openapi_users_resp: Annotated[Optional[V0042OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Update users + + + :param v0042_openapi_users_resp: add or update user + :type v0042_openapi_users_resp: V0042OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_users_serialize( + v0042_openapi_users_resp=v0042_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_users_with_http_info( + self, + v0042_openapi_users_resp: Annotated[Optional[V0042OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Update users + + + :param v0042_openapi_users_resp: add or update user + :type v0042_openapi_users_resp: V0042OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_users_serialize( + v0042_openapi_users_resp=v0042_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_users_without_preload_content( + self, + v0042_openapi_users_resp: Annotated[Optional[V0042OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update users + + + :param v0042_openapi_users_resp: add or update user + :type v0042_openapi_users_resp: V0042OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_users_serialize( + v0042_openapi_users_resp=v0042_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_users_serialize( + self, + v0042_openapi_users_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_users_resp is not None: + _body_params = v0042_openapi_users_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_users_association( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0042_openapi_users_add_cond_resp: Annotated[Optional[V0042OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiUsersAddCondRespStr: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0042_openapi_users_add_cond_resp: Create users with conditional association + :type v0042_openapi_users_add_cond_resp: V0042OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0042_openapi_users_add_cond_resp=v0042_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_users_association_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0042_openapi_users_add_cond_resp: Annotated[Optional[V0042OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiUsersAddCondRespStr]: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0042_openapi_users_add_cond_resp: Create users with conditional association + :type v0042_openapi_users_add_cond_resp: V0042OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0042_openapi_users_add_cond_resp=v0042_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_users_association_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0042_openapi_users_add_cond_resp: Annotated[Optional[V0042OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0042_openapi_users_add_cond_resp: Create users with conditional association + :type v0042_openapi_users_add_cond_resp: V0042OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0042_openapi_users_add_cond_resp=v0042_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_users_association_serialize( + self, + update_time, + flags, + v0042_openapi_users_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_users_add_cond_resp is not None: + _body_params = v0042_openapi_users_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/users_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0042_post_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0042_openapi_wckey_resp: Annotated[Optional[V0042OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0042OpenapiResp: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0042_openapi_wckey_resp: wckeys description + :type v0042_openapi_wckey_resp: V0042OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0042_openapi_wckey_resp=v0042_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0042_post_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0042_openapi_wckey_resp: Annotated[Optional[V0042OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0042OpenapiResp]: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0042_openapi_wckey_resp: wckeys description + :type v0042_openapi_wckey_resp: V0042OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0042_openapi_wckey_resp=v0042_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0042_post_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0042_openapi_wckey_resp: Annotated[Optional[V0042OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0042_openapi_wckey_resp: wckeys description + :type v0042_openapi_wckey_resp: V0042OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0042_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0042_openapi_wckey_resp=v0042_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0042OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0042_post_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + v0042_openapi_wckey_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0042_openapi_wckey_resp is not None: + _body_params = v0042_openapi_wckey_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.42/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_delete_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAccountsRemovedResp: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_delete_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAccountsRemovedResp]: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_delete_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_delete_account_serialize( + self, + account_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.43/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_delete_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAssocsRemovedResp: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_delete_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAssocsRemovedResp]: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_delete_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_delete_association_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.43/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_delete_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAssocsRemovedResp: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_delete_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAssocsRemovedResp]: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_delete_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_delete_associations_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.43/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_delete_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiClustersRemovedResp: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_delete_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiClustersRemovedResp]: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_delete_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_delete_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.43/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_delete_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdQosRemovedResp: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_delete_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdQosRemovedResp]: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_delete_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_delete_single_qos_serialize( + self, + qos, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.43/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_delete_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_delete_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_delete_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_delete_user_serialize( + self, + name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.43/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_delete_wckey( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiWckeyRemovedResp: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_delete_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiWckeyRemovedResp]: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_delete_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_delete_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.43/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAccountsResp: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAccountsResp]: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_account_serialize( + self, + account_name, + with_assocs, + with_coords, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_accounts( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAccountsResp: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_accounts_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAccountsResp]: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_accounts_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_accounts_serialize( + self, + description, + deleted, + with_associations, + with_coordinators, + no_users_are_coords, + users_are_coords, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if deleted is not None: + + _query_params.append(('DELETED', deleted)) + + if with_associations is not None: + + _query_params.append(('WithAssociations', with_associations)) + + if with_coordinators is not None: + + _query_params.append(('WithCoordinators', with_coordinators)) + + if no_users_are_coords is not None: + + _query_params.append(('NoUsersAreCoords', no_users_are_coords)) + + if users_are_coords is not None: + + _query_params.append(('UsersAreCoords', users_are_coords)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAssocsResp: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAssocsResp]: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_association_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAssocsResp: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAssocsResp]: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_associations_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiClustersResp: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiClustersResp]: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiClustersResp: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiClustersResp]: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_clusters_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_config( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdConfigResp: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_config_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdConfigResp]: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_config_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_config_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdStatsResp: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdStatsResp]: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_instance( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiInstancesResp: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_instance_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiInstancesResp]: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_instance_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_instance_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/instance/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_instances( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiInstancesResp: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_instances_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiInstancesResp]: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_instances_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_instances_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/instances/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdJobsResp: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdJobsResp]: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_job_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_jobs( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdJobsResp: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_jobs_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdJobsResp]: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_jobs_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_jobs_serialize( + self, + account, + association, + cluster, + constraints, + scheduler_unset, + scheduled_on_submit, + scheduled_by_main, + scheduled_by_backfill, + job_started, + exit_code, + show_duplicates, + skip_steps, + disable_truncate_usage_time, + whole_hetjob, + disable_whole_hetjob, + disable_wait_for_result, + usage_time_as_submit_time, + show_batch_script, + show_job_environment, + format, + groups, + job_name, + partition, + qos, + reason, + reservation, + reservation_id, + state, + step, + end_time, + start_time, + node, + users, + wckey, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if association is not None: + + _query_params.append(('association', association)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if constraints is not None: + + _query_params.append(('constraints', constraints)) + + if scheduler_unset is not None: + + _query_params.append(('scheduler_unset', scheduler_unset)) + + if scheduled_on_submit is not None: + + _query_params.append(('scheduled_on_submit', scheduled_on_submit)) + + if scheduled_by_main is not None: + + _query_params.append(('scheduled_by_main', scheduled_by_main)) + + if scheduled_by_backfill is not None: + + _query_params.append(('scheduled_by_backfill', scheduled_by_backfill)) + + if job_started is not None: + + _query_params.append(('job_started', job_started)) + + if exit_code is not None: + + _query_params.append(('exit_code', exit_code)) + + if show_duplicates is not None: + + _query_params.append(('show_duplicates', show_duplicates)) + + if skip_steps is not None: + + _query_params.append(('skip_steps', skip_steps)) + + if disable_truncate_usage_time is not None: + + _query_params.append(('disable_truncate_usage_time', disable_truncate_usage_time)) + + if whole_hetjob is not None: + + _query_params.append(('whole_hetjob', whole_hetjob)) + + if disable_whole_hetjob is not None: + + _query_params.append(('disable_whole_hetjob', disable_whole_hetjob)) + + if disable_wait_for_result is not None: + + _query_params.append(('disable_wait_for_result', disable_wait_for_result)) + + if usage_time_as_submit_time is not None: + + _query_params.append(('usage_time_as_submit_time', usage_time_as_submit_time)) + + if show_batch_script is not None: + + _query_params.append(('show_batch_script', show_batch_script)) + + if show_job_environment is not None: + + _query_params.append(('show_job_environment', show_job_environment)) + + if format is not None: + + _query_params.append(('format', format)) + + if groups is not None: + + _query_params.append(('groups', groups)) + + if job_name is not None: + + _query_params.append(('job_name', job_name)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if reason is not None: + + _query_params.append(('reason', reason)) + + if reservation is not None: + + _query_params.append(('reservation', reservation)) + + if reservation_id is not None: + + _query_params.append(('reservation_id', reservation_id)) + + if state is not None: + + _query_params.append(('state', state)) + + if step is not None: + + _query_params.append(('step', step)) + + if end_time is not None: + + _query_params.append(('end_time', end_time)) + + if start_time is not None: + + _query_params.append(('start_time', start_time)) + + if node is not None: + + _query_params.append(('node', node)) + + if users is not None: + + _query_params.append(('users', users)) + + if wckey is not None: + + _query_params.append(('wckey', wckey)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_ping( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdPingResp: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_ping_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdPingResp]: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_ping_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_ping_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/ping/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdQosResp: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdQosResp]: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_qos_serialize( + self, + description, + include_deleted_qos, + id, + format, + name, + preempt_mode, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if include_deleted_qos is not None: + + _query_params.append(('Include deleted QOS', include_deleted_qos)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiSlurmdbdQosResp: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiSlurmdbdQosResp]: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_single_qos_serialize( + self, + qos, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_tres( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiTresResp: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_tres_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiTresResp]: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_tres_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_tres_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiUsersResp: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiUsersResp]: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_user_serialize( + self, + name, + with_deleted, + with_assocs, + with_coords, + with_wckeys, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_users( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiUsersResp: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_users_with_http_info( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiUsersResp]: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_users_without_preload_content( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_users_serialize( + self, + admin_level, + default_account, + default_wckey, + with_assocs, + with_coords, + with_deleted, + with_wckeys, + without_defaults, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if admin_level is not None: + + _query_params.append(('admin_level', admin_level)) + + if default_account is not None: + + _query_params.append(('default_account', default_account)) + + if default_wckey is not None: + + _query_params.append(('default_wckey', default_wckey)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + if without_defaults is not None: + + _query_params.append(('without_defaults', without_defaults)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_wckey( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiWckeyResp: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiWckeyResp]: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_get_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiWckeyResp: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_get_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiWckeyResp]: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_get_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_get_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.43/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_accounts( + self, + v0043_openapi_accounts_resp: Annotated[Optional[V0043OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Add/update list of accounts + + + :param v0043_openapi_accounts_resp: Description of accounts to update/create + :type v0043_openapi_accounts_resp: V0043OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_accounts_serialize( + v0043_openapi_accounts_resp=v0043_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_accounts_with_http_info( + self, + v0043_openapi_accounts_resp: Annotated[Optional[V0043OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Add/update list of accounts + + + :param v0043_openapi_accounts_resp: Description of accounts to update/create + :type v0043_openapi_accounts_resp: V0043OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_accounts_serialize( + v0043_openapi_accounts_resp=v0043_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_accounts_without_preload_content( + self, + v0043_openapi_accounts_resp: Annotated[Optional[V0043OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add/update list of accounts + + + :param v0043_openapi_accounts_resp: Description of accounts to update/create + :type v0043_openapi_accounts_resp: V0043OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_accounts_serialize( + v0043_openapi_accounts_resp=v0043_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_accounts_serialize( + self, + v0043_openapi_accounts_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_accounts_resp is not None: + _body_params = v0043_openapi_accounts_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_accounts_association( + self, + v0043_openapi_accounts_add_cond_resp: Annotated[Optional[V0043OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiAccountsAddCondRespStr: + """Add accounts with conditional association + + + :param v0043_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0043_openapi_accounts_add_cond_resp: V0043OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_accounts_association_serialize( + v0043_openapi_accounts_add_cond_resp=v0043_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_accounts_association_with_http_info( + self, + v0043_openapi_accounts_add_cond_resp: Annotated[Optional[V0043OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiAccountsAddCondRespStr]: + """Add accounts with conditional association + + + :param v0043_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0043_openapi_accounts_add_cond_resp: V0043OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_accounts_association_serialize( + v0043_openapi_accounts_add_cond_resp=v0043_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_accounts_association_without_preload_content( + self, + v0043_openapi_accounts_add_cond_resp: Annotated[Optional[V0043OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add accounts with conditional association + + + :param v0043_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0043_openapi_accounts_add_cond_resp: V0043OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_accounts_association_serialize( + v0043_openapi_accounts_add_cond_resp=v0043_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_accounts_association_serialize( + self, + v0043_openapi_accounts_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_accounts_add_cond_resp is not None: + _body_params = v0043_openapi_accounts_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/accounts_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_associations( + self, + v0043_openapi_assocs_resp: Annotated[Optional[V0043OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Set associations info + + + :param v0043_openapi_assocs_resp: Job description + :type v0043_openapi_assocs_resp: V0043OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_associations_serialize( + v0043_openapi_assocs_resp=v0043_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_associations_with_http_info( + self, + v0043_openapi_assocs_resp: Annotated[Optional[V0043OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Set associations info + + + :param v0043_openapi_assocs_resp: Job description + :type v0043_openapi_assocs_resp: V0043OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_associations_serialize( + v0043_openapi_assocs_resp=v0043_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_associations_without_preload_content( + self, + v0043_openapi_assocs_resp: Annotated[Optional[V0043OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set associations info + + + :param v0043_openapi_assocs_resp: Job description + :type v0043_openapi_assocs_resp: V0043OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_associations_serialize( + v0043_openapi_assocs_resp=v0043_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_associations_serialize( + self, + v0043_openapi_assocs_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_assocs_resp is not None: + _body_params = v0043_openapi_assocs_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0043_openapi_clusters_resp: Annotated[Optional[V0043OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0043_openapi_clusters_resp: Cluster add or update descriptions + :type v0043_openapi_clusters_resp: V0043OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_clusters_serialize( + update_time=update_time, + v0043_openapi_clusters_resp=v0043_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0043_openapi_clusters_resp: Annotated[Optional[V0043OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0043_openapi_clusters_resp: Cluster add or update descriptions + :type v0043_openapi_clusters_resp: V0043OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_clusters_serialize( + update_time=update_time, + v0043_openapi_clusters_resp=v0043_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0043_openapi_clusters_resp: Annotated[Optional[V0043OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0043_openapi_clusters_resp: Cluster add or update descriptions + :type v0043_openapi_clusters_resp: V0043OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_clusters_serialize( + update_time=update_time, + v0043_openapi_clusters_resp=v0043_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_clusters_serialize( + self, + update_time, + v0043_openapi_clusters_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_clusters_resp is not None: + _body_params = v0043_openapi_clusters_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_config( + self, + v0043_openapi_slurmdbd_config_resp: Annotated[Optional[V0043OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Load all configuration information + + + :param v0043_openapi_slurmdbd_config_resp: Add or update config + :type v0043_openapi_slurmdbd_config_resp: V0043OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_config_serialize( + v0043_openapi_slurmdbd_config_resp=v0043_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_config_with_http_info( + self, + v0043_openapi_slurmdbd_config_resp: Annotated[Optional[V0043OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Load all configuration information + + + :param v0043_openapi_slurmdbd_config_resp: Add or update config + :type v0043_openapi_slurmdbd_config_resp: V0043OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_config_serialize( + v0043_openapi_slurmdbd_config_resp=v0043_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_config_without_preload_content( + self, + v0043_openapi_slurmdbd_config_resp: Annotated[Optional[V0043OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Load all configuration information + + + :param v0043_openapi_slurmdbd_config_resp: Add or update config + :type v0043_openapi_slurmdbd_config_resp: V0043OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_config_serialize( + v0043_openapi_slurmdbd_config_resp=v0043_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_config_serialize( + self, + v0043_openapi_slurmdbd_config_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_slurmdbd_config_resp is not None: + _body_params = v0043_openapi_slurmdbd_config_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0043_openapi_slurmdbd_qos_resp: Annotated[Optional[V0043OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0043_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0043_openapi_slurmdbd_qos_resp: V0043OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0043_openapi_slurmdbd_qos_resp=v0043_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0043_openapi_slurmdbd_qos_resp: Annotated[Optional[V0043OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0043_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0043_openapi_slurmdbd_qos_resp: V0043OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0043_openapi_slurmdbd_qos_resp=v0043_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0043_openapi_slurmdbd_qos_resp: Annotated[Optional[V0043OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0043_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0043_openapi_slurmdbd_qos_resp: V0043OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0043_openapi_slurmdbd_qos_resp=v0043_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_qos_serialize( + self, + description, + include_deleted_qos, + id, + format, + name, + preempt_mode, + v0043_openapi_slurmdbd_qos_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if include_deleted_qos is not None: + + _query_params.append(('Include deleted QOS', include_deleted_qos)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_slurmdbd_qos_resp is not None: + _body_params = v0043_openapi_slurmdbd_qos_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_tres( + self, + v0043_openapi_tres_resp: Annotated[Optional[V0043OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Add TRES + + + :param v0043_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0043_openapi_tres_resp: V0043OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_tres_serialize( + v0043_openapi_tres_resp=v0043_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_tres_with_http_info( + self, + v0043_openapi_tres_resp: Annotated[Optional[V0043OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Add TRES + + + :param v0043_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0043_openapi_tres_resp: V0043OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_tres_serialize( + v0043_openapi_tres_resp=v0043_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_tres_without_preload_content( + self, + v0043_openapi_tres_resp: Annotated[Optional[V0043OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add TRES + + + :param v0043_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0043_openapi_tres_resp: V0043OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_tres_serialize( + v0043_openapi_tres_resp=v0043_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_tres_serialize( + self, + v0043_openapi_tres_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_tres_resp is not None: + _body_params = v0043_openapi_tres_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_users( + self, + v0043_openapi_users_resp: Annotated[Optional[V0043OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Update users + + + :param v0043_openapi_users_resp: add or update user + :type v0043_openapi_users_resp: V0043OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_users_serialize( + v0043_openapi_users_resp=v0043_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_users_with_http_info( + self, + v0043_openapi_users_resp: Annotated[Optional[V0043OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Update users + + + :param v0043_openapi_users_resp: add or update user + :type v0043_openapi_users_resp: V0043OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_users_serialize( + v0043_openapi_users_resp=v0043_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_users_without_preload_content( + self, + v0043_openapi_users_resp: Annotated[Optional[V0043OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update users + + + :param v0043_openapi_users_resp: add or update user + :type v0043_openapi_users_resp: V0043OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_users_serialize( + v0043_openapi_users_resp=v0043_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_users_serialize( + self, + v0043_openapi_users_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_users_resp is not None: + _body_params = v0043_openapi_users_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_users_association( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0043_openapi_users_add_cond_resp: Annotated[Optional[V0043OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiUsersAddCondRespStr: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0043_openapi_users_add_cond_resp: Create users with conditional association + :type v0043_openapi_users_add_cond_resp: V0043OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0043_openapi_users_add_cond_resp=v0043_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_users_association_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0043_openapi_users_add_cond_resp: Annotated[Optional[V0043OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiUsersAddCondRespStr]: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0043_openapi_users_add_cond_resp: Create users with conditional association + :type v0043_openapi_users_add_cond_resp: V0043OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0043_openapi_users_add_cond_resp=v0043_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_users_association_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0043_openapi_users_add_cond_resp: Annotated[Optional[V0043OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0043_openapi_users_add_cond_resp: Create users with conditional association + :type v0043_openapi_users_add_cond_resp: V0043OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0043_openapi_users_add_cond_resp=v0043_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_users_association_serialize( + self, + update_time, + flags, + v0043_openapi_users_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_users_add_cond_resp is not None: + _body_params = v0043_openapi_users_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/users_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0043_post_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0043_openapi_wckey_resp: Annotated[Optional[V0043OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0043OpenapiResp: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0043_openapi_wckey_resp: wckeys description + :type v0043_openapi_wckey_resp: V0043OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0043_openapi_wckey_resp=v0043_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0043_post_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0043_openapi_wckey_resp: Annotated[Optional[V0043OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0043OpenapiResp]: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0043_openapi_wckey_resp: wckeys description + :type v0043_openapi_wckey_resp: V0043OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0043_openapi_wckey_resp=v0043_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0043_post_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0043_openapi_wckey_resp: Annotated[Optional[V0043OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0043_openapi_wckey_resp: wckeys description + :type v0043_openapi_wckey_resp: V0043OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0043_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0043_openapi_wckey_resp=v0043_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0043OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0043_post_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + v0043_openapi_wckey_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0043_openapi_wckey_resp is not None: + _body_params = v0043_openapi_wckey_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.43/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_delete_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAccountsRemovedResp: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_delete_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAccountsRemovedResp]: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_delete_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete account + + + :param account_name: Account name (required) + :type account_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_account_serialize( + account_name=account_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_delete_account_serialize( + self, + account_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.44/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_delete_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAssocsRemovedResp: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_delete_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAssocsRemovedResp]: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_delete_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete association + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_delete_association_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.44/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_delete_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAssocsRemovedResp: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_delete_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAssocsRemovedResp]: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_delete_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete associations + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_delete_associations_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.44/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_delete_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiClustersRemovedResp: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_delete_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiClustersRemovedResp]: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_delete_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete cluster + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_delete_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.44/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_delete_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdQosRemovedResp: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_delete_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdQosRemovedResp]: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_delete_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete QOS + + + :param qos: QOS name (required) + :type qos: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_single_qos_serialize( + qos=qos, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_delete_single_qos_serialize( + self, + qos, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.44/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_delete_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_delete_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_delete_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete user + + + :param name: User name (required) + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_user_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_delete_user_serialize( + self, + name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.44/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_delete_wckey( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiWckeyRemovedResp: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_delete_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiWckeyRemovedResp]: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_delete_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete wckey + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_delete_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyRemovedResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_delete_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/slurmdb/v0.0.44/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_account( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAccountsResp: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_account_with_http_info( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAccountsResp]: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_account_without_preload_content( + self, + account_name: Annotated[StrictStr, Field(description="Account name")], + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get account info + + + :param account_name: Account name (required) + :type account_name: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_deleted: Include deleted + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_account_serialize( + account_name=account_name, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_account_serialize( + self, + account_name, + with_assocs, + with_coords, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if account_name is not None: + _path_params['account_name'] = account_name + # process the query parameters + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/account/{account_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_accounts( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAccountsResp: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_accounts_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAccountsResp]: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_accounts_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + deleted: Annotated[Optional[StrictStr], Field(description="include deleted associations")] = None, + with_associations: Annotated[Optional[StrictStr], Field(description="query includes associations")] = None, + with_coordinators: Annotated[Optional[StrictStr], Field(description="query includes coordinators")] = None, + no_users_are_coords: Annotated[Optional[StrictStr], Field(description="remove users as coordinators")] = None, + users_are_coords: Annotated[Optional[StrictStr], Field(description="users are coordinators")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get account list + + + :param description: CSV description list + :type description: str + :param deleted: include deleted associations + :type deleted: str + :param with_associations: query includes associations + :type with_associations: str + :param with_coordinators: query includes coordinators + :type with_coordinators: str + :param no_users_are_coords: remove users as coordinators + :type no_users_are_coords: str + :param users_are_coords: users are coordinators + :type users_are_coords: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_accounts_serialize( + description=description, + deleted=deleted, + with_associations=with_associations, + with_coordinators=with_coordinators, + no_users_are_coords=no_users_are_coords, + users_are_coords=users_are_coords, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_accounts_serialize( + self, + description, + deleted, + with_associations, + with_coordinators, + no_users_are_coords, + users_are_coords, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if deleted is not None: + + _query_params.append(('DELETED', deleted)) + + if with_associations is not None: + + _query_params.append(('WithAssociations', with_associations)) + + if with_coordinators is not None: + + _query_params.append(('WithCoordinators', with_coordinators)) + + if no_users_are_coords is not None: + + _query_params.append(('NoUsersAreCoords', no_users_are_coords)) + + if users_are_coords is not None: + + _query_params.append(('UsersAreCoords', users_are_coords)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_association( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAssocsResp: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_association_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAssocsResp]: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_association_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get association info + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_association_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_association_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_associations( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAssocsResp: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_associations_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAssocsResp]: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_associations_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV accounts list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + default_qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + include_deleted_associations: Optional[StrictStr] = None, + include_usage: Optional[StrictStr] = None, + filter_to_only_defaults: Optional[StrictStr] = None, + include_the_raw_qos_or_delta_qos: Optional[StrictStr] = None, + include_sub_acct_information: Optional[StrictStr] = None, + exclude_parent_id_name: Optional[StrictStr] = None, + exclude_limits_from_parents: Optional[StrictStr] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + parent_account: Annotated[Optional[StrictStr], Field(description="CSV names of parent account")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get association list + + + :param account: CSV accounts list + :type account: str + :param cluster: CSV clusters list + :type cluster: str + :param default_qos: CSV QOS list + :type default_qos: str + :param include_deleted_associations: + :type include_deleted_associations: str + :param include_usage: + :type include_usage: str + :param filter_to_only_defaults: + :type filter_to_only_defaults: str + :param include_the_raw_qos_or_delta_qos: + :type include_the_raw_qos_or_delta_qos: str + :param include_sub_acct_information: + :type include_sub_acct_information: str + :param exclude_parent_id_name: + :type exclude_parent_id_name: str + :param exclude_limits_from_parents: + :type exclude_limits_from_parents: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param parent_account: CSV names of parent account + :type parent_account: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS list + :type qos: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_associations_serialize( + account=account, + cluster=cluster, + default_qos=default_qos, + include_deleted_associations=include_deleted_associations, + include_usage=include_usage, + filter_to_only_defaults=filter_to_only_defaults, + include_the_raw_qos_or_delta_qos=include_the_raw_qos_or_delta_qos, + include_sub_acct_information=include_sub_acct_information, + exclude_parent_id_name=exclude_parent_id_name, + exclude_limits_from_parents=exclude_limits_from_parents, + format=format, + id=id, + parent_account=parent_account, + partition=partition, + qos=qos, + usage_end=usage_end, + usage_start=usage_start, + user=user, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAssocsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_associations_serialize( + self, + account, + cluster, + default_qos, + include_deleted_associations, + include_usage, + filter_to_only_defaults, + include_the_raw_qos_or_delta_qos, + include_sub_acct_information, + exclude_parent_id_name, + exclude_limits_from_parents, + format, + id, + parent_account, + partition, + qos, + usage_end, + usage_start, + user, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if default_qos is not None: + + _query_params.append(('default_qos', default_qos)) + + if include_deleted_associations is not None: + + _query_params.append(('Include deleted associations', include_deleted_associations)) + + if include_usage is not None: + + _query_params.append(('Include usage', include_usage)) + + if filter_to_only_defaults is not None: + + _query_params.append(('Filter to only defaults', filter_to_only_defaults)) + + if include_the_raw_qos_or_delta_qos is not None: + + _query_params.append(('Include the raw QOS or delta_qos', include_the_raw_qos_or_delta_qos)) + + if include_sub_acct_information is not None: + + _query_params.append(('Include sub acct information', include_sub_acct_information)) + + if exclude_parent_id_name is not None: + + _query_params.append(('Exclude parent id/name', exclude_parent_id_name)) + + if exclude_limits_from_parents is not None: + + _query_params.append(('Exclude limits from parents', exclude_limits_from_parents)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if parent_account is not None: + + _query_params.append(('parent_account', parent_account)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_cluster( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiClustersResp: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_cluster_with_http_info( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiClustersResp]: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_cluster_without_preload_content( + self, + cluster_name: Annotated[StrictStr, Field(description="Cluster name")], + classification: Annotated[Optional[StrictStr], Field(description="Type of machine")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + federation: Annotated[Optional[StrictStr], Field(description="CSV federation list")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + rpc_version: Annotated[Optional[StrictStr], Field(description="CSV RPC version list")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted clusters")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster info + + + :param cluster_name: Cluster name (required) + :type cluster_name: str + :param classification: Type of machine + :type classification: str + :param cluster: CSV cluster list + :type cluster: str + :param federation: CSV federation list + :type federation: str + :param flags: Query flags + :type flags: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param rpc_version: CSV RPC version list + :type rpc_version: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param with_deleted: Include deleted clusters + :type with_deleted: str + :param with_usage: Include usage + :type with_usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_cluster_serialize( + cluster_name=cluster_name, + classification=classification, + cluster=cluster, + federation=federation, + flags=flags, + format=format, + rpc_version=rpc_version, + usage_end=usage_end, + usage_start=usage_start, + with_deleted=with_deleted, + with_usage=with_usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_cluster_serialize( + self, + cluster_name, + classification, + cluster, + federation, + flags, + format, + rpc_version, + usage_end, + usage_start, + with_deleted, + with_usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_name is not None: + _path_params['cluster_name'] = cluster_name + # process the query parameters + if classification is not None: + + _query_params.append(('classification', classification)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if federation is not None: + + _query_params.append(('federation', federation)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + if format is not None: + + _query_params.append(('format', format)) + + if rpc_version is not None: + + _query_params.append(('rpc_version', rpc_version)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/cluster/{cluster_name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiClustersResp: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiClustersResp]: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_clusters_serialize( + update_time=update_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiClustersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_clusters_serialize( + self, + update_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_config( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdConfigResp: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_config_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdConfigResp]: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_config_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Dump all configuration information + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_config_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdConfigResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_config_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_diag( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdStatsResp: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_diag_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdStatsResp]: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_diag_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get slurmdb diagnostics + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_diag_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdStatsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_diag_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/diag/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_instance( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiInstancesResp: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_instance_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiInstancesResp]: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_instance_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get instance info + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_instance_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_instance_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/instance/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_instances( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiInstancesResp: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_instances_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiInstancesResp]: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_instances_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV clusters list")] = None, + extra: Annotated[Optional[StrictStr], Field(description="CSV extra list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + instance_id: Annotated[Optional[StrictStr], Field(description="CSV instance_id list")] = None, + instance_type: Annotated[Optional[StrictStr], Field(description="CSV instance_type list")] = None, + node_list: Annotated[Optional[StrictStr], Field(description="Ranged node string")] = None, + time_end: Annotated[Optional[StrictStr], Field(description="Time end (UNIX timestamp)")] = None, + time_start: Annotated[Optional[StrictStr], Field(description="Time start (UNIX timestamp)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get instance list + + + :param cluster: CSV clusters list + :type cluster: str + :param extra: CSV extra list + :type extra: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param instance_id: CSV instance_id list + :type instance_id: str + :param instance_type: CSV instance_type list + :type instance_type: str + :param node_list: Ranged node string + :type node_list: str + :param time_end: Time end (UNIX timestamp) + :type time_end: str + :param time_start: Time start (UNIX timestamp) + :type time_start: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_instances_serialize( + cluster=cluster, + extra=extra, + format=format, + instance_id=instance_id, + instance_type=instance_type, + node_list=node_list, + time_end=time_end, + time_start=time_start, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiInstancesResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_instances_serialize( + self, + cluster, + extra, + format, + instance_id, + instance_type, + node_list, + time_end, + time_start, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if extra is not None: + + _query_params.append(('extra', extra)) + + if format is not None: + + _query_params.append(('format', format)) + + if instance_id is not None: + + _query_params.append(('instance_id', instance_id)) + + if instance_type is not None: + + _query_params.append(('instance_type', instance_type)) + + if node_list is not None: + + _query_params.append(('node_list', node_list)) + + if time_end is not None: + + _query_params.append(('time_end', time_end)) + + if time_start is not None: + + _query_params.append(('time_start', time_start)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/instances/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdJobsResp: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdJobsResp]: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get job info + + This endpoint may return multiple job entries since job_id is not a unique key - only the tuple (cluster, job_id, start_time) is unique. If the requested job_id is a component of a heterogeneous job all components are returned. + + :param job_id: Job ID (required) + :type job_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_job_serialize( + job_id=job_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_job_serialize( + self, + job_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_jobs( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + job_altered: Annotated[Optional[StrictStr], Field(description="Job record has been altered")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdJobsResp: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param job_altered: Job record has been altered + :type job_altered: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + job_altered=job_altered, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_jobs_with_http_info( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + job_altered: Annotated[Optional[StrictStr], Field(description="Job record has been altered")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdJobsResp]: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param job_altered: Job record has been altered + :type job_altered: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + job_altered=job_altered, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_jobs_without_preload_content( + self, + account: Annotated[Optional[StrictStr], Field(description="CSV account list")] = None, + association: Annotated[Optional[StrictStr], Field(description="CSV association list")] = None, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster list")] = None, + constraints: Annotated[Optional[StrictStr], Field(description="CSV constraint list")] = None, + scheduler_unset: Annotated[Optional[StrictStr], Field(description="Schedule bits not set")] = None, + scheduled_on_submit: Annotated[Optional[StrictStr], Field(description="Job was started on submit")] = None, + scheduled_by_main: Annotated[Optional[StrictStr], Field(description="Job was started from main scheduler")] = None, + scheduled_by_backfill: Annotated[Optional[StrictStr], Field(description="Job was started from backfill")] = None, + job_started: Annotated[Optional[StrictStr], Field(description="Job start RPC was received")] = None, + job_altered: Annotated[Optional[StrictStr], Field(description="Job record has been altered")] = None, + exit_code: Annotated[Optional[StrictStr], Field(description="Job exit code (numeric)")] = None, + show_duplicates: Annotated[Optional[StrictStr], Field(description="Include duplicate job entries")] = None, + skip_steps: Annotated[Optional[StrictStr], Field(description="Exclude job step details")] = None, + disable_truncate_usage_time: Annotated[Optional[StrictStr], Field(description="Do not truncate the time to usage_start and usage_end")] = None, + whole_hetjob: Annotated[Optional[StrictStr], Field(description="Include details on all hetjob components")] = None, + disable_whole_hetjob: Annotated[Optional[StrictStr], Field(description="Only show details on specified hetjob components")] = None, + disable_wait_for_result: Annotated[Optional[StrictStr], Field(description="Tell dbd not to wait for the result")] = None, + usage_time_as_submit_time: Annotated[Optional[StrictStr], Field(description="Use usage_time as the submit_time of the job")] = None, + show_batch_script: Annotated[Optional[StrictStr], Field(description="Include job script")] = None, + show_job_environment: Annotated[Optional[StrictStr], Field(description="Include job environment")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + groups: Annotated[Optional[StrictStr], Field(description="CSV group list")] = None, + job_name: Annotated[Optional[StrictStr], Field(description="CSV job name list")] = None, + partition: Annotated[Optional[StrictStr], Field(description="CSV partition name list")] = None, + qos: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + reason: Annotated[Optional[StrictStr], Field(description="CSV reason list")] = None, + reservation: Annotated[Optional[StrictStr], Field(description="CSV reservation name list")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="CSV reservation ID list")] = None, + state: Annotated[Optional[StrictStr], Field(description="CSV state list")] = None, + step: Annotated[Optional[StrictStr], Field(description="CSV step id list")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + start_time: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + node: Annotated[Optional[StrictStr], Field(description="Ranged node string where jobs ran")] = None, + users: Annotated[Optional[StrictStr], Field(description="CSV user name list")] = None, + wckey: Annotated[Optional[StrictStr], Field(description="CSV WCKey list")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get job list + + + :param account: CSV account list + :type account: str + :param association: CSV association list + :type association: str + :param cluster: CSV cluster list + :type cluster: str + :param constraints: CSV constraint list + :type constraints: str + :param scheduler_unset: Schedule bits not set + :type scheduler_unset: str + :param scheduled_on_submit: Job was started on submit + :type scheduled_on_submit: str + :param scheduled_by_main: Job was started from main scheduler + :type scheduled_by_main: str + :param scheduled_by_backfill: Job was started from backfill + :type scheduled_by_backfill: str + :param job_started: Job start RPC was received + :type job_started: str + :param job_altered: Job record has been altered + :type job_altered: str + :param exit_code: Job exit code (numeric) + :type exit_code: str + :param show_duplicates: Include duplicate job entries + :type show_duplicates: str + :param skip_steps: Exclude job step details + :type skip_steps: str + :param disable_truncate_usage_time: Do not truncate the time to usage_start and usage_end + :type disable_truncate_usage_time: str + :param whole_hetjob: Include details on all hetjob components + :type whole_hetjob: str + :param disable_whole_hetjob: Only show details on specified hetjob components + :type disable_whole_hetjob: str + :param disable_wait_for_result: Tell dbd not to wait for the result + :type disable_wait_for_result: str + :param usage_time_as_submit_time: Use usage_time as the submit_time of the job + :type usage_time_as_submit_time: str + :param show_batch_script: Include job script + :type show_batch_script: str + :param show_job_environment: Include job environment + :type show_job_environment: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param groups: CSV group list + :type groups: str + :param job_name: CSV job name list + :type job_name: str + :param partition: CSV partition name list + :type partition: str + :param qos: CSV QOS name list + :type qos: str + :param reason: CSV reason list + :type reason: str + :param reservation: CSV reservation name list + :type reservation: str + :param reservation_id: CSV reservation ID list + :type reservation_id: str + :param state: CSV state list + :type state: str + :param step: CSV step id list + :type step: str + :param end_time: Usage end (UNIX timestamp) + :type end_time: str + :param start_time: Usage start (UNIX timestamp) + :type start_time: str + :param node: Ranged node string where jobs ran + :type node: str + :param users: CSV user name list + :type users: str + :param wckey: CSV WCKey list + :type wckey: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_jobs_serialize( + account=account, + association=association, + cluster=cluster, + constraints=constraints, + scheduler_unset=scheduler_unset, + scheduled_on_submit=scheduled_on_submit, + scheduled_by_main=scheduled_by_main, + scheduled_by_backfill=scheduled_by_backfill, + job_started=job_started, + job_altered=job_altered, + exit_code=exit_code, + show_duplicates=show_duplicates, + skip_steps=skip_steps, + disable_truncate_usage_time=disable_truncate_usage_time, + whole_hetjob=whole_hetjob, + disable_whole_hetjob=disable_whole_hetjob, + disable_wait_for_result=disable_wait_for_result, + usage_time_as_submit_time=usage_time_as_submit_time, + show_batch_script=show_batch_script, + show_job_environment=show_job_environment, + format=format, + groups=groups, + job_name=job_name, + partition=partition, + qos=qos, + reason=reason, + reservation=reservation, + reservation_id=reservation_id, + state=state, + step=step, + end_time=end_time, + start_time=start_time, + node=node, + users=users, + wckey=wckey, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdJobsResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_jobs_serialize( + self, + account, + association, + cluster, + constraints, + scheduler_unset, + scheduled_on_submit, + scheduled_by_main, + scheduled_by_backfill, + job_started, + job_altered, + exit_code, + show_duplicates, + skip_steps, + disable_truncate_usage_time, + whole_hetjob, + disable_whole_hetjob, + disable_wait_for_result, + usage_time_as_submit_time, + show_batch_script, + show_job_environment, + format, + groups, + job_name, + partition, + qos, + reason, + reservation, + reservation_id, + state, + step, + end_time, + start_time, + node, + users, + wckey, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if account is not None: + + _query_params.append(('account', account)) + + if association is not None: + + _query_params.append(('association', association)) + + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if constraints is not None: + + _query_params.append(('constraints', constraints)) + + if scheduler_unset is not None: + + _query_params.append(('scheduler_unset', scheduler_unset)) + + if scheduled_on_submit is not None: + + _query_params.append(('scheduled_on_submit', scheduled_on_submit)) + + if scheduled_by_main is not None: + + _query_params.append(('scheduled_by_main', scheduled_by_main)) + + if scheduled_by_backfill is not None: + + _query_params.append(('scheduled_by_backfill', scheduled_by_backfill)) + + if job_started is not None: + + _query_params.append(('job_started', job_started)) + + if job_altered is not None: + + _query_params.append(('job_altered', job_altered)) + + if exit_code is not None: + + _query_params.append(('exit_code', exit_code)) + + if show_duplicates is not None: + + _query_params.append(('show_duplicates', show_duplicates)) + + if skip_steps is not None: + + _query_params.append(('skip_steps', skip_steps)) + + if disable_truncate_usage_time is not None: + + _query_params.append(('disable_truncate_usage_time', disable_truncate_usage_time)) + + if whole_hetjob is not None: + + _query_params.append(('whole_hetjob', whole_hetjob)) + + if disable_whole_hetjob is not None: + + _query_params.append(('disable_whole_hetjob', disable_whole_hetjob)) + + if disable_wait_for_result is not None: + + _query_params.append(('disable_wait_for_result', disable_wait_for_result)) + + if usage_time_as_submit_time is not None: + + _query_params.append(('usage_time_as_submit_time', usage_time_as_submit_time)) + + if show_batch_script is not None: + + _query_params.append(('show_batch_script', show_batch_script)) + + if show_job_environment is not None: + + _query_params.append(('show_job_environment', show_job_environment)) + + if format is not None: + + _query_params.append(('format', format)) + + if groups is not None: + + _query_params.append(('groups', groups)) + + if job_name is not None: + + _query_params.append(('job_name', job_name)) + + if partition is not None: + + _query_params.append(('partition', partition)) + + if qos is not None: + + _query_params.append(('qos', qos)) + + if reason is not None: + + _query_params.append(('reason', reason)) + + if reservation is not None: + + _query_params.append(('reservation', reservation)) + + if reservation_id is not None: + + _query_params.append(('reservation_id', reservation_id)) + + if state is not None: + + _query_params.append(('state', state)) + + if step is not None: + + _query_params.append(('step', step)) + + if end_time is not None: + + _query_params.append(('end_time', end_time)) + + if start_time is not None: + + _query_params.append(('start_time', start_time)) + + if node is not None: + + _query_params.append(('node', node)) + + if users is not None: + + _query_params.append(('users', users)) + + if wckey is not None: + + _query_params.append(('wckey', wckey)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_ping( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdPingResp: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_ping_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdPingResp]: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_ping_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """ping test + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_ping_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdPingResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_ping_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/ping/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdQosResp: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdQosResp]: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get QOS list + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_qos_serialize( + self, + description, + include_deleted_qos, + id, + format, + name, + preempt_mode, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if include_deleted_qos is not None: + + _query_params.append(('Include deleted QOS', include_deleted_qos)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_single_qos( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiSlurmdbdQosResp: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_single_qos_with_http_info( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiSlurmdbdQosResp]: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_single_qos_without_preload_content( + self, + qos: Annotated[StrictStr, Field(description="QOS name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Query includes deleted QOS")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get QOS info + + + :param qos: QOS name (required) + :type qos: str + :param with_deleted: Query includes deleted QOS + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_single_qos_serialize( + qos=qos, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiSlurmdbdQosResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_single_qos_serialize( + self, + qos, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if qos is not None: + _path_params['qos'] = qos + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/qos/{qos}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_tres( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiTresResp: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_tres_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiTresResp]: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_tres_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get TRES info + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_tres_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiTresResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_tres_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_user( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiUsersResp: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_user_with_http_info( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiUsersResp]: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_user_without_preload_content( + self, + name: Annotated[StrictStr, Field(description="User name")], + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted users")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="Include associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="Include coordinators")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="Include WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user info + + + :param name: User name (required) + :type name: str + :param with_deleted: Include deleted users + :type with_deleted: str + :param with_assocs: Include associations + :type with_assocs: str + :param with_coords: Include coordinators + :type with_coords: str + :param with_wckeys: Include WCKeys + :type with_wckeys: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_user_serialize( + name=name, + with_deleted=with_deleted, + with_assocs=with_assocs, + with_coords=with_coords, + with_wckeys=with_wckeys, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_user_serialize( + self, + name, + with_deleted, + with_assocs, + with_coords, + with_wckeys, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if name is not None: + _path_params['name'] = name + # process the query parameters + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/user/{name}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_users( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiUsersResp: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_users_with_http_info( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiUsersResp]: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_users_without_preload_content( + self, + admin_level: Annotated[Optional[StrictStr], Field(description="Administrator level")] = None, + default_account: Annotated[Optional[StrictStr], Field(description="CSV default account list")] = None, + default_wckey: Annotated[Optional[StrictStr], Field(description="CSV default WCKey list")] = None, + with_assocs: Annotated[Optional[StrictStr], Field(description="With associations")] = None, + with_coords: Annotated[Optional[StrictStr], Field(description="With coordinators")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="With deleted")] = None, + with_wckeys: Annotated[Optional[StrictStr], Field(description="With WCKeys")] = None, + without_defaults: Annotated[Optional[StrictStr], Field(description="Exclude defaults")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user list + + + :param admin_level: Administrator level + :type admin_level: str + :param default_account: CSV default account list + :type default_account: str + :param default_wckey: CSV default WCKey list + :type default_wckey: str + :param with_assocs: With associations + :type with_assocs: str + :param with_coords: With coordinators + :type with_coords: str + :param with_deleted: With deleted + :type with_deleted: str + :param with_wckeys: With WCKeys + :type with_wckeys: str + :param without_defaults: Exclude defaults + :type without_defaults: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_users_serialize( + admin_level=admin_level, + default_account=default_account, + default_wckey=default_wckey, + with_assocs=with_assocs, + with_coords=with_coords, + with_deleted=with_deleted, + with_wckeys=with_wckeys, + without_defaults=without_defaults, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_users_serialize( + self, + admin_level, + default_account, + default_wckey, + with_assocs, + with_coords, + with_deleted, + with_wckeys, + without_defaults, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if admin_level is not None: + + _query_params.append(('admin_level', admin_level)) + + if default_account is not None: + + _query_params.append(('default_account', default_account)) + + if default_wckey is not None: + + _query_params.append(('default_wckey', default_wckey)) + + if with_assocs is not None: + + _query_params.append(('with_assocs', with_assocs)) + + if with_coords is not None: + + _query_params.append(('with_coords', with_coords)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + if with_wckeys is not None: + + _query_params.append(('with_wckeys', with_wckeys)) + + if without_defaults is not None: + + _query_params.append(('without_defaults', without_defaults)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_wckey( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiWckeyResp: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_wckey_with_http_info( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiWckeyResp]: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_wckey_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="WCKey ID")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get wckey info + + + :param id: WCKey ID (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_wckey_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_wckey_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/wckey/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_get_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiWckeyResp: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_get_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiWckeyResp]: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_get_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get wckey list + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_get_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiWckeyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_get_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/slurmdb/v0.0.44/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_accounts( + self, + v0044_openapi_accounts_resp: Annotated[Optional[V0044OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Add/update list of accounts + + + :param v0044_openapi_accounts_resp: Description of accounts to update/create + :type v0044_openapi_accounts_resp: V0044OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_accounts_serialize( + v0044_openapi_accounts_resp=v0044_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_accounts_with_http_info( + self, + v0044_openapi_accounts_resp: Annotated[Optional[V0044OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Add/update list of accounts + + + :param v0044_openapi_accounts_resp: Description of accounts to update/create + :type v0044_openapi_accounts_resp: V0044OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_accounts_serialize( + v0044_openapi_accounts_resp=v0044_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_accounts_without_preload_content( + self, + v0044_openapi_accounts_resp: Annotated[Optional[V0044OpenapiAccountsResp], Field(description="Description of accounts to update/create")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add/update list of accounts + + + :param v0044_openapi_accounts_resp: Description of accounts to update/create + :type v0044_openapi_accounts_resp: V0044OpenapiAccountsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_accounts_serialize( + v0044_openapi_accounts_resp=v0044_openapi_accounts_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_accounts_serialize( + self, + v0044_openapi_accounts_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_accounts_resp is not None: + _body_params = v0044_openapi_accounts_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/accounts/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_accounts_association( + self, + v0044_openapi_accounts_add_cond_resp: Annotated[Optional[V0044OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiAccountsAddCondRespStr: + """Add accounts with conditional association + + + :param v0044_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0044_openapi_accounts_add_cond_resp: V0044OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_accounts_association_serialize( + v0044_openapi_accounts_add_cond_resp=v0044_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_accounts_association_with_http_info( + self, + v0044_openapi_accounts_add_cond_resp: Annotated[Optional[V0044OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiAccountsAddCondRespStr]: + """Add accounts with conditional association + + + :param v0044_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0044_openapi_accounts_add_cond_resp: V0044OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_accounts_association_serialize( + v0044_openapi_accounts_add_cond_resp=v0044_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_accounts_association_without_preload_content( + self, + v0044_openapi_accounts_add_cond_resp: Annotated[Optional[V0044OpenapiAccountsAddCondResp], Field(description="Add list of accounts with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add accounts with conditional association + + + :param v0044_openapi_accounts_add_cond_resp: Add list of accounts with conditional association + :type v0044_openapi_accounts_add_cond_resp: V0044OpenapiAccountsAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_accounts_association_serialize( + v0044_openapi_accounts_add_cond_resp=v0044_openapi_accounts_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiAccountsAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_accounts_association_serialize( + self, + v0044_openapi_accounts_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_accounts_add_cond_resp is not None: + _body_params = v0044_openapi_accounts_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/accounts_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_associations( + self, + v0044_openapi_assocs_resp: Annotated[Optional[V0044OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Set associations info + + + :param v0044_openapi_assocs_resp: Job description + :type v0044_openapi_assocs_resp: V0044OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_associations_serialize( + v0044_openapi_assocs_resp=v0044_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_associations_with_http_info( + self, + v0044_openapi_assocs_resp: Annotated[Optional[V0044OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Set associations info + + + :param v0044_openapi_assocs_resp: Job description + :type v0044_openapi_assocs_resp: V0044OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_associations_serialize( + v0044_openapi_assocs_resp=v0044_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_associations_without_preload_content( + self, + v0044_openapi_assocs_resp: Annotated[Optional[V0044OpenapiAssocsResp], Field(description="Job description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Set associations info + + + :param v0044_openapi_assocs_resp: Job description + :type v0044_openapi_assocs_resp: V0044OpenapiAssocsResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_associations_serialize( + v0044_openapi_assocs_resp=v0044_openapi_assocs_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_associations_serialize( + self, + v0044_openapi_assocs_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_assocs_resp is not None: + _body_params = v0044_openapi_assocs_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/associations/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_clusters( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0044_openapi_clusters_resp: Annotated[Optional[V0044OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0044_openapi_clusters_resp: Cluster add or update descriptions + :type v0044_openapi_clusters_resp: V0044OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_clusters_serialize( + update_time=update_time, + v0044_openapi_clusters_resp=v0044_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_clusters_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0044_openapi_clusters_resp: Annotated[Optional[V0044OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0044_openapi_clusters_resp: Cluster add or update descriptions + :type v0044_openapi_clusters_resp: V0044OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_clusters_serialize( + update_time=update_time, + v0044_openapi_clusters_resp=v0044_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_clusters_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query reservations updated more recently than this time (UNIX timestamp)")] = None, + v0044_openapi_clusters_resp: Annotated[Optional[V0044OpenapiClustersResp], Field(description="Cluster add or update descriptions")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get cluster list + + + :param update_time: Query reservations updated more recently than this time (UNIX timestamp) + :type update_time: str + :param v0044_openapi_clusters_resp: Cluster add or update descriptions + :type v0044_openapi_clusters_resp: V0044OpenapiClustersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_clusters_serialize( + update_time=update_time, + v0044_openapi_clusters_resp=v0044_openapi_clusters_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_clusters_serialize( + self, + update_time, + v0044_openapi_clusters_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_clusters_resp is not None: + _body_params = v0044_openapi_clusters_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/clusters/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_config( + self, + v0044_openapi_slurmdbd_config_resp: Annotated[Optional[V0044OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Load all configuration information + + + :param v0044_openapi_slurmdbd_config_resp: Add or update config + :type v0044_openapi_slurmdbd_config_resp: V0044OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_config_serialize( + v0044_openapi_slurmdbd_config_resp=v0044_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_config_with_http_info( + self, + v0044_openapi_slurmdbd_config_resp: Annotated[Optional[V0044OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Load all configuration information + + + :param v0044_openapi_slurmdbd_config_resp: Add or update config + :type v0044_openapi_slurmdbd_config_resp: V0044OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_config_serialize( + v0044_openapi_slurmdbd_config_resp=v0044_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_config_without_preload_content( + self, + v0044_openapi_slurmdbd_config_resp: Annotated[Optional[V0044OpenapiSlurmdbdConfigResp], Field(description="Add or update config")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Load all configuration information + + + :param v0044_openapi_slurmdbd_config_resp: Add or update config + :type v0044_openapi_slurmdbd_config_resp: V0044OpenapiSlurmdbdConfigResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_config_serialize( + v0044_openapi_slurmdbd_config_resp=v0044_openapi_slurmdbd_config_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_config_serialize( + self, + v0044_openapi_slurmdbd_config_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_slurmdbd_config_resp is not None: + _body_params = v0044_openapi_slurmdbd_config_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/config', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_job( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0044_job_modify: Annotated[Optional[V0044JobModify], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobModifyResp: + """Update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0044_job_modify: Job update description + :type v0044_job_modify: V0044JobModify + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_job_serialize( + job_id=job_id, + v0044_job_modify=v0044_job_modify, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobModifyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_job_with_http_info( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0044_job_modify: Annotated[Optional[V0044JobModify], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobModifyResp]: + """Update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0044_job_modify: Job update description + :type v0044_job_modify: V0044JobModify + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_job_serialize( + job_id=job_id, + v0044_job_modify=v0044_job_modify, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobModifyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_job_without_preload_content( + self, + job_id: Annotated[StrictStr, Field(description="Job ID")], + v0044_job_modify: Annotated[Optional[V0044JobModify], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update job + + + :param job_id: Job ID (required) + :type job_id: str + :param v0044_job_modify: Job update description + :type v0044_job_modify: V0044JobModify + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_job_serialize( + job_id=job_id, + v0044_job_modify=v0044_job_modify, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobModifyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_job_serialize( + self, + job_id, + v0044_job_modify, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if job_id is not None: + _path_params['job_id'] = job_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_job_modify is not None: + _body_params = v0044_job_modify + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/job/{job_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_jobs( + self, + v0044_openapi_job_modify_req: Annotated[Optional[V0044OpenapiJobModifyReq], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiJobModifyResp: + """Update jobs + + + :param v0044_openapi_job_modify_req: Job update description + :type v0044_openapi_job_modify_req: V0044OpenapiJobModifyReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_jobs_serialize( + v0044_openapi_job_modify_req=v0044_openapi_job_modify_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobModifyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_jobs_with_http_info( + self, + v0044_openapi_job_modify_req: Annotated[Optional[V0044OpenapiJobModifyReq], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiJobModifyResp]: + """Update jobs + + + :param v0044_openapi_job_modify_req: Job update description + :type v0044_openapi_job_modify_req: V0044OpenapiJobModifyReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_jobs_serialize( + v0044_openapi_job_modify_req=v0044_openapi_job_modify_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobModifyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_jobs_without_preload_content( + self, + v0044_openapi_job_modify_req: Annotated[Optional[V0044OpenapiJobModifyReq], Field(description="Job update description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update jobs + + + :param v0044_openapi_job_modify_req: Job update description + :type v0044_openapi_job_modify_req: V0044OpenapiJobModifyReq + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_jobs_serialize( + v0044_openapi_job_modify_req=v0044_openapi_job_modify_req, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiJobModifyResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_jobs_serialize( + self, + v0044_openapi_job_modify_req, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_job_modify_req is not None: + _body_params = v0044_openapi_job_modify_req + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/jobs/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_qos( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0044_openapi_slurmdbd_qos_resp: Annotated[Optional[V0044OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0044_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0044_openapi_slurmdbd_qos_resp: V0044OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0044_openapi_slurmdbd_qos_resp=v0044_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_qos_with_http_info( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0044_openapi_slurmdbd_qos_resp: Annotated[Optional[V0044OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0044_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0044_openapi_slurmdbd_qos_resp: V0044OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0044_openapi_slurmdbd_qos_resp=v0044_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_qos_without_preload_content( + self, + description: Annotated[Optional[StrictStr], Field(description="CSV description list")] = None, + include_deleted_qos: Optional[StrictStr] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV QOS id list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV QOS name list")] = None, + preempt_mode: Annotated[Optional[StrictStr], Field(description="PreemptMode used when jobs in this QOS are preempted")] = None, + v0044_openapi_slurmdbd_qos_resp: Annotated[Optional[V0044OpenapiSlurmdbdQosResp], Field(description="Description of QOS to add or update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add or update QOSs + + + :param description: CSV description list + :type description: str + :param include_deleted_qos: + :type include_deleted_qos: str + :param id: CSV QOS id list + :type id: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param name: CSV QOS name list + :type name: str + :param preempt_mode: PreemptMode used when jobs in this QOS are preempted + :type preempt_mode: str + :param v0044_openapi_slurmdbd_qos_resp: Description of QOS to add or update + :type v0044_openapi_slurmdbd_qos_resp: V0044OpenapiSlurmdbdQosResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_qos_serialize( + description=description, + include_deleted_qos=include_deleted_qos, + id=id, + format=format, + name=name, + preempt_mode=preempt_mode, + v0044_openapi_slurmdbd_qos_resp=v0044_openapi_slurmdbd_qos_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_qos_serialize( + self, + description, + include_deleted_qos, + id, + format, + name, + preempt_mode, + v0044_openapi_slurmdbd_qos_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if include_deleted_qos is not None: + + _query_params.append(('Include deleted QOS', include_deleted_qos)) + + if id is not None: + + _query_params.append(('id', id)) + + if format is not None: + + _query_params.append(('format', format)) + + if name is not None: + + _query_params.append(('name', name)) + + if preempt_mode is not None: + + _query_params.append(('preempt_mode', preempt_mode)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_slurmdbd_qos_resp is not None: + _body_params = v0044_openapi_slurmdbd_qos_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/qos/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_tres( + self, + v0044_openapi_tres_resp: Annotated[Optional[V0044OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Add TRES + + + :param v0044_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0044_openapi_tres_resp: V0044OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_tres_serialize( + v0044_openapi_tres_resp=v0044_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_tres_with_http_info( + self, + v0044_openapi_tres_resp: Annotated[Optional[V0044OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Add TRES + + + :param v0044_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0044_openapi_tres_resp: V0044OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_tres_serialize( + v0044_openapi_tres_resp=v0044_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_tres_without_preload_content( + self, + v0044_openapi_tres_resp: Annotated[Optional[V0044OpenapiTresResp], Field(description="TRES descriptions. Only works in developer mode.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add TRES + + + :param v0044_openapi_tres_resp: TRES descriptions. Only works in developer mode. + :type v0044_openapi_tres_resp: V0044OpenapiTresResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_tres_serialize( + v0044_openapi_tres_resp=v0044_openapi_tres_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_tres_serialize( + self, + v0044_openapi_tres_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_tres_resp is not None: + _body_params = v0044_openapi_tres_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/tres/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_users( + self, + v0044_openapi_users_resp: Annotated[Optional[V0044OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Update users + + + :param v0044_openapi_users_resp: add or update user + :type v0044_openapi_users_resp: V0044OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_users_serialize( + v0044_openapi_users_resp=v0044_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_users_with_http_info( + self, + v0044_openapi_users_resp: Annotated[Optional[V0044OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Update users + + + :param v0044_openapi_users_resp: add or update user + :type v0044_openapi_users_resp: V0044OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_users_serialize( + v0044_openapi_users_resp=v0044_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_users_without_preload_content( + self, + v0044_openapi_users_resp: Annotated[Optional[V0044OpenapiUsersResp], Field(description="add or update user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update users + + + :param v0044_openapi_users_resp: add or update user + :type v0044_openapi_users_resp: V0044OpenapiUsersResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_users_serialize( + v0044_openapi_users_resp=v0044_openapi_users_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_users_serialize( + self, + v0044_openapi_users_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_users_resp is not None: + _body_params = v0044_openapi_users_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/users/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_users_association( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0044_openapi_users_add_cond_resp: Annotated[Optional[V0044OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiUsersAddCondRespStr: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0044_openapi_users_add_cond_resp: Create users with conditional association + :type v0044_openapi_users_add_cond_resp: V0044OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0044_openapi_users_add_cond_resp=v0044_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_users_association_with_http_info( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0044_openapi_users_add_cond_resp: Annotated[Optional[V0044OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiUsersAddCondRespStr]: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0044_openapi_users_add_cond_resp: Create users with conditional association + :type v0044_openapi_users_add_cond_resp: V0044OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0044_openapi_users_add_cond_resp=v0044_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_users_association_without_preload_content( + self, + update_time: Annotated[Optional[StrictStr], Field(description="Query partitions updated more recently than this time (UNIX timestamp)")] = None, + flags: Annotated[Optional[StrictStr], Field(description="Query flags")] = None, + v0044_openapi_users_add_cond_resp: Annotated[Optional[V0044OpenapiUsersAddCondResp], Field(description="Create users with conditional association")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add users with conditional association + + + :param update_time: Query partitions updated more recently than this time (UNIX timestamp) + :type update_time: str + :param flags: Query flags + :type flags: str + :param v0044_openapi_users_add_cond_resp: Create users with conditional association + :type v0044_openapi_users_add_cond_resp: V0044OpenapiUsersAddCondResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_users_association_serialize( + update_time=update_time, + flags=flags, + v0044_openapi_users_add_cond_resp=v0044_openapi_users_add_cond_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiUsersAddCondRespStr", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_users_association_serialize( + self, + update_time, + flags, + v0044_openapi_users_add_cond_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if update_time is not None: + + _query_params.append(('update_time', update_time)) + + if flags is not None: + + _query_params.append(('flags', flags)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_users_add_cond_resp is not None: + _body_params = v0044_openapi_users_add_cond_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/users_association/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def slurmdb_v0044_post_wckeys( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0044_openapi_wckey_resp: Annotated[Optional[V0044OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiResp: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0044_openapi_wckey_resp: wckeys description + :type v0044_openapi_wckey_resp: V0044OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0044_openapi_wckey_resp=v0044_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def slurmdb_v0044_post_wckeys_with_http_info( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0044_openapi_wckey_resp: Annotated[Optional[V0044OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiResp]: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0044_openapi_wckey_resp: wckeys description + :type v0044_openapi_wckey_resp: V0044OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0044_openapi_wckey_resp=v0044_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def slurmdb_v0044_post_wckeys_without_preload_content( + self, + cluster: Annotated[Optional[StrictStr], Field(description="CSV cluster name list")] = None, + format: Annotated[Optional[StrictStr], Field(description="Ignored; process JSON manually to control output format")] = None, + id: Annotated[Optional[StrictStr], Field(description="CSV ID list")] = None, + name: Annotated[Optional[StrictStr], Field(description="CSV name list")] = None, + only_defaults: Annotated[Optional[StrictStr], Field(description="Only query defaults")] = None, + usage_end: Annotated[Optional[StrictStr], Field(description="Usage end (UNIX timestamp)")] = None, + usage_start: Annotated[Optional[StrictStr], Field(description="Usage start (UNIX timestamp)")] = None, + user: Annotated[Optional[StrictStr], Field(description="CSV user list")] = None, + with_usage: Annotated[Optional[StrictStr], Field(description="Include usage")] = None, + with_deleted: Annotated[Optional[StrictStr], Field(description="Include deleted WCKeys")] = None, + v0044_openapi_wckey_resp: Annotated[Optional[V0044OpenapiWckeyResp], Field(description="wckeys description")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add or update wckeys + + + :param cluster: CSV cluster name list + :type cluster: str + :param format: Ignored; process JSON manually to control output format + :type format: str + :param id: CSV ID list + :type id: str + :param name: CSV name list + :type name: str + :param only_defaults: Only query defaults + :type only_defaults: str + :param usage_end: Usage end (UNIX timestamp) + :type usage_end: str + :param usage_start: Usage start (UNIX timestamp) + :type usage_start: str + :param user: CSV user list + :type user: str + :param with_usage: Include usage + :type with_usage: str + :param with_deleted: Include deleted WCKeys + :type with_deleted: str + :param v0044_openapi_wckey_resp: wckeys description + :type v0044_openapi_wckey_resp: V0044OpenapiWckeyResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._slurmdb_v0044_post_wckeys_serialize( + cluster=cluster, + format=format, + id=id, + name=name, + only_defaults=only_defaults, + usage_end=usage_end, + usage_start=usage_start, + user=user, + with_usage=with_usage, + with_deleted=with_deleted, + v0044_openapi_wckey_resp=v0044_openapi_wckey_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _slurmdb_v0044_post_wckeys_serialize( + self, + cluster, + format, + id, + name, + only_defaults, + usage_end, + usage_start, + user, + with_usage, + with_deleted, + v0044_openapi_wckey_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if cluster is not None: + + _query_params.append(('cluster', cluster)) + + if format is not None: + + _query_params.append(('format', format)) + + if id is not None: + + _query_params.append(('id', id)) + + if name is not None: + + _query_params.append(('name', name)) + + if only_defaults is not None: + + _query_params.append(('only_defaults', only_defaults)) + + if usage_end is not None: + + _query_params.append(('usage_end', usage_end)) + + if usage_start is not None: + + _query_params.append(('usage_start', usage_start)) + + if user is not None: + + _query_params.append(('user', user)) + + if with_usage is not None: + + _query_params.append(('with_usage', with_usage)) + + if with_deleted is not None: + + _query_params.append(('with_deleted', with_deleted)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_wckey_resp is not None: + _body_params = v0044_openapi_wckey_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/slurmdb/v0.0.44/wckeys/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/slurmrest_python/api/util_api.py b/slurmrest_python/api/util_api.py new file mode 100644 index 0000000..c302c9d --- /dev/null +++ b/slurmrest_python/api/util_api.py @@ -0,0 +1,591 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field +from typing import Optional +from typing_extensions import Annotated +from slurmrest_python.models.v0044_openapi_hostlist_req_resp import V0044OpenapiHostlistReqResp +from slurmrest_python.models.v0044_openapi_hostnames_req_resp import V0044OpenapiHostnamesReqResp + +from slurmrest_python.api_client import ApiClient, RequestSerialized +from slurmrest_python.api_response import ApiResponse +from slurmrest_python.rest import RESTResponseType + + +class UtilApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def util_v0044_post_hostlist( + self, + v0044_openapi_hostnames_req_resp: Annotated[Optional[V0044OpenapiHostnamesReqResp], Field(description="Array of host names")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiHostlistReqResp: + """Convert an array of host names into hostlist expression + + + :param v0044_openapi_hostnames_req_resp: Array of host names + :type v0044_openapi_hostnames_req_resp: V0044OpenapiHostnamesReqResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._util_v0044_post_hostlist_serialize( + v0044_openapi_hostnames_req_resp=v0044_openapi_hostnames_req_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiHostlistReqResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def util_v0044_post_hostlist_with_http_info( + self, + v0044_openapi_hostnames_req_resp: Annotated[Optional[V0044OpenapiHostnamesReqResp], Field(description="Array of host names")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiHostlistReqResp]: + """Convert an array of host names into hostlist expression + + + :param v0044_openapi_hostnames_req_resp: Array of host names + :type v0044_openapi_hostnames_req_resp: V0044OpenapiHostnamesReqResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._util_v0044_post_hostlist_serialize( + v0044_openapi_hostnames_req_resp=v0044_openapi_hostnames_req_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiHostlistReqResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def util_v0044_post_hostlist_without_preload_content( + self, + v0044_openapi_hostnames_req_resp: Annotated[Optional[V0044OpenapiHostnamesReqResp], Field(description="Array of host names")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Convert an array of host names into hostlist expression + + + :param v0044_openapi_hostnames_req_resp: Array of host names + :type v0044_openapi_hostnames_req_resp: V0044OpenapiHostnamesReqResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._util_v0044_post_hostlist_serialize( + v0044_openapi_hostnames_req_resp=v0044_openapi_hostnames_req_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiHostlistReqResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _util_v0044_post_hostlist_serialize( + self, + v0044_openapi_hostnames_req_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_hostnames_req_resp is not None: + _body_params = v0044_openapi_hostnames_req_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/util/v0.0.44/hostlist', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def util_v0044_post_hostnames( + self, + v0044_openapi_hostlist_req_resp: Annotated[Optional[V0044OpenapiHostlistReqResp], Field(description="Hostlist expression")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V0044OpenapiHostnamesReqResp: + """Convert a hostlist expression into array of host names + + + :param v0044_openapi_hostlist_req_resp: Hostlist expression + :type v0044_openapi_hostlist_req_resp: V0044OpenapiHostlistReqResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._util_v0044_post_hostnames_serialize( + v0044_openapi_hostlist_req_resp=v0044_openapi_hostlist_req_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiHostnamesReqResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def util_v0044_post_hostnames_with_http_info( + self, + v0044_openapi_hostlist_req_resp: Annotated[Optional[V0044OpenapiHostlistReqResp], Field(description="Hostlist expression")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V0044OpenapiHostnamesReqResp]: + """Convert a hostlist expression into array of host names + + + :param v0044_openapi_hostlist_req_resp: Hostlist expression + :type v0044_openapi_hostlist_req_resp: V0044OpenapiHostlistReqResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._util_v0044_post_hostnames_serialize( + v0044_openapi_hostlist_req_resp=v0044_openapi_hostlist_req_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiHostnamesReqResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def util_v0044_post_hostnames_without_preload_content( + self, + v0044_openapi_hostlist_req_resp: Annotated[Optional[V0044OpenapiHostlistReqResp], Field(description="Hostlist expression")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Convert a hostlist expression into array of host names + + + :param v0044_openapi_hostlist_req_resp: Hostlist expression + :type v0044_openapi_hostlist_req_resp: V0044OpenapiHostlistReqResp + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._util_v0044_post_hostnames_serialize( + v0044_openapi_hostlist_req_resp=v0044_openapi_hostlist_req_resp, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V0044OpenapiHostnamesReqResp", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _util_v0044_post_hostnames_serialize( + self, + v0044_openapi_hostlist_req_resp, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if v0044_openapi_hostlist_req_resp is not None: + _body_params = v0044_openapi_hostlist_req_resp + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/yaml' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json', + 'application/yaml' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'user', + 'bearerAuth', + 'token' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/util/v0.0.44/hostnames', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/slurmrest_python/api_client.py b/slurmrest_python/api_client.py new file mode 100644 index 0000000..19132fa --- /dev/null +++ b/slurmrest_python/api_client.py @@ -0,0 +1,802 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import datetime +from dateutil.parser import parse +from enum import Enum +import decimal +import json +import mimetypes +import os +import re +import tempfile + +from urllib.parse import quote +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr + +from slurmrest_python.configuration import Configuration +from slurmrest_python.api_response import ApiResponse, T as ApiResponseT +import slurmrest_python.models +from slurmrest_python import rest +from slurmrest_python.exceptions import ( + ApiValueError, + ApiException, + BadRequestException, + UnauthorizedException, + ForbiddenException, + NotFoundException, + ServiceException +) + +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + +class ApiClient: + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, str, int) + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, + 'object': object, + } + _pool = None + + def __init__( + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None + ) -> None: + # use default configuration if none is provided + if configuration is None: + configuration = Configuration.get_default() + self.configuration = configuration + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/0.0.1/python' + self.client_side_validation = configuration.client_side_validation + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + pass + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + + _default = None + + @classmethod + def get_default(cls): + """Return new instance of ApiClient. + + This method returns newly created, based on default constructor, + object of ApiClient class or returns a copy of default + ApiClient. + + :return: The ApiClient object. + """ + if cls._default is None: + cls._default = ApiClient() + return cls._default + + @classmethod + def set_default(cls, default): + """Set default instance of ApiClient. + + It stores default ApiClient. + + :param default: object of ApiClient. + """ + cls._default = default + + def param_serialize( + self, + method, + resource_path, + path_params=None, + query_params=None, + header_params=None, + body=None, + post_params=None, + files=None, auth_settings=None, + collection_formats=None, + _host=None, + _request_auth=None + ) -> RequestSerialized: + + """Builds the HTTP request params needed by the request. + :param method: Method to call. + :param resource_path: Path to method endpoint. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :return: tuple of form (path, http_method, query_params, header_params, + body, post_params, files) + """ + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict( + self.parameters_to_tuples(header_params,collection_formats) + ) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) + if files: + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth( + header_params, + query_params, + auth_settings, + resource_path, + method, + body, + request_auth=_request_auth + ) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + if _host is None or self.configuration.ignore_operation_servers: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) + url += "?" + url_query + + return method, url, header_params, body, post_params + + + def call_api( + self, + method, + url, + header_params=None, + body=None, + post_params=None, + _request_timeout=None + ) -> rest.RESTResponse: + """Makes the HTTP request (synchronous) + :param method: Method to call. + :param url: Path to method endpoint. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param _request_timeout: timeout setting for this request. + :return: RESTResponse + """ + + try: + # perform request and return response + response_data = self.rest_client.request( + method, url, + headers=header_params, + body=body, post_params=post_params, + _request_timeout=_request_timeout + ) + + except ApiException as e: + raise e + + return response_data + + def response_deserialize( + self, + response_data: rest.RESTResponse, + response_types_map: Optional[Dict[str, ApiResponseT]]=None + ) -> ApiResponse[ApiResponseT]: + """Deserializes response into an object. + :param response_data: RESTResponse object to be deserialized. + :param response_types_map: dict of response types. + :return: ApiResponse + """ + + msg = "RESTResponse.read() must be called before passing it to response_deserialize()" + assert response_data.data is not None, msg + + response_type = response_types_map.get(str(response_data.status), None) + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + # if not found, look for '1XX', '2XX', etc. + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) + + # deserialize response data + response_text = None + return_data = None + try: + if response_type == "bytearray": + return_data = response_data.data + elif response_type == "file": + return_data = self.__deserialize_file(response_data) + elif response_type is not None: + match = None + content_type = response_data.getheader('content-type') + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_text = response_data.data.decode(encoding) + return_data = self.deserialize(response_text, response_type, content_type) + finally: + if not 200 <= response_data.status <= 299: + raise ApiException.from_response( + http_resp=response_data, + body=response_text, + data=return_data, + ) + + return ApiResponse( + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data + ) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is SecretStr, return obj.get_secret_value() + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is decimal.Decimal return string representation. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, Enum): + return obj.value + elif isinstance(obj, SecretStr): + return obj.get_secret_value() + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] + elif isinstance(obj, tuple): + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + elif isinstance(obj, decimal.Decimal): + return str(obj) + + elif isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() + else: + obj_dict = obj.__dict__ + + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + + return { + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() + } + + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + :param content_type: content type of response. + + :return: deserialized object. + """ + + # fetch data from response object + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): + data = response_text + else: + raise ApiException( + status=0, + reason="Unsupported content type: {0}".format(content_type) + ) + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if isinstance(klass, str): + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" + sub_kls = m.group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(slurmrest_python.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datetime(data) + elif klass == decimal.Decimal: + return decimal.Decimal(data) + elif issubclass(klass, Enum): + return self.__deserialize_enum(data, klass) + else: + return self.__deserialize_model(data, klass) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def parameters_to_url_query(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: URL query string (e.g. a=Hello%20World&b=123) + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if isinstance(v, bool): + v = str(v).lower() + if isinstance(v, (int, float)): + v = str(v) + if isinstance(v, dict): + v = json.dumps(v) + + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, quote(str(value))) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(quote(str(value)) for value in v)) + ) + else: + new_params.append((k, quote(str(v)))) + + return "&".join(["=".join(map(str, item)) for item in new_params]) + + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): + """Builds form parameters. + + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + for k, v in files.items(): + if isinstance(v, str): + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + elif isinstance(v, bytes): + filename = k + filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue + else: + raise ValueError("Unsupported file value") + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) + return params + + def select_header_accept(self, accepts: List[str]) -> Optional[str]: + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return None + + for accept in accepts: + if re.search('json', accept, re.IGNORECASE): + return accept + + return accepts[0] + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None + + for content_type in content_types: + if re.search('json', content_type, re.IGNORECASE): + return content_type + + return content_types[0] + + def update_params_for_auth( + self, + headers, + queries, + auth_settings, + resource_path, + method, + body, + request_auth=None + ) -> None: + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param request_auth: if set, the provided settings will + override the token in the configuration. + """ + if not auth_settings: + return + + if request_auth: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + request_auth + ) + else: + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + auth_setting + ) + + def _apply_auth_params( + self, + headers, + queries, + resource_path, + method, + body, + auth_setting + ) -> None: + """Updates the request parameters based on a single auth_setting + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param auth_setting: auth settings for the endpoint + """ + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + handle file downloading + save response body into a tmp file and return the instance + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + m = re.search( + r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition + ) + assert m is not None, "Unexpected 'content-disposition' header value" + filename = m.group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return str(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datetime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_enum(self, data, klass): + """Deserializes primitive type to enum. + + :param data: primitive type. + :param klass: class literal. + :return: enum value. + """ + try: + return klass(data) + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as `{1}`" + .format(data, klass) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + return klass.from_dict(data) diff --git a/slurmrest_python/api_response.py b/slurmrest_python/api_response.py new file mode 100644 index 0000000..9bc7c11 --- /dev/null +++ b/slurmrest_python/api_response.py @@ -0,0 +1,21 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel + +T = TypeVar("T") + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = { + "arbitrary_types_allowed": True + } diff --git a/slurmrest_python/configuration.py b/slurmrest_python/configuration.py new file mode 100644 index 0000000..39f7af2 --- /dev/null +++ b/slurmrest_python/configuration.py @@ -0,0 +1,622 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import copy +import http.client as httplib +import logging +from logging import FileHandler +import multiprocessing +import sys +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union +from typing_extensions import NotRequired, Self + +import urllib3 + + +JSON_SCHEMA_VALIDATION_KEYWORDS = { + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' +} + +ServerVariablesT = Dict[str, str] + +GenericAuthSetting = TypedDict( + "GenericAuthSetting", + { + "type": str, + "in": str, + "key": str, + "value": str, + }, +) + + +OAuth2AuthSetting = TypedDict( + "OAuth2AuthSetting", + { + "type": Literal["oauth2"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +APIKeyAuthSetting = TypedDict( + "APIKeyAuthSetting", + { + "type": Literal["api_key"], + "in": str, + "key": str, + "value": Optional[str], + }, +) + + +BasicAuthSetting = TypedDict( + "BasicAuthSetting", + { + "type": Literal["basic"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": Optional[str], + }, +) + + +BearerFormatAuthSetting = TypedDict( + "BearerFormatAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "format": Literal["JWT"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +BearerAuthSetting = TypedDict( + "BearerAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +HTTPSignatureAuthSetting = TypedDict( + "HTTPSignatureAuthSetting", + { + "type": Literal["http-signature"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": None, + }, +) + + +AuthSettings = TypedDict( + "AuthSettings", + { + "user": APIKeyAuthSetting, + "token": APIKeyAuthSetting, + "bearerAuth": BearerFormatAuthSetting, + }, + total=False, +) + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] + + +class Configuration: + """This class contains various settings of the API client. + + :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum + values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. + :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. + + :Example: + + API Key Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + cookieAuth: # name for the security scheme + type: apiKey + in: cookie + name: JSESSIONID # cookie name + + You can programmatically set the cookie: + +conf = slurmrest_python.Configuration( + api_key={'cookieAuth': 'abc123'} + api_key_prefix={'cookieAuth': 'JSESSIONID'} +) + + The following cookie will be added to the HTTP request: + Cookie: JSESSIONID abc123 + """ + + _default: ClassVar[Optional[Self]] = None + + def __init__( + self, + host: Optional[str]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, + username: Optional[str]=None, + password: Optional[str]=None, + access_token: Optional[str]=None, + server_index: Optional[int]=None, + server_variables: Optional[ServerVariablesT]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + ignore_operation_servers: bool=False, + ssl_ca_cert: Optional[str]=None, + retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, + *, + debug: Optional[bool] = None, + ) -> None: + """Constructor + """ + self._base_path = "http://localhost" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.access_token = access_token + """Access token + """ + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("slurmrest_python") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler: Optional[FileHandler] = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + if debug is not None: + self.debug = debug + else: + self.__debug = False + """Debug switch + """ + + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + self.tls_server_name = None + """SSL/TLS Server Name Indication (SNI) + Set this to the SNI value expected by the server. + """ + + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ + + self.proxy: Optional[str] = None + """Proxy URL + """ + self.proxy_headers = None + """Proxy headers + """ + self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = retries + """Adding retries to override urllib3 default value 3 + """ + # Enable client side validation + self.client_side_validation = True + + self.socket_options = None + """Options to pass down to the underlying urllib3 socket + """ + + self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" + """datetime format + """ + + self.date_format = "%Y-%m-%d" + """date format + """ + + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name: str, value: Any) -> None: + object.__setattr__(self, name, value) + + @classmethod + def set_default(cls, default: Optional[Self]) -> None: + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = default + + @classmethod + def get_default_copy(cls) -> Self: + """Deprecated. Please use `get_default` instead. + + Deprecated. Please use `get_default` instead. + + :return: The configuration object. + """ + return cls.get_default() + + @classmethod + def get_default(cls) -> Self: + """Return the default configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration. + + :return: The configuration object. + """ + if cls._default is None: + cls._default = cls() + return cls._default + + @property + def logger_file(self) -> Optional[str]: + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value: Optional[str]) -> None: + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in self.logger.items(): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self) -> bool: + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value: bool) -> None: + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in self.logger.items(): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in self.logger.items(): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self) -> str: + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value: str) -> None: + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + return None + + def get_basic_auth_token(self) -> Optional[str]: + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') + + def auth_settings(self)-> AuthSettings: + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth: AuthSettings = {} + if 'user' in self.api_key: + auth['user'] = { + 'type': 'api_key', + 'in': 'header', + 'key': 'X-SLURM-USER-NAME', + 'value': self.get_api_key_with_prefix( + 'user', + ), + } + if 'token' in self.api_key: + auth['token'] = { + 'type': 'api_key', + 'in': 'header', + 'key': 'X-SLURM-USER-TOKEN', + 'value': self.get_api_key_with_prefix( + 'token', + ), + } + if self.access_token is not None: + auth['bearerAuth'] = { + 'type': 'bearer', + 'in': 'header', + 'format': 'JWT', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } + return auth + + def to_debug_report(self) -> str: + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: Slurm-25.11.2\n"\ + "SDK Package Version: 0.0.1".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self) -> List[HostSetting]: + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "", + 'description': "No description provided", + } + ] + + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT]=None, + servers: Optional[List[HostSetting]]=None, + ) -> str: + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None + :return: URL based on host settings + """ + if index is None: + return self._base_path + + variables = {} if variables is None else variables + servers = self.get_host_settings() if servers is None else servers + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url + + @property + def host(self) -> str: + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value: str) -> None: + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/slurmrest_python/exceptions.py b/slurmrest_python/exceptions.py new file mode 100644 index 0000000..733f8bd --- /dev/null +++ b/slurmrest_python/exceptions.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Optional +from typing_extensions import Self + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None) -> None: + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiAttributeError(OpenApiException, AttributeError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Raised when an attribute reference or assignment fails. + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiAttributeError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__( + self, + status=None, + reason=None, + http_resp=None, + *, + body: Optional[str] = None, + data: Optional[Any] = None, + ) -> None: + self.status = status + self.reason = reason + self.body = body + self.data = data + self.headers = None + + if http_resp: + if self.status is None: + self.status = http_resp.status + if self.reason is None: + self.reason = http_resp.reason + if self.body is None: + try: + self.body = http_resp.data.decode('utf-8') + except Exception: + pass + self.headers = http_resp.getheaders() + + @classmethod + def from_response( + cls, + *, + http_resp, + body: Optional[str], + data: Optional[Any], + ) -> Self: + if http_resp.status == 400: + raise BadRequestException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 401: + raise UnauthorizedException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 403: + raise ForbiddenException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 404: + raise NotFoundException(http_resp=http_resp, body=body, data=data) + + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + + if 500 <= http_resp.status <= 599: + raise ServiceException(http_resp=http_resp, body=body, data=data) + raise ApiException(http_resp=http_resp, body=body, data=data) + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.data or self.body: + error_message += "HTTP response body: {0}\n".format(self.data or self.body) + + return error_message + + +class BadRequestException(ApiException): + pass + + +class NotFoundException(ApiException): + pass + + +class UnauthorizedException(ApiException): + pass + + +class ForbiddenException(ApiException): + pass + + +class ServiceException(ApiException): + pass + + +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, int): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/slurmrest_python/models/__init__.py b/slurmrest_python/models/__init__.py new file mode 100644 index 0000000..af9b115 --- /dev/null +++ b/slurmrest_python/models/__init__.py @@ -0,0 +1,841 @@ +# coding: utf-8 + +# flake8: noqa +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +# import models into model package +from slurmrest_python.models.v0041_job_alloc_req import V0041JobAllocReq +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg +from slurmrest_python.models.v0041_job_desc_msg_begin_time import V0041JobDescMsgBeginTime +from slurmrest_python.models.v0041_job_desc_msg_crontab import V0041JobDescMsgCrontab +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine +from slurmrest_python.models.v0041_job_desc_msg_distribution_plane_size import V0041JobDescMsgDistributionPlaneSize +from slurmrest_python.models.v0041_job_desc_msg_kill_warning_delay import V0041JobDescMsgKillWarningDelay +from slurmrest_python.models.v0041_job_desc_msg_memory_per_cpu import V0041JobDescMsgMemoryPerCpu +from slurmrest_python.models.v0041_job_desc_msg_priority import V0041JobDescMsgPriority +from slurmrest_python.models.v0041_job_desc_msg_required_switches import V0041JobDescMsgRequiredSwitches +from slurmrest_python.models.v0041_job_desc_msg_rlimits import V0041JobDescMsgRlimits +from slurmrest_python.models.v0041_job_desc_msg_rlimits_as import V0041JobDescMsgRlimitsAs +from slurmrest_python.models.v0041_job_desc_msg_rlimits_core import V0041JobDescMsgRlimitsCore +from slurmrest_python.models.v0041_job_desc_msg_rlimits_cpu import V0041JobDescMsgRlimitsCpu +from slurmrest_python.models.v0041_job_desc_msg_rlimits_data import V0041JobDescMsgRlimitsData +from slurmrest_python.models.v0041_job_desc_msg_rlimits_fsize import V0041JobDescMsgRlimitsFsize +from slurmrest_python.models.v0041_job_desc_msg_rlimits_memlock import V0041JobDescMsgRlimitsMemlock +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nofile import V0041JobDescMsgRlimitsNofile +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nproc import V0041JobDescMsgRlimitsNproc +from slurmrest_python.models.v0041_job_desc_msg_rlimits_rss import V0041JobDescMsgRlimitsRss +from slurmrest_python.models.v0041_job_desc_msg_rlimits_stack import V0041JobDescMsgRlimitsStack +from slurmrest_python.models.v0041_job_desc_msg_segment_size import V0041JobDescMsgSegmentSize +from slurmrest_python.models.v0041_job_desc_msg_time_limit import V0041JobDescMsgTimeLimit +from slurmrest_python.models.v0041_job_desc_msg_time_minimum import V0041JobDescMsgTimeMinimum +from slurmrest_python.models.v0041_job_submit_req import V0041JobSubmitReq +from slurmrest_python.models.v0041_kill_jobs_msg import V0041KillJobsMsg +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp import V0041OpenapiAccountsAddCondResp +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_account import V0041OpenapiAccountsAddCondRespAccount +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_association_condition import V0041OpenapiAccountsAddCondRespAssociationCondition +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_str import V0041OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0041_openapi_accounts_removed_resp import V0041OpenapiAccountsRemovedResp +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp +from slurmrest_python.models.v0041_openapi_assocs_removed_resp import V0041OpenapiAssocsRemovedResp +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp +from slurmrest_python.models.v0041_openapi_clusters_removed_resp import V0041OpenapiClustersRemovedResp +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp +from slurmrest_python.models.v0041_openapi_diag_resp import V0041OpenapiDiagResp +from slurmrest_python.models.v0041_openapi_diag_resp_statistics import V0041OpenapiDiagRespStatistics +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_exit import V0041OpenapiDiagRespStatisticsBfExit +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_when_last_cycle import V0041OpenapiDiagRespStatisticsBfWhenLastCycle +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_job_states_ts import V0041OpenapiDiagRespStatisticsJobStatesTs +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner import V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_inner import V0041OpenapiDiagRespStatisticsPendingRpcsInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time import V0041OpenapiDiagRespStatisticsReqTime +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time_start import V0041OpenapiDiagRespStatisticsReqTimeStart +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_user_inner import V0041OpenapiDiagRespStatisticsRpcsByUserInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_schedule_exit import V0041OpenapiDiagRespStatisticsScheduleExit +from slurmrest_python.models.v0041_openapi_instances_resp import V0041OpenapiInstancesResp +from slurmrest_python.models.v0041_openapi_job_alloc_resp import V0041OpenapiJobAllocResp +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner import V0041OpenapiJobInfoRespJobsInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_accrue_time import V0041OpenapiJobInfoRespJobsInnerAccrueTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_job_id import V0041OpenapiJobInfoRespJobsInnerArrayJobId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_max_tasks import V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_task_id import V0041OpenapiJobInfoRespJobsInnerArrayTaskId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_billable_tres import V0041OpenapiJobInfoRespJobsInnerBillableTres +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cores_per_socket import V0041OpenapiJobInfoRespJobsInnerCoresPerSocket +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus import V0041OpenapiJobInfoRespJobsInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus_per_task import V0041OpenapiJobInfoRespJobsInnerCpusPerTask +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_deadline import V0041OpenapiJobInfoRespJobsInnerDeadline +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_delay_boot import V0041OpenapiJobInfoRespJobsInnerDelayBoot +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_eligible_time import V0041OpenapiJobInfoRespJobsInnerEligibleTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_end_time import V0041OpenapiJobInfoRespJobsInnerEndTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_exit_code import V0041OpenapiJobInfoRespJobsInnerExitCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_id import V0041OpenapiJobInfoRespJobsInnerHetJobId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_offset import V0041OpenapiJobInfoRespJobsInnerHetJobOffset +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources import V0041OpenapiJobInfoRespJobsInnerJobResources +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core import V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation import V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_cpus import V0041OpenapiJobInfoRespJobsInnerMaxCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_nodes import V0041OpenapiJobInfoRespJobsInnerMaxNodes +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_memory_per_node import V0041OpenapiJobInfoRespJobsInnerMemoryPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_node_count import V0041OpenapiJobInfoRespJobsInnerNodeCount +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_pre_sus_time import V0041OpenapiJobInfoRespJobsInnerPreSusTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preempt_time import V0041OpenapiJobInfoRespJobsInnerPreemptTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preemptable_time import V0041OpenapiJobInfoRespJobsInnerPreemptableTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_resize_time import V0041OpenapiJobInfoRespJobsInnerResizeTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_sockets_per_node import V0041OpenapiJobInfoRespJobsInnerSocketsPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_start_time import V0041OpenapiJobInfoRespJobsInnerStartTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_submit_time import V0041OpenapiJobInfoRespJobsInnerSubmitTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_suspend_time import V0041OpenapiJobInfoRespJobsInnerSuspendTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks import V0041OpenapiJobInfoRespJobsInnerTasks +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_board import V0041OpenapiJobInfoRespJobsInnerTasksPerBoard +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_core import V0041OpenapiJobInfoRespJobsInnerTasksPerCore +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_node import V0041OpenapiJobInfoRespJobsInnerTasksPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket import V0041OpenapiJobInfoRespJobsInnerTasksPerSocket +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres import V0041OpenapiJobInfoRespJobsInnerTasksPerTres +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_threads_per_core import V0041OpenapiJobInfoRespJobsInnerThreadsPerCore +from slurmrest_python.models.v0041_openapi_job_info_resp_last_backfill import V0041OpenapiJobInfoRespLastBackfill +from slurmrest_python.models.v0041_openapi_job_info_resp_last_update import V0041OpenapiJobInfoRespLastUpdate +from slurmrest_python.models.v0041_openapi_job_post_response import V0041OpenapiJobPostResponse +from slurmrest_python.models.v0041_openapi_job_post_response_results_inner import V0041OpenapiJobPostResponseResultsInner +from slurmrest_python.models.v0041_openapi_job_submit_response import V0041OpenapiJobSubmitResponse +from slurmrest_python.models.v0041_openapi_job_submit_response_result import V0041OpenapiJobSubmitResponseResult +from slurmrest_python.models.v0041_openapi_kill_jobs_resp import V0041OpenapiKillJobsResp +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner import V0041OpenapiKillJobsRespStatusInner +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_job_id import V0041OpenapiKillJobsRespStatusInnerJobId +from slurmrest_python.models.v0041_openapi_licenses_resp import V0041OpenapiLicensesResp +from slurmrest_python.models.v0041_openapi_licenses_resp_last_update import V0041OpenapiLicensesRespLastUpdate +from slurmrest_python.models.v0041_openapi_licenses_resp_licenses_inner import V0041OpenapiLicensesRespLicensesInner +from slurmrest_python.models.v0041_openapi_nodes_resp import V0041OpenapiNodesResp +from slurmrest_python.models.v0041_openapi_nodes_resp_last_update import V0041OpenapiNodesRespLastUpdate +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner import V0041OpenapiNodesRespNodesInner +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_boot_time import V0041OpenapiNodesRespNodesInnerBootTime +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy import V0041OpenapiNodesRespNodesInnerEnergy +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy_current_watts import V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_free_mem import V0041OpenapiNodesRespNodesInnerFreeMem +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_last_busy import V0041OpenapiNodesRespNodesInnerLastBusy +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_reason_changed_at import V0041OpenapiNodesRespNodesInnerReasonChangedAt +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_resume_after import V0041OpenapiNodesRespNodesInnerResumeAfter +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time import V0041OpenapiNodesRespNodesInnerSlurmdStartTime +from slurmrest_python.models.v0041_openapi_partition_resp import V0041OpenapiPartitionResp +from slurmrest_python.models.v0041_openapi_partition_resp_last_update import V0041OpenapiPartitionRespLastUpdate +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner import V0041OpenapiPartitionRespPartitionsInner +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_accounts import V0041OpenapiPartitionRespPartitionsInnerAccounts +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_cpus import V0041OpenapiPartitionRespPartitionsInnerCpus +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults import V0041OpenapiPartitionRespPartitionsInnerDefaults +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_time import V0041OpenapiPartitionRespPartitionsInnerDefaultsTime +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_groups import V0041OpenapiPartitionRespPartitionsInnerGroups +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums import V0041OpenapiPartitionRespPartitionsInnerMaximums +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_nodes import V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit import V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe import V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_time import V0041OpenapiPartitionRespPartitionsInnerMaximumsTime +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_minimums import V0041OpenapiPartitionRespPartitionsInnerMinimums +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_nodes import V0041OpenapiPartitionRespPartitionsInnerNodes +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_partition import V0041OpenapiPartitionRespPartitionsInnerPartition +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_priority import V0041OpenapiPartitionRespPartitionsInnerPriority +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_qos import V0041OpenapiPartitionRespPartitionsInnerQos +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_suspend_time import V0041OpenapiPartitionRespPartitionsInnerSuspendTime +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts import V0041OpenapiPartitionRespPartitionsInnerTimeouts +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_resume import V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_suspend import V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_tres import V0041OpenapiPartitionRespPartitionsInnerTres +from slurmrest_python.models.v0041_openapi_ping_array_resp import V0041OpenapiPingArrayResp +from slurmrest_python.models.v0041_openapi_ping_array_resp_pings_inner import V0041OpenapiPingArrayRespPingsInner +from slurmrest_python.models.v0041_openapi_reservation_resp import V0041OpenapiReservationResp +from slurmrest_python.models.v0041_openapi_reservation_resp_last_update import V0041OpenapiReservationRespLastUpdate +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner import V0041OpenapiReservationRespReservationsInner +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner import V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_end_time import V0041OpenapiReservationRespReservationsInnerEndTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed import V0041OpenapiReservationRespReservationsInnerPurgeCompleted +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed_time import V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_start_time import V0041OpenapiReservationRespReservationsInnerStartTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_watts import V0041OpenapiReservationRespReservationsInnerWatts +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp +from slurmrest_python.models.v0041_openapi_shares_resp import V0041OpenapiSharesResp +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm_version import V0041OpenapiSharesRespMetaSlurmVersion +from slurmrest_python.models.v0041_openapi_shares_resp_shares import V0041OpenapiSharesRespShares +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner import V0041OpenapiSharesRespSharesSharesInner +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_fairshare import V0041OpenapiSharesRespSharesSharesInnerFairshare +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares import V0041OpenapiSharesRespSharesSharesInnerShares +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares_normalized import V0041OpenapiSharesRespSharesSharesInnerSharesNormalized +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres import V0041OpenapiSharesRespSharesSharesInnerTres +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner import V0041OpenapiSharesRespSharesSharesInnerTresUsageInner +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_usage_normalized import V0041OpenapiSharesRespSharesSharesInnerUsageNormalized +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp import V0041OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner import V0041OpenapiSlurmdbdConfigRespAccountsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner import V0041OpenapiSlurmdbdConfigRespAssociationsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_min import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_priority import V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner import V0041OpenapiSlurmdbdConfigRespClustersInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner import V0041OpenapiSlurmdbdConfigRespInstancesInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner_time import V0041OpenapiSlurmdbdConfigRespInstancesInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner import V0041OpenapiSlurmdbdConfigRespQosInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits import V0041OpenapiSlurmdbdConfigRespQosInnerLimits +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt import V0041OpenapiSlurmdbdConfigRespQosInnerPreempt +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time import V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_priority import V0041OpenapiSlurmdbdConfigRespQosInnerPriority +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor import V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner import V0041OpenapiSlurmdbdConfigRespUsersInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_default import V0041OpenapiSlurmdbdConfigRespUsersInnerDefault +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp import V0041OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner import V0041OpenapiSlurmdbdJobsRespJobsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array import V0041OpenapiSlurmdbdJobsRespJobsInnerArray +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association import V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code import V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het import V0041OpenapiSlurmdbdJobsRespJobsInnerHet +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required import V0041OpenapiSlurmdbdJobsRespJobsInnerRequired +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation import V0041OpenapiSlurmdbdJobsRespJobsInnerReservation +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state import V0041OpenapiSlurmdbdJobsRespJobsInnerState +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned import V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerTres +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey import V0041OpenapiSlurmdbdJobsRespJobsInnerWckey +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_removed_resp import V0041OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp import V0041OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics import V0041OpenapiSlurmdbdStatsRespStatistics +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups import V0041OpenapiSlurmdbdStatsRespStatisticsRollups +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_users_inner import V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner +from slurmrest_python.models.v0041_openapi_tres_resp import V0041OpenapiTresResp +from slurmrest_python.models.v0041_openapi_users_add_cond_resp import V0041OpenapiUsersAddCondResp +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition import V0041OpenapiUsersAddCondRespAssociationCondition +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association import V0041OpenapiUsersAddCondRespAssociationConditionAssociation +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpwall import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_str import V0041OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_user import V0041OpenapiUsersAddCondRespUser +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp +from slurmrest_python.models.v0041_openapi_wckey_removed_resp import V0041OpenapiWckeyRemovedResp +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp +from slurmrest_python.models.v0041_update_node_msg import V0041UpdateNodeMsg +from slurmrest_python.models.v0041_update_node_msg_resume_after import V0041UpdateNodeMsgResumeAfter +from slurmrest_python.models.v0041_update_node_msg_weight import V0041UpdateNodeMsgWeight +from slurmrest_python.models.v0042_account import V0042Account +from slurmrest_python.models.v0042_account_short import V0042AccountShort +from slurmrest_python.models.v0042_accounting import V0042Accounting +from slurmrest_python.models.v0042_accounts_add_cond import V0042AccountsAddCond +from slurmrest_python.models.v0042_acct_gather_energy import V0042AcctGatherEnergy +from slurmrest_python.models.v0042_assoc import V0042Assoc +from slurmrest_python.models.v0042_assoc_max import V0042AssocMax +from slurmrest_python.models.v0042_assoc_max_jobs import V0042AssocMaxJobs +from slurmrest_python.models.v0042_assoc_max_jobs_per import V0042AssocMaxJobsPer +from slurmrest_python.models.v0042_assoc_max_per import V0042AssocMaxPer +from slurmrest_python.models.v0042_assoc_max_per_account import V0042AssocMaxPerAccount +from slurmrest_python.models.v0042_assoc_max_tres import V0042AssocMaxTres +from slurmrest_python.models.v0042_assoc_max_tres_group import V0042AssocMaxTresGroup +from slurmrest_python.models.v0042_assoc_max_tres_minutes import V0042AssocMaxTresMinutes +from slurmrest_python.models.v0042_assoc_max_tres_per import V0042AssocMaxTresPer +from slurmrest_python.models.v0042_assoc_min import V0042AssocMin +from slurmrest_python.models.v0042_assoc_rec_set import V0042AssocRecSet +from slurmrest_python.models.v0042_assoc_shares_obj_wrap import V0042AssocSharesObjWrap +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_fairshare import V0042AssocSharesObjWrapFairshare +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_tres import V0042AssocSharesObjWrapTres +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort +from slurmrest_python.models.v0042_bf_exit_fields import V0042BfExitFields +from slurmrest_python.models.v0042_cluster_rec import V0042ClusterRec +from slurmrest_python.models.v0042_cluster_rec_associations import V0042ClusterRecAssociations +from slurmrest_python.models.v0042_controller_ping import V0042ControllerPing +from slurmrest_python.models.v0042_coord import V0042Coord +from slurmrest_python.models.v0042_cron_entry import V0042CronEntry +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct +from slurmrest_python.models.v0042_instance import V0042Instance +from slurmrest_python.models.v0042_job import V0042Job +from slurmrest_python.models.v0042_job_alloc_req import V0042JobAllocReq +from slurmrest_python.models.v0042_job_array import V0042JobArray +from slurmrest_python.models.v0042_job_array_response_msg_entry import V0042JobArrayResponseMsgEntry +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg +from slurmrest_python.models.v0042_job_desc_msg_rlimits import V0042JobDescMsgRlimits +from slurmrest_python.models.v0042_job_het import V0042JobHet +from slurmrest_python.models.v0042_job_info import V0042JobInfo +from slurmrest_python.models.v0042_job_required import V0042JobRequired +from slurmrest_python.models.v0042_job_res import V0042JobRes +from slurmrest_python.models.v0042_job_res_core import V0042JobResCore +from slurmrest_python.models.v0042_job_res_node import V0042JobResNode +from slurmrest_python.models.v0042_job_res_nodes import V0042JobResNodes +from slurmrest_python.models.v0042_job_res_socket import V0042JobResSocket +from slurmrest_python.models.v0042_job_state import V0042JobState +from slurmrest_python.models.v0042_job_submit_req import V0042JobSubmitReq +from slurmrest_python.models.v0042_job_time import V0042JobTime +from slurmrest_python.models.v0042_job_tres import V0042JobTres +from slurmrest_python.models.v0042_kill_jobs_msg import V0042KillJobsMsg +from slurmrest_python.models.v0042_kill_jobs_resp_job import V0042KillJobsRespJob +from slurmrest_python.models.v0042_license import V0042License +from slurmrest_python.models.v0042_node import V0042Node +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp import V0042OpenapiAccountsAddCondResp +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp_str import V0042OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0042_openapi_accounts_removed_resp import V0042OpenapiAccountsRemovedResp +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp +from slurmrest_python.models.v0042_openapi_assocs_removed_resp import V0042OpenapiAssocsRemovedResp +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp +from slurmrest_python.models.v0042_openapi_clusters_removed_resp import V0042OpenapiClustersRemovedResp +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp +from slurmrest_python.models.v0042_openapi_diag_resp import V0042OpenapiDiagResp +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_instances_resp import V0042OpenapiInstancesResp +from slurmrest_python.models.v0042_openapi_job_alloc_resp import V0042OpenapiJobAllocResp +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp +from slurmrest_python.models.v0042_openapi_job_post_response import V0042OpenapiJobPostResponse +from slurmrest_python.models.v0042_openapi_job_submit_response import V0042OpenapiJobSubmitResponse +from slurmrest_python.models.v0042_openapi_kill_job_resp import V0042OpenapiKillJobResp +from slurmrest_python.models.v0042_openapi_kill_jobs_resp import V0042OpenapiKillJobsResp +from slurmrest_python.models.v0042_openapi_licenses_resp import V0042OpenapiLicensesResp +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_nodes_resp import V0042OpenapiNodesResp +from slurmrest_python.models.v0042_openapi_partition_resp import V0042OpenapiPartitionResp +from slurmrest_python.models.v0042_openapi_ping_array_resp import V0042OpenapiPingArrayResp +from slurmrest_python.models.v0042_openapi_reservation_resp import V0042OpenapiReservationResp +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp +from slurmrest_python.models.v0042_openapi_shares_resp import V0042OpenapiSharesResp +from slurmrest_python.models.v0042_openapi_slurmdbd_config_resp import V0042OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0042_openapi_slurmdbd_jobs_resp import V0042OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0042_openapi_slurmdbd_ping_resp import V0042OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_removed_resp import V0042OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0042_openapi_slurmdbd_stats_resp import V0042OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0042_openapi_tres_resp import V0042OpenapiTresResp +from slurmrest_python.models.v0042_openapi_users_add_cond_resp import V0042OpenapiUsersAddCondResp +from slurmrest_python.models.v0042_openapi_users_add_cond_resp_str import V0042OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_openapi_wckey_removed_resp import V0042OpenapiWckeyRemovedResp +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp +from slurmrest_python.models.v0042_part_prio import V0042PartPrio +from slurmrest_python.models.v0042_partition_info import V0042PartitionInfo +from slurmrest_python.models.v0042_partition_info_defaults import V0042PartitionInfoDefaults +from slurmrest_python.models.v0042_partition_info_maximums import V0042PartitionInfoMaximums +from slurmrest_python.models.v0042_partition_info_maximums_oversubscribe import V0042PartitionInfoMaximumsOversubscribe +from slurmrest_python.models.v0042_partition_info_partition import V0042PartitionInfoPartition +from slurmrest_python.models.v0042_partition_info_timeouts import V0042PartitionInfoTimeouts +from slurmrest_python.models.v0042_process_exit_code_verbose import V0042ProcessExitCodeVerbose +from slurmrest_python.models.v0042_process_exit_code_verbose_signal import V0042ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0042_qos import V0042Qos +from slurmrest_python.models.v0042_qos_limits import V0042QosLimits +from slurmrest_python.models.v0042_qos_limits_max import V0042QosLimitsMax +from slurmrest_python.models.v0042_qos_limits_max_active_jobs import V0042QosLimitsMaxActiveJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs import V0042QosLimitsMaxJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs import V0042QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs_per import V0042QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0042_qos_limits_max_tres import V0042QosLimitsMaxTres +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes import V0042QosLimitsMaxTresMinutes +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes_per import V0042QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0042_qos_limits_max_tres_per import V0042QosLimitsMaxTresPer +from slurmrest_python.models.v0042_qos_limits_max_wall_clock import V0042QosLimitsMaxWallClock +from slurmrest_python.models.v0042_qos_limits_max_wall_clock_per import V0042QosLimitsMaxWallClockPer +from slurmrest_python.models.v0042_qos_limits_min import V0042QosLimitsMin +from slurmrest_python.models.v0042_qos_limits_min_tres import V0042QosLimitsMinTres +from slurmrest_python.models.v0042_qos_limits_min_tres_per import V0042QosLimitsMinTresPer +from slurmrest_python.models.v0042_qos_preempt import V0042QosPreempt +from slurmrest_python.models.v0042_reservation_core_spec import V0042ReservationCoreSpec +from slurmrest_python.models.v0042_reservation_info import V0042ReservationInfo +from slurmrest_python.models.v0042_reservation_info_purge_completed import V0042ReservationInfoPurgeCompleted +from slurmrest_python.models.v0042_rollup_stats import V0042RollupStats +from slurmrest_python.models.v0042_schedule_exit_fields import V0042ScheduleExitFields +from slurmrest_python.models.v0042_shares_float128_tres import V0042SharesFloat128Tres +from slurmrest_python.models.v0042_shares_resp_msg import V0042SharesRespMsg +from slurmrest_python.models.v0042_shares_uint64_tres import V0042SharesUint64Tres +from slurmrest_python.models.v0042_slurmdbd_ping import V0042SlurmdbdPing +from slurmrest_python.models.v0042_stats_msg import V0042StatsMsg +from slurmrest_python.models.v0042_stats_msg_rpc_dump import V0042StatsMsgRpcDump +from slurmrest_python.models.v0042_stats_msg_rpc_queue import V0042StatsMsgRpcQueue +from slurmrest_python.models.v0042_stats_msg_rpc_type import V0042StatsMsgRpcType +from slurmrest_python.models.v0042_stats_msg_rpc_user import V0042StatsMsgRpcUser +from slurmrest_python.models.v0042_stats_rec import V0042StatsRec +from slurmrest_python.models.v0042_stats_rpc import V0042StatsRpc +from slurmrest_python.models.v0042_stats_user import V0042StatsUser +from slurmrest_python.models.v0042_step import V0042Step +from slurmrest_python.models.v0042_step_cpu import V0042StepCPU +from slurmrest_python.models.v0042_step_cpu_requested_frequency import V0042StepCPURequestedFrequency +from slurmrest_python.models.v0042_step_nodes import V0042StepNodes +from slurmrest_python.models.v0042_step_statistics import V0042StepStatistics +from slurmrest_python.models.v0042_step_statistics_energy import V0042StepStatisticsEnergy +from slurmrest_python.models.v0042_step_time import V0042StepTime +from slurmrest_python.models.v0042_step_tres import V0042StepTres +from slurmrest_python.models.v0042_step_tres_consumed import V0042StepTresConsumed +from slurmrest_python.models.v0042_step_tres_requested import V0042StepTresRequested +from slurmrest_python.models.v0042_tres import V0042Tres +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from slurmrest_python.models.v0042_update_node_msg import V0042UpdateNodeMsg +from slurmrest_python.models.v0042_user import V0042User +from slurmrest_python.models.v0042_user_default import V0042UserDefault +from slurmrest_python.models.v0042_user_short import V0042UserShort +from slurmrest_python.models.v0042_users_add_cond import V0042UsersAddCond +from slurmrest_python.models.v0042_wckey import V0042Wckey +from slurmrest_python.models.v0042_wckey_tag_struct import V0042WckeyTagStruct +from slurmrest_python.models.v0043_account import V0043Account +from slurmrest_python.models.v0043_account_short import V0043AccountShort +from slurmrest_python.models.v0043_accounting import V0043Accounting +from slurmrest_python.models.v0043_accounts_add_cond import V0043AccountsAddCond +from slurmrest_python.models.v0043_acct_gather_energy import V0043AcctGatherEnergy +from slurmrest_python.models.v0043_assoc import V0043Assoc +from slurmrest_python.models.v0043_assoc_max import V0043AssocMax +from slurmrest_python.models.v0043_assoc_max_jobs import V0043AssocMaxJobs +from slurmrest_python.models.v0043_assoc_max_jobs_per import V0043AssocMaxJobsPer +from slurmrest_python.models.v0043_assoc_max_per import V0043AssocMaxPer +from slurmrest_python.models.v0043_assoc_max_per_account import V0043AssocMaxPerAccount +from slurmrest_python.models.v0043_assoc_max_tres import V0043AssocMaxTres +from slurmrest_python.models.v0043_assoc_max_tres_group import V0043AssocMaxTresGroup +from slurmrest_python.models.v0043_assoc_max_tres_minutes import V0043AssocMaxTresMinutes +from slurmrest_python.models.v0043_assoc_max_tres_per import V0043AssocMaxTresPer +from slurmrest_python.models.v0043_assoc_min import V0043AssocMin +from slurmrest_python.models.v0043_assoc_rec_set import V0043AssocRecSet +from slurmrest_python.models.v0043_assoc_shares_obj_wrap import V0043AssocSharesObjWrap +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_fairshare import V0043AssocSharesObjWrapFairshare +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_tres import V0043AssocSharesObjWrapTres +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort +from slurmrest_python.models.v0043_bf_exit_fields import V0043BfExitFields +from slurmrest_python.models.v0043_cluster_rec import V0043ClusterRec +from slurmrest_python.models.v0043_cluster_rec_associations import V0043ClusterRecAssociations +from slurmrest_python.models.v0043_controller_ping import V0043ControllerPing +from slurmrest_python.models.v0043_coord import V0043Coord +from slurmrest_python.models.v0043_cron_entry import V0043CronEntry +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct +from slurmrest_python.models.v0043_instance import V0043Instance +from slurmrest_python.models.v0043_job import V0043Job +from slurmrest_python.models.v0043_job_alloc_req import V0043JobAllocReq +from slurmrest_python.models.v0043_job_array import V0043JobArray +from slurmrest_python.models.v0043_job_array_response_msg_entry import V0043JobArrayResponseMsgEntry +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg +from slurmrest_python.models.v0043_job_desc_msg_rlimits import V0043JobDescMsgRlimits +from slurmrest_python.models.v0043_job_het import V0043JobHet +from slurmrest_python.models.v0043_job_info import V0043JobInfo +from slurmrest_python.models.v0043_job_required import V0043JobRequired +from slurmrest_python.models.v0043_job_res import V0043JobRes +from slurmrest_python.models.v0043_job_res_core import V0043JobResCore +from slurmrest_python.models.v0043_job_res_node import V0043JobResNode +from slurmrest_python.models.v0043_job_res_nodes import V0043JobResNodes +from slurmrest_python.models.v0043_job_res_socket import V0043JobResSocket +from slurmrest_python.models.v0043_job_submit_req import V0043JobSubmitReq +from slurmrest_python.models.v0043_job_time import V0043JobTime +from slurmrest_python.models.v0043_job_tres import V0043JobTres +from slurmrest_python.models.v0043_kill_jobs_msg import V0043KillJobsMsg +from slurmrest_python.models.v0043_kill_jobs_resp_job import V0043KillJobsRespJob +from slurmrest_python.models.v0043_license import V0043License +from slurmrest_python.models.v0043_node import V0043Node +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp import V0043OpenapiAccountsAddCondResp +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp_str import V0043OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0043_openapi_accounts_removed_resp import V0043OpenapiAccountsRemovedResp +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp +from slurmrest_python.models.v0043_openapi_assocs_removed_resp import V0043OpenapiAssocsRemovedResp +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp +from slurmrest_python.models.v0043_openapi_clusters_removed_resp import V0043OpenapiClustersRemovedResp +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp +from slurmrest_python.models.v0043_openapi_diag_resp import V0043OpenapiDiagResp +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_instances_resp import V0043OpenapiInstancesResp +from slurmrest_python.models.v0043_openapi_job_alloc_resp import V0043OpenapiJobAllocResp +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp +from slurmrest_python.models.v0043_openapi_job_post_response import V0043OpenapiJobPostResponse +from slurmrest_python.models.v0043_openapi_job_submit_response import V0043OpenapiJobSubmitResponse +from slurmrest_python.models.v0043_openapi_kill_job_resp import V0043OpenapiKillJobResp +from slurmrest_python.models.v0043_openapi_kill_jobs_resp import V0043OpenapiKillJobsResp +from slurmrest_python.models.v0043_openapi_licenses_resp import V0043OpenapiLicensesResp +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_nodes_resp import V0043OpenapiNodesResp +from slurmrest_python.models.v0043_openapi_partition_resp import V0043OpenapiPartitionResp +from slurmrest_python.models.v0043_openapi_ping_array_resp import V0043OpenapiPingArrayResp +from slurmrest_python.models.v0043_openapi_reservation_mod_resp import V0043OpenapiReservationModResp +from slurmrest_python.models.v0043_openapi_reservation_resp import V0043OpenapiReservationResp +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp +from slurmrest_python.models.v0043_openapi_shares_resp import V0043OpenapiSharesResp +from slurmrest_python.models.v0043_openapi_slurmdbd_config_resp import V0043OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0043_openapi_slurmdbd_jobs_resp import V0043OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0043_openapi_slurmdbd_ping_resp import V0043OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_removed_resp import V0043OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0043_openapi_slurmdbd_stats_resp import V0043OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0043_openapi_tres_resp import V0043OpenapiTresResp +from slurmrest_python.models.v0043_openapi_users_add_cond_resp import V0043OpenapiUsersAddCondResp +from slurmrest_python.models.v0043_openapi_users_add_cond_resp_str import V0043OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_openapi_wckey_removed_resp import V0043OpenapiWckeyRemovedResp +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp +from slurmrest_python.models.v0043_part_prio import V0043PartPrio +from slurmrest_python.models.v0043_partition_info import V0043PartitionInfo +from slurmrest_python.models.v0043_partition_info_defaults import V0043PartitionInfoDefaults +from slurmrest_python.models.v0043_partition_info_maximums import V0043PartitionInfoMaximums +from slurmrest_python.models.v0043_partition_info_timeouts import V0043PartitionInfoTimeouts +from slurmrest_python.models.v0043_process_exit_code_verbose import V0043ProcessExitCodeVerbose +from slurmrest_python.models.v0043_process_exit_code_verbose_signal import V0043ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0043_qos import V0043Qos +from slurmrest_python.models.v0043_qos_limits import V0043QosLimits +from slurmrest_python.models.v0043_qos_limits_max import V0043QosLimitsMax +from slurmrest_python.models.v0043_qos_limits_max_active_jobs import V0043QosLimitsMaxActiveJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs import V0043QosLimitsMaxJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs import V0043QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs_per import V0043QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0043_qos_limits_max_tres import V0043QosLimitsMaxTres +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes import V0043QosLimitsMaxTresMinutes +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes_per import V0043QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0043_qos_limits_max_tres_per import V0043QosLimitsMaxTresPer +from slurmrest_python.models.v0043_qos_limits_max_wall_clock import V0043QosLimitsMaxWallClock +from slurmrest_python.models.v0043_qos_limits_max_wall_clock_per import V0043QosLimitsMaxWallClockPer +from slurmrest_python.models.v0043_qos_limits_min import V0043QosLimitsMin +from slurmrest_python.models.v0043_qos_limits_min_tres import V0043QosLimitsMinTres +from slurmrest_python.models.v0043_qos_limits_min_tres_per import V0043QosLimitsMinTresPer +from slurmrest_python.models.v0043_qos_preempt import V0043QosPreempt +from slurmrest_python.models.v0043_reservation_core_spec import V0043ReservationCoreSpec +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg +from slurmrest_python.models.v0043_reservation_info import V0043ReservationInfo +from slurmrest_python.models.v0043_reservation_info_purge_completed import V0043ReservationInfoPurgeCompleted +from slurmrest_python.models.v0043_reservation_mod_req import V0043ReservationModReq +from slurmrest_python.models.v0043_rollup_stats import V0043RollupStats +from slurmrest_python.models.v0043_schedule_exit_fields import V0043ScheduleExitFields +from slurmrest_python.models.v0043_shares_float128_tres import V0043SharesFloat128Tres +from slurmrest_python.models.v0043_shares_resp_msg import V0043SharesRespMsg +from slurmrest_python.models.v0043_shares_uint64_tres import V0043SharesUint64Tres +from slurmrest_python.models.v0043_slurmdbd_ping import V0043SlurmdbdPing +from slurmrest_python.models.v0043_stats_msg import V0043StatsMsg +from slurmrest_python.models.v0043_stats_msg_rpc_dump import V0043StatsMsgRpcDump +from slurmrest_python.models.v0043_stats_msg_rpc_queue import V0043StatsMsgRpcQueue +from slurmrest_python.models.v0043_stats_msg_rpc_type import V0043StatsMsgRpcType +from slurmrest_python.models.v0043_stats_msg_rpc_user import V0043StatsMsgRpcUser +from slurmrest_python.models.v0043_stats_rec import V0043StatsRec +from slurmrest_python.models.v0043_stats_rpc import V0043StatsRpc +from slurmrest_python.models.v0043_stats_user import V0043StatsUser +from slurmrest_python.models.v0043_step import V0043Step +from slurmrest_python.models.v0043_step_cpu import V0043StepCPU +from slurmrest_python.models.v0043_step_cpu_requested_frequency import V0043StepCPURequestedFrequency +from slurmrest_python.models.v0043_step_nodes import V0043StepNodes +from slurmrest_python.models.v0043_step_statistics import V0043StepStatistics +from slurmrest_python.models.v0043_step_statistics_energy import V0043StepStatisticsEnergy +from slurmrest_python.models.v0043_step_time import V0043StepTime +from slurmrest_python.models.v0043_step_tres import V0043StepTres +from slurmrest_python.models.v0043_step_tres_consumed import V0043StepTresConsumed +from slurmrest_python.models.v0043_step_tres_requested import V0043StepTresRequested +from slurmrest_python.models.v0043_tres import V0043Tres +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from slurmrest_python.models.v0043_update_node_msg import V0043UpdateNodeMsg +from slurmrest_python.models.v0043_user import V0043User +from slurmrest_python.models.v0043_user_short import V0043UserShort +from slurmrest_python.models.v0043_users_add_cond import V0043UsersAddCond +from slurmrest_python.models.v0043_wckey import V0043Wckey +from slurmrest_python.models.v0043_wckey_tag_struct import V0043WckeyTagStruct +from slurmrest_python.models.v0044_account import V0044Account +from slurmrest_python.models.v0044_account_short import V0044AccountShort +from slurmrest_python.models.v0044_accounting import V0044Accounting +from slurmrest_python.models.v0044_accounting_allocated import V0044AccountingAllocated +from slurmrest_python.models.v0044_accounts_add_cond import V0044AccountsAddCond +from slurmrest_python.models.v0044_acct_gather_energy import V0044AcctGatherEnergy +from slurmrest_python.models.v0044_assoc import V0044Assoc +from slurmrest_python.models.v0044_assoc_max import V0044AssocMax +from slurmrest_python.models.v0044_assoc_max_jobs import V0044AssocMaxJobs +from slurmrest_python.models.v0044_assoc_max_jobs_per import V0044AssocMaxJobsPer +from slurmrest_python.models.v0044_assoc_max_per import V0044AssocMaxPer +from slurmrest_python.models.v0044_assoc_max_per_account import V0044AssocMaxPerAccount +from slurmrest_python.models.v0044_assoc_max_tres import V0044AssocMaxTres +from slurmrest_python.models.v0044_assoc_max_tres_group import V0044AssocMaxTresGroup +from slurmrest_python.models.v0044_assoc_max_tres_minutes import V0044AssocMaxTresMinutes +from slurmrest_python.models.v0044_assoc_max_tres_per import V0044AssocMaxTresPer +from slurmrest_python.models.v0044_assoc_min import V0044AssocMin +from slurmrest_python.models.v0044_assoc_rec_set import V0044AssocRecSet +from slurmrest_python.models.v0044_assoc_shares_obj_wrap import V0044AssocSharesObjWrap +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_fairshare import V0044AssocSharesObjWrapFairshare +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_tres import V0044AssocSharesObjWrapTres +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort +from slurmrest_python.models.v0044_bf_exit_fields import V0044BfExitFields +from slurmrest_python.models.v0044_cluster_rec import V0044ClusterRec +from slurmrest_python.models.v0044_cluster_rec_associations import V0044ClusterRecAssociations +from slurmrest_python.models.v0044_controller_ping import V0044ControllerPing +from slurmrest_python.models.v0044_coord import V0044Coord +from slurmrest_python.models.v0044_cron_entry import V0044CronEntry +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct +from slurmrest_python.models.v0044_instance import V0044Instance +from slurmrest_python.models.v0044_instance_time import V0044InstanceTime +from slurmrest_python.models.v0044_job import V0044Job +from slurmrest_python.models.v0044_job_alloc_req import V0044JobAllocReq +from slurmrest_python.models.v0044_job_array import V0044JobArray +from slurmrest_python.models.v0044_job_array_response_msg_entry import V0044JobArrayResponseMsgEntry +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg +from slurmrest_python.models.v0044_job_desc_msg_rlimits import V0044JobDescMsgRlimits +from slurmrest_python.models.v0044_job_het import V0044JobHet +from slurmrest_python.models.v0044_job_info import V0044JobInfo +from slurmrest_python.models.v0044_job_modify import V0044JobModify +from slurmrest_python.models.v0044_job_modify_tres import V0044JobModifyTres +from slurmrest_python.models.v0044_job_required import V0044JobRequired +from slurmrest_python.models.v0044_job_res import V0044JobRes +from slurmrest_python.models.v0044_job_res_core import V0044JobResCore +from slurmrest_python.models.v0044_job_res_node import V0044JobResNode +from slurmrest_python.models.v0044_job_res_nodes import V0044JobResNodes +from slurmrest_python.models.v0044_job_res_socket import V0044JobResSocket +from slurmrest_python.models.v0044_job_reservation import V0044JobReservation +from slurmrest_python.models.v0044_job_state import V0044JobState +from slurmrest_python.models.v0044_job_submit_req import V0044JobSubmitReq +from slurmrest_python.models.v0044_job_time import V0044JobTime +from slurmrest_python.models.v0044_job_tres import V0044JobTres +from slurmrest_python.models.v0044_kill_jobs_msg import V0044KillJobsMsg +from slurmrest_python.models.v0044_kill_jobs_resp_job import V0044KillJobsRespJob +from slurmrest_python.models.v0044_license import V0044License +from slurmrest_python.models.v0044_node import V0044Node +from slurmrest_python.models.v0044_node_gres_layout import V0044NodeGresLayout +from slurmrest_python.models.v0044_node_resource_layout import V0044NodeResourceLayout +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp import V0044OpenapiAccountsAddCondResp +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp_str import V0044OpenapiAccountsAddCondRespStr +from slurmrest_python.models.v0044_openapi_accounts_removed_resp import V0044OpenapiAccountsRemovedResp +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp +from slurmrest_python.models.v0044_openapi_assocs_removed_resp import V0044OpenapiAssocsRemovedResp +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp +from slurmrest_python.models.v0044_openapi_clusters_removed_resp import V0044OpenapiClustersRemovedResp +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp +from slurmrest_python.models.v0044_openapi_create_node_req import V0044OpenapiCreateNodeReq +from slurmrest_python.models.v0044_openapi_diag_resp import V0044OpenapiDiagResp +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_hostlist_req_resp import V0044OpenapiHostlistReqResp +from slurmrest_python.models.v0044_openapi_hostnames_req_resp import V0044OpenapiHostnamesReqResp +from slurmrest_python.models.v0044_openapi_instances_resp import V0044OpenapiInstancesResp +from slurmrest_python.models.v0044_openapi_job_alloc_resp import V0044OpenapiJobAllocResp +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp +from slurmrest_python.models.v0044_openapi_job_modify_req import V0044OpenapiJobModifyReq +from slurmrest_python.models.v0044_openapi_job_modify_resp import V0044OpenapiJobModifyResp +from slurmrest_python.models.v0044_openapi_job_post_response import V0044OpenapiJobPostResponse +from slurmrest_python.models.v0044_openapi_job_submit_response import V0044OpenapiJobSubmitResponse +from slurmrest_python.models.v0044_openapi_kill_job_resp import V0044OpenapiKillJobResp +from slurmrest_python.models.v0044_openapi_kill_jobs_resp import V0044OpenapiKillJobsResp +from slurmrest_python.models.v0044_openapi_licenses_resp import V0044OpenapiLicensesResp +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_nodes_resp import V0044OpenapiNodesResp +from slurmrest_python.models.v0044_openapi_partition_resp import V0044OpenapiPartitionResp +from slurmrest_python.models.v0044_openapi_ping_array_resp import V0044OpenapiPingArrayResp +from slurmrest_python.models.v0044_openapi_reservation_mod_resp import V0044OpenapiReservationModResp +from slurmrest_python.models.v0044_openapi_reservation_resp import V0044OpenapiReservationResp +from slurmrest_python.models.v0044_openapi_resource_layout_resp import V0044OpenapiResourceLayoutResp +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp +from slurmrest_python.models.v0044_openapi_shares_resp import V0044OpenapiSharesResp +from slurmrest_python.models.v0044_openapi_slurmdbd_config_resp import V0044OpenapiSlurmdbdConfigResp +from slurmrest_python.models.v0044_openapi_slurmdbd_jobs_resp import V0044OpenapiSlurmdbdJobsResp +from slurmrest_python.models.v0044_openapi_slurmdbd_ping_resp import V0044OpenapiSlurmdbdPingResp +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_removed_resp import V0044OpenapiSlurmdbdQosRemovedResp +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp +from slurmrest_python.models.v0044_openapi_slurmdbd_stats_resp import V0044OpenapiSlurmdbdStatsResp +from slurmrest_python.models.v0044_openapi_tres_resp import V0044OpenapiTresResp +from slurmrest_python.models.v0044_openapi_users_add_cond_resp import V0044OpenapiUsersAddCondResp +from slurmrest_python.models.v0044_openapi_users_add_cond_resp_str import V0044OpenapiUsersAddCondRespStr +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_openapi_wckey_removed_resp import V0044OpenapiWckeyRemovedResp +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp +from slurmrest_python.models.v0044_part_prio import V0044PartPrio +from slurmrest_python.models.v0044_partition_info import V0044PartitionInfo +from slurmrest_python.models.v0044_partition_info_accounts import V0044PartitionInfoAccounts +from slurmrest_python.models.v0044_partition_info_cpus import V0044PartitionInfoCpus +from slurmrest_python.models.v0044_partition_info_defaults import V0044PartitionInfoDefaults +from slurmrest_python.models.v0044_partition_info_groups import V0044PartitionInfoGroups +from slurmrest_python.models.v0044_partition_info_maximums import V0044PartitionInfoMaximums +from slurmrest_python.models.v0044_partition_info_minimums import V0044PartitionInfoMinimums +from slurmrest_python.models.v0044_partition_info_nodes import V0044PartitionInfoNodes +from slurmrest_python.models.v0044_partition_info_priority import V0044PartitionInfoPriority +from slurmrest_python.models.v0044_partition_info_qos import V0044PartitionInfoQos +from slurmrest_python.models.v0044_partition_info_timeouts import V0044PartitionInfoTimeouts +from slurmrest_python.models.v0044_partition_info_tres import V0044PartitionInfoTres +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose +from slurmrest_python.models.v0044_process_exit_code_verbose_signal import V0044ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0044_qos import V0044Qos +from slurmrest_python.models.v0044_qos_limits import V0044QosLimits +from slurmrest_python.models.v0044_qos_limits_max import V0044QosLimitsMax +from slurmrest_python.models.v0044_qos_limits_max_active_jobs import V0044QosLimitsMaxActiveJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs import V0044QosLimitsMaxJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs import V0044QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs_per import V0044QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0044_qos_limits_max_tres import V0044QosLimitsMaxTres +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes import V0044QosLimitsMaxTresMinutes +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes_per import V0044QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0044_qos_limits_max_tres_per import V0044QosLimitsMaxTresPer +from slurmrest_python.models.v0044_qos_limits_max_wall_clock import V0044QosLimitsMaxWallClock +from slurmrest_python.models.v0044_qos_limits_max_wall_clock_per import V0044QosLimitsMaxWallClockPer +from slurmrest_python.models.v0044_qos_limits_min import V0044QosLimitsMin +from slurmrest_python.models.v0044_qos_limits_min_tres import V0044QosLimitsMinTres +from slurmrest_python.models.v0044_qos_limits_min_tres_per import V0044QosLimitsMinTresPer +from slurmrest_python.models.v0044_qos_preempt import V0044QosPreempt +from slurmrest_python.models.v0044_reservation_core_spec import V0044ReservationCoreSpec +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg +from slurmrest_python.models.v0044_reservation_info import V0044ReservationInfo +from slurmrest_python.models.v0044_reservation_info_purge_completed import V0044ReservationInfoPurgeCompleted +from slurmrest_python.models.v0044_reservation_mod_req import V0044ReservationModReq +from slurmrest_python.models.v0044_rollup_stats import V0044RollupStats +from slurmrest_python.models.v0044_rollup_stats_daily import V0044RollupStatsDaily +from slurmrest_python.models.v0044_rollup_stats_hourly import V0044RollupStatsHourly +from slurmrest_python.models.v0044_rollup_stats_monthly import V0044RollupStatsMonthly +from slurmrest_python.models.v0044_schedule_exit_fields import V0044ScheduleExitFields +from slurmrest_python.models.v0044_shares_float128_tres import V0044SharesFloat128Tres +from slurmrest_python.models.v0044_shares_resp_msg import V0044SharesRespMsg +from slurmrest_python.models.v0044_shares_uint64_tres import V0044SharesUint64Tres +from slurmrest_python.models.v0044_slurm_step_id import V0044SlurmStepId +from slurmrest_python.models.v0044_slurmdbd_ping import V0044SlurmdbdPing +from slurmrest_python.models.v0044_stats_msg import V0044StatsMsg +from slurmrest_python.models.v0044_stats_msg_rpc_dump import V0044StatsMsgRpcDump +from slurmrest_python.models.v0044_stats_msg_rpc_queue import V0044StatsMsgRpcQueue +from slurmrest_python.models.v0044_stats_msg_rpc_type import V0044StatsMsgRpcType +from slurmrest_python.models.v0044_stats_msg_rpc_user import V0044StatsMsgRpcUser +from slurmrest_python.models.v0044_stats_rec import V0044StatsRec +from slurmrest_python.models.v0044_stats_rpc import V0044StatsRpc +from slurmrest_python.models.v0044_stats_user import V0044StatsUser +from slurmrest_python.models.v0044_step import V0044Step +from slurmrest_python.models.v0044_step_cpu import V0044StepCPU +from slurmrest_python.models.v0044_step_cpu_requested_frequency import V0044StepCPURequestedFrequency +from slurmrest_python.models.v0044_step_nodes import V0044StepNodes +from slurmrest_python.models.v0044_step_statistics import V0044StepStatistics +from slurmrest_python.models.v0044_step_statistics_energy import V0044StepStatisticsEnergy +from slurmrest_python.models.v0044_step_step import V0044StepStep +from slurmrest_python.models.v0044_step_time import V0044StepTime +from slurmrest_python.models.v0044_step_tres import V0044StepTres +from slurmrest_python.models.v0044_step_tres_consumed import V0044StepTresConsumed +from slurmrest_python.models.v0044_step_tres_requested import V0044StepTresRequested +from slurmrest_python.models.v0044_tres import V0044Tres +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from slurmrest_python.models.v0044_update_node_msg import V0044UpdateNodeMsg +from slurmrest_python.models.v0044_user import V0044User +from slurmrest_python.models.v0044_user_default import V0044UserDefault +from slurmrest_python.models.v0044_user_short import V0044UserShort +from slurmrest_python.models.v0044_users_add_cond import V0044UsersAddCond +from slurmrest_python.models.v0044_wckey import V0044Wckey +from slurmrest_python.models.v0044_wckey_tag_struct import V0044WckeyTagStruct diff --git a/slurmrest_python/models/v0041_job_alloc_req.py b/slurmrest_python/models/v0041_job_alloc_req.py new file mode 100644 index 0000000..60f0012 --- /dev/null +++ b/slurmrest_python/models/v0041_job_alloc_req.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobAllocReq(BaseModel): + """ + V0041JobAllocReq + """ # noqa: E501 + hetjob: Optional[List[V0041JobDescMsg]] = Field(default=None, description="HetJob description") + job: Optional[V0041JobDescMsg] = None + __properties: ClassVar[List[str]] = ["hetjob", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobAllocReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in hetjob (list) + _items = [] + if self.hetjob: + for _item_hetjob in self.hetjob: + if _item_hetjob: + _items.append(_item_hetjob.to_dict()) + _dict['hetjob'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobAllocReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hetjob": [V0041JobDescMsg.from_dict(_item) for _item in obj["hetjob"]] if obj.get("hetjob") is not None else None, + "job": V0041JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg.py b/slurmrest_python/models/v0041_job_desc_msg.py new file mode 100644 index 0000000..e306b5d --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg.py @@ -0,0 +1,477 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_begin_time import V0041JobDescMsgBeginTime +from slurmrest_python.models.v0041_job_desc_msg_crontab import V0041JobDescMsgCrontab +from slurmrest_python.models.v0041_job_desc_msg_distribution_plane_size import V0041JobDescMsgDistributionPlaneSize +from slurmrest_python.models.v0041_job_desc_msg_kill_warning_delay import V0041JobDescMsgKillWarningDelay +from slurmrest_python.models.v0041_job_desc_msg_memory_per_cpu import V0041JobDescMsgMemoryPerCpu +from slurmrest_python.models.v0041_job_desc_msg_priority import V0041JobDescMsgPriority +from slurmrest_python.models.v0041_job_desc_msg_required_switches import V0041JobDescMsgRequiredSwitches +from slurmrest_python.models.v0041_job_desc_msg_rlimits import V0041JobDescMsgRlimits +from slurmrest_python.models.v0041_job_desc_msg_segment_size import V0041JobDescMsgSegmentSize +from slurmrest_python.models.v0041_job_desc_msg_time_limit import V0041JobDescMsgTimeLimit +from slurmrest_python.models.v0041_job_desc_msg_time_minimum import V0041JobDescMsgTimeMinimum +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsg(BaseModel): + """ + V0041JobDescMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + account_gather_frequency: Optional[StrictStr] = Field(default=None, description="Job accounting and profiling sampling intervals in seconds") + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocation_node_list: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + allocation_node_port: Optional[StrictInt] = Field(default=None, description="Port to send allocation confirmation to") + argv: Optional[List[StrictStr]] = Field(default=None, description="Arguments to the script") + array: Optional[StrictStr] = Field(default=None, description="Job array index value specification") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + begin_time: Optional[V0041JobDescMsgBeginTime] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Job flags") + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + clusters: Optional[StrictStr] = Field(default=None, description="Clusters that a federated job can run on") + cluster_constraint: Optional[StrictStr] = Field(default=None, description="Required features that a federated cluster must have to have a sibling job submitted to it") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by user") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + core_specification: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_specification: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cpu_binding: Optional[StrictStr] = Field(default=None, description="Method for binding tasks to allocated CPUs") + cpu_binding_flags: Optional[List[StrictStr]] = Field(default=None, description="Flags for CPU binding") + cpu_frequency: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency range [-p2][:p3]") + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + crontab: Optional[V0041JobDescMsgCrontab] = None + deadline: Optional[StrictInt] = Field(default=None, description="Latest time that the job may start (UNIX timestamp)") + delay_boot: Optional[StrictInt] = Field(default=None, description="Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification") + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + end_time: Optional[StrictInt] = Field(default=None, description="Expected end time (UNIX timestamp)") + environment: Optional[List[StrictStr]] = Field(default=None, description="Environment variables to be set for the job") + rlimits: Optional[V0041JobDescMsgRlimits] = None + excluded_nodes: Optional[List[StrictStr]] = Field(default=None, description="Comma separated list of nodes that may not be used") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + constraints: Optional[StrictStr] = Field(default=None, description="Comma separated list of features that are required") + group_id: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + hetjob_group: Optional[StrictInt] = Field(default=None, description="Unique sequence number applied to this component of the heterogeneous job") + immediate: Optional[StrictBool] = Field(default=None, description="If true, exit if resources are not available within the time period specified") + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + kill_on_node_fail: Optional[StrictBool] = Field(default=None, description="If true, kill job on node failure") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mail_type: Optional[List[StrictStr]] = Field(default=None, description="Mail event type(s)") + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_binding: Optional[StrictStr] = Field(default=None, description="Binding map for map/mask_cpu") + memory_binding_type: Optional[List[StrictStr]] = Field(default=None, description="Method for binding tasks to memory") + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for job step") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks: Optional[StrictInt] = Field(default=None, description="Number of tasks") + open_mode: Optional[List[StrictStr]] = Field(default=None, description="Open mode used for stdout and stderr files") + reserve_ports: Optional[StrictInt] = Field(default=None, description="Port to send various notification msg to") + overcommit: Optional[StrictBool] = Field(default=None, description="Overcommit resources") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + distribution_plane_size: Optional[V0041JobDescMsgDistributionPlaneSize] = None + power_flags: Optional[List[Any]] = None + prefer: Optional[StrictStr] = Field(default=None, description="Comma separated list of features that are preferred but not required") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job") + priority: Optional[V0041JobDescMsgPriority] = None + profile: Optional[List[StrictStr]] = Field(default=None, description="Profile used by the acct_gather_profile plugin") + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[List[StrictStr]] = Field(default=None, description="Comma separated list of required nodes") + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + resv_mpi_ports: Optional[StrictInt] = Field(default=None, description="Number of reserved communication ports; can only be used if slurmstepd step manager is enabled") + script: Optional[StrictStr] = Field(default=None, description="Job batch script; only the first component in a HetJob is populated or honored") + shared: Optional[List[StrictStr]] = Field(default=None, description="How the job can share resources with other jobs, if at all") + exclusive: Optional[List[StrictStr]] = None + oversubscribe: Optional[StrictBool] = None + site_factor: Optional[StrictInt] = Field(default=None, description="Site-specific priority factor") + spank_environment: Optional[List[StrictStr]] = Field(default=None, description="Environment variables for job prolog/epilog scripts as set by SPANK plugins") + distribution: Optional[StrictStr] = Field(default=None, description="Layout") + time_limit: Optional[V0041JobDescMsgTimeLimit] = None + time_minimum: Optional[V0041JobDescMsgTimeMinimum] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every task") + user_id: Optional[StrictStr] = Field(default=None, description="User ID that owns the job") + wait_all_nodes: Optional[StrictBool] = Field(default=None, description="If true, wait to start until after all nodes have booted") + kill_warning_flags: Optional[List[StrictStr]] = Field(default=None, description="Flags related to job signals") + kill_warning_signal: Optional[StrictStr] = Field(default=None, description="Signal to send when approaching end time (e.g. \"10\" or \"USR1\")") + kill_warning_delay: Optional[V0041JobDescMsgKillWarningDelay] = None + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + cpus_per_task: Optional[StrictInt] = Field(default=None, description="Number of CPUs required by each task") + minimum_cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required") + maximum_cpus: Optional[StrictInt] = Field(default=None, description="Maximum number of CPUs required") + nodes: Optional[StrictStr] = Field(default=None, description="Node count range specification (e.g. 1-15:4)") + minimum_nodes: Optional[StrictInt] = Field(default=None, description="Minimum node count") + maximum_nodes: Optional[StrictInt] = Field(default=None, description="Maximum node count") + minimum_boards_per_node: Optional[StrictInt] = Field(default=None, description="Boards per node required") + minimum_sockets_per_board: Optional[StrictInt] = Field(default=None, description="Sockets per board required") + sockets_per_node: Optional[StrictInt] = Field(default=None, description="Sockets per node required") + threads_per_core: Optional[StrictInt] = Field(default=None, description="Threads per core required") + tasks_per_node: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each node") + tasks_per_socket: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each socket") + tasks_per_core: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each core") + tasks_per_board: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each board") + ntasks_per_tres: Optional[StrictInt] = Field(default=None, description="Number of tasks that can access each GPU") + minimum_cpus_per_node: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs per node") + memory_per_cpu: Optional[V0041JobDescMsgMemoryPerCpu] = None + memory_per_node: Optional[V0041JobDescMsgMemoryPerCpu] = None + temporary_disk_per_node: Optional[StrictInt] = Field(default=None, description="Minimum tmp disk space required per node") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + required_switches: Optional[V0041JobDescMsgRequiredSwitches] = None + segment_size: Optional[V0041JobDescMsgSegmentSize] = None + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + wait_for_switch: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + x11: Optional[List[StrictStr]] = Field(default=None, description="X11 forwarding options") + x11_magic_cookie: Optional[StrictStr] = Field(default=None, description="Magic cookie for X11 forwarding") + x11_target_host: Optional[StrictStr] = Field(default=None, description="Hostname or UNIX socket if x11_target_port=0") + x11_target_port: Optional[StrictInt] = Field(default=None, description="TCP port") + __properties: ClassVar[List[str]] = ["account", "account_gather_frequency", "admin_comment", "allocation_node_list", "allocation_node_port", "argv", "array", "batch_features", "begin_time", "flags", "burst_buffer", "clusters", "cluster_constraint", "comment", "contiguous", "container", "container_id", "core_specification", "thread_specification", "cpu_binding", "cpu_binding_flags", "cpu_frequency", "cpus_per_tres", "crontab", "deadline", "delay_boot", "dependency", "end_time", "environment", "rlimits", "excluded_nodes", "extra", "constraints", "group_id", "hetjob_group", "immediate", "job_id", "kill_on_node_fail", "licenses", "mail_type", "mail_user", "mcs_label", "memory_binding", "memory_binding_type", "memory_per_tres", "name", "network", "nice", "tasks", "open_mode", "reserve_ports", "overcommit", "partition", "distribution_plane_size", "power_flags", "prefer", "hold", "priority", "profile", "qos", "reboot", "required_nodes", "requeue", "reservation", "resv_mpi_ports", "script", "shared", "exclusive", "oversubscribe", "site_factor", "spank_environment", "distribution", "time_limit", "time_minimum", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "user_id", "wait_all_nodes", "kill_warning_flags", "kill_warning_signal", "kill_warning_delay", "current_working_directory", "cpus_per_task", "minimum_cpus", "maximum_cpus", "nodes", "minimum_nodes", "maximum_nodes", "minimum_boards_per_node", "minimum_sockets_per_board", "sockets_per_node", "threads_per_core", "tasks_per_node", "tasks_per_socket", "tasks_per_core", "tasks_per_board", "ntasks_per_tres", "minimum_cpus_per_node", "memory_per_cpu", "memory_per_node", "temporary_disk_per_node", "selinux_context", "required_switches", "segment_size", "standard_error", "standard_input", "standard_output", "wait_for_switch", "wckey", "x11", "x11_magic_cookie", "x11_target_host", "x11_target_port"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED')") + return value + + @field_validator('cpu_binding_flags') + def cpu_binding_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE']): + raise ValueError("each list item must be one of ('CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('memory_binding_type') + def memory_binding_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'SORT', 'PREFER']): + raise ValueError("each list item must be one of ('NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'SORT', 'PREFER')") + return value + + @field_validator('open_mode') + def open_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['APPEND', 'TRUNCATE']): + raise ValueError("each list item must be one of ('APPEND', 'TRUNCATE')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + @field_validator('exclusive') + def exclusive_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['true', 'false', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('true', 'false', 'user', 'mcs', 'topo')") + return value + + @field_validator('kill_warning_flags') + def kill_warning_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('x11') + def x11_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE']): + raise ValueError("each list item must be one of ('FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of begin_time + if self.begin_time: + _dict['begin_time'] = self.begin_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of crontab + if self.crontab: + _dict['crontab'] = self.crontab.to_dict() + # override the default output from pydantic by calling `to_dict()` of rlimits + if self.rlimits: + _dict['rlimits'] = self.rlimits.to_dict() + # override the default output from pydantic by calling `to_dict()` of distribution_plane_size + if self.distribution_plane_size: + _dict['distribution_plane_size'] = self.distribution_plane_size.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of kill_warning_delay + if self.kill_warning_delay: + _dict['kill_warning_delay'] = self.kill_warning_delay.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of required_switches + if self.required_switches: + _dict['required_switches'] = self.required_switches.to_dict() + # override the default output from pydantic by calling `to_dict()` of segment_size + if self.segment_size: + _dict['segment_size'] = self.segment_size.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "account_gather_frequency": obj.get("account_gather_frequency"), + "admin_comment": obj.get("admin_comment"), + "allocation_node_list": obj.get("allocation_node_list"), + "allocation_node_port": obj.get("allocation_node_port"), + "argv": obj.get("argv"), + "array": obj.get("array"), + "batch_features": obj.get("batch_features"), + "begin_time": V0041JobDescMsgBeginTime.from_dict(obj["begin_time"]) if obj.get("begin_time") is not None else None, + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "clusters": obj.get("clusters"), + "cluster_constraint": obj.get("cluster_constraint"), + "comment": obj.get("comment"), + "contiguous": obj.get("contiguous"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "core_specification": obj.get("core_specification"), + "thread_specification": obj.get("thread_specification"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_binding_flags": obj.get("cpu_binding_flags"), + "cpu_frequency": obj.get("cpu_frequency"), + "cpus_per_tres": obj.get("cpus_per_tres"), + "crontab": V0041JobDescMsgCrontab.from_dict(obj["crontab"]) if obj.get("crontab") is not None else None, + "deadline": obj.get("deadline"), + "delay_boot": obj.get("delay_boot"), + "dependency": obj.get("dependency"), + "end_time": obj.get("end_time"), + "environment": obj.get("environment"), + "rlimits": V0041JobDescMsgRlimits.from_dict(obj["rlimits"]) if obj.get("rlimits") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "extra": obj.get("extra"), + "constraints": obj.get("constraints"), + "group_id": obj.get("group_id"), + "hetjob_group": obj.get("hetjob_group"), + "immediate": obj.get("immediate"), + "job_id": obj.get("job_id"), + "kill_on_node_fail": obj.get("kill_on_node_fail"), + "licenses": obj.get("licenses"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "mcs_label": obj.get("mcs_label"), + "memory_binding": obj.get("memory_binding"), + "memory_binding_type": obj.get("memory_binding_type"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nice": obj.get("nice"), + "tasks": obj.get("tasks"), + "open_mode": obj.get("open_mode"), + "reserve_ports": obj.get("reserve_ports"), + "overcommit": obj.get("overcommit"), + "partition": obj.get("partition"), + "distribution_plane_size": V0041JobDescMsgDistributionPlaneSize.from_dict(obj["distribution_plane_size"]) if obj.get("distribution_plane_size") is not None else None, + "power_flags": obj.get("power_flags"), + "prefer": obj.get("prefer"), + "hold": obj.get("hold"), + "priority": V0041JobDescMsgPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "requeue": obj.get("requeue"), + "reservation": obj.get("reservation"), + "resv_mpi_ports": obj.get("resv_mpi_ports"), + "script": obj.get("script"), + "shared": obj.get("shared"), + "exclusive": obj.get("exclusive"), + "oversubscribe": obj.get("oversubscribe"), + "site_factor": obj.get("site_factor"), + "spank_environment": obj.get("spank_environment"), + "distribution": obj.get("distribution"), + "time_limit": V0041JobDescMsgTimeLimit.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0041JobDescMsgTimeMinimum.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "user_id": obj.get("user_id"), + "wait_all_nodes": obj.get("wait_all_nodes"), + "kill_warning_flags": obj.get("kill_warning_flags"), + "kill_warning_signal": obj.get("kill_warning_signal"), + "kill_warning_delay": V0041JobDescMsgKillWarningDelay.from_dict(obj["kill_warning_delay"]) if obj.get("kill_warning_delay") is not None else None, + "current_working_directory": obj.get("current_working_directory"), + "cpus_per_task": obj.get("cpus_per_task"), + "minimum_cpus": obj.get("minimum_cpus"), + "maximum_cpus": obj.get("maximum_cpus"), + "nodes": obj.get("nodes"), + "minimum_nodes": obj.get("minimum_nodes"), + "maximum_nodes": obj.get("maximum_nodes"), + "minimum_boards_per_node": obj.get("minimum_boards_per_node"), + "minimum_sockets_per_board": obj.get("minimum_sockets_per_board"), + "sockets_per_node": obj.get("sockets_per_node"), + "threads_per_core": obj.get("threads_per_core"), + "tasks_per_node": obj.get("tasks_per_node"), + "tasks_per_socket": obj.get("tasks_per_socket"), + "tasks_per_core": obj.get("tasks_per_core"), + "tasks_per_board": obj.get("tasks_per_board"), + "ntasks_per_tres": obj.get("ntasks_per_tres"), + "minimum_cpus_per_node": obj.get("minimum_cpus_per_node"), + "memory_per_cpu": V0041JobDescMsgMemoryPerCpu.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0041JobDescMsgMemoryPerCpu.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "temporary_disk_per_node": obj.get("temporary_disk_per_node"), + "selinux_context": obj.get("selinux_context"), + "required_switches": V0041JobDescMsgRequiredSwitches.from_dict(obj["required_switches"]) if obj.get("required_switches") is not None else None, + "segment_size": V0041JobDescMsgSegmentSize.from_dict(obj["segment_size"]) if obj.get("segment_size") is not None else None, + "standard_error": obj.get("standard_error"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "wait_for_switch": obj.get("wait_for_switch"), + "wckey": obj.get("wckey"), + "x11": obj.get("x11"), + "x11_magic_cookie": obj.get("x11_magic_cookie"), + "x11_target_host": obj.get("x11_target_host"), + "x11_target_port": obj.get("x11_target_port") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_begin_time.py b/slurmrest_python/models/v0041_job_desc_msg_begin_time.py new file mode 100644 index 0000000..8a5bc25 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_begin_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgBeginTime(BaseModel): + """ + Defer the allocation of the job until the specified time (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgBeginTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgBeginTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_crontab.py b/slurmrest_python/models/v0041_job_desc_msg_crontab.py new file mode 100644 index 0000000..72e6c81 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_crontab.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgCrontab(BaseModel): + """ + Specification for scrontab job + """ # noqa: E501 + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags") + minute: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible minute values (e.g. 0-10,50)") + hour: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible hour values (e.g. 0-5,23)") + day_of_month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of month values (e.g. 0-10,29)") + month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible month values (e.g. 0-5,12)") + day_of_week: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of week values (e.g.0-3,7)") + specification: Optional[StrictStr] = Field(default=None, description="Time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week") + command: Optional[StrictStr] = Field(default=None, description="Command to run") + line: Optional[V0041JobDescMsgCrontabLine] = None + __properties: ClassVar[List[str]] = ["flags", "minute", "hour", "day_of_month", "month", "day_of_week", "specification", "command", "line"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK']): + raise ValueError("each list item must be one of ('WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgCrontab from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of line + if self.line: + _dict['line'] = self.line.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgCrontab from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "flags": obj.get("flags"), + "minute": obj.get("minute"), + "hour": obj.get("hour"), + "day_of_month": obj.get("day_of_month"), + "month": obj.get("month"), + "day_of_week": obj.get("day_of_week"), + "specification": obj.get("specification"), + "command": obj.get("command"), + "line": V0041JobDescMsgCrontabLine.from_dict(obj["line"]) if obj.get("line") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_crontab_line.py b/slurmrest_python/models/v0041_job_desc_msg_crontab_line.py new file mode 100644 index 0000000..3584ac9 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_crontab_line.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgCrontabLine(BaseModel): + """ + V0041JobDescMsgCrontabLine + """ # noqa: E501 + start: Optional[StrictInt] = Field(default=None, description="Start of this entry in file") + end: Optional[StrictInt] = Field(default=None, description="End of this entry in file") + __properties: ClassVar[List[str]] = ["start", "end"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgCrontabLine from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgCrontabLine from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "start": obj.get("start"), + "end": obj.get("end") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_distribution_plane_size.py b/slurmrest_python/models/v0041_job_desc_msg_distribution_plane_size.py new file mode 100644 index 0000000..92de192 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_distribution_plane_size.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgDistributionPlaneSize(BaseModel): + """ + Plane size specification when distribution specifies plane + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgDistributionPlaneSize from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgDistributionPlaneSize from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_kill_warning_delay.py b/slurmrest_python/models/v0041_job_desc_msg_kill_warning_delay.py new file mode 100644 index 0000000..acc1807 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_kill_warning_delay.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgKillWarningDelay(BaseModel): + """ + Number of seconds before end time to send the warning signal + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgKillWarningDelay from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgKillWarningDelay from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_memory_per_cpu.py b/slurmrest_python/models/v0041_job_desc_msg_memory_per_cpu.py new file mode 100644 index 0000000..10d8f5a --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_memory_per_cpu.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgMemoryPerCpu(BaseModel): + """ + Minimum memory in megabytes per allocated CPU + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgMemoryPerCpu from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgMemoryPerCpu from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_priority.py b/slurmrest_python/models/v0041_job_desc_msg_priority.py new file mode 100644 index 0000000..6d403cb --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_priority.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgPriority(BaseModel): + """ + Request specific job priority + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgPriority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgPriority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_required_switches.py b/slurmrest_python/models/v0041_job_desc_msg_required_switches.py new file mode 100644 index 0000000..599b06e --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_required_switches.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRequiredSwitches(BaseModel): + """ + Maximum number of switches + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRequiredSwitches from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRequiredSwitches from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits.py new file mode 100644 index 0000000..b54bf1d --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_rlimits_as import V0041JobDescMsgRlimitsAs +from slurmrest_python.models.v0041_job_desc_msg_rlimits_core import V0041JobDescMsgRlimitsCore +from slurmrest_python.models.v0041_job_desc_msg_rlimits_cpu import V0041JobDescMsgRlimitsCpu +from slurmrest_python.models.v0041_job_desc_msg_rlimits_data import V0041JobDescMsgRlimitsData +from slurmrest_python.models.v0041_job_desc_msg_rlimits_fsize import V0041JobDescMsgRlimitsFsize +from slurmrest_python.models.v0041_job_desc_msg_rlimits_memlock import V0041JobDescMsgRlimitsMemlock +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nofile import V0041JobDescMsgRlimitsNofile +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nproc import V0041JobDescMsgRlimitsNproc +from slurmrest_python.models.v0041_job_desc_msg_rlimits_rss import V0041JobDescMsgRlimitsRss +from slurmrest_python.models.v0041_job_desc_msg_rlimits_stack import V0041JobDescMsgRlimitsStack +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimits(BaseModel): + """ + V0041JobDescMsgRlimits + """ # noqa: E501 + cpu: Optional[V0041JobDescMsgRlimitsCpu] = None + fsize: Optional[V0041JobDescMsgRlimitsFsize] = None + data: Optional[V0041JobDescMsgRlimitsData] = None + stack: Optional[V0041JobDescMsgRlimitsStack] = None + core: Optional[V0041JobDescMsgRlimitsCore] = None + rss: Optional[V0041JobDescMsgRlimitsRss] = None + nproc: Optional[V0041JobDescMsgRlimitsNproc] = None + nofile: Optional[V0041JobDescMsgRlimitsNofile] = None + memlock: Optional[V0041JobDescMsgRlimitsMemlock] = None + var_as: Optional[V0041JobDescMsgRlimitsAs] = Field(default=None, alias="as") + __properties: ClassVar[List[str]] = ["cpu", "fsize", "data", "stack", "core", "rss", "nproc", "nofile", "memlock", "as"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['cpu'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of fsize + if self.fsize: + _dict['fsize'] = self.fsize.to_dict() + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of stack + if self.stack: + _dict['stack'] = self.stack.to_dict() + # override the default output from pydantic by calling `to_dict()` of core + if self.core: + _dict['core'] = self.core.to_dict() + # override the default output from pydantic by calling `to_dict()` of rss + if self.rss: + _dict['rss'] = self.rss.to_dict() + # override the default output from pydantic by calling `to_dict()` of nproc + if self.nproc: + _dict['nproc'] = self.nproc.to_dict() + # override the default output from pydantic by calling `to_dict()` of nofile + if self.nofile: + _dict['nofile'] = self.nofile.to_dict() + # override the default output from pydantic by calling `to_dict()` of memlock + if self.memlock: + _dict['memlock'] = self.memlock.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_as + if self.var_as: + _dict['as'] = self.var_as.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpu": V0041JobDescMsgRlimitsCpu.from_dict(obj["cpu"]) if obj.get("cpu") is not None else None, + "fsize": V0041JobDescMsgRlimitsFsize.from_dict(obj["fsize"]) if obj.get("fsize") is not None else None, + "data": V0041JobDescMsgRlimitsData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "stack": V0041JobDescMsgRlimitsStack.from_dict(obj["stack"]) if obj.get("stack") is not None else None, + "core": V0041JobDescMsgRlimitsCore.from_dict(obj["core"]) if obj.get("core") is not None else None, + "rss": V0041JobDescMsgRlimitsRss.from_dict(obj["rss"]) if obj.get("rss") is not None else None, + "nproc": V0041JobDescMsgRlimitsNproc.from_dict(obj["nproc"]) if obj.get("nproc") is not None else None, + "nofile": V0041JobDescMsgRlimitsNofile.from_dict(obj["nofile"]) if obj.get("nofile") is not None else None, + "memlock": V0041JobDescMsgRlimitsMemlock.from_dict(obj["memlock"]) if obj.get("memlock") is not None else None, + "as": V0041JobDescMsgRlimitsAs.from_dict(obj["as"]) if obj.get("as") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_as.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_as.py new file mode 100644 index 0000000..7faa95b --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_as.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsAs(BaseModel): + """ + Address space limit. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsAs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsAs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_core.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_core.py new file mode 100644 index 0000000..6685ae7 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_core.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsCore(BaseModel): + """ + Largest core file that can be created, in bytes. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsCore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsCore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_cpu.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_cpu.py new file mode 100644 index 0000000..89b3d2f --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_cpu.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsCpu(BaseModel): + """ + Per-process CPU limit, in seconds. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsCpu from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsCpu from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_data.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_data.py new file mode 100644 index 0000000..be50980 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsData(BaseModel): + """ + Maximum size of data segment, in bytes. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_fsize.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_fsize.py new file mode 100644 index 0000000..08cc68b --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_fsize.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsFsize(BaseModel): + """ + Largest file that can be created, in bytes. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsFsize from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsFsize from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_memlock.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_memlock.py new file mode 100644 index 0000000..c3e98c9 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_memlock.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsMemlock(BaseModel): + """ + Locked-in-memory address space + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsMemlock from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsMemlock from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_nofile.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_nofile.py new file mode 100644 index 0000000..3f03eb4 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_nofile.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsNofile(BaseModel): + """ + Number of open files. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsNofile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsNofile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_nproc.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_nproc.py new file mode 100644 index 0000000..7e0db6e --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_nproc.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsNproc(BaseModel): + """ + Number of processes. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsNproc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsNproc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_rss.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_rss.py new file mode 100644 index 0000000..493e1e8 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_rss.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsRss(BaseModel): + """ + Largest resident set size, in bytes. This affects swapping; processes that are exceeding their resident set size will be more likely to have physical memory taken from them. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsRss from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsRss from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_rlimits_stack.py b/slurmrest_python/models/v0041_job_desc_msg_rlimits_stack.py new file mode 100644 index 0000000..b989040 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_rlimits_stack.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgRlimitsStack(BaseModel): + """ + Maximum size of stack segment, in bytes. + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsStack from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgRlimitsStack from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_segment_size.py b/slurmrest_python/models/v0041_job_desc_msg_segment_size.py new file mode 100644 index 0000000..da6c8dd --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_segment_size.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgSegmentSize(BaseModel): + """ + Segment size for topology/block + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgSegmentSize from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgSegmentSize from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_time_limit.py b/slurmrest_python/models/v0041_job_desc_msg_time_limit.py new file mode 100644 index 0000000..d773f48 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_time_limit.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgTimeLimit(BaseModel): + """ + Maximum run time in minutes + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgTimeLimit from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgTimeLimit from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_desc_msg_time_minimum.py b/slurmrest_python/models/v0041_job_desc_msg_time_minimum.py new file mode 100644 index 0000000..a4e8292 --- /dev/null +++ b/slurmrest_python/models/v0041_job_desc_msg_time_minimum.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobDescMsgTimeMinimum(BaseModel): + """ + Minimum run time in minutes + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobDescMsgTimeMinimum from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobDescMsgTimeMinimum from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_job_submit_req.py b/slurmrest_python/models/v0041_job_submit_req.py new file mode 100644 index 0000000..b24556d --- /dev/null +++ b/slurmrest_python/models/v0041_job_submit_req.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0041JobSubmitReq(BaseModel): + """ + V0041JobSubmitReq + """ # noqa: E501 + script: Optional[StrictStr] = Field(default=None, description="Job batch script contents; Same as the script field in jobs[0] or job.") + jobs: Optional[List[V0041JobDescMsg]] = Field(default=None, description="HetJob description") + job: Optional[V0041JobDescMsg] = None + __properties: ClassVar[List[str]] = ["script", "jobs", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041JobSubmitReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041JobSubmitReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "script": obj.get("script"), + "jobs": [V0041JobDescMsg.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "job": V0041JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_kill_jobs_msg.py b/slurmrest_python/models/v0041_kill_jobs_msg.py new file mode 100644 index 0000000..e860d39 --- /dev/null +++ b/slurmrest_python/models/v0041_kill_jobs_msg.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041KillJobsMsg(BaseModel): + """ + V0041KillJobsMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific account") + flags: Optional[List[StrictStr]] = Field(default=None, description="Filter jobs according to flags") + job_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific name") + jobs: Optional[List[StrictStr]] = Field(default=None, description="List of jobs to signal") + partition: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific partition") + qos: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific QOS") + reservation: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific reservation") + signal: Optional[StrictStr] = Field(default=None, description="Signal to send to jobs") + job_state: Optional[List[StrictStr]] = Field(default=None, description="Filter jobs to a specific state") + user_id: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific numeric user id") + user_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific user name") + wckey: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific wckey") + nodes: Optional[List[StrictStr]] = Field(default=None, description="Filter jobs to a set of nodes") + __properties: ClassVar[List[str]] = ["account", "flags", "job_name", "jobs", "partition", "qos", "reservation", "signal", "job_state", "user_id", "user_name", "wckey", "nodes"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041KillJobsMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041KillJobsMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "flags": obj.get("flags"), + "job_name": obj.get("job_name"), + "jobs": obj.get("jobs"), + "partition": obj.get("partition"), + "qos": obj.get("qos"), + "reservation": obj.get("reservation"), + "signal": obj.get("signal"), + "job_state": obj.get("job_state"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "wckey": obj.get("wckey"), + "nodes": obj.get("nodes") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp.py b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..f91735c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_account import V0041OpenapiAccountsAddCondRespAccount +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_association_condition import V0041OpenapiAccountsAddCondRespAssociationCondition +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAccountsAddCondResp(BaseModel): + """ + V0041OpenapiAccountsAddCondResp + """ # noqa: E501 + association_condition: Optional[V0041OpenapiAccountsAddCondRespAssociationCondition] = None + account: Optional[V0041OpenapiAccountsAddCondRespAccount] = None + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["association_condition", "account", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0041OpenapiAccountsAddCondRespAssociationCondition.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "account": V0041OpenapiAccountsAddCondRespAccount.from_dict(obj["account"]) if obj.get("account") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_account.py b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_account.py new file mode 100644 index 0000000..ae3701c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_account.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAccountsAddCondRespAccount(BaseModel): + """ + Account organization and description + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary string describing the account") + organization: Optional[StrictStr] = Field(default=None, description="Organization to which the account belongs") + __properties: ClassVar[List[str]] = ["description", "organization"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondRespAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondRespAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "organization": obj.get("organization") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_association_condition.py b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_association_condition.py new file mode 100644 index 0000000..11b3e0c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_association_condition.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association import V0041OpenapiUsersAddCondRespAssociationConditionAssociation +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAccountsAddCondRespAssociationCondition(BaseModel): + """ + CSV list of accounts, association limits and options, CSV list of clusters + """ # noqa: E501 + accounts: List[StrictStr] = Field(description="CSV accounts list") + association: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociation] = None + clusters: Optional[List[StrictStr]] = Field(default=None, description="CSV clusters list") + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondRespAssociationCondition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondRespAssociationCondition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0041OpenapiUsersAddCondRespAssociationConditionAssociation.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_str.py b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..683aae6 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAccountsAddCondRespStr(BaseModel): + """ + V0041OpenapiAccountsAddCondRespStr + """ # noqa: E501 + added_accounts: StrictStr = Field(description="added_accounts") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["added_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_accounts": obj.get("added_accounts"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_accounts_removed_resp.py b/slurmrest_python/models/v0041_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..2b4f123 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_accounts_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAccountsRemovedResp(BaseModel): + """ + V0041OpenapiAccountsRemovedResp + """ # noqa: E501 + removed_accounts: List[StrictStr] = Field(description="removed_accounts") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["removed_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_accounts": obj.get("removed_accounts"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_accounts_resp.py b/slurmrest_python/models/v0041_openapi_accounts_resp.py new file mode 100644 index 0000000..4f6bc81 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_accounts_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner import V0041OpenapiSlurmdbdConfigRespAccountsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAccountsResp(BaseModel): + """ + V0041OpenapiAccountsResp + """ # noqa: E501 + accounts: List[V0041OpenapiSlurmdbdConfigRespAccountsInner] = Field(description="accounts") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAccountsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": [V0041OpenapiSlurmdbdConfigRespAccountsInner.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_assocs_removed_resp.py b/slurmrest_python/models/v0041_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..76a42a9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_assocs_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAssocsRemovedResp(BaseModel): + """ + V0041OpenapiAssocsRemovedResp + """ # noqa: E501 + removed_associations: List[StrictStr] = Field(description="removed_associations") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["removed_associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAssocsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAssocsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_associations": obj.get("removed_associations"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_assocs_resp.py b/slurmrest_python/models/v0041_openapi_assocs_resp.py new file mode 100644 index 0000000..72e25da --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_assocs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner import V0041OpenapiSlurmdbdConfigRespAssociationsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiAssocsResp(BaseModel): + """ + V0041OpenapiAssocsResp + """ # noqa: E501 + associations: List[V0041OpenapiSlurmdbdConfigRespAssociationsInner] = Field(description="associations") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiAssocsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiAssocsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0041OpenapiSlurmdbdConfigRespAssociationsInner.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_clusters_removed_resp.py b/slurmrest_python/models/v0041_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..154676a --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_clusters_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiClustersRemovedResp(BaseModel): + """ + V0041OpenapiClustersRemovedResp + """ # noqa: E501 + deleted_clusters: List[StrictStr] = Field(description="deleted_clusters") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["deleted_clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiClustersRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiClustersRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_clusters": obj.get("deleted_clusters"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_clusters_resp.py b/slurmrest_python/models/v0041_openapi_clusters_resp.py new file mode 100644 index 0000000..3c0f15d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_clusters_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner import V0041OpenapiSlurmdbdConfigRespClustersInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiClustersResp(BaseModel): + """ + V0041OpenapiClustersResp + """ # noqa: E501 + clusters: List[V0041OpenapiSlurmdbdConfigRespClustersInner] = Field(description="clusters") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiClustersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiClustersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0041OpenapiSlurmdbdConfigRespClustersInner.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp.py b/slurmrest_python/models/v0041_openapi_diag_resp.py new file mode 100644 index 0000000..d90d135 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_diag_resp_statistics import V0041OpenapiDiagRespStatistics +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagResp(BaseModel): + """ + V0041OpenapiDiagResp + """ # noqa: E501 + statistics: V0041OpenapiDiagRespStatistics + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0041OpenapiDiagRespStatistics.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics.py new file mode 100644 index 0000000..2b87846 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_exit import V0041OpenapiDiagRespStatisticsBfExit +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_when_last_cycle import V0041OpenapiDiagRespStatisticsBfWhenLastCycle +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_job_states_ts import V0041OpenapiDiagRespStatisticsJobStatesTs +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner import V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_inner import V0041OpenapiDiagRespStatisticsPendingRpcsInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time import V0041OpenapiDiagRespStatisticsReqTime +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time_start import V0041OpenapiDiagRespStatisticsReqTimeStart +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_user_inner import V0041OpenapiDiagRespStatisticsRpcsByUserInner +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_schedule_exit import V0041OpenapiDiagRespStatisticsScheduleExit +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatistics(BaseModel): + """ + statistics + """ # noqa: E501 + parts_packed: Optional[StrictInt] = Field(default=None, description="Zero if only RPC statistic included") + req_time: Optional[V0041OpenapiDiagRespStatisticsReqTime] = None + req_time_start: Optional[V0041OpenapiDiagRespStatisticsReqTimeStart] = None + server_thread_count: Optional[StrictInt] = Field(default=None, description="Number of current active slurmctld threads") + agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of enqueued outgoing RPC requests in an internal retry list") + agent_count: Optional[StrictInt] = Field(default=None, description="Number of agent threads") + agent_thread_count: Optional[StrictInt] = Field(default=None, description="Total number of active threads created by all agent threads") + dbd_agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of messages for SlurmDBD that are queued") + gettimeofday_latency: Optional[StrictInt] = Field(default=None, description="Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup") + schedule_cycle_max: Optional[StrictInt] = Field(default=None, description="Max time of any scheduling cycle in microseconds since last reset") + schedule_cycle_last: Optional[StrictInt] = Field(default=None, description="Time in microseconds for last scheduling cycle") + schedule_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total run time in microseconds for all scheduling cycles since last reset") + schedule_cycle_total: Optional[StrictInt] = Field(default=None, description="Number of scheduling cycles since last reset") + schedule_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds for all scheduling cycles since last reset") + schedule_cycle_mean_depth: Optional[StrictInt] = Field(default=None, description="Mean of the number of jobs processed in a scheduling cycle") + schedule_cycle_per_minute: Optional[StrictInt] = Field(default=None, description="Number of scheduling executions per minute") + schedule_cycle_depth: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed in scheduling cycles") + schedule_exit: Optional[V0041OpenapiDiagRespStatisticsScheduleExit] = None + schedule_queue_length: Optional[StrictInt] = Field(default=None, description="Number of jobs pending in queue") + jobs_submitted: Optional[StrictInt] = Field(default=None, description="Number of jobs submitted since last reset") + jobs_started: Optional[StrictInt] = Field(default=None, description="Number of jobs started since last reset") + jobs_completed: Optional[StrictInt] = Field(default=None, description="Number of jobs completed since last reset") + jobs_canceled: Optional[StrictInt] = Field(default=None, description="Number of jobs canceled since the last reset") + jobs_failed: Optional[StrictInt] = Field(default=None, description="Number of jobs failed due to slurmd or other internal issues since last reset") + jobs_pending: Optional[StrictInt] = Field(default=None, description="Number of jobs pending at the time of listed in job_state_ts") + jobs_running: Optional[StrictInt] = Field(default=None, description="Number of jobs running at the time of listed in job_state_ts") + job_states_ts: Optional[V0041OpenapiDiagRespStatisticsJobStatesTs] = None + bf_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last slurm start") + bf_last_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last reset") + bf_backfilled_het_jobs: Optional[StrictInt] = Field(default=None, description="Number of heterogeneous job components started through backfilling since last Slurm start") + bf_cycle_counter: Optional[StrictInt] = Field(default=None, description="Number of backfill scheduling cycles since last reset") + bf_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds of backfilling scheduling cycles since last reset") + bf_depth_mean: Optional[StrictInt] = Field(default=None, description="Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_mean_try: Optional[StrictInt] = Field(default=None, description="The subset of Depth Mean that the backfill scheduler attempted to schedule") + bf_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total time in microseconds of backfilling scheduling cycles since last reset") + bf_cycle_last: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of last backfill scheduling cycle") + bf_cycle_max: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of longest backfill scheduling cycle") + bf_exit: Optional[V0041OpenapiDiagRespStatisticsBfExit] = None + bf_last_depth: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle") + bf_last_depth_try: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources") + bf_depth_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_try_sum: Optional[StrictInt] = Field(default=None, description="Subset of bf_depth_sum that the backfill scheduler attempted to schedule") + bf_queue_len: Optional[StrictInt] = Field(default=None, description="Number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_mean: Optional[StrictInt] = Field(default=None, description="Mean number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs pending to be processed by backfilling algorithm since last reset") + bf_table_size: Optional[StrictInt] = Field(default=None, description="Number of different time slots tested by the backfill scheduler in its last iteration") + bf_table_size_sum: Optional[StrictInt] = Field(default=None, description="Total number of different time slots tested by the backfill scheduler") + bf_table_size_mean: Optional[StrictInt] = Field(default=None, description="Mean number of different time slots tested by the backfill scheduler") + bf_when_last_cycle: Optional[V0041OpenapiDiagRespStatisticsBfWhenLastCycle] = None + bf_active: Optional[StrictBool] = Field(default=None, description="Backfill scheduler currently running") + rpcs_by_message_type: Optional[List[V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner]] = Field(default=None, description="Most frequently issued remote procedure calls (RPCs)") + rpcs_by_user: Optional[List[V0041OpenapiDiagRespStatisticsRpcsByUserInner]] = Field(default=None, description="RPCs issued by user ID") + pending_rpcs: Optional[List[V0041OpenapiDiagRespStatisticsPendingRpcsInner]] = Field(default=None, description="Pending RPC statistics") + pending_rpcs_by_hostlist: Optional[List[V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner]] = Field(default=None, description="Pending RPCs hostlists") + __properties: ClassVar[List[str]] = ["parts_packed", "req_time", "req_time_start", "server_thread_count", "agent_queue_size", "agent_count", "agent_thread_count", "dbd_agent_queue_size", "gettimeofday_latency", "schedule_cycle_max", "schedule_cycle_last", "schedule_cycle_sum", "schedule_cycle_total", "schedule_cycle_mean", "schedule_cycle_mean_depth", "schedule_cycle_per_minute", "schedule_cycle_depth", "schedule_exit", "schedule_queue_length", "jobs_submitted", "jobs_started", "jobs_completed", "jobs_canceled", "jobs_failed", "jobs_pending", "jobs_running", "job_states_ts", "bf_backfilled_jobs", "bf_last_backfilled_jobs", "bf_backfilled_het_jobs", "bf_cycle_counter", "bf_cycle_mean", "bf_depth_mean", "bf_depth_mean_try", "bf_cycle_sum", "bf_cycle_last", "bf_cycle_max", "bf_exit", "bf_last_depth", "bf_last_depth_try", "bf_depth_sum", "bf_depth_try_sum", "bf_queue_len", "bf_queue_len_mean", "bf_queue_len_sum", "bf_table_size", "bf_table_size_sum", "bf_table_size_mean", "bf_when_last_cycle", "bf_active", "rpcs_by_message_type", "rpcs_by_user", "pending_rpcs", "pending_rpcs_by_hostlist"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatistics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of req_time + if self.req_time: + _dict['req_time'] = self.req_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of req_time_start + if self.req_time_start: + _dict['req_time_start'] = self.req_time_start.to_dict() + # override the default output from pydantic by calling `to_dict()` of schedule_exit + if self.schedule_exit: + _dict['schedule_exit'] = self.schedule_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_states_ts + if self.job_states_ts: + _dict['job_states_ts'] = self.job_states_ts.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_exit + if self.bf_exit: + _dict['bf_exit'] = self.bf_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_when_last_cycle + if self.bf_when_last_cycle: + _dict['bf_when_last_cycle'] = self.bf_when_last_cycle.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_message_type (list) + _items = [] + if self.rpcs_by_message_type: + for _item_rpcs_by_message_type in self.rpcs_by_message_type: + if _item_rpcs_by_message_type: + _items.append(_item_rpcs_by_message_type.to_dict()) + _dict['rpcs_by_message_type'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_user (list) + _items = [] + if self.rpcs_by_user: + for _item_rpcs_by_user in self.rpcs_by_user: + if _item_rpcs_by_user: + _items.append(_item_rpcs_by_user.to_dict()) + _dict['rpcs_by_user'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs (list) + _items = [] + if self.pending_rpcs: + for _item_pending_rpcs in self.pending_rpcs: + if _item_pending_rpcs: + _items.append(_item_pending_rpcs.to_dict()) + _dict['pending_rpcs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs_by_hostlist (list) + _items = [] + if self.pending_rpcs_by_hostlist: + for _item_pending_rpcs_by_hostlist in self.pending_rpcs_by_hostlist: + if _item_pending_rpcs_by_hostlist: + _items.append(_item_pending_rpcs_by_hostlist.to_dict()) + _dict['pending_rpcs_by_hostlist'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatistics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parts_packed": obj.get("parts_packed"), + "req_time": V0041OpenapiDiagRespStatisticsReqTime.from_dict(obj["req_time"]) if obj.get("req_time") is not None else None, + "req_time_start": V0041OpenapiDiagRespStatisticsReqTimeStart.from_dict(obj["req_time_start"]) if obj.get("req_time_start") is not None else None, + "server_thread_count": obj.get("server_thread_count"), + "agent_queue_size": obj.get("agent_queue_size"), + "agent_count": obj.get("agent_count"), + "agent_thread_count": obj.get("agent_thread_count"), + "dbd_agent_queue_size": obj.get("dbd_agent_queue_size"), + "gettimeofday_latency": obj.get("gettimeofday_latency"), + "schedule_cycle_max": obj.get("schedule_cycle_max"), + "schedule_cycle_last": obj.get("schedule_cycle_last"), + "schedule_cycle_sum": obj.get("schedule_cycle_sum"), + "schedule_cycle_total": obj.get("schedule_cycle_total"), + "schedule_cycle_mean": obj.get("schedule_cycle_mean"), + "schedule_cycle_mean_depth": obj.get("schedule_cycle_mean_depth"), + "schedule_cycle_per_minute": obj.get("schedule_cycle_per_minute"), + "schedule_cycle_depth": obj.get("schedule_cycle_depth"), + "schedule_exit": V0041OpenapiDiagRespStatisticsScheduleExit.from_dict(obj["schedule_exit"]) if obj.get("schedule_exit") is not None else None, + "schedule_queue_length": obj.get("schedule_queue_length"), + "jobs_submitted": obj.get("jobs_submitted"), + "jobs_started": obj.get("jobs_started"), + "jobs_completed": obj.get("jobs_completed"), + "jobs_canceled": obj.get("jobs_canceled"), + "jobs_failed": obj.get("jobs_failed"), + "jobs_pending": obj.get("jobs_pending"), + "jobs_running": obj.get("jobs_running"), + "job_states_ts": V0041OpenapiDiagRespStatisticsJobStatesTs.from_dict(obj["job_states_ts"]) if obj.get("job_states_ts") is not None else None, + "bf_backfilled_jobs": obj.get("bf_backfilled_jobs"), + "bf_last_backfilled_jobs": obj.get("bf_last_backfilled_jobs"), + "bf_backfilled_het_jobs": obj.get("bf_backfilled_het_jobs"), + "bf_cycle_counter": obj.get("bf_cycle_counter"), + "bf_cycle_mean": obj.get("bf_cycle_mean"), + "bf_depth_mean": obj.get("bf_depth_mean"), + "bf_depth_mean_try": obj.get("bf_depth_mean_try"), + "bf_cycle_sum": obj.get("bf_cycle_sum"), + "bf_cycle_last": obj.get("bf_cycle_last"), + "bf_cycle_max": obj.get("bf_cycle_max"), + "bf_exit": V0041OpenapiDiagRespStatisticsBfExit.from_dict(obj["bf_exit"]) if obj.get("bf_exit") is not None else None, + "bf_last_depth": obj.get("bf_last_depth"), + "bf_last_depth_try": obj.get("bf_last_depth_try"), + "bf_depth_sum": obj.get("bf_depth_sum"), + "bf_depth_try_sum": obj.get("bf_depth_try_sum"), + "bf_queue_len": obj.get("bf_queue_len"), + "bf_queue_len_mean": obj.get("bf_queue_len_mean"), + "bf_queue_len_sum": obj.get("bf_queue_len_sum"), + "bf_table_size": obj.get("bf_table_size"), + "bf_table_size_sum": obj.get("bf_table_size_sum"), + "bf_table_size_mean": obj.get("bf_table_size_mean"), + "bf_when_last_cycle": V0041OpenapiDiagRespStatisticsBfWhenLastCycle.from_dict(obj["bf_when_last_cycle"]) if obj.get("bf_when_last_cycle") is not None else None, + "bf_active": obj.get("bf_active"), + "rpcs_by_message_type": [V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner.from_dict(_item) for _item in obj["rpcs_by_message_type"]] if obj.get("rpcs_by_message_type") is not None else None, + "rpcs_by_user": [V0041OpenapiDiagRespStatisticsRpcsByUserInner.from_dict(_item) for _item in obj["rpcs_by_user"]] if obj.get("rpcs_by_user") is not None else None, + "pending_rpcs": [V0041OpenapiDiagRespStatisticsPendingRpcsInner.from_dict(_item) for _item in obj["pending_rpcs"]] if obj.get("pending_rpcs") is not None else None, + "pending_rpcs_by_hostlist": [V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner.from_dict(_item) for _item in obj["pending_rpcs_by_hostlist"]] if obj.get("pending_rpcs_by_hostlist") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_exit.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_exit.py new file mode 100644 index 0000000..0765b69 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_exit.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsBfExit(BaseModel): + """ + Reasons for which the backfill scheduling cycle exited since last reset + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + bf_max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + bf_max_job_test: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + bf_max_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + bf_node_space_size: Optional[StrictInt] = Field(default=None, description="Reached table size limit") + state_changed: Optional[StrictInt] = Field(default=None, description="System state changed") + __properties: ClassVar[List[str]] = ["end_job_queue", "bf_max_job_start", "bf_max_job_test", "bf_max_time", "bf_node_space_size", "state_changed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsBfExit from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsBfExit from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "bf_max_job_start": obj.get("bf_max_job_start"), + "bf_max_job_test": obj.get("bf_max_job_test"), + "bf_max_time": obj.get("bf_max_time"), + "bf_node_space_size": obj.get("bf_node_space_size"), + "state_changed": obj.get("state_changed") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py new file mode 100644 index 0000000..5b39742 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsBfWhenLastCycle(BaseModel): + """ + When the last backfill scheduling cycle happened (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsBfWhenLastCycle from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsBfWhenLastCycle from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_job_states_ts.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_job_states_ts.py new file mode 100644 index 0000000..3e64e27 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_job_states_ts.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsJobStatesTs(BaseModel): + """ + When the job state counts were gathered (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsJobStatesTs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsJobStatesTs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py new file mode 100644 index 0000000..52a352f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner(BaseModel): + """ + Pending RPCs by hostlist + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string") + count: List[StrictStr] = Field(description="Number of RPCs received") + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py new file mode 100644 index 0000000..9b536f5 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsPendingRpcsInner(BaseModel): + """ + Pending RPCs + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string") + count: StrictInt = Field(description="Number of pending RPCs queued") + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsPendingRpcsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time.py new file mode 100644 index 0000000..e5452f0 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsReqTime(BaseModel): + """ + When the request was made (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsReqTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsReqTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time_start.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time_start.py new file mode 100644 index 0000000..700b6f1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_req_time_start.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsReqTimeStart(BaseModel): + """ + When the data in the report started (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsReqTimeStart from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsReqTimeStart from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py new file mode 100644 index 0000000..b91596d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner(BaseModel): + """ + RPCs by type + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string") + count: StrictInt = Field(description="Number of RPCs received") + queued: StrictInt = Field(description="Number of RPCs queued") + dropped: StrictInt = Field(description="Number of RPCs dropped") + cycle_last: StrictInt = Field(description="Number of RPCs processed within the last RPC queue cycle") + cycle_max: StrictInt = Field(description="Maximum number of RPCs processed within a RPC queue cycle since start") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count", "queued", "dropped", "cycle_last", "cycle_max", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count"), + "queued": obj.get("queued"), + "dropped": obj.get("dropped"), + "cycle_last": obj.get("cycle_last"), + "cycle_max": obj.get("cycle_max"), + "total_time": obj.get("total_time"), + "average_time": V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py new file mode 100644 index 0000000..2cd9f58 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime(BaseModel): + """ + Average time spent processing RPC in seconds + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py new file mode 100644 index 0000000..3ecbe66 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsRpcsByUserInner(BaseModel): + """ + RPCs by user + """ # noqa: E501 + user_id: StrictInt = Field(description="User ID (numeric)") + user: StrictStr = Field(description="User name") + count: StrictInt = Field(description="Number of RPCs received") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime + __properties: ClassVar[List[str]] = ["user_id", "user", "count", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsRpcsByUserInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsRpcsByUserInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_id": obj.get("user_id"), + "user": obj.get("user"), + "count": obj.get("count"), + "total_time": obj.get("total_time"), + "average_time": V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_diag_resp_statistics_schedule_exit.py b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_schedule_exit.py new file mode 100644 index 0000000..292f5f4 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_diag_resp_statistics_schedule_exit.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiDiagRespStatisticsScheduleExit(BaseModel): + """ + Reasons for which the scheduling cycle exited since last reset + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + default_queue_depth: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + max_rpc_cnt: Optional[StrictInt] = Field(default=None, description="Reached RPC limit") + max_sched_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + licenses: Optional[StrictInt] = Field(default=None, description="Blocked on licenses") + __properties: ClassVar[List[str]] = ["end_job_queue", "default_queue_depth", "max_job_start", "max_rpc_cnt", "max_sched_time", "licenses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsScheduleExit from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiDiagRespStatisticsScheduleExit from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "default_queue_depth": obj.get("default_queue_depth"), + "max_job_start": obj.get("max_job_start"), + "max_rpc_cnt": obj.get("max_rpc_cnt"), + "max_sched_time": obj.get("max_sched_time"), + "licenses": obj.get("licenses") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_instances_resp.py b/slurmrest_python/models/v0041_openapi_instances_resp.py new file mode 100644 index 0000000..d287f2c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_instances_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner import V0041OpenapiSlurmdbdConfigRespInstancesInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiInstancesResp(BaseModel): + """ + V0041OpenapiInstancesResp + """ # noqa: E501 + instances: List[V0041OpenapiSlurmdbdConfigRespInstancesInner] = Field(description="instances") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiInstancesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiInstancesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "instances": [V0041OpenapiSlurmdbdConfigRespInstancesInner.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_alloc_resp.py b/slurmrest_python/models/v0041_openapi_job_alloc_resp.py new file mode 100644 index 0000000..0463098 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_alloc_resp.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobAllocResp(BaseModel): + """ + V0041OpenapiJobAllocResp + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Submitted Job ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["job_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobAllocResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobAllocResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp.py b/slurmrest_python/models/v0041_openapi_job_info_resp.py new file mode 100644 index 0000000..7275786 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner import V0041OpenapiJobInfoRespJobsInner +from slurmrest_python.models.v0041_openapi_job_info_resp_last_backfill import V0041OpenapiJobInfoRespLastBackfill +from slurmrest_python.models.v0041_openapi_job_info_resp_last_update import V0041OpenapiJobInfoRespLastUpdate +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoResp(BaseModel): + """ + V0041OpenapiJobInfoResp + """ # noqa: E501 + jobs: List[V0041OpenapiJobInfoRespJobsInner] = Field(description="List of jobs") + last_backfill: V0041OpenapiJobInfoRespLastBackfill + last_update: V0041OpenapiJobInfoRespLastUpdate + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["jobs", "last_backfill", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of last_backfill + if self.last_backfill: + _dict['last_backfill'] = self.last_backfill.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0041OpenapiJobInfoRespJobsInner.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "last_backfill": V0041OpenapiJobInfoRespLastBackfill.from_dict(obj["last_backfill"]) if obj.get("last_backfill") is not None else None, + "last_update": V0041OpenapiJobInfoRespLastUpdate.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner.py new file mode 100644 index 0000000..3fc8e77 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner.py @@ -0,0 +1,611 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_memory_per_cpu import V0041JobDescMsgMemoryPerCpu +from slurmrest_python.models.v0041_job_desc_msg_priority import V0041JobDescMsgPriority +from slurmrest_python.models.v0041_job_desc_msg_time_limit import V0041JobDescMsgTimeLimit +from slurmrest_python.models.v0041_job_desc_msg_time_minimum import V0041JobDescMsgTimeMinimum +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_accrue_time import V0041OpenapiJobInfoRespJobsInnerAccrueTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_job_id import V0041OpenapiJobInfoRespJobsInnerArrayJobId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_max_tasks import V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_task_id import V0041OpenapiJobInfoRespJobsInnerArrayTaskId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_billable_tres import V0041OpenapiJobInfoRespJobsInnerBillableTres +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cores_per_socket import V0041OpenapiJobInfoRespJobsInnerCoresPerSocket +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus import V0041OpenapiJobInfoRespJobsInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus_per_task import V0041OpenapiJobInfoRespJobsInnerCpusPerTask +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_deadline import V0041OpenapiJobInfoRespJobsInnerDeadline +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_delay_boot import V0041OpenapiJobInfoRespJobsInnerDelayBoot +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_eligible_time import V0041OpenapiJobInfoRespJobsInnerEligibleTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_end_time import V0041OpenapiJobInfoRespJobsInnerEndTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_exit_code import V0041OpenapiJobInfoRespJobsInnerExitCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_id import V0041OpenapiJobInfoRespJobsInnerHetJobId +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_offset import V0041OpenapiJobInfoRespJobsInnerHetJobOffset +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources import V0041OpenapiJobInfoRespJobsInnerJobResources +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation import V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_cpus import V0041OpenapiJobInfoRespJobsInnerMaxCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_nodes import V0041OpenapiJobInfoRespJobsInnerMaxNodes +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_memory_per_node import V0041OpenapiJobInfoRespJobsInnerMemoryPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_node_count import V0041OpenapiJobInfoRespJobsInnerNodeCount +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_pre_sus_time import V0041OpenapiJobInfoRespJobsInnerPreSusTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preempt_time import V0041OpenapiJobInfoRespJobsInnerPreemptTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preemptable_time import V0041OpenapiJobInfoRespJobsInnerPreemptableTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_resize_time import V0041OpenapiJobInfoRespJobsInnerResizeTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_sockets_per_node import V0041OpenapiJobInfoRespJobsInnerSocketsPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_start_time import V0041OpenapiJobInfoRespJobsInnerStartTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_submit_time import V0041OpenapiJobInfoRespJobsInnerSubmitTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_suspend_time import V0041OpenapiJobInfoRespJobsInnerSuspendTime +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks import V0041OpenapiJobInfoRespJobsInnerTasks +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_board import V0041OpenapiJobInfoRespJobsInnerTasksPerBoard +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_core import V0041OpenapiJobInfoRespJobsInnerTasksPerCore +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_node import V0041OpenapiJobInfoRespJobsInnerTasksPerNode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket import V0041OpenapiJobInfoRespJobsInnerTasksPerSocket +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres import V0041OpenapiJobInfoRespJobsInnerTasksPerTres +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_threads_per_core import V0041OpenapiJobInfoRespJobsInnerThreadsPerCore +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInner(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInner + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + accrue_time: Optional[V0041OpenapiJobInfoRespJobsInnerAccrueTime] = None + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocating_node: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + array_job_id: Optional[V0041OpenapiJobInfoRespJobsInnerArrayJobId] = None + array_task_id: Optional[V0041OpenapiJobInfoRespJobsInnerArrayTaskId] = None + array_max_tasks: Optional[V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks] = None + array_task_string: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + association_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for the association") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + batch_flag: Optional[StrictBool] = Field(default=None, description="True if batch job") + batch_host: Optional[StrictStr] = Field(default=None, description="Name of host running batch script") + flags: Optional[List[StrictStr]] = Field(default=None, description="Job flags") + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + burst_buffer_state: Optional[StrictStr] = Field(default=None, description="Burst buffer state details") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + cluster_features: Optional[StrictStr] = Field(default=None, description="List of required cluster features") + command: Optional[StrictStr] = Field(default=None, description="Executed command") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + core_spec: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_spec: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cores_per_socket: Optional[V0041OpenapiJobInfoRespJobsInnerCoresPerSocket] = None + billable_tres: Optional[V0041OpenapiJobInfoRespJobsInnerBillableTres] = None + cpus_per_task: Optional[V0041OpenapiJobInfoRespJobsInnerCpusPerTask] = None + cpu_frequency_minimum: Optional[V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum] = None + cpu_frequency_maximum: Optional[V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum] = None + cpu_frequency_governor: Optional[V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor] = None + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + cron: Optional[StrictStr] = Field(default=None, description="Time specification for scrontab job") + deadline: Optional[V0041OpenapiJobInfoRespJobsInnerDeadline] = None + delay_boot: Optional[V0041OpenapiJobInfoRespJobsInnerDelayBoot] = None + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + derived_exit_code: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCode] = None + eligible_time: Optional[V0041OpenapiJobInfoRespJobsInnerEligibleTime] = None + end_time: Optional[V0041OpenapiJobInfoRespJobsInnerEndTime] = None + excluded_nodes: Optional[StrictStr] = Field(default=None, description="Comma separated list of nodes that may not be used") + exit_code: Optional[V0041OpenapiJobInfoRespJobsInnerExitCode] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + features: Optional[StrictStr] = Field(default=None, description="Comma separated list of features that are required") + federation_origin: Optional[StrictStr] = Field(default=None, description="Origin cluster's name (when using federation)") + federation_siblings_active: Optional[StrictStr] = Field(default=None, description="Active sibling job names") + federation_siblings_viable: Optional[StrictStr] = Field(default=None, description="Viable sibling job names") + gres_detail: Optional[List[StrictStr]] = Field(default=None, description="List of GRES index and counts allocated per node") + group_id: Optional[StrictInt] = Field(default=None, description="Group ID of the user that owns the job") + group_name: Optional[StrictStr] = Field(default=None, description="Group name of the user that owns the job") + het_job_id: Optional[V0041OpenapiJobInfoRespJobsInnerHetJobId] = None + het_job_id_set: Optional[StrictStr] = Field(default=None, description="Job ID range for all heterogeneous job components") + het_job_offset: Optional[V0041OpenapiJobInfoRespJobsInnerHetJobOffset] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + job_resources: Optional[V0041OpenapiJobInfoRespJobsInnerJobResources] = None + job_size_str: Optional[List[StrictStr]] = Field(default=None, description="Number of nodes (in a range) required for this job") + job_state: Optional[List[StrictStr]] = Field(default=None, description="Current state") + last_sched_evaluation: Optional[V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation] = None + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mail_type: Optional[List[StrictStr]] = Field(default=None, description="Mail event type(s)") + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + max_cpus: Optional[V0041OpenapiJobInfoRespJobsInnerMaxCpus] = None + max_nodes: Optional[V0041OpenapiJobInfoRespJobsInnerMaxNodes] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for the job") + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks_per_core: Optional[V0041OpenapiJobInfoRespJobsInnerTasksPerCore] = None + tasks_per_tres: Optional[V0041OpenapiJobInfoRespJobsInnerTasksPerTres] = None + tasks_per_node: Optional[V0041OpenapiJobInfoRespJobsInnerTasksPerNode] = None + tasks_per_socket: Optional[V0041OpenapiJobInfoRespJobsInnerTasksPerSocket] = None + tasks_per_board: Optional[V0041OpenapiJobInfoRespJobsInnerTasksPerBoard] = None + cpus: Optional[V0041OpenapiJobInfoRespJobsInnerCpus] = None + node_count: Optional[V0041OpenapiJobInfoRespJobsInnerNodeCount] = None + tasks: Optional[V0041OpenapiJobInfoRespJobsInnerTasks] = None + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + prefer: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested but that are not required") + memory_per_cpu: Optional[V0041JobDescMsgMemoryPerCpu] = None + memory_per_node: Optional[V0041OpenapiJobInfoRespJobsInnerMemoryPerNode] = None + minimum_cpus_per_node: Optional[V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode] = None + minimum_tmp_disk_per_node: Optional[V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode] = None + power: Optional[V0041OpenapiJobInfoRespJobsInnerPower] = None + preempt_time: Optional[V0041OpenapiJobInfoRespJobsInnerPreemptTime] = None + preemptable_time: Optional[V0041OpenapiJobInfoRespJobsInnerPreemptableTime] = None + pre_sus_time: Optional[V0041OpenapiJobInfoRespJobsInnerPreSusTime] = None + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job") + priority: Optional[V0041JobDescMsgPriority] = None + profile: Optional[List[StrictStr]] = Field(default=None, description="Profile used by the acct_gather_profile plugin") + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job, if pending the QOS requested") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[StrictStr] = Field(default=None, description="Comma separated list of required nodes") + minimum_switches: Optional[StrictInt] = Field(default=None, description="Maximum number of switches (the 'minimum' in the key is incorrect)") + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + resize_time: Optional[V0041OpenapiJobInfoRespJobsInnerResizeTime] = None + restart_cnt: Optional[StrictInt] = Field(default=None, description="Number of job restarts") + resv_name: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + scheduled_nodes: Optional[StrictStr] = Field(default=None, description="List of nodes scheduled to be used for the job") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + shared: Optional[List[StrictStr]] = Field(default=None, description="How the job can share resources with other jobs, if at all") + exclusive: Optional[List[StrictStr]] = None + oversubscribe: Optional[StrictBool] = None + show_flags: Optional[List[StrictStr]] = None + sockets_per_board: Optional[StrictInt] = Field(default=None, description="Number of sockets per board required") + sockets_per_node: Optional[V0041OpenapiJobInfoRespJobsInnerSocketsPerNode] = None + start_time: Optional[V0041OpenapiJobInfoRespJobsInnerStartTime] = None + state_description: Optional[StrictStr] = Field(default=None, description="Optional details for state_reason") + state_reason: Optional[StrictStr] = Field(default=None, description="Reason for current Pending or Failed state") + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + submit_time: Optional[V0041OpenapiJobInfoRespJobsInnerSubmitTime] = None + suspend_time: Optional[V0041OpenapiJobInfoRespJobsInnerSuspendTime] = None + system_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment from slurmctld") + time_limit: Optional[V0041JobDescMsgTimeLimit] = None + time_minimum: Optional[V0041JobDescMsgTimeMinimum] = None + threads_per_core: Optional[V0041OpenapiJobInfoRespJobsInnerThreadsPerCore] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per task") + tres_req_str: Optional[StrictStr] = Field(default=None, description="TRES requested by the job") + tres_alloc_str: Optional[StrictStr] = Field(default=None, description="TRES used by the job") + user_id: Optional[StrictInt] = Field(default=None, description="User ID that owns the job") + user_name: Optional[StrictStr] = Field(default=None, description="User name that owns the job") + maximum_switch_wait_time: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + __properties: ClassVar[List[str]] = ["account", "accrue_time", "admin_comment", "allocating_node", "array_job_id", "array_task_id", "array_max_tasks", "array_task_string", "association_id", "batch_features", "batch_flag", "batch_host", "flags", "burst_buffer", "burst_buffer_state", "cluster", "cluster_features", "command", "comment", "container", "container_id", "contiguous", "core_spec", "thread_spec", "cores_per_socket", "billable_tres", "cpus_per_task", "cpu_frequency_minimum", "cpu_frequency_maximum", "cpu_frequency_governor", "cpus_per_tres", "cron", "deadline", "delay_boot", "dependency", "derived_exit_code", "eligible_time", "end_time", "excluded_nodes", "exit_code", "extra", "failed_node", "features", "federation_origin", "federation_siblings_active", "federation_siblings_viable", "gres_detail", "group_id", "group_name", "het_job_id", "het_job_id_set", "het_job_offset", "job_id", "job_resources", "job_size_str", "job_state", "last_sched_evaluation", "licenses", "mail_type", "mail_user", "max_cpus", "max_nodes", "mcs_label", "memory_per_tres", "name", "network", "nodes", "nice", "tasks_per_core", "tasks_per_tres", "tasks_per_node", "tasks_per_socket", "tasks_per_board", "cpus", "node_count", "tasks", "partition", "prefer", "memory_per_cpu", "memory_per_node", "minimum_cpus_per_node", "minimum_tmp_disk_per_node", "power", "preempt_time", "preemptable_time", "pre_sus_time", "hold", "priority", "profile", "qos", "reboot", "required_nodes", "minimum_switches", "requeue", "resize_time", "restart_cnt", "resv_name", "scheduled_nodes", "selinux_context", "shared", "exclusive", "oversubscribe", "show_flags", "sockets_per_board", "sockets_per_node", "start_time", "state_description", "state_reason", "standard_error", "standard_input", "standard_output", "submit_time", "suspend_time", "system_comment", "time_limit", "time_minimum", "threads_per_core", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "tres_req_str", "tres_alloc_str", "user_id", "user_name", "maximum_switch_wait_time", "wckey", "current_working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + @field_validator('exclusive') + def exclusive_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['true', 'false', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('true', 'false', 'user', 'mcs', 'topo')") + return value + + @field_validator('show_flags') + def show_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['ALL', 'DETAIL', 'MIXED', 'LOCAL', 'SIBLING', 'FEDERATION', 'FUTURE']): + raise ValueError("each list item must be one of ('ALL', 'DETAIL', 'MIXED', 'LOCAL', 'SIBLING', 'FEDERATION', 'FUTURE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accrue_time + if self.accrue_time: + _dict['accrue_time'] = self.accrue_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_job_id + if self.array_job_id: + _dict['array_job_id'] = self.array_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_task_id + if self.array_task_id: + _dict['array_task_id'] = self.array_task_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_max_tasks + if self.array_max_tasks: + _dict['array_max_tasks'] = self.array_max_tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cores_per_socket + if self.cores_per_socket: + _dict['cores_per_socket'] = self.cores_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of billable_tres + if self.billable_tres: + _dict['billable_tres'] = self.billable_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_task + if self.cpus_per_task: + _dict['cpus_per_task'] = self.cpus_per_task.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_minimum + if self.cpu_frequency_minimum: + _dict['cpu_frequency_minimum'] = self.cpu_frequency_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_maximum + if self.cpu_frequency_maximum: + _dict['cpu_frequency_maximum'] = self.cpu_frequency_maximum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_governor + if self.cpu_frequency_governor: + _dict['cpu_frequency_governor'] = self.cpu_frequency_governor.to_dict() + # override the default output from pydantic by calling `to_dict()` of deadline + if self.deadline: + _dict['deadline'] = self.deadline.to_dict() + # override the default output from pydantic by calling `to_dict()` of delay_boot + if self.delay_boot: + _dict['delay_boot'] = self.delay_boot.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of eligible_time + if self.eligible_time: + _dict['eligible_time'] = self.eligible_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_id + if self.het_job_id: + _dict['het_job_id'] = self.het_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_offset + if self.het_job_offset: + _dict['het_job_offset'] = self.het_job_offset.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_resources + if self.job_resources: + _dict['job_resources'] = self.job_resources.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_sched_evaluation + if self.last_sched_evaluation: + _dict['last_sched_evaluation'] = self.last_sched_evaluation.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_cpus + if self.max_cpus: + _dict['max_cpus'] = self.max_cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_nodes + if self.max_nodes: + _dict['max_nodes'] = self.max_nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_core + if self.tasks_per_core: + _dict['tasks_per_core'] = self.tasks_per_core.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_tres + if self.tasks_per_tres: + _dict['tasks_per_tres'] = self.tasks_per_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_node + if self.tasks_per_node: + _dict['tasks_per_node'] = self.tasks_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_socket + if self.tasks_per_socket: + _dict['tasks_per_socket'] = self.tasks_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_board + if self.tasks_per_board: + _dict['tasks_per_board'] = self.tasks_per_board.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of node_count + if self.node_count: + _dict['node_count'] = self.node_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_cpus_per_node + if self.minimum_cpus_per_node: + _dict['minimum_cpus_per_node'] = self.minimum_cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_tmp_disk_per_node + if self.minimum_tmp_disk_per_node: + _dict['minimum_tmp_disk_per_node'] = self.minimum_tmp_disk_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of power + if self.power: + _dict['power'] = self.power.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt_time + if self.preempt_time: + _dict['preempt_time'] = self.preempt_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of preemptable_time + if self.preemptable_time: + _dict['preemptable_time'] = self.preemptable_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of pre_sus_time + if self.pre_sus_time: + _dict['pre_sus_time'] = self.pre_sus_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of resize_time + if self.resize_time: + _dict['resize_time'] = self.resize_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of sockets_per_node + if self.sockets_per_node: + _dict['sockets_per_node'] = self.sockets_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of submit_time + if self.submit_time: + _dict['submit_time'] = self.submit_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "accrue_time": V0041OpenapiJobInfoRespJobsInnerAccrueTime.from_dict(obj["accrue_time"]) if obj.get("accrue_time") is not None else None, + "admin_comment": obj.get("admin_comment"), + "allocating_node": obj.get("allocating_node"), + "array_job_id": V0041OpenapiJobInfoRespJobsInnerArrayJobId.from_dict(obj["array_job_id"]) if obj.get("array_job_id") is not None else None, + "array_task_id": V0041OpenapiJobInfoRespJobsInnerArrayTaskId.from_dict(obj["array_task_id"]) if obj.get("array_task_id") is not None else None, + "array_max_tasks": V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks.from_dict(obj["array_max_tasks"]) if obj.get("array_max_tasks") is not None else None, + "array_task_string": obj.get("array_task_string"), + "association_id": obj.get("association_id"), + "batch_features": obj.get("batch_features"), + "batch_flag": obj.get("batch_flag"), + "batch_host": obj.get("batch_host"), + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "burst_buffer_state": obj.get("burst_buffer_state"), + "cluster": obj.get("cluster"), + "cluster_features": obj.get("cluster_features"), + "command": obj.get("command"), + "comment": obj.get("comment"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "contiguous": obj.get("contiguous"), + "core_spec": obj.get("core_spec"), + "thread_spec": obj.get("thread_spec"), + "cores_per_socket": V0041OpenapiJobInfoRespJobsInnerCoresPerSocket.from_dict(obj["cores_per_socket"]) if obj.get("cores_per_socket") is not None else None, + "billable_tres": V0041OpenapiJobInfoRespJobsInnerBillableTres.from_dict(obj["billable_tres"]) if obj.get("billable_tres") is not None else None, + "cpus_per_task": V0041OpenapiJobInfoRespJobsInnerCpusPerTask.from_dict(obj["cpus_per_task"]) if obj.get("cpus_per_task") is not None else None, + "cpu_frequency_minimum": V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum.from_dict(obj["cpu_frequency_minimum"]) if obj.get("cpu_frequency_minimum") is not None else None, + "cpu_frequency_maximum": V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum.from_dict(obj["cpu_frequency_maximum"]) if obj.get("cpu_frequency_maximum") is not None else None, + "cpu_frequency_governor": V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor.from_dict(obj["cpu_frequency_governor"]) if obj.get("cpu_frequency_governor") is not None else None, + "cpus_per_tres": obj.get("cpus_per_tres"), + "cron": obj.get("cron"), + "deadline": V0041OpenapiJobInfoRespJobsInnerDeadline.from_dict(obj["deadline"]) if obj.get("deadline") is not None else None, + "delay_boot": V0041OpenapiJobInfoRespJobsInnerDelayBoot.from_dict(obj["delay_boot"]) if obj.get("delay_boot") is not None else None, + "dependency": obj.get("dependency"), + "derived_exit_code": V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "eligible_time": V0041OpenapiJobInfoRespJobsInnerEligibleTime.from_dict(obj["eligible_time"]) if obj.get("eligible_time") is not None else None, + "end_time": V0041OpenapiJobInfoRespJobsInnerEndTime.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "exit_code": V0041OpenapiJobInfoRespJobsInnerExitCode.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "features": obj.get("features"), + "federation_origin": obj.get("federation_origin"), + "federation_siblings_active": obj.get("federation_siblings_active"), + "federation_siblings_viable": obj.get("federation_siblings_viable"), + "gres_detail": obj.get("gres_detail"), + "group_id": obj.get("group_id"), + "group_name": obj.get("group_name"), + "het_job_id": V0041OpenapiJobInfoRespJobsInnerHetJobId.from_dict(obj["het_job_id"]) if obj.get("het_job_id") is not None else None, + "het_job_id_set": obj.get("het_job_id_set"), + "het_job_offset": V0041OpenapiJobInfoRespJobsInnerHetJobOffset.from_dict(obj["het_job_offset"]) if obj.get("het_job_offset") is not None else None, + "job_id": obj.get("job_id"), + "job_resources": V0041OpenapiJobInfoRespJobsInnerJobResources.from_dict(obj["job_resources"]) if obj.get("job_resources") is not None else None, + "job_size_str": obj.get("job_size_str"), + "job_state": obj.get("job_state"), + "last_sched_evaluation": V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation.from_dict(obj["last_sched_evaluation"]) if obj.get("last_sched_evaluation") is not None else None, + "licenses": obj.get("licenses"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "max_cpus": V0041OpenapiJobInfoRespJobsInnerMaxCpus.from_dict(obj["max_cpus"]) if obj.get("max_cpus") is not None else None, + "max_nodes": V0041OpenapiJobInfoRespJobsInnerMaxNodes.from_dict(obj["max_nodes"]) if obj.get("max_nodes") is not None else None, + "mcs_label": obj.get("mcs_label"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nodes": obj.get("nodes"), + "nice": obj.get("nice"), + "tasks_per_core": V0041OpenapiJobInfoRespJobsInnerTasksPerCore.from_dict(obj["tasks_per_core"]) if obj.get("tasks_per_core") is not None else None, + "tasks_per_tres": V0041OpenapiJobInfoRespJobsInnerTasksPerTres.from_dict(obj["tasks_per_tres"]) if obj.get("tasks_per_tres") is not None else None, + "tasks_per_node": V0041OpenapiJobInfoRespJobsInnerTasksPerNode.from_dict(obj["tasks_per_node"]) if obj.get("tasks_per_node") is not None else None, + "tasks_per_socket": V0041OpenapiJobInfoRespJobsInnerTasksPerSocket.from_dict(obj["tasks_per_socket"]) if obj.get("tasks_per_socket") is not None else None, + "tasks_per_board": V0041OpenapiJobInfoRespJobsInnerTasksPerBoard.from_dict(obj["tasks_per_board"]) if obj.get("tasks_per_board") is not None else None, + "cpus": V0041OpenapiJobInfoRespJobsInnerCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "node_count": V0041OpenapiJobInfoRespJobsInnerNodeCount.from_dict(obj["node_count"]) if obj.get("node_count") is not None else None, + "tasks": V0041OpenapiJobInfoRespJobsInnerTasks.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "partition": obj.get("partition"), + "prefer": obj.get("prefer"), + "memory_per_cpu": V0041JobDescMsgMemoryPerCpu.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "minimum_cpus_per_node": V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode.from_dict(obj["minimum_cpus_per_node"]) if obj.get("minimum_cpus_per_node") is not None else None, + "minimum_tmp_disk_per_node": V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode.from_dict(obj["minimum_tmp_disk_per_node"]) if obj.get("minimum_tmp_disk_per_node") is not None else None, + "power": V0041OpenapiJobInfoRespJobsInnerPower.from_dict(obj["power"]) if obj.get("power") is not None else None, + "preempt_time": V0041OpenapiJobInfoRespJobsInnerPreemptTime.from_dict(obj["preempt_time"]) if obj.get("preempt_time") is not None else None, + "preemptable_time": V0041OpenapiJobInfoRespJobsInnerPreemptableTime.from_dict(obj["preemptable_time"]) if obj.get("preemptable_time") is not None else None, + "pre_sus_time": V0041OpenapiJobInfoRespJobsInnerPreSusTime.from_dict(obj["pre_sus_time"]) if obj.get("pre_sus_time") is not None else None, + "hold": obj.get("hold"), + "priority": V0041JobDescMsgPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "minimum_switches": obj.get("minimum_switches"), + "requeue": obj.get("requeue"), + "resize_time": V0041OpenapiJobInfoRespJobsInnerResizeTime.from_dict(obj["resize_time"]) if obj.get("resize_time") is not None else None, + "restart_cnt": obj.get("restart_cnt"), + "resv_name": obj.get("resv_name"), + "scheduled_nodes": obj.get("scheduled_nodes"), + "selinux_context": obj.get("selinux_context"), + "shared": obj.get("shared"), + "exclusive": obj.get("exclusive"), + "oversubscribe": obj.get("oversubscribe"), + "show_flags": obj.get("show_flags"), + "sockets_per_board": obj.get("sockets_per_board"), + "sockets_per_node": V0041OpenapiJobInfoRespJobsInnerSocketsPerNode.from_dict(obj["sockets_per_node"]) if obj.get("sockets_per_node") is not None else None, + "start_time": V0041OpenapiJobInfoRespJobsInnerStartTime.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "state_description": obj.get("state_description"), + "state_reason": obj.get("state_reason"), + "standard_error": obj.get("standard_error"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "submit_time": V0041OpenapiJobInfoRespJobsInnerSubmitTime.from_dict(obj["submit_time"]) if obj.get("submit_time") is not None else None, + "suspend_time": V0041OpenapiJobInfoRespJobsInnerSuspendTime.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None, + "system_comment": obj.get("system_comment"), + "time_limit": V0041JobDescMsgTimeLimit.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0041JobDescMsgTimeMinimum.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "threads_per_core": V0041OpenapiJobInfoRespJobsInnerThreadsPerCore.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "tres_req_str": obj.get("tres_req_str"), + "tres_alloc_str": obj.get("tres_alloc_str"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "maximum_switch_wait_time": obj.get("maximum_switch_wait_time"), + "wckey": obj.get("wckey"), + "current_working_directory": obj.get("current_working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_accrue_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_accrue_time.py new file mode 100644 index 0000000..03cb123 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_accrue_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerAccrueTime(BaseModel): + """ + When the job started accruing age priority (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerAccrueTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerAccrueTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_job_id.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_job_id.py new file mode 100644 index 0000000..1022bae --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_job_id.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerArrayJobId(BaseModel): + """ + Job ID of job array, or 0 if N/A + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerArrayJobId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerArrayJobId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py new file mode 100644 index 0000000..8bbc036 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks(BaseModel): + """ + Maximum number of simultaneously running array tasks, 0 if no limit + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_task_id.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_task_id.py new file mode 100644 index 0000000..d5154c6 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_array_task_id.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerArrayTaskId(BaseModel): + """ + Task ID of this task in job array + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerArrayTaskId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerArrayTaskId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_billable_tres.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_billable_tres.py new file mode 100644 index 0000000..76794a8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_billable_tres.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerBillableTres(BaseModel): + """ + Billable TRES + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerBillableTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerBillableTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py new file mode 100644 index 0000000..660ce7e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerCoresPerSocket(BaseModel): + """ + Cores per socket required + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCoresPerSocket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCoresPerSocket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py new file mode 100644 index 0000000..a8abe78 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor(BaseModel): + """ + CPU frequency governor + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py new file mode 100644 index 0000000..b91a570 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum(BaseModel): + """ + Maximum CPU frequency + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py new file mode 100644 index 0000000..47402f8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum(BaseModel): + """ + Minimum CPU frequency + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus.py new file mode 100644 index 0000000..f1cbffd --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerCpus(BaseModel): + """ + Minimum number of CPUs required + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py new file mode 100644 index 0000000..6694b4c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerCpusPerTask(BaseModel): + """ + Number of CPUs required by each task + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpusPerTask from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerCpusPerTask from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_deadline.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_deadline.py new file mode 100644 index 0000000..c2bed43 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_deadline.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerDeadline(BaseModel): + """ + Latest time that the job may start (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDeadline from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDeadline from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_delay_boot.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_delay_boot.py new file mode 100644 index 0000000..06129ac --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_delay_boot.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerDelayBoot(BaseModel): + """ + Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDelayBoot from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDelayBoot from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py new file mode 100644 index 0000000..a5944c7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerDerivedExitCode(BaseModel): + """ + Highest exit code of all job steps + """ # noqa: E501 + status: Optional[List[StrictStr]] = Field(default=None, description="Status given by return code") + return_code: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode] = None + signal: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal] = None + __properties: ClassVar[List[str]] = ["status", "return_code", "signal"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED']): + raise ValueError("each list item must be one of ('INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of return_code + if self.return_code: + _dict['return_code'] = self.return_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of signal + if self.signal: + _dict['signal'] = self.signal.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "return_code": V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.from_dict(obj["return_code"]) if obj.get("return_code") is not None else None, + "signal": V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.from_dict(obj["signal"]) if obj.get("signal") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py new file mode 100644 index 0000000..57ee20b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode(BaseModel): + """ + Process return code (numeric) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py new file mode 100644 index 0000000..44cab37 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal + """ # noqa: E501 + id: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId] = None + name: Optional[StrictStr] = Field(default=None, description="Signal sent to process") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId.from_dict(obj["id"]) if obj.get("id") is not None else None, + "name": obj.get("name") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py new file mode 100644 index 0000000..7679ff9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId(BaseModel): + """ + Signal sent to process (numeric) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_eligible_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_eligible_time.py new file mode 100644 index 0000000..671ea1f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_eligible_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerEligibleTime(BaseModel): + """ + Time when the job became eligible to run (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerEligibleTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerEligibleTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_end_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_end_time.py new file mode 100644 index 0000000..b6677a2 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_end_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerEndTime(BaseModel): + """ + End time, real or expected (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerEndTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerEndTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_exit_code.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_exit_code.py new file mode 100644 index 0000000..1a2a07b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_exit_code.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerExitCode(BaseModel): + """ + Exit code of the job + """ # noqa: E501 + status: Optional[List[StrictStr]] = Field(default=None, description="Status given by return code") + return_code: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode] = None + signal: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal] = None + __properties: ClassVar[List[str]] = ["status", "return_code", "signal"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED']): + raise ValueError("each list item must be one of ('INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerExitCode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of return_code + if self.return_code: + _dict['return_code'] = self.return_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of signal + if self.signal: + _dict['signal'] = self.signal.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerExitCode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "return_code": V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.from_dict(obj["return_code"]) if obj.get("return_code") is not None else None, + "signal": V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.from_dict(obj["signal"]) if obj.get("signal") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_id.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_id.py new file mode 100644 index 0000000..9ee393d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_id.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerHetJobId(BaseModel): + """ + Heterogeneous job ID, if applicable + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py new file mode 100644 index 0000000..5f2b325 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerHetJobOffset(BaseModel): + """ + Unique sequence number applied to this component of the heterogeneous job + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobOffset from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerHetJobOffset from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources.py new file mode 100644 index 0000000..baf0792 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core import V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResources(BaseModel): + """ + Resources used by the job + """ # noqa: E501 + select_type: List[StrictStr] = Field(description="Scheduler consumable resource selection type") + nodes: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes] = None + cpus: StrictInt = Field(description="Number of allocated CPUs") + threads_per_core: V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore + __properties: ClassVar[List[str]] = ["select_type", "nodes", "cpus", "threads_per_core"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResources from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResources from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "select_type": obj.get("select_type"), + "nodes": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "cpus": obj.get("cpus"), + "threads_per_core": V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py new file mode 100644 index 0000000..45de629 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of allocated nodes") + select_type: Optional[List[StrictStr]] = Field(default=None, description="Node scheduling selection method") + list: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + whole: Optional[StrictBool] = Field(default=None, description="Whether whole nodes were allocated") + allocation: Optional[List[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner]] = Field(default=None, description="Allocated node resources") + __properties: ClassVar[List[str]] = ["count", "select_type", "list", "whole", "allocation"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['AVAILABLE', 'ONE_ROW', 'RESERVED']): + raise ValueError("each list item must be one of ('AVAILABLE', 'ONE_ROW', 'RESERVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocation (list) + _items = [] + if self.allocation: + for _item_allocation in self.allocation: + if _item_allocation: + _items.append(_item_allocation.to_dict()) + _dict['allocation'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "select_type": obj.get("select_type"), + "list": obj.get("list"), + "whole": obj.get("whole"), + "allocation": [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner.from_dict(_item) for _item in obj["allocation"]] if obj.get("allocation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py new file mode 100644 index 0000000..f49e9a1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner(BaseModel): + """ + Job resources for a node + """ # noqa: E501 + index: StrictInt = Field(description="Node index") + name: StrictStr = Field(description="Node name") + cpus: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus] = None + memory: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory] = None + sockets: List[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner] = Field(description="Socket allocations in node") + __properties: ClassVar[List[str]] = ["index", "name", "cpus", "memory", "sockets"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory + if self.memory: + _dict['memory'] = self.memory.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in sockets (list) + _items = [] + if self.sockets: + for _item_sockets in self.sockets: + if _item_sockets: + _items.append(_item_sockets.to_dict()) + _dict['sockets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "name": obj.get("name"), + "cpus": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "memory": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.from_dict(obj["memory"]) if obj.get("memory") is not None else None, + "sockets": [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner.from_dict(_item) for _item in obj["sockets"]] if obj.get("sockets") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py new file mode 100644 index 0000000..128a390 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Total number of CPUs assigned to job") + used: Optional[StrictInt] = Field(default=None, description="Total number of CPUs used by job") + __properties: ClassVar[List[str]] = ["count", "used"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "used": obj.get("used") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py new file mode 100644 index 0000000..bbbd8d0 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory + """ # noqa: E501 + used: Optional[StrictInt] = Field(default=None, description="Total memory (MiB) used by job") + allocated: Optional[StrictInt] = Field(default=None, description="Total memory (MiB) allocated to job") + __properties: ClassVar[List[str]] = ["used", "allocated"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "used": obj.get("used"), + "allocated": obj.get("allocated") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py new file mode 100644 index 0000000..952c639 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + cores: List[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner] = Field(description="Core in socket") + __properties: ClassVar[List[str]] = ["index", "cores"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in cores (list) + _items = [] + if self.cores: + for _item_cores in self.cores: + if _item_cores: + _items.append(_item_cores.to_dict()) + _dict['cores'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "cores": [V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner.from_dict(_item) for _item in obj["cores"]] if obj.get("cores") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py new file mode 100644 index 0000000..993d954 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + status: List[StrictStr] = Field(description="Core status") + __properties: ClassVar[List[str]] = ["index", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE']): + raise ValueError("each list item must be one of ('INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "status": obj.get("status") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py new file mode 100644 index 0000000..7ae9baf --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore(BaseModel): + """ + Number of processor threads per CPU core + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py new file mode 100644 index 0000000..f782f9e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation(BaseModel): + """ + Last time job was evaluated for scheduling (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_cpus.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_cpus.py new file mode 100644 index 0000000..4f4f1bd --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_cpus.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerMaxCpus(BaseModel): + """ + Maximum number of CPUs usable by the job + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMaxCpus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMaxCpus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_nodes.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_nodes.py new file mode 100644 index 0000000..021f1ed --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_max_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerMaxNodes(BaseModel): + """ + Maximum number of nodes usable by the job + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMaxNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMaxNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py new file mode 100644 index 0000000..7507257 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerMemoryPerNode(BaseModel): + """ + Minimum memory in megabytes per allocated node + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMemoryPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMemoryPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py new file mode 100644 index 0000000..119e892 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode(BaseModel): + """ + Minimum number of CPUs per node + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py new file mode 100644 index 0000000..829941e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode(BaseModel): + """ + Minimum tmp disk space required per node + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_node_count.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_node_count.py new file mode 100644 index 0000000..e89cf53 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_node_count.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerNodeCount(BaseModel): + """ + Minimum number of nodes required + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerNodeCount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerNodeCount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_power.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_power.py new file mode 100644 index 0000000..354ace7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_power.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerPower(BaseModel): + """ + V0041OpenapiJobInfoRespJobsInnerPower + """ # noqa: E501 + flags: Optional[List[Any]] = None + __properties: ClassVar[List[str]] = ["flags"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPower from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPower from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py new file mode 100644 index 0000000..3463582 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerPreSusTime(BaseModel): + """ + Total run time prior to last suspend in seconds + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPreSusTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPreSusTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preempt_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preempt_time.py new file mode 100644 index 0000000..192ae71 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preempt_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerPreemptTime(BaseModel): + """ + Time job received preemption signal (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py new file mode 100644 index 0000000..043fefa --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerPreemptableTime(BaseModel): + """ + Time job becomes eligible for preemption (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptableTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerPreemptableTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_resize_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_resize_time.py new file mode 100644 index 0000000..e58e475 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_resize_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerResizeTime(BaseModel): + """ + Time of last size change (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerResizeTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerResizeTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py new file mode 100644 index 0000000..aeb3873 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerSocketsPerNode(BaseModel): + """ + Number of sockets per node required + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerSocketsPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerSocketsPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_start_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_start_time.py new file mode 100644 index 0000000..0ff33ad --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_start_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerStartTime(BaseModel): + """ + Time execution began, or is expected to begin (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerStartTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerStartTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_submit_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_submit_time.py new file mode 100644 index 0000000..072f86f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_submit_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerSubmitTime(BaseModel): + """ + Time when the job was submitted (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerSubmitTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerSubmitTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_suspend_time.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_suspend_time.py new file mode 100644 index 0000000..6fd5fb1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_suspend_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerSuspendTime(BaseModel): + """ + Time the job was last suspended or resumed (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerSuspendTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerSuspendTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks.py new file mode 100644 index 0000000..4111e15 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerTasks(BaseModel): + """ + Number of tasks + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasks from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasks from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py new file mode 100644 index 0000000..9ec7c7e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerTasksPerBoard(BaseModel): + """ + Number of tasks invoked on each board + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerBoard from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerBoard from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py new file mode 100644 index 0000000..d758a17 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerTasksPerCore(BaseModel): + """ + Number of tasks invoked on each core + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerCore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerCore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py new file mode 100644 index 0000000..1627ac7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerTasksPerNode(BaseModel): + """ + Number of tasks invoked on each node + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py new file mode 100644 index 0000000..7513413 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerTasksPerSocket(BaseModel): + """ + Number of tasks invoked on each socket + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerSocket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerSocket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py new file mode 100644 index 0000000..86ce3a5 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerTasksPerTres(BaseModel): + """ + Number of tasks that can assess each GPU + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerTasksPerTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py new file mode 100644 index 0000000..985b843 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespJobsInnerThreadsPerCore(BaseModel): + """ + Number of processor threads per CPU core required + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerThreadsPerCore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespJobsInnerThreadsPerCore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_last_backfill.py b/slurmrest_python/models/v0041_openapi_job_info_resp_last_backfill.py new file mode 100644 index 0000000..6a980ec --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_last_backfill.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespLastBackfill(BaseModel): + """ + Time of last backfill scheduler run (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespLastBackfill from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespLastBackfill from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_info_resp_last_update.py b/slurmrest_python/models/v0041_openapi_job_info_resp_last_update.py new file mode 100644 index 0000000..f5008ab --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_info_resp_last_update.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobInfoRespLastUpdate(BaseModel): + """ + Time of last job change (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespLastUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobInfoRespLastUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_post_response.py b/slurmrest_python/models/v0041_openapi_job_post_response.py new file mode 100644 index 0000000..b862228 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_post_response.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_post_response_results_inner import V0041OpenapiJobPostResponseResultsInner +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobPostResponse(BaseModel): + """ + V0041OpenapiJobPostResponse + """ # noqa: E501 + results: Optional[List[V0041OpenapiJobPostResponseResultsInner]] = Field(default=None, description="Job update results") + job_id: Optional[StrictStr] = Field(default=None, description="First updated Job ID - Use results instead") + step_id: Optional[StrictStr] = Field(default=None, description="First updated Step ID - Use results instead") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="First updated Job submission user message - Use results instead") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["results", "job_id", "step_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobPostResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "results": [V0041OpenapiJobPostResponseResultsInner.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_post_response_results_inner.py b/slurmrest_python/models/v0041_openapi_job_post_response_results_inner.py new file mode 100644 index 0000000..c4b421b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_post_response_results_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobPostResponseResultsInner(BaseModel): + """ + V0041OpenapiJobPostResponseResultsInner + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID for updated job") + step_id: Optional[StrictStr] = Field(default=None, description="Step ID for updated job") + error: Optional[StrictStr] = Field(default=None, description="Verbose update status or error") + error_code: Optional[StrictInt] = Field(default=None, description="Verbose update status or error") + why: Optional[StrictStr] = Field(default=None, description="Update response message") + __properties: ClassVar[List[str]] = ["job_id", "step_id", "error", "error_code", "why"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobPostResponseResultsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobPostResponseResultsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "error": obj.get("error"), + "error_code": obj.get("error_code"), + "why": obj.get("why") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_submit_response.py b/slurmrest_python/models/v0041_openapi_job_submit_response.py new file mode 100644 index 0000000..0d7133d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_submit_response.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_submit_response_result import V0041OpenapiJobSubmitResponseResult +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobSubmitResponse(BaseModel): + """ + V0041OpenapiJobSubmitResponse + """ # noqa: E501 + result: Optional[V0041OpenapiJobSubmitResponseResult] = None + job_id: Optional[StrictInt] = Field(default=None, description="Submitted Job ID") + step_id: Optional[StrictStr] = Field(default=None, description="Submitted Step ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["result", "job_id", "step_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobSubmitResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of result + if self.result: + _dict['result'] = self.result.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobSubmitResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "result": V0041OpenapiJobSubmitResponseResult.from_dict(obj["result"]) if obj.get("result") is not None else None, + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_job_submit_response_result.py b/slurmrest_python/models/v0041_openapi_job_submit_response_result.py new file mode 100644 index 0000000..01a1edf --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_job_submit_response_result.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiJobSubmitResponseResult(BaseModel): + """ + Job submission + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="New job ID") + step_id: Optional[StrictStr] = Field(default=None, description="New job step ID") + error_code: Optional[StrictInt] = Field(default=None, description="Error code") + error: Optional[StrictStr] = Field(default=None, description="Error message") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Message to user from job_submit plugin") + __properties: ClassVar[List[str]] = ["job_id", "step_id", "error_code", "error", "job_submit_user_msg"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiJobSubmitResponseResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiJobSubmitResponseResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "error_code": obj.get("error_code"), + "error": obj.get("error"), + "job_submit_user_msg": obj.get("job_submit_user_msg") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_kill_jobs_resp.py b/slurmrest_python/models/v0041_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..1f9214f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_kill_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner import V0041OpenapiKillJobsRespStatusInner +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiKillJobsResp(BaseModel): + """ + V0041OpenapiKillJobsResp + """ # noqa: E501 + status: List[V0041OpenapiKillJobsRespStatusInner] = Field(description="resultant status of signal request") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["status", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in status (list) + _items = [] + if self.status: + for _item_status in self.status: + if _item_status: + _items.append(_item_status.to_dict()) + _dict['status'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": [V0041OpenapiKillJobsRespStatusInner.from_dict(_item) for _item in obj["status"]] if obj.get("status") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner.py b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner.py new file mode 100644 index 0000000..999319e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_job_id import V0041OpenapiKillJobsRespStatusInnerJobId +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiKillJobsRespStatusInner(BaseModel): + """ + List of jobs signal responses + """ # noqa: E501 + error: Optional[V0041OpenapiKillJobsRespStatusInnerError] = None + step_id: StrictStr = Field(description="Job or Step ID that signaling failed") + job_id: V0041OpenapiKillJobsRespStatusInnerJobId + federation: Optional[V0041OpenapiKillJobsRespStatusInnerFederation] = None + __properties: ClassVar[List[str]] = ["error", "step_id", "job_id", "federation"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_id + if self.job_id: + _dict['job_id'] = self.job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of federation + if self.federation: + _dict['federation'] = self.federation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": V0041OpenapiKillJobsRespStatusInnerError.from_dict(obj["error"]) if obj.get("error") is not None else None, + "step_id": obj.get("step_id"), + "job_id": V0041OpenapiKillJobsRespStatusInnerJobId.from_dict(obj["job_id"]) if obj.get("job_id") is not None else None, + "federation": V0041OpenapiKillJobsRespStatusInnerFederation.from_dict(obj["federation"]) if obj.get("federation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_error.py b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_error.py new file mode 100644 index 0000000..71f904b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_error.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiKillJobsRespStatusInnerError(BaseModel): + """ + V0041OpenapiKillJobsRespStatusInnerError + """ # noqa: E501 + string: Optional[StrictStr] = Field(default=None, description="String error encountered signaling job") + code: Optional[StrictInt] = Field(default=None, description="Numeric error encountered signaling job") + message: Optional[StrictStr] = Field(default=None, description="Error message why signaling job failed") + __properties: ClassVar[List[str]] = ["string", "code", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInnerError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInnerError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "string": obj.get("string"), + "code": obj.get("code"), + "message": obj.get("message") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_federation.py b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_federation.py new file mode 100644 index 0000000..892e6b0 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_federation.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiKillJobsRespStatusInnerFederation(BaseModel): + """ + V0041OpenapiKillJobsRespStatusInnerFederation + """ # noqa: E501 + sibling: Optional[StrictStr] = Field(default=None, description="Name of federation sibling (may be empty for non-federation)") + __properties: ClassVar[List[str]] = ["sibling"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInnerFederation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInnerFederation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sibling": obj.get("sibling") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_job_id.py b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_job_id.py new file mode 100644 index 0000000..e245f2c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_kill_jobs_resp_status_inner_job_id.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiKillJobsRespStatusInnerJobId(BaseModel): + """ + Job ID that signaling failed + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInnerJobId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiKillJobsRespStatusInnerJobId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_licenses_resp.py b/slurmrest_python/models/v0041_openapi_licenses_resp.py new file mode 100644 index 0000000..06cbb18 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_licenses_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_licenses_resp_last_update import V0041OpenapiLicensesRespLastUpdate +from slurmrest_python.models.v0041_openapi_licenses_resp_licenses_inner import V0041OpenapiLicensesRespLicensesInner +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiLicensesResp(BaseModel): + """ + V0041OpenapiLicensesResp + """ # noqa: E501 + licenses: List[V0041OpenapiLicensesRespLicensesInner] = Field(description="List of licenses") + last_update: V0041OpenapiLicensesRespLastUpdate + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["licenses", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiLicensesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in licenses (list) + _items = [] + if self.licenses: + for _item_licenses in self.licenses: + if _item_licenses: + _items.append(_item_licenses.to_dict()) + _dict['licenses'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiLicensesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "licenses": [V0041OpenapiLicensesRespLicensesInner.from_dict(_item) for _item in obj["licenses"]] if obj.get("licenses") is not None else None, + "last_update": V0041OpenapiLicensesRespLastUpdate.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_licenses_resp_last_update.py b/slurmrest_python/models/v0041_openapi_licenses_resp_last_update.py new file mode 100644 index 0000000..9cc4143 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_licenses_resp_last_update.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiLicensesRespLastUpdate(BaseModel): + """ + Time of last licenses change (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiLicensesRespLastUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiLicensesRespLastUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_licenses_resp_licenses_inner.py b/slurmrest_python/models/v0041_openapi_licenses_resp_licenses_inner.py new file mode 100644 index 0000000..0debfc8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_licenses_resp_licenses_inner.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiLicensesRespLicensesInner(BaseModel): + """ + V0041OpenapiLicensesRespLicensesInner + """ # noqa: E501 + license_name: Optional[StrictStr] = Field(default=None, description="Name of the license", alias="LicenseName") + total: Optional[StrictInt] = Field(default=None, description="Total number of licenses present", alias="Total") + used: Optional[StrictInt] = Field(default=None, description="Number of licenses in use", alias="Used") + free: Optional[StrictInt] = Field(default=None, description="Number of licenses currently available", alias="Free") + remote: Optional[StrictBool] = Field(default=None, description="Indicates whether licenses are served by the database", alias="Remote") + reserved: Optional[StrictInt] = Field(default=None, description="Number of licenses reserved", alias="Reserved") + last_consumed: Optional[StrictInt] = Field(default=None, description="Last known number of licenses that were consumed in the license manager (Remote Only)", alias="LastConsumed") + last_deficit: Optional[StrictInt] = Field(default=None, description="Number of \"missing licenses\" from the cluster's perspective", alias="LastDeficit") + last_update: Optional[StrictInt] = Field(default=None, description="When the license information was last updated (UNIX Timestamp)", alias="LastUpdate") + __properties: ClassVar[List[str]] = ["LicenseName", "Total", "Used", "Free", "Remote", "Reserved", "LastConsumed", "LastDeficit", "LastUpdate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiLicensesRespLicensesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiLicensesRespLicensesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "LicenseName": obj.get("LicenseName"), + "Total": obj.get("Total"), + "Used": obj.get("Used"), + "Free": obj.get("Free"), + "Remote": obj.get("Remote"), + "Reserved": obj.get("Reserved"), + "LastConsumed": obj.get("LastConsumed"), + "LastDeficit": obj.get("LastDeficit"), + "LastUpdate": obj.get("LastUpdate") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp.py b/slurmrest_python/models/v0041_openapi_nodes_resp.py new file mode 100644 index 0000000..abf98cc --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_nodes_resp_last_update import V0041OpenapiNodesRespLastUpdate +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner import V0041OpenapiNodesRespNodesInner +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesResp(BaseModel): + """ + V0041OpenapiNodesResp + """ # noqa: E501 + nodes: List[V0041OpenapiNodesRespNodesInner] = Field(description="List of nodes") + last_update: V0041OpenapiNodesRespLastUpdate + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["nodes", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in nodes (list) + _items = [] + if self.nodes: + for _item_nodes in self.nodes: + if _item_nodes: + _items.append(_item_nodes.to_dict()) + _dict['nodes'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": [V0041OpenapiNodesRespNodesInner.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None, + "last_update": V0041OpenapiNodesRespLastUpdate.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_last_update.py b/slurmrest_python/models/v0041_openapi_nodes_resp_last_update.py new file mode 100644 index 0000000..970db93 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_last_update.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespLastUpdate(BaseModel): + """ + Time of last node change (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespLastUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespLastUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner.py new file mode 100644 index 0000000..01567cf --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_boot_time import V0041OpenapiNodesRespNodesInnerBootTime +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy import V0041OpenapiNodesRespNodesInnerEnergy +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_free_mem import V0041OpenapiNodesRespNodesInnerFreeMem +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_last_busy import V0041OpenapiNodesRespNodesInnerLastBusy +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_reason_changed_at import V0041OpenapiNodesRespNodesInnerReasonChangedAt +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_resume_after import V0041OpenapiNodesRespNodesInnerResumeAfter +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time import V0041OpenapiNodesRespNodesInnerSlurmdStartTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInner(BaseModel): + """ + V0041OpenapiNodesRespNodesInner + """ # noqa: E501 + architecture: Optional[StrictStr] = Field(default=None, description="Computer architecture") + burstbuffer_network_address: Optional[StrictStr] = Field(default=None, description="Alternate network path to be used for sbcast network traffic") + boards: Optional[StrictInt] = Field(default=None, description="Number of Baseboards in nodes with a baseboard controller") + boot_time: Optional[V0041OpenapiNodesRespNodesInnerBootTime] = None + cluster_name: Optional[StrictStr] = Field(default=None, description="Cluster name (only set in federated environments)") + cores: Optional[StrictInt] = Field(default=None, description="Number of cores in a single physical processor socket") + specialized_cores: Optional[StrictInt] = Field(default=None, description="Number of cores reserved for system use") + cpu_binding: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + cpu_load: Optional[StrictInt] = Field(default=None, description="CPU load as reported by the OS") + free_mem: Optional[V0041OpenapiNodesRespNodesInnerFreeMem] = None + cpus: Optional[StrictInt] = Field(default=None, description="Total CPUs, including cores and threads") + effective_cpus: Optional[StrictInt] = Field(default=None, description="Number of effective CPUs (excluding specialized CPUs)") + specialized_cpus: Optional[StrictStr] = Field(default=None, description="Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd") + energy: Optional[V0041OpenapiNodesRespNodesInnerEnergy] = None + external_sensors: Optional[Dict[str, Any]] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + power: Optional[Dict[str, Any]] = None + features: Optional[List[StrictStr]] = Field(default=None, description="Available features") + active_features: Optional[List[StrictStr]] = Field(default=None, description="Currently active features") + gpu_spec: Optional[StrictStr] = Field(default=None, description="CPU cores reserved for jobs that also use a GPU") + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + gres_drained: Optional[StrictStr] = Field(default=None, description="Drained generic resources") + gres_used: Optional[StrictStr] = Field(default=None, description="Generic resources currently in use") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + last_busy: Optional[V0041OpenapiNodesRespNodesInnerLastBusy] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label") + specialized_memory: Optional[StrictInt] = Field(default=None, description="Combined memory limit, in MB, for Slurm compute node daemons") + name: Optional[StrictStr] = Field(default=None, description="NodeName") + next_state_after_reboot: Optional[List[StrictStr]] = Field(default=None, description="The state the node will be assigned after rebooting") + address: Optional[StrictStr] = Field(default=None, description="NodeAddr, used to establish a communication path") + hostname: Optional[StrictStr] = Field(default=None, description="NodeHostname") + state: Optional[List[StrictStr]] = Field(default=None, description="Node state(s) applicable to this node") + operating_system: Optional[StrictStr] = Field(default=None, description="Operating system reported by the node") + owner: Optional[StrictStr] = Field(default=None, description="User allowed to run jobs on this node (unset if no restriction)") + partitions: Optional[List[StrictStr]] = Field(default=None, description="Partitions containing this node") + port: Optional[StrictInt] = Field(default=None, description="TCP port number of the slurmd") + real_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB on the node") + res_cores_per_gpu: Optional[StrictInt] = Field(default=None, description="Number of CPU cores per GPU restricted to GPU jobs") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + reason: Optional[StrictStr] = Field(default=None, description="Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state") + reason_changed_at: Optional[V0041OpenapiNodesRespNodesInnerReasonChangedAt] = None + reason_set_by_user: Optional[StrictStr] = Field(default=None, description="User who set the reason") + resume_after: Optional[V0041OpenapiNodesRespNodesInnerResumeAfter] = None + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation containing this node") + alloc_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB currently allocated for jobs") + alloc_cpus: Optional[StrictInt] = Field(default=None, description="Total number of CPUs currently allocated for jobs") + alloc_idle_cpus: Optional[StrictInt] = Field(default=None, description="Total number of idle CPUs") + tres_used: Optional[StrictStr] = Field(default=None, description="Trackable resources currently allocated for jobs") + tres_weighted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Ignored. Was weighted number of billable trackable resources allocated") + slurmd_start_time: Optional[V0041OpenapiNodesRespNodesInnerSlurmdStartTime] = None + sockets: Optional[StrictInt] = Field(default=None, description="Number of physical processor sockets/chips on the node") + threads: Optional[StrictInt] = Field(default=None, description="Number of logical threads in a single physical core") + temporary_disk: Optional[StrictInt] = Field(default=None, description="Total size in MB of temporary disk storage in TmpFS") + weight: Optional[StrictInt] = Field(default=None, description="Weight of the node for scheduling purposes") + tres: Optional[StrictStr] = Field(default=None, description="Configured trackable resources") + version: Optional[StrictStr] = Field(default=None, description="Slurmd version") + __properties: ClassVar[List[str]] = ["architecture", "burstbuffer_network_address", "boards", "boot_time", "cluster_name", "cores", "specialized_cores", "cpu_binding", "cpu_load", "free_mem", "cpus", "effective_cpus", "specialized_cpus", "energy", "external_sensors", "extra", "power", "features", "active_features", "gpu_spec", "gres", "gres_drained", "gres_used", "instance_id", "instance_type", "last_busy", "mcs_label", "specialized_memory", "name", "next_state_after_reboot", "address", "hostname", "state", "operating_system", "owner", "partitions", "port", "real_memory", "res_cores_per_gpu", "comment", "reason", "reason_changed_at", "reason_set_by_user", "resume_after", "reservation", "alloc_memory", "alloc_cpus", "alloc_idle_cpus", "tres_used", "tres_weighted", "slurmd_start_time", "sockets", "threads", "temporary_disk", "weight", "tres", "version"] + + @field_validator('next_state_after_reboot') + def next_state_after_reboot_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of boot_time + if self.boot_time: + _dict['boot_time'] = self.boot_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of free_mem + if self.free_mem: + _dict['free_mem'] = self.free_mem.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_busy + if self.last_busy: + _dict['last_busy'] = self.last_busy.to_dict() + # override the default output from pydantic by calling `to_dict()` of reason_changed_at + if self.reason_changed_at: + _dict['reason_changed_at'] = self.reason_changed_at.to_dict() + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurmd_start_time + if self.slurmd_start_time: + _dict['slurmd_start_time'] = self.slurmd_start_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "architecture": obj.get("architecture"), + "burstbuffer_network_address": obj.get("burstbuffer_network_address"), + "boards": obj.get("boards"), + "boot_time": V0041OpenapiNodesRespNodesInnerBootTime.from_dict(obj["boot_time"]) if obj.get("boot_time") is not None else None, + "cluster_name": obj.get("cluster_name"), + "cores": obj.get("cores"), + "specialized_cores": obj.get("specialized_cores"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_load": obj.get("cpu_load"), + "free_mem": V0041OpenapiNodesRespNodesInnerFreeMem.from_dict(obj["free_mem"]) if obj.get("free_mem") is not None else None, + "cpus": obj.get("cpus"), + "effective_cpus": obj.get("effective_cpus"), + "specialized_cpus": obj.get("specialized_cpus"), + "energy": V0041OpenapiNodesRespNodesInnerEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None, + "external_sensors": obj.get("external_sensors"), + "extra": obj.get("extra"), + "power": obj.get("power"), + "features": obj.get("features"), + "active_features": obj.get("active_features"), + "gpu_spec": obj.get("gpu_spec"), + "gres": obj.get("gres"), + "gres_drained": obj.get("gres_drained"), + "gres_used": obj.get("gres_used"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "last_busy": V0041OpenapiNodesRespNodesInnerLastBusy.from_dict(obj["last_busy"]) if obj.get("last_busy") is not None else None, + "mcs_label": obj.get("mcs_label"), + "specialized_memory": obj.get("specialized_memory"), + "name": obj.get("name"), + "next_state_after_reboot": obj.get("next_state_after_reboot"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "state": obj.get("state"), + "operating_system": obj.get("operating_system"), + "owner": obj.get("owner"), + "partitions": obj.get("partitions"), + "port": obj.get("port"), + "real_memory": obj.get("real_memory"), + "res_cores_per_gpu": obj.get("res_cores_per_gpu"), + "comment": obj.get("comment"), + "reason": obj.get("reason"), + "reason_changed_at": V0041OpenapiNodesRespNodesInnerReasonChangedAt.from_dict(obj["reason_changed_at"]) if obj.get("reason_changed_at") is not None else None, + "reason_set_by_user": obj.get("reason_set_by_user"), + "resume_after": V0041OpenapiNodesRespNodesInnerResumeAfter.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "reservation": obj.get("reservation"), + "alloc_memory": obj.get("alloc_memory"), + "alloc_cpus": obj.get("alloc_cpus"), + "alloc_idle_cpus": obj.get("alloc_idle_cpus"), + "tres_used": obj.get("tres_used"), + "tres_weighted": obj.get("tres_weighted"), + "slurmd_start_time": V0041OpenapiNodesRespNodesInnerSlurmdStartTime.from_dict(obj["slurmd_start_time"]) if obj.get("slurmd_start_time") is not None else None, + "sockets": obj.get("sockets"), + "threads": obj.get("threads"), + "temporary_disk": obj.get("temporary_disk"), + "weight": obj.get("weight"), + "tres": obj.get("tres"), + "version": obj.get("version") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_boot_time.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_boot_time.py new file mode 100644 index 0000000..2a01a2b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_boot_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerBootTime(BaseModel): + """ + Time when the node booted (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerBootTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerBootTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy.py new file mode 100644 index 0000000..38d97d2 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy_current_watts import V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerEnergy(BaseModel): + """ + Energy usage data + """ # noqa: E501 + average_watts: Optional[StrictInt] = Field(default=None, description="Average power consumption, in watts") + base_consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules") + consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules") + current_watts: Optional[V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts] = None + previous_consumed_energy: Optional[StrictInt] = Field(default=None, description="Previous value of consumed_energy") + last_collected: Optional[StrictInt] = Field(default=None, description="Time when energy data was last retrieved (UNIX timestamp)") + __properties: ClassVar[List[str]] = ["average_watts", "base_consumed_energy", "consumed_energy", "current_watts", "previous_consumed_energy", "last_collected"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of current_watts + if self.current_watts: + _dict['current_watts'] = self.current_watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "average_watts": obj.get("average_watts"), + "base_consumed_energy": obj.get("base_consumed_energy"), + "consumed_energy": obj.get("consumed_energy"), + "current_watts": V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts.from_dict(obj["current_watts"]) if obj.get("current_watts") is not None else None, + "previous_consumed_energy": obj.get("previous_consumed_energy"), + "last_collected": obj.get("last_collected") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py new file mode 100644 index 0000000..0f38d63 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts(BaseModel): + """ + The instantaneous power consumption at the time of the last node energy accounting sample, in watts + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_free_mem.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_free_mem.py new file mode 100644 index 0000000..a04de93 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_free_mem.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerFreeMem(BaseModel): + """ + Total memory in MB currently free as reported by the OS + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerFreeMem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerFreeMem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_last_busy.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_last_busy.py new file mode 100644 index 0000000..af87fa8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_last_busy.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerLastBusy(BaseModel): + """ + Time when the node was last busy (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerLastBusy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerLastBusy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py new file mode 100644 index 0000000..81cb33a --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerReasonChangedAt(BaseModel): + """ + When the reason changed (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerReasonChangedAt from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerReasonChangedAt from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_resume_after.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_resume_after.py new file mode 100644 index 0000000..8307382 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_resume_after.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerResumeAfter(BaseModel): + """ + Number of seconds after the node's state is updated to \"DOWN\" or \"DRAIN\" before scheduling a node state resume + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerResumeAfter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerResumeAfter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py new file mode 100644 index 0000000..6850e3a --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiNodesRespNodesInnerSlurmdStartTime(BaseModel): + """ + Time when the slurmd started (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerSlurmdStartTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiNodesRespNodesInnerSlurmdStartTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp.py b/slurmrest_python/models/v0041_openapi_partition_resp.py new file mode 100644 index 0000000..6066888 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_last_update import V0041OpenapiPartitionRespLastUpdate +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner import V0041OpenapiPartitionRespPartitionsInner +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionResp(BaseModel): + """ + V0041OpenapiPartitionResp + """ # noqa: E501 + partitions: List[V0041OpenapiPartitionRespPartitionsInner] = Field(description="List of partitions") + last_update: V0041OpenapiPartitionRespLastUpdate + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["partitions", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in partitions (list) + _items = [] + if self.partitions: + for _item_partitions in self.partitions: + if _item_partitions: + _items.append(_item_partitions.to_dict()) + _dict['partitions'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partitions": [V0041OpenapiPartitionRespPartitionsInner.from_dict(_item) for _item in obj["partitions"]] if obj.get("partitions") is not None else None, + "last_update": V0041OpenapiPartitionRespLastUpdate.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_last_update.py b/slurmrest_python/models/v0041_openapi_partition_resp_last_update.py new file mode 100644 index 0000000..03c22ba --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_last_update.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespLastUpdate(BaseModel): + """ + Time of last partition change (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespLastUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespLastUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner.py new file mode 100644 index 0000000..66b7d5b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_accounts import V0041OpenapiPartitionRespPartitionsInnerAccounts +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_cpus import V0041OpenapiPartitionRespPartitionsInnerCpus +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults import V0041OpenapiPartitionRespPartitionsInnerDefaults +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_groups import V0041OpenapiPartitionRespPartitionsInnerGroups +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums import V0041OpenapiPartitionRespPartitionsInnerMaximums +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_minimums import V0041OpenapiPartitionRespPartitionsInnerMinimums +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_nodes import V0041OpenapiPartitionRespPartitionsInnerNodes +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_partition import V0041OpenapiPartitionRespPartitionsInnerPartition +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_priority import V0041OpenapiPartitionRespPartitionsInnerPriority +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_qos import V0041OpenapiPartitionRespPartitionsInnerQos +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_suspend_time import V0041OpenapiPartitionRespPartitionsInnerSuspendTime +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts import V0041OpenapiPartitionRespPartitionsInnerTimeouts +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_tres import V0041OpenapiPartitionRespPartitionsInnerTres +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInner(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInner + """ # noqa: E501 + nodes: Optional[V0041OpenapiPartitionRespPartitionsInnerNodes] = None + accounts: Optional[V0041OpenapiPartitionRespPartitionsInnerAccounts] = None + groups: Optional[V0041OpenapiPartitionRespPartitionsInnerGroups] = None + qos: Optional[V0041OpenapiPartitionRespPartitionsInnerQos] = None + alternate: Optional[StrictStr] = Field(default=None, description="Alternate") + tres: Optional[V0041OpenapiPartitionRespPartitionsInnerTres] = None + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + select_type: Optional[List[StrictStr]] = Field(default=None, description="Scheduler consumable resource selection type") + cpus: Optional[V0041OpenapiPartitionRespPartitionsInnerCpus] = None + defaults: Optional[V0041OpenapiPartitionRespPartitionsInnerDefaults] = None + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime") + maximums: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximums] = None + minimums: Optional[V0041OpenapiPartitionRespPartitionsInnerMinimums] = None + name: Optional[StrictStr] = Field(default=None, description="PartitionName") + node_sets: Optional[StrictStr] = Field(default=None, description="NodeSets") + priority: Optional[V0041OpenapiPartitionRespPartitionsInnerPriority] = None + timeouts: Optional[V0041OpenapiPartitionRespPartitionsInnerTimeouts] = None + partition: Optional[V0041OpenapiPartitionRespPartitionsInnerPartition] = None + suspend_time: Optional[V0041OpenapiPartitionRespPartitionsInnerSuspendTime] = None + __properties: ClassVar[List[str]] = ["nodes", "accounts", "groups", "qos", "alternate", "tres", "cluster", "select_type", "cpus", "defaults", "grace_time", "maximums", "minimums", "name", "node_sets", "priority", "timeouts", "partition", "suspend_time"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of accounts + if self.accounts: + _dict['accounts'] = self.accounts.to_dict() + # override the default output from pydantic by calling `to_dict()` of groups + if self.groups: + _dict['groups'] = self.groups.to_dict() + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of defaults + if self.defaults: + _dict['defaults'] = self.defaults.to_dict() + # override the default output from pydantic by calling `to_dict()` of maximums + if self.maximums: + _dict['maximums'] = self.maximums.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimums + if self.minimums: + _dict['minimums'] = self.minimums.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of timeouts + if self.timeouts: + _dict['timeouts'] = self.timeouts.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition + if self.partition: + _dict['partition'] = self.partition.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": V0041OpenapiPartitionRespPartitionsInnerNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "accounts": V0041OpenapiPartitionRespPartitionsInnerAccounts.from_dict(obj["accounts"]) if obj.get("accounts") is not None else None, + "groups": V0041OpenapiPartitionRespPartitionsInnerGroups.from_dict(obj["groups"]) if obj.get("groups") is not None else None, + "qos": V0041OpenapiPartitionRespPartitionsInnerQos.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "alternate": obj.get("alternate"), + "tres": V0041OpenapiPartitionRespPartitionsInnerTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "cluster": obj.get("cluster"), + "select_type": obj.get("select_type"), + "cpus": V0041OpenapiPartitionRespPartitionsInnerCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "defaults": V0041OpenapiPartitionRespPartitionsInnerDefaults.from_dict(obj["defaults"]) if obj.get("defaults") is not None else None, + "grace_time": obj.get("grace_time"), + "maximums": V0041OpenapiPartitionRespPartitionsInnerMaximums.from_dict(obj["maximums"]) if obj.get("maximums") is not None else None, + "minimums": V0041OpenapiPartitionRespPartitionsInnerMinimums.from_dict(obj["minimums"]) if obj.get("minimums") is not None else None, + "name": obj.get("name"), + "node_sets": obj.get("node_sets"), + "priority": V0041OpenapiPartitionRespPartitionsInnerPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "timeouts": V0041OpenapiPartitionRespPartitionsInnerTimeouts.from_dict(obj["timeouts"]) if obj.get("timeouts") is not None else None, + "partition": V0041OpenapiPartitionRespPartitionsInnerPartition.from_dict(obj["partition"]) if obj.get("partition") is not None else None, + "suspend_time": V0041OpenapiPartitionRespPartitionsInnerSuspendTime.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_accounts.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_accounts.py new file mode 100644 index 0000000..99952dd --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_accounts.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerAccounts(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerAccounts + """ # noqa: E501 + allowed: Optional[StrictStr] = Field(default=None, description="AllowAccounts") + deny: Optional[StrictStr] = Field(default=None, description="DenyAccounts") + __properties: ClassVar[List[str]] = ["allowed", "deny"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerAccounts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerAccounts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed": obj.get("allowed"), + "deny": obj.get("deny") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_cpus.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_cpus.py new file mode 100644 index 0000000..a8d0e52 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_cpus.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerCpus(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerCpus + """ # noqa: E501 + task_binding: Optional[StrictInt] = Field(default=None, description="CpuBind") + total: Optional[StrictInt] = Field(default=None, description="TotalCPUs") + __properties: ClassVar[List[str]] = ["task_binding", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerCpus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerCpus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "task_binding": obj.get("task_binding"), + "total": obj.get("total") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults.py new file mode 100644 index 0000000..4f46c02 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_time import V0041OpenapiPartitionRespPartitionsInnerDefaultsTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerDefaults(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerDefaults + """ # noqa: E501 + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="DefMemPerCPU or DefMemPerNode") + partition_memory_per_cpu: Optional[V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu] = None + partition_memory_per_node: Optional[V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode] = None + time: Optional[V0041OpenapiPartitionRespPartitionsInnerDefaultsTime] = None + job: Optional[StrictStr] = Field(default=None, description="JobDefaults") + __properties: ClassVar[List[str]] = ["memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "time", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "time": V0041OpenapiPartitionRespPartitionsInnerDefaultsTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "job": obj.get("job") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py new file mode 100644 index 0000000..3fb0f2c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu(BaseModel): + """ + DefMemPerCPU + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py new file mode 100644 index 0000000..f3a9786 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode(BaseModel): + """ + DefMemPerNode + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_time.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_time.py new file mode 100644 index 0000000..9b4e8aa --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_defaults_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerDefaultsTime(BaseModel): + """ + DefaultTime in minutes + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerDefaultsTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_groups.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_groups.py new file mode 100644 index 0000000..759901b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_groups.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerGroups(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerGroups + """ # noqa: E501 + allowed: Optional[StrictStr] = Field(default=None, description="AllowGroups") + __properties: ClassVar[List[str]] = ["allowed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerGroups from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerGroups from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed": obj.get("allowed") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums.py new file mode 100644 index 0000000..a0cd815 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_nodes import V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit import V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe import V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_time import V0041OpenapiPartitionRespPartitionsInnerMaximumsTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximums(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerMaximums + """ # noqa: E501 + cpus_per_node: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode] = None + cpus_per_socket: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket] = None + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="MaxMemPerCPU or MaxMemPerNode") + partition_memory_per_cpu: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu] = None + partition_memory_per_node: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode] = None + nodes: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes] = None + shares: Optional[StrictInt] = Field(default=None, description="OverSubscribe") + oversubscribe: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe] = None + time: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsTime] = None + over_time_limit: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit] = None + __properties: ClassVar[List[str]] = ["cpus_per_node", "cpus_per_socket", "memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "nodes", "shares", "oversubscribe", "time", "over_time_limit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximums from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus_per_node + if self.cpus_per_node: + _dict['cpus_per_node'] = self.cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_socket + if self.cpus_per_socket: + _dict['cpus_per_socket'] = self.cpus_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of oversubscribe + if self.oversubscribe: + _dict['oversubscribe'] = self.oversubscribe.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of over_time_limit + if self.over_time_limit: + _dict['over_time_limit'] = self.over_time_limit.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximums from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpus_per_node": V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode.from_dict(obj["cpus_per_node"]) if obj.get("cpus_per_node") is not None else None, + "cpus_per_socket": V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket.from_dict(obj["cpus_per_socket"]) if obj.get("cpus_per_socket") is not None else None, + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "nodes": V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "shares": obj.get("shares"), + "oversubscribe": V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.from_dict(obj["oversubscribe"]) if obj.get("oversubscribe") is not None else None, + "time": V0041OpenapiPartitionRespPartitionsInnerMaximumsTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "over_time_limit": V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit.from_dict(obj["over_time_limit"]) if obj.get("over_time_limit") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py new file mode 100644 index 0000000..157f3eb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode(BaseModel): + """ + MaxCPUsPerNode + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py new file mode 100644 index 0000000..91fedcf --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket(BaseModel): + """ + MaxCPUsPerSocket + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py new file mode 100644 index 0000000..2b1ec02 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes(BaseModel): + """ + MaxNodes + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py new file mode 100644 index 0000000..b9151df --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit(BaseModel): + """ + OverTimeLimit + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py new file mode 100644 index 0000000..be23382 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe + """ # noqa: E501 + jobs: Optional[StrictInt] = Field(default=None, description="Maximum number of jobs allowed to oversubscribe resources") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags applicable to the OverSubscribe setting") + __properties: ClassVar[List[str]] = ["jobs", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['force']): + raise ValueError("each list item must be one of ('force')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": obj.get("jobs"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py new file mode 100644 index 0000000..e35e74b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu(BaseModel): + """ + MaxMemPerCPU + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py new file mode 100644 index 0000000..8df29e8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode(BaseModel): + """ + MaxMemPerNode + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_time.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_time.py new file mode 100644 index 0000000..c8359fb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_maximums_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMaximumsTime(BaseModel): + """ + MaxTime + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMaximumsTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_minimums.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_minimums.py new file mode 100644 index 0000000..cade0ab --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_minimums.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerMinimums(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerMinimums + """ # noqa: E501 + nodes: Optional[StrictInt] = Field(default=None, description="MinNodes") + __properties: ClassVar[List[str]] = ["nodes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMinimums from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerMinimums from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": obj.get("nodes") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_nodes.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_nodes.py new file mode 100644 index 0000000..1bad2d7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerNodes(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerNodes + """ # noqa: E501 + allowed_allocation: Optional[StrictStr] = Field(default=None, description="AllocNodes") + configured: Optional[StrictStr] = Field(default=None, description="Nodes") + total: Optional[StrictInt] = Field(default=None, description="TotalNodes") + __properties: ClassVar[List[str]] = ["allowed_allocation", "configured", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed_allocation": obj.get("allowed_allocation"), + "configured": obj.get("configured"), + "total": obj.get("total") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_partition.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_partition.py new file mode 100644 index 0000000..e46088d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_partition.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerPartition(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerPartition + """ # noqa: E501 + state: Optional[List[StrictStr]] = Field(default=None, description="Current state(s)") + __properties: ClassVar[List[str]] = ["state"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INACTIVE', 'UNKNOWN', 'UP', 'DOWN', 'DRAIN']): + raise ValueError("each list item must be one of ('INACTIVE', 'UNKNOWN', 'UP', 'DOWN', 'DRAIN')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerPartition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerPartition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "state": obj.get("state") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_priority.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_priority.py new file mode 100644 index 0000000..06e421f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_priority.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerPriority(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerPriority + """ # noqa: E501 + job_factor: Optional[StrictInt] = Field(default=None, description="PriorityJobFactor") + tier: Optional[StrictInt] = Field(default=None, description="PriorityTier") + __properties: ClassVar[List[str]] = ["job_factor", "tier"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerPriority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerPriority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_factor": obj.get("job_factor"), + "tier": obj.get("tier") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_qos.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_qos.py new file mode 100644 index 0000000..8983960 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_qos.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerQos(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerQos + """ # noqa: E501 + allowed: Optional[StrictStr] = Field(default=None, description="AllowQOS") + deny: Optional[StrictStr] = Field(default=None, description="DenyQOS") + assigned: Optional[StrictStr] = Field(default=None, description="QOS") + __properties: ClassVar[List[str]] = ["allowed", "deny", "assigned"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerQos from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerQos from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed": obj.get("allowed"), + "deny": obj.get("deny"), + "assigned": obj.get("assigned") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_suspend_time.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_suspend_time.py new file mode 100644 index 0000000..e0c0885 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_suspend_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerSuspendTime(BaseModel): + """ + SuspendTime (GLOBAL if both set and infinite are false) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerSuspendTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerSuspendTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts.py new file mode 100644 index 0000000..5a91ff8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_resume import V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_suspend import V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerTimeouts(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerTimeouts + """ # noqa: E501 + resume: Optional[V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume] = None + suspend: Optional[V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend] = None + __properties: ClassVar[List[str]] = ["resume", "suspend"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeouts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume + if self.resume: + _dict['resume'] = self.resume.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend + if self.suspend: + _dict['suspend'] = self.suspend.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeouts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resume": V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume.from_dict(obj["resume"]) if obj.get("resume") is not None else None, + "suspend": V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend.from_dict(obj["suspend"]) if obj.get("suspend") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py new file mode 100644 index 0000000..58cdc28 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume(BaseModel): + """ + ResumeTimeout (GLOBAL if both set and infinite are false) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py new file mode 100644 index 0000000..438da2b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend(BaseModel): + """ + SuspendTimeout (GLOBAL if both set and infinite are false) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_tres.py b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_tres.py new file mode 100644 index 0000000..2c846bc --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_partition_resp_partitions_inner_tres.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPartitionRespPartitionsInnerTres(BaseModel): + """ + V0041OpenapiPartitionRespPartitionsInnerTres + """ # noqa: E501 + billing_weights: Optional[StrictStr] = Field(default=None, description="TRESBillingWeights") + configured: Optional[StrictStr] = Field(default=None, description="TRES") + __properties: ClassVar[List[str]] = ["billing_weights", "configured"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPartitionRespPartitionsInnerTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "billing_weights": obj.get("billing_weights"), + "configured": obj.get("configured") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_ping_array_resp.py b/slurmrest_python/models/v0041_openapi_ping_array_resp.py new file mode 100644 index 0000000..8dfa20e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_ping_array_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_ping_array_resp_pings_inner import V0041OpenapiPingArrayRespPingsInner +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPingArrayResp(BaseModel): + """ + V0041OpenapiPingArrayResp + """ # noqa: E501 + pings: List[V0041OpenapiPingArrayRespPingsInner] = Field(description="pings") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["pings", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPingArrayResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pings (list) + _items = [] + if self.pings: + for _item_pings in self.pings: + if _item_pings: + _items.append(_item_pings.to_dict()) + _dict['pings'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPingArrayResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pings": [V0041OpenapiPingArrayRespPingsInner.from_dict(_item) for _item in obj["pings"]] if obj.get("pings") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_ping_array_resp_pings_inner.py b/slurmrest_python/models/v0041_openapi_ping_array_resp_pings_inner.py new file mode 100644 index 0000000..4b7d105 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_ping_array_resp_pings_inner.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiPingArrayRespPingsInner(BaseModel): + """ + V0041OpenapiPingArrayRespPingsInner + """ # noqa: E501 + hostname: Optional[StrictStr] = Field(default=None, description="Target for ping") + pinged: Optional[StrictStr] = Field(default=None, description="Ping result") + latency: Optional[StrictInt] = Field(default=None, description="Number of microseconds it took to successfully ping or timeout") + mode: Optional[StrictStr] = Field(default=None, description="The operating mode of the responding slurmctld") + __properties: ClassVar[List[str]] = ["hostname", "pinged", "latency", "mode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiPingArrayRespPingsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiPingArrayRespPingsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "pinged": obj.get("pinged"), + "latency": obj.get("latency"), + "mode": obj.get("mode") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp.py b/slurmrest_python/models/v0041_openapi_reservation_resp.py new file mode 100644 index 0000000..93b3c3e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_reservation_resp_last_update import V0041OpenapiReservationRespLastUpdate +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner import V0041OpenapiReservationRespReservationsInner +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationResp(BaseModel): + """ + V0041OpenapiReservationResp + """ # noqa: E501 + reservations: List[V0041OpenapiReservationRespReservationsInner] = Field(description="List of reservations") + last_update: V0041OpenapiReservationRespLastUpdate + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["reservations", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0041OpenapiReservationRespReservationsInner.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None, + "last_update": V0041OpenapiReservationRespLastUpdate.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_last_update.py b/slurmrest_python/models/v0041_openapi_reservation_resp_last_update.py new file mode 100644 index 0000000..955e162 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_last_update.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespLastUpdate(BaseModel): + """ + Time of last reservation change (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespLastUpdate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespLastUpdate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner.py b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner.py new file mode 100644 index 0000000..57eb20b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner import V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_end_time import V0041OpenapiReservationRespReservationsInnerEndTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed import V0041OpenapiReservationRespReservationsInnerPurgeCompleted +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_start_time import V0041OpenapiReservationRespReservationsInnerStartTime +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_watts import V0041OpenapiReservationRespReservationsInnerWatts +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespReservationsInner(BaseModel): + """ + V0041OpenapiReservationRespReservationsInner + """ # noqa: E501 + accounts: Optional[StrictStr] = Field(default=None, description="Comma separated list of permitted accounts") + burst_buffer: Optional[StrictStr] = Field(default=None, description="BurstBuffer") + core_count: Optional[StrictInt] = Field(default=None, description="CoreCnt") + core_specializations: Optional[List[V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner]] = Field(default=None, description="Reserved cores specification") + end_time: Optional[V0041OpenapiReservationRespReservationsInnerEndTime] = None + features: Optional[StrictStr] = Field(default=None, description="Features") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with the reservation") + groups: Optional[StrictStr] = Field(default=None, description="Groups") + licenses: Optional[StrictStr] = Field(default=None, description="Licenses") + max_start_delay: Optional[StrictInt] = Field(default=None, description="MaxStartDelay in seconds") + name: Optional[StrictStr] = Field(default=None, description="ReservationName") + node_count: Optional[StrictInt] = Field(default=None, description="NodeCnt") + node_list: Optional[StrictStr] = Field(default=None, description="Nodes") + partition: Optional[StrictStr] = Field(default=None, description="PartitionName") + purge_completed: Optional[V0041OpenapiReservationRespReservationsInnerPurgeCompleted] = None + start_time: Optional[V0041OpenapiReservationRespReservationsInnerStartTime] = None + watts: Optional[V0041OpenapiReservationRespReservationsInnerWatts] = None + tres: Optional[StrictStr] = Field(default=None, description="Comma separated list of required TRES") + users: Optional[StrictStr] = Field(default=None, description="Comma separated list of permitted users") + __properties: ClassVar[List[str]] = ["accounts", "burst_buffer", "core_count", "core_specializations", "end_time", "features", "flags", "groups", "licenses", "max_start_delay", "name", "node_count", "node_list", "partition", "purge_completed", "start_time", "watts", "tres", "users"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING']): + raise ValueError("each list item must be one of ('MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in core_specializations (list) + _items = [] + if self.core_specializations: + for _item_core_specializations in self.core_specializations: + if _item_core_specializations: + _items.append(_item_core_specializations.to_dict()) + _dict['core_specializations'] = _items + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of purge_completed + if self.purge_completed: + _dict['purge_completed'] = self.purge_completed.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of watts + if self.watts: + _dict['watts'] = self.watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "burst_buffer": obj.get("burst_buffer"), + "core_count": obj.get("core_count"), + "core_specializations": [V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner.from_dict(_item) for _item in obj["core_specializations"]] if obj.get("core_specializations") is not None else None, + "end_time": V0041OpenapiReservationRespReservationsInnerEndTime.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "features": obj.get("features"), + "flags": obj.get("flags"), + "groups": obj.get("groups"), + "licenses": obj.get("licenses"), + "max_start_delay": obj.get("max_start_delay"), + "name": obj.get("name"), + "node_count": obj.get("node_count"), + "node_list": obj.get("node_list"), + "partition": obj.get("partition"), + "purge_completed": V0041OpenapiReservationRespReservationsInnerPurgeCompleted.from_dict(obj["purge_completed"]) if obj.get("purge_completed") is not None else None, + "start_time": V0041OpenapiReservationRespReservationsInnerStartTime.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "watts": V0041OpenapiReservationRespReservationsInnerWatts.from_dict(obj["watts"]) if obj.get("watts") is not None else None, + "tres": obj.get("tres"), + "users": obj.get("users") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py new file mode 100644 index 0000000..5c98705 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner(BaseModel): + """ + V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner + """ # noqa: E501 + node: Optional[StrictStr] = Field(default=None, description="Name of reserved node") + core: Optional[StrictStr] = Field(default=None, description="IDs of reserved cores") + __properties: ClassVar[List[str]] = ["node", "core"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "node": obj.get("node"), + "core": obj.get("core") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_end_time.py b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_end_time.py new file mode 100644 index 0000000..416bd6e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_end_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespReservationsInnerEndTime(BaseModel): + """ + EndTime (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerEndTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerEndTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed.py b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed.py new file mode 100644 index 0000000..f072849 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed_time import V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespReservationsInnerPurgeCompleted(BaseModel): + """ + V0041OpenapiReservationRespReservationsInnerPurgeCompleted + """ # noqa: E501 + time: Optional[V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime] = None + __properties: ClassVar[List[str]] = ["time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompleted from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompleted from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py new file mode 100644 index 0000000..ad3fc86 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime(BaseModel): + """ + If PURGE_COMP flag is set, the number of seconds this reservation will sit idle until it is revoked + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_start_time.py b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_start_time.py new file mode 100644 index 0000000..adcb4b9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_start_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespReservationsInnerStartTime(BaseModel): + """ + StartTime (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerStartTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerStartTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_watts.py b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_watts.py new file mode 100644 index 0000000..67e4d20 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_reservation_resp_reservations_inner_watts.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiReservationRespReservationsInnerWatts(BaseModel): + """ + 32 bit integer number with flags + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerWatts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiReservationRespReservationsInnerWatts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_resp.py b/slurmrest_python/models/v0041_openapi_resp.py new file mode 100644 index 0000000..7650e0a --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_resp.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiResp(BaseModel): + """ + V0041OpenapiResp + """ # noqa: E501 + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp.py b/slurmrest_python/models/v0041_openapi_shares_resp.py new file mode 100644 index 0000000..cfa36cf --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_shares import V0041OpenapiSharesRespShares +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesResp(BaseModel): + """ + V0041OpenapiSharesResp + """ # noqa: E501 + shares: V0041OpenapiSharesRespShares + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["shares", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": V0041OpenapiSharesRespShares.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_errors_inner.py b/slurmrest_python/models/v0041_openapi_shares_resp_errors_inner.py new file mode 100644 index 0000000..c17dd97 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_errors_inner.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespErrorsInner(BaseModel): + """ + V0041OpenapiSharesRespErrorsInner + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form error description") + error_number: Optional[StrictInt] = Field(default=None, description="Slurm numeric error identifier") + error: Optional[StrictStr] = Field(default=None, description="Short form error description") + source: Optional[StrictStr] = Field(default=None, description="Source of error or where error was first detected") + __properties: ClassVar[List[str]] = ["description", "error_number", "error", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespErrorsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespErrorsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "error_number": obj.get("error_number"), + "error": obj.get("error"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_meta.py b/slurmrest_python/models/v0041_openapi_shares_resp_meta.py new file mode 100644 index 0000000..3c46878 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_meta.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespMeta(BaseModel): + """ + Slurm meta values + """ # noqa: E501 + plugin: Optional[V0041OpenapiSharesRespMetaPlugin] = None + client: Optional[V0041OpenapiSharesRespMetaClient] = None + command: Optional[List[StrictStr]] = Field(default=None, description="CLI command (if applicable)") + slurm: Optional[V0041OpenapiSharesRespMetaSlurm] = None + __properties: ClassVar[List[str]] = ["plugin", "client", "command", "slurm"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of plugin + if self.plugin: + _dict['plugin'] = self.plugin.to_dict() + # override the default output from pydantic by calling `to_dict()` of client + if self.client: + _dict['client'] = self.client.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurm + if self.slurm: + _dict['slurm'] = self.slurm.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plugin": V0041OpenapiSharesRespMetaPlugin.from_dict(obj["plugin"]) if obj.get("plugin") is not None else None, + "client": V0041OpenapiSharesRespMetaClient.from_dict(obj["client"]) if obj.get("client") is not None else None, + "command": obj.get("command"), + "slurm": V0041OpenapiSharesRespMetaSlurm.from_dict(obj["slurm"]) if obj.get("slurm") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_meta_client.py b/slurmrest_python/models/v0041_openapi_shares_resp_meta_client.py new file mode 100644 index 0000000..7b5fdc4 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_meta_client.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespMetaClient(BaseModel): + """ + V0041OpenapiSharesRespMetaClient + """ # noqa: E501 + source: Optional[StrictStr] = Field(default=None, description="Client source description") + user: Optional[StrictStr] = Field(default=None, description="Client user (if known)") + group: Optional[StrictStr] = Field(default=None, description="Client group (if known)") + __properties: ClassVar[List[str]] = ["source", "user", "group"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaClient from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaClient from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "source": obj.get("source"), + "user": obj.get("user"), + "group": obj.get("group") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_meta_plugin.py b/slurmrest_python/models/v0041_openapi_shares_resp_meta_plugin.py new file mode 100644 index 0000000..f6bc739 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_meta_plugin.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespMetaPlugin(BaseModel): + """ + V0041OpenapiSharesRespMetaPlugin + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Slurm plugin type (if applicable)") + name: Optional[StrictStr] = Field(default=None, description="Slurm plugin name (if applicable)") + data_parser: Optional[StrictStr] = Field(default=None, description="Slurm data_parser plugin") + accounting_storage: Optional[StrictStr] = Field(default=None, description="Slurm accounting plugin") + __properties: ClassVar[List[str]] = ["type", "name", "data_parser", "accounting_storage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaPlugin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaPlugin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "data_parser": obj.get("data_parser"), + "accounting_storage": obj.get("accounting_storage") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm.py b/slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm.py new file mode 100644 index 0000000..b502eea --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm_version import V0041OpenapiSharesRespMetaSlurmVersion +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespMetaSlurm(BaseModel): + """ + V0041OpenapiSharesRespMetaSlurm + """ # noqa: E501 + version: Optional[V0041OpenapiSharesRespMetaSlurmVersion] = None + release: Optional[StrictStr] = Field(default=None, description="Slurm release string") + cluster: Optional[StrictStr] = Field(default=None, description="Slurm cluster name") + __properties: ClassVar[List[str]] = ["version", "release", "cluster"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaSlurm from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of version + if self.version: + _dict['version'] = self.version.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaSlurm from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "version": V0041OpenapiSharesRespMetaSlurmVersion.from_dict(obj["version"]) if obj.get("version") is not None else None, + "release": obj.get("release"), + "cluster": obj.get("cluster") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm_version.py b/slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm_version.py new file mode 100644 index 0000000..b007deb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_meta_slurm_version.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespMetaSlurmVersion(BaseModel): + """ + V0041OpenapiSharesRespMetaSlurmVersion + """ # noqa: E501 + major: Optional[StrictStr] = Field(default=None, description="Slurm release major version") + micro: Optional[StrictStr] = Field(default=None, description="Slurm release micro version") + minor: Optional[StrictStr] = Field(default=None, description="Slurm release minor version") + __properties: ClassVar[List[str]] = ["major", "micro", "minor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaSlurmVersion from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespMetaSlurmVersion from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "major": obj.get("major"), + "micro": obj.get("micro"), + "minor": obj.get("minor") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares.py new file mode 100644 index 0000000..f2d53b1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner import V0041OpenapiSharesRespSharesSharesInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespShares(BaseModel): + """ + fairshare info + """ # noqa: E501 + shares: Optional[List[V0041OpenapiSharesRespSharesSharesInner]] = Field(default=None, description="Association shares") + total_shares: Optional[StrictInt] = Field(default=None, description="Total number of shares") + __properties: ClassVar[List[str]] = ["shares", "total_shares"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespShares from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in shares (list) + _items = [] + if self.shares: + for _item_shares in self.shares: + if _item_shares: + _items.append(_item_shares.to_dict()) + _dict['shares'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespShares from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": [V0041OpenapiSharesRespSharesSharesInner.from_dict(_item) for _item in obj["shares"]] if obj.get("shares") is not None else None, + "total_shares": obj.get("total_shares") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner.py new file mode 100644 index 0000000..6d7ceeb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_fairshare import V0041OpenapiSharesRespSharesSharesInnerFairshare +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares import V0041OpenapiSharesRespSharesSharesInnerShares +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares_normalized import V0041OpenapiSharesRespSharesSharesInnerSharesNormalized +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres import V0041OpenapiSharesRespSharesSharesInnerTres +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_usage_normalized import V0041OpenapiSharesRespSharesSharesInnerUsageNormalized +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInner(BaseModel): + """ + V0041OpenapiSharesRespSharesSharesInner + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Association ID") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + name: Optional[StrictStr] = Field(default=None, description="Share name") + parent: Optional[StrictStr] = Field(default=None, description="Parent name") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + shares_normalized: Optional[V0041OpenapiSharesRespSharesSharesInnerSharesNormalized] = None + shares: Optional[V0041OpenapiSharesRespSharesSharesInnerShares] = None + tres: Optional[V0041OpenapiSharesRespSharesSharesInnerTres] = None + effective_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Effective, normalized usage") + usage_normalized: Optional[V0041OpenapiSharesRespSharesSharesInnerUsageNormalized] = None + usage: Optional[StrictInt] = Field(default=None, description="Measure of tresbillableunits usage") + fairshare: Optional[V0041OpenapiSharesRespSharesSharesInnerFairshare] = None + type: Optional[List[StrictStr]] = Field(default=None, description="User or account association") + __properties: ClassVar[List[str]] = ["id", "cluster", "name", "parent", "partition", "shares_normalized", "shares", "tres", "effective_usage", "usage_normalized", "usage", "fairshare", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['USER', 'ASSOCIATION']): + raise ValueError("each list item must be one of ('USER', 'ASSOCIATION')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares_normalized + if self.shares_normalized: + _dict['shares_normalized'] = self.shares_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_normalized + if self.usage_normalized: + _dict['usage_normalized'] = self.usage_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of fairshare + if self.fairshare: + _dict['fairshare'] = self.fairshare.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "cluster": obj.get("cluster"), + "name": obj.get("name"), + "parent": obj.get("parent"), + "partition": obj.get("partition"), + "shares_normalized": V0041OpenapiSharesRespSharesSharesInnerSharesNormalized.from_dict(obj["shares_normalized"]) if obj.get("shares_normalized") is not None else None, + "shares": V0041OpenapiSharesRespSharesSharesInnerShares.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "tres": V0041OpenapiSharesRespSharesSharesInnerTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "effective_usage": obj.get("effective_usage"), + "usage_normalized": V0041OpenapiSharesRespSharesSharesInnerUsageNormalized.from_dict(obj["usage_normalized"]) if obj.get("usage_normalized") is not None else None, + "usage": obj.get("usage"), + "fairshare": V0041OpenapiSharesRespSharesSharesInnerFairshare.from_dict(obj["fairshare"]) if obj.get("fairshare") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_fairshare.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_fairshare.py new file mode 100644 index 0000000..f7b2d9d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_fairshare.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerFairshare(BaseModel): + """ + V0041OpenapiSharesRespSharesSharesInnerFairshare + """ # noqa: E501 + factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fairshare factor") + level: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fairshare factor at this level; stored on an assoc as a long double, but that is not needed for display in sshare") + __properties: ClassVar[List[str]] = ["factor", "level"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerFairshare from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerFairshare from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "factor": obj.get("factor"), + "level": obj.get("level") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares.py new file mode 100644 index 0000000..59e7d24 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerShares(BaseModel): + """ + Number of shares allocated + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerShares from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerShares from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py new file mode 100644 index 0000000..82df326 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerSharesNormalized(BaseModel): + """ + Normalized shares + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerSharesNormalized from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerSharesNormalized from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres.py new file mode 100644 index 0000000..8ad84bd --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner import V0041OpenapiSharesRespSharesSharesInnerTresUsageInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerTres(BaseModel): + """ + V0041OpenapiSharesRespSharesSharesInnerTres + """ # noqa: E501 + run_seconds: Optional[List[V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner]] = Field(default=None, description="Currently running tres-secs = grp_used_tres_run_secs") + group_minutes: Optional[List[V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner]] = Field(default=None, description="TRES-minute limit") + usage: Optional[List[V0041OpenapiSharesRespSharesSharesInnerTresUsageInner]] = Field(default=None, description="Measure of each TRES usage") + __properties: ClassVar[List[str]] = ["run_seconds", "group_minutes", "usage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in run_seconds (list) + _items = [] + if self.run_seconds: + for _item_run_seconds in self.run_seconds: + if _item_run_seconds: + _items.append(_item_run_seconds.to_dict()) + _dict['run_seconds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in group_minutes (list) + _items = [] + if self.group_minutes: + for _item_group_minutes in self.group_minutes: + if _item_group_minutes: + _items.append(_item_group_minutes.to_dict()) + _dict['group_minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in usage (list) + _items = [] + if self.usage: + for _item_usage in self.usage: + if _item_usage: + _items.append(_item_usage.to_dict()) + _dict['usage'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "run_seconds": [V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.from_dict(_item) for _item in obj["run_seconds"]] if obj.get("run_seconds") is not None else None, + "group_minutes": [V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner.from_dict(_item) for _item in obj["group_minutes"]] if obj.get("group_minutes") is not None else None, + "usage": [V0041OpenapiSharesRespSharesSharesInnerTresUsageInner.from_dict(_item) for _item in obj["usage"]] if obj.get("usage") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py new file mode 100644 index 0000000..ba68967 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner(BaseModel): + """ + V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue] = None + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict['value'] = self.value.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue.from_dict(obj["value"]) if obj.get("value") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py new file mode 100644 index 0000000..2c8fdb1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue(BaseModel): + """ + TRES value + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py new file mode 100644 index 0000000..a8e27cb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerTresUsageInner(BaseModel): + """ + V0041OpenapiSharesRespSharesSharesInnerTresUsageInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="TRES value") + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTresUsageInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerTresUsageInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": obj.get("value") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py new file mode 100644 index 0000000..c30c2e9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespSharesSharesInnerUsageNormalized(BaseModel): + """ + Normalized usage + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerUsageNormalized from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespSharesSharesInnerUsageNormalized from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_shares_resp_warnings_inner.py b/slurmrest_python/models/v0041_openapi_shares_resp_warnings_inner.py new file mode 100644 index 0000000..edc0db8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_shares_resp_warnings_inner.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSharesRespWarningsInner(BaseModel): + """ + V0041OpenapiSharesRespWarningsInner + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form warning description") + source: Optional[StrictStr] = Field(default=None, description="Source of warning or where warning was first detected") + __properties: ClassVar[List[str]] = ["description", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespWarningsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSharesRespWarningsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..ca95500 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp.py @@ -0,0 +1,192 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner import V0041OpenapiSlurmdbdConfigRespAccountsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner import V0041OpenapiSlurmdbdConfigRespAssociationsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner import V0041OpenapiSlurmdbdConfigRespClustersInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner import V0041OpenapiSlurmdbdConfigRespInstancesInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner import V0041OpenapiSlurmdbdConfigRespQosInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner import V0041OpenapiSlurmdbdConfigRespUsersInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigResp(BaseModel): + """ + V0041OpenapiSlurmdbdConfigResp + """ # noqa: E501 + clusters: Optional[List[V0041OpenapiSlurmdbdConfigRespClustersInner]] = Field(default=None, description="Clusters") + tres: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="TRES") + accounts: Optional[List[V0041OpenapiSlurmdbdConfigRespAccountsInner]] = Field(default=None, description="Accounts") + users: Optional[List[V0041OpenapiSlurmdbdConfigRespUsersInner]] = Field(default=None, description="Users") + qos: Optional[List[V0041OpenapiSlurmdbdConfigRespQosInner]] = Field(default=None, description="QOS") + wckeys: Optional[List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner]] = Field(default=None, description="WCKeys") + associations: Optional[List[V0041OpenapiSlurmdbdConfigRespAssociationsInner]] = Field(default=None, description="Associations") + instances: Optional[List[V0041OpenapiSlurmdbdConfigRespInstancesInner]] = Field(default=None, description="Instances") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["clusters", "tres", "accounts", "users", "qos", "wckeys", "associations", "instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0041OpenapiSlurmdbdConfigRespClustersInner.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "tres": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None, + "accounts": [V0041OpenapiSlurmdbdConfigRespAccountsInner.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "users": [V0041OpenapiSlurmdbdConfigRespUsersInner.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "qos": [V0041OpenapiSlurmdbdConfigRespQosInner.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "wckeys": [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "associations": [V0041OpenapiSlurmdbdConfigRespAssociationsInner.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "instances": [V0041OpenapiSlurmdbdConfigRespInstancesInner.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner.py new file mode 100644 index 0000000..6202360 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAccountsInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAccountsInner + """ # noqa: E501 + associations: Optional[List[V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner]] = Field(default=None, description="Associations involving this account (only populated if requested)") + coordinators: Optional[List[V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner]] = Field(default=None, description="List of users that are a coordinator of this account (only populated if requested)") + description: StrictStr = Field(description="Arbitrary string describing the account") + name: StrictStr = Field(description="Account name") + organization: StrictStr = Field(description="Organization to which the account belongs") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with the account") + __properties: ClassVar[List[str]] = ["associations", "coordinators", "description", "name", "organization", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "description": obj.get("description"), + "name": obj.get("name"), + "organization": obj.get("organization"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py new file mode 100644 index 0000000..70976b4 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster") + partition: Optional[StrictStr] = Field(default=None, description="Partition") + user: StrictStr = Field(description="User name") + id: Optional[StrictInt] = Field(default=None, description="Numeric association ID") + __properties: ClassVar[List[str]] = ["account", "cluster", "partition", "user", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "partition": obj.get("partition"), + "user": obj.get("user"), + "id": obj.get("id") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py new file mode 100644 index 0000000..41f40cc --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner + """ # noqa: E501 + name: StrictStr = Field(description="User name") + direct: Optional[StrictBool] = Field(default=None, description="Indicates whether the coordinator was directly assigned to this account") + __properties: ClassVar[List[str]] = ["name", "direct"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "direct": obj.get("direct") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner.py new file mode 100644 index 0000000..dcacb67 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_min import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_priority import V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInner + """ # noqa: E501 + accounting: Optional[List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner]] = Field(default=None, description="Accounting records containing related resource usage") + account: Optional[StrictStr] = Field(default=None, description="Account") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + default: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags on the association") + max: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax] = None + id: Optional[StrictInt] = Field(default=None, description="Unique ID") + is_default: Optional[StrictBool] = Field(default=None, description="Is default association for user") + lineage: Optional[StrictStr] = Field(default=None, description="Complete path up the hierarchy to the root association") + min: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin] = None + parent_account: Optional[StrictStr] = Field(default=None, description="Name of parent account") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + priority: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority] = None + qos: Optional[List[StrictStr]] = Field(default=None, description="List of available QOS names") + shares_raw: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + user: StrictStr = Field(description="User name") + __properties: ClassVar[List[str]] = ["accounting", "account", "cluster", "comment", "default", "flags", "max", "id", "is_default", "lineage", "min", "parent_account", "partition", "priority", "qos", "shares_raw", "user"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "comment": obj.get("comment"), + "default": V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "max": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "id": obj.get("id"), + "is_default": obj.get("is_default"), + "lineage": obj.get("lineage"), + "min": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin.from_dict(obj["min"]) if obj.get("min") is not None else None, + "parent_account": obj.get("parent_account"), + "partition": obj.get("partition"), + "priority": V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "shares_raw": obj.get("shares_raw"), + "user": obj.get("user") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_default.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_default.py new file mode 100644 index 0000000..57720cf --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_default.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault + """ # noqa: E501 + qos: Optional[StrictStr] = Field(default=None, description="Default QOS") + __properties: ClassVar[List[str]] = ["qos"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": obj.get("qos") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max.py new file mode 100644 index 0000000..34896ee --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax + """ # noqa: E501 + jobs: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs] = None + tres: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres] = None + per: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer] = None + __properties: ClassVar[List[str]] = ["jobs", "tres", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "tres": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "per": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py new file mode 100644 index 0000000..aca52b4 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs + """ # noqa: E501 + per: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer] = None + active: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive] = None + accruing: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing] = None + total: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal] = None + __properties: ClassVar[List[str]] = ["per", "active", "accruing", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + # override the default output from pydantic by calling `to_dict()` of active + if self.active: + _dict['active'] = self.active.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None, + "active": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive.from_dict(obj["active"]) if obj.get("active") is not None else None, + "accruing": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "total": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal.from_dict(obj["total"]) if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py new file mode 100644 index 0000000..13f8749 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing(BaseModel): + """ + MaxJobsAccrue + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py new file mode 100644 index 0000000..4c6423e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive(BaseModel): + """ + MaxJobs + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py new file mode 100644 index 0000000..a83ba6e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer + """ # noqa: E501 + count: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount] = None + accruing: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing] = None + submitted: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted] = None + wall_clock: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob] = None + __properties: ClassVar[List[str]] = ["count", "accruing", "submitted", "wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of submitted + if self.submitted: + _dict['submitted'] = self.submitted.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.from_dict(obj["count"]) if obj.get("count") is not None else None, + "accruing": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "submitted": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted.from_dict(obj["submitted"]) if obj.get("submitted") is not None else None, + "wall_clock": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py new file mode 100644 index 0000000..653b8fe --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted(BaseModel): + """ + GrpSubmitJobs + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py new file mode 100644 index 0000000..2fb4798 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal(BaseModel): + """ + MaxSubmitJobs + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py new file mode 100644 index 0000000..29ade29 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer + """ # noqa: E501 + account: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount] = None + __properties: ClassVar[List[str]] = ["account"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount.from_dict(obj["account"]) if obj.get("account") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py new file mode 100644 index 0000000..2421941 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount + """ # noqa: E501 + wall_clock: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos] = None + __properties: ClassVar[List[str]] = ["wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wall_clock": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py new file mode 100644 index 0000000..77b3dd6 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres + """ # noqa: E501 + total: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="GrpTRES") + group: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup] = None + minutes: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes] = None + per: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "group", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of group + if self.group: + _dict['group'] = self.group.to_dict() + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "group": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup.from_dict(obj["group"]) if obj.get("group") is not None else None, + "minutes": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py new file mode 100644 index 0000000..64b3af3 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup + """ # noqa: E501 + minutes: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="GrpTRESMins") + active: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="GrpTRESRunMins") + __properties: ClassVar[List[str]] = ["minutes", "active"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in minutes (list) + _items = [] + if self.minutes: + for _item_minutes in self.minutes: + if _item_minutes: + _items.append(_item_minutes.to_dict()) + _dict['minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in active (list) + _items = [] + if self.active: + for _item_active in self.active: + if _item_active: + _items.append(_item_active.to_dict()) + _dict['active'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minutes": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["minutes"]] if obj.get("minutes") is not None else None, + "active": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["active"]] if obj.get("active") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py new file mode 100644 index 0000000..439f54e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes + """ # noqa: E501 + total: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESMinsPerJob") + per: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer] = None + __properties: ClassVar[List[str]] = ["total", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "per": V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py new file mode 100644 index 0000000..fe1c64f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer + """ # noqa: E501 + job: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESMinsPerJob") + __properties: ClassVar[List[str]] = ["job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py new file mode 100644 index 0000000..73c81c5 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer + """ # noqa: E501 + job: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESPerJob") + node: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESPerNode") + __properties: ClassVar[List[str]] = ["job", "node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_min.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_min.py new file mode 100644 index 0000000..3b35448 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_min.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin + """ # noqa: E501 + priority_threshold: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold] = None + __properties: ClassVar[List[str]] = ["priority_threshold"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py new file mode 100644 index 0000000..4ff2aa8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority(BaseModel): + """ + Association priority factor + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner.py new file mode 100644 index 0000000..61aafdb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespClustersInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespClustersInner + """ # noqa: E501 + controller: Optional[V0041OpenapiSlurmdbdConfigRespClustersInnerController] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags") + name: Optional[StrictStr] = Field(default=None, description="ClusterName") + nodes: Optional[StrictStr] = Field(default=None, description="Node names") + select_plugin: Optional[StrictStr] = None + associations: Optional[V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations] = None + rpc_version: Optional[StrictInt] = Field(default=None, description="RPC version used in the cluster") + tres: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Trackable resources") + __properties: ClassVar[List[str]] = ["controller", "flags", "name", "nodes", "select_plugin", "associations", "rpc_version", "tres"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL']): + raise ValueError("each list item must be one of ('REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # override the default output from pydantic by calling `to_dict()` of associations + if self.associations: + _dict['associations'] = self.associations.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "controller": V0041OpenapiSlurmdbdConfigRespClustersInnerController.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "nodes": obj.get("nodes"), + "select_plugin": obj.get("select_plugin"), + "associations": V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations.from_dict(obj["associations"]) if obj.get("associations") is not None else None, + "rpc_version": obj.get("rpc_version"), + "tres": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py new file mode 100644 index 0000000..18cec19 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations + """ # noqa: E501 + root: Optional[V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot] = None + __properties: ClassVar[List[str]] = ["root"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of root + if self.root: + _dict['root'] = self.root.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "root": V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot.from_dict(obj["root"]) if obj.get("root") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py new file mode 100644 index 0000000..a01f028 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot(BaseModel): + """ + Root association information + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster") + partition: Optional[StrictStr] = Field(default=None, description="Partition") + user: StrictStr = Field(description="User name") + id: Optional[StrictInt] = Field(default=None, description="Numeric association ID") + __properties: ClassVar[List[str]] = ["account", "cluster", "partition", "user", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "partition": obj.get("partition"), + "user": obj.get("user"), + "id": obj.get("id") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py new file mode 100644 index 0000000..669233c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespClustersInnerController(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespClustersInnerController + """ # noqa: E501 + host: Optional[StrictStr] = Field(default=None, description="ControlHost") + port: Optional[StrictInt] = Field(default=None, description="ControlPort") + __properties: ClassVar[List[str]] = ["host", "port"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerController from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespClustersInnerController from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "host": obj.get("host"), + "port": obj.get("port") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner.py new file mode 100644 index 0000000..2c72ec5 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner_time import V0041OpenapiSlurmdbdConfigRespInstancesInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespInstancesInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespInstancesInner + """ # noqa: E501 + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + node_name: Optional[StrictStr] = Field(default=None, description="NodeName") + time: Optional[V0041OpenapiSlurmdbdConfigRespInstancesInnerTime] = None + __properties: ClassVar[List[str]] = ["cluster", "extra", "instance_id", "instance_type", "node_name", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cluster": obj.get("cluster"), + "extra": obj.get("extra"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "node_name": obj.get("node_name"), + "time": V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner_time.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner_time.py new file mode 100644 index 0000000..0237e45 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_instances_inner_time.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespInstancesInnerTime(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespInstancesInnerTime + """ # noqa: E501 + time_end: Optional[StrictInt] = Field(default=None, description="When the instance will end (UNIX timestamp)") + time_start: Optional[StrictInt] = Field(default=None, description="When the instance will start (UNIX timestamp)") + __properties: ClassVar[List[str]] = ["time_end", "time_start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInnerTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespInstancesInnerTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time_end": obj.get("time_end"), + "time_start": obj.get("time_start") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner.py new file mode 100644 index 0000000..5078f30 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits import V0041OpenapiSlurmdbdConfigRespQosInnerLimits +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt import V0041OpenapiSlurmdbdConfigRespQosInnerPreempt +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_priority import V0041OpenapiSlurmdbdConfigRespQosInnerPriority +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor import V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInner + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary description") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags, to avoid modifying current values specify NOT_SET") + id: Optional[StrictInt] = Field(default=None, description="Unique ID") + limits: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimits] = None + name: Optional[StrictStr] = Field(default=None, description="Name") + preempt: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerPreempt] = None + priority: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerPriority] = None + usage_factor: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor] = None + usage_threshold: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold] = None + __properties: ClassVar[List[str]] = ["description", "flags", "id", "limits", "name", "preempt", "priority", "usage_factor", "usage_threshold"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'ADD', 'REMOVE', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE']): + raise ValueError("each list item must be one of ('NOT_SET', 'ADD', 'REMOVE', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt + if self.preempt: + _dict['preempt'] = self.preempt.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_factor + if self.usage_factor: + _dict['usage_factor'] = self.usage_factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_threshold + if self.usage_threshold: + _dict['usage_threshold'] = self.usage_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "flags": obj.get("flags"), + "id": obj.get("id"), + "limits": V0041OpenapiSlurmdbdConfigRespQosInnerLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "name": obj.get("name"), + "preempt": V0041OpenapiSlurmdbdConfigRespQosInnerPreempt.from_dict(obj["preempt"]) if obj.get("preempt") is not None else None, + "priority": V0041OpenapiSlurmdbdConfigRespQosInnerPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "usage_factor": V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor.from_dict(obj["usage_factor"]) if obj.get("usage_factor") is not None else None, + "usage_threshold": V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold.from_dict(obj["usage_threshold"]) if obj.get("usage_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py new file mode 100644 index 0000000..8e46cdc --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimits(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimits + """ # noqa: E501 + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime") + max: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax] = None + factor: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor] = None + min: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin] = None + __properties: ClassVar[List[str]] = ["grace_time", "max", "factor", "min"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of factor + if self.factor: + _dict['factor'] = self.factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "grace_time": obj.get("grace_time"), + "max": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "factor": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor.from_dict(obj["factor"]) if obj.get("factor") is not None else None, + "min": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin.from_dict(obj["min"]) if obj.get("min") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py new file mode 100644 index 0000000..06e6fa4 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor(BaseModel): + """ + LimitFactor + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py new file mode 100644 index 0000000..0d033f3 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax + """ # noqa: E501 + active_jobs: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs] = None + tres: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres] = None + wall_clock: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock] = None + jobs: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs] = None + accruing: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing] = None + __properties: ClassVar[List[str]] = ["active_jobs", "tres", "wall_clock", "jobs", "accruing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "active_jobs": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "tres": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "wall_clock": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None, + "jobs": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "accruing": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py new file mode 100644 index 0000000..b3e7054 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing + """ # noqa: E501 + per: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py new file mode 100644 index 0000000..83a67fd --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer + """ # noqa: E501 + account: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount] = None + user: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser] = None + __properties: ClassVar[List[str]] = ["account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount.from_dict(obj["account"]) if obj.get("account") is not None else None, + "user": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py new file mode 100644 index 0000000..b3a84ef --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount(BaseModel): + """ + MaxJobsAccruePerAccount + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py new file mode 100644 index 0000000..4797cf7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser(BaseModel): + """ + MaxJobsAccruePerUser + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py new file mode 100644 index 0000000..b5b55af --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs + """ # noqa: E501 + accruing: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing] = None + count: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount] = None + __properties: ClassVar[List[str]] = ["accruing", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accruing": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "count": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount.from_dict(obj["count"]) if obj.get("count") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py new file mode 100644 index 0000000..f2aea63 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing(BaseModel): + """ + GrpJobsAccrue + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py new file mode 100644 index 0000000..3487353 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount(BaseModel): + """ + GrpJobs + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py new file mode 100644 index 0000000..9b33ffb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs + """ # noqa: E501 + active_jobs: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs] = None + per: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer] = None + __properties: ClassVar[List[str]] = ["active_jobs", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "active_jobs": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "per": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..e97c2e6 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs + """ # noqa: E501 + per: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..4a1e1eb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer + """ # noqa: E501 + account: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount] = None + user: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser] = None + __properties: ClassVar[List[str]] = ["account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount.from_dict(obj["account"]) if obj.get("account") is not None else None, + "user": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py new file mode 100644 index 0000000..92d42fc --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount(BaseModel): + """ + MaxJobsPerAccount + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py new file mode 100644 index 0000000..5471aea --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser(BaseModel): + """ + MaxJobsPerUser + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py new file mode 100644 index 0000000..f62ba6f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer + """ # noqa: E501 + account: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount] = None + user: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser] = None + __properties: ClassVar[List[str]] = ["account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount.from_dict(obj["account"]) if obj.get("account") is not None else None, + "user": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py new file mode 100644 index 0000000..5d11e89 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount(BaseModel): + """ + MaxSubmitJobsPerAccount + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py new file mode 100644 index 0000000..ba6a017 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser(BaseModel): + """ + MaxSubmitJobsPerUser + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py new file mode 100644 index 0000000..f807c55 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres + """ # noqa: E501 + total: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="GrpTRES") + minutes: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes] = None + per: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "minutes": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py new file mode 100644 index 0000000..cd4b08d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes + """ # noqa: E501 + per: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..f71f6af --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer + """ # noqa: E501 + qos: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="GrpTRESRunMins") + job: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESMinsPerJob") + account: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESRunMinsPerAccount") + user: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESRunMinsPerUser") + __properties: ClassVar[List[str]] = ["qos", "job", "account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "job": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "account": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "user": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py new file mode 100644 index 0000000..22b3151 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer + """ # noqa: E501 + account: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESPerAccount") + job: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESPerJob") + node: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESPerNode") + user: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MaxTRESPerUser") + __properties: ClassVar[List[str]] = ["account", "job", "node", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "job": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None, + "user": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py new file mode 100644 index 0000000..a53a51a --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock + """ # noqa: E501 + per: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py new file mode 100644 index 0000000..0b21586 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer + """ # noqa: E501 + qos: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos] = None + job: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob] = None + __properties: ClassVar[List[str]] = ["qos", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "job": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py new file mode 100644 index 0000000..4401d27 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob(BaseModel): + """ + MaxWallDurationPerJob + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py new file mode 100644 index 0000000..efc63ec --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos(BaseModel): + """ + GrpWall + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py new file mode 100644 index 0000000..89879bf --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin + """ # noqa: E501 + priority_threshold: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold] = None + tres: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres] = None + __properties: ClassVar[List[str]] = ["priority_threshold", "tres"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None, + "tres": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py new file mode 100644 index 0000000..1b5a0c1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold(BaseModel): + """ + MinPrioThreshold + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py new file mode 100644 index 0000000..75040ef --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres + """ # noqa: E501 + per: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py new file mode 100644 index 0000000..a413e06 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer + """ # noqa: E501 + job: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="MinTRES") + __properties: ClassVar[List[str]] = ["job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py new file mode 100644 index 0000000..896314c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time import V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerPreempt(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespQosInnerPreempt + """ # noqa: E501 + list: Optional[List[StrictStr]] = Field(default=None, description="Other QOS's this QOS can preempt") + mode: Optional[List[StrictStr]] = Field(default=None, description="PreemptMode") + exempt_time: Optional[V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime] = None + __properties: ClassVar[List[str]] = ["list", "mode", "exempt_time"] + + @field_validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG']): + raise ValueError("each list item must be one of ('DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreempt from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of exempt_time + if self.exempt_time: + _dict['exempt_time'] = self.exempt_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreempt from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "list": obj.get("list"), + "mode": obj.get("mode"), + "exempt_time": V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime.from_dict(obj["exempt_time"]) if obj.get("exempt_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py new file mode 100644 index 0000000..ab7ec22 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime(BaseModel): + """ + PreemptExemptTime + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py new file mode 100644 index 0000000..468f3a0 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerPriority(BaseModel): + """ + Priority + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPriority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerPriority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py new file mode 100644 index 0000000..5f14416 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor(BaseModel): + """ + UsageFactor + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py new file mode 100644 index 0000000..25caa1b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold(BaseModel): + """ + UsageThreshold + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner.py new file mode 100644 index 0000000..fb90334 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_default import V0041OpenapiSlurmdbdConfigRespUsersInnerDefault +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespUsersInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespUsersInner + """ # noqa: E501 + administrator_level: Optional[List[StrictStr]] = Field(default=None, description="AdminLevel granted to the user") + associations: Optional[List[V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner]] = Field(default=None, description="Associations created for this user") + coordinators: Optional[List[V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner]] = Field(default=None, description="Accounts this user is a coordinator for") + default: Optional[V0041OpenapiSlurmdbdConfigRespUsersInnerDefault] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with user") + name: StrictStr = Field(description="User name") + old_name: Optional[StrictStr] = Field(default=None, description="Previous user name") + wckeys: Optional[List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner]] = Field(default=None, description="List of available WCKeys") + __properties: ClassVar[List[str]] = ["administrator_level", "associations", "coordinators", "default", "flags", "name", "old_name", "wckeys"] + + @field_validator('administrator_level') + def administrator_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'DELETED']): + raise ValueError("each list item must be one of ('NONE', 'DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "administrator_level": obj.get("administrator_level"), + "associations": [V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "default": V0041OpenapiSlurmdbdConfigRespUsersInnerDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "old_name": obj.get("old_name"), + "wckeys": [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_default.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_default.py new file mode 100644 index 0000000..de18b34 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_default.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespUsersInnerDefault(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespUsersInnerDefault + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Default Account") + wckey: Optional[StrictStr] = Field(default=None, description="Default WCKey") + __properties: ClassVar[List[str]] = ["account", "wckey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerDefault from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerDefault from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "wckey": obj.get("wckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py new file mode 100644 index 0000000..ba4d4e1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner + """ # noqa: E501 + accounting: Optional[List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner]] = Field(default=None, description="Accounting records containing related resource usage") + cluster: StrictStr = Field(description="Cluster name") + id: Optional[StrictInt] = Field(default=None, description="Unique ID for this user-cluster-wckey combination") + name: StrictStr = Field(description="WCKey name") + user: StrictStr = Field(description="User name") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with the WCKey") + __properties: ClassVar[List[str]] = ["accounting", "cluster", "id", "name", "user", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED']): + raise ValueError("each list item must be one of ('DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "cluster": obj.get("cluster"), + "id": obj.get("id"), + "name": obj.get("name"), + "user": obj.get("user"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py new file mode 100644 index 0000000..7ce5982 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner + """ # noqa: E501 + allocated: Optional[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated] = None + id: Optional[StrictInt] = Field(default=None, description="Association ID or Workload characterization key ID") + start: Optional[StrictInt] = Field(default=None, description="When the record was started") + tres: Optional[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES] = Field(default=None, alias="TRES") + __properties: ClassVar[List[str]] = ["allocated", "id", "start", "TRES"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of allocated + if self.allocated: + _dict['allocated'] = self.allocated.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['TRES'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated.from_dict(obj["allocated"]) if obj.get("allocated") is not None else None, + "id": obj.get("id"), + "start": obj.get("start"), + "TRES": V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES.from_dict(obj["TRES"]) if obj.get("TRES") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py new file mode 100644 index 0000000..9a3bbed --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated(BaseModel): + """ + V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="Number of cpu seconds allocated") + __properties: ClassVar[List[str]] = ["seconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py new file mode 100644 index 0000000..f5a22ce --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES(BaseModel): + """ + Trackable resources + """ # noqa: E501 + type: StrictStr = Field(description="TRES type (CPU, MEM, etc)") + name: Optional[StrictStr] = Field(default=None, description="TRES name (if applicable)") + id: Optional[StrictInt] = Field(default=None, description="ID used in database") + count: Optional[StrictInt] = Field(default=None, description="TRES count (0 if listed generically)") + __properties: ClassVar[List[str]] = ["type", "name", "id", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "id": obj.get("id"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..720e736 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner import V0041OpenapiSlurmdbdJobsRespJobsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsResp(BaseModel): + """ + V0041OpenapiSlurmdbdJobsResp + """ # noqa: E501 + jobs: List[V0041OpenapiSlurmdbdJobsRespJobsInner] = Field(description="jobs") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["jobs", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0041OpenapiSlurmdbdJobsRespJobsInner.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py new file mode 100644 index 0000000..9761e1c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_priority import V0041JobDescMsgPriority +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCode +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array import V0041OpenapiSlurmdbdJobsRespJobsInnerArray +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association import V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code import V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het import V0041OpenapiSlurmdbdJobsRespJobsInnerHet +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required import V0041OpenapiSlurmdbdJobsRespJobsInnerRequired +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation import V0041OpenapiSlurmdbdJobsRespJobsInnerReservation +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state import V0041OpenapiSlurmdbdJobsRespJobsInnerState +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerTres +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey import V0041OpenapiSlurmdbdJobsRespJobsInnerWckey +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInner(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInner + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account the job ran under") + comment: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerComment] = None + allocation_nodes: Optional[StrictInt] = Field(default=None, description="List of nodes allocated to the job") + array: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerArray] = None + association: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation] = None + block: Optional[StrictStr] = Field(default=None, description="The name of the block to be used (used with Blue Gene systems)") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + constraints: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested as a constraint") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + derived_exit_code: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCode] = None + time: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTime] = None + exit_code: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with the job") + group: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + het: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerHet] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + name: Optional[StrictStr] = Field(default=None, description="Job name") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mcs: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerMcs] = None + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job") + priority: Optional[V0041JobDescMsgPriority] = None + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + required: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerRequired] = None + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the job") + reservation: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerReservation] = None + script: Optional[StrictStr] = Field(default=None, description="Job batch script; only the first component in a HetJob is populated or honored") + stdin_expanded: Optional[StrictStr] = Field(default=None, description="Job stdin with expanded fields") + stdout_expanded: Optional[StrictStr] = Field(default=None, description="Job stdout with expanded fields") + stderr_expanded: Optional[StrictStr] = Field(default=None, description="Job stderr with expanded fields") + stdout: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + stderr: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + stdin: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + state: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerState] = None + steps: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner]] = Field(default=None, description="Individual steps in the job") + submit_line: Optional[StrictStr] = Field(default=None, description="Command used to submit the job") + tres: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTres] = None + used_gres: Optional[StrictStr] = Field(default=None, description="Generic resources used by job") + user: Optional[StrictStr] = Field(default=None, description="User that owns the job") + wckey: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerWckey] = None + working_directory: Optional[StrictStr] = Field(default=None, description="Path to current working directory") + __properties: ClassVar[List[str]] = ["account", "comment", "allocation_nodes", "array", "association", "block", "cluster", "constraints", "container", "derived_exit_code", "time", "exit_code", "extra", "failed_node", "flags", "group", "het", "job_id", "name", "licenses", "mcs", "nodes", "partition", "hold", "priority", "qos", "required", "kill_request_user", "reservation", "script", "stdin_expanded", "stdout_expanded", "stderr_expanded", "stdout", "stderr", "stdin", "state", "steps", "submit_line", "tres", "used_gres", "user", "wckey", "working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED']): + raise ValueError("each list item must be one of ('NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of comment + if self.comment: + _dict['comment'] = self.comment.to_dict() + # override the default output from pydantic by calling `to_dict()` of array + if self.array: + _dict['array'] = self.array.to_dict() + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het + if self.het: + _dict['het'] = self.het.to_dict() + # override the default output from pydantic by calling `to_dict()` of mcs + if self.mcs: + _dict['mcs'] = self.mcs.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of required + if self.required: + _dict['required'] = self.required.to_dict() + # override the default output from pydantic by calling `to_dict()` of reservation + if self.reservation: + _dict['reservation'] = self.reservation.to_dict() + # override the default output from pydantic by calling `to_dict()` of state + if self.state: + _dict['state'] = self.state.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in steps (list) + _items = [] + if self.steps: + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) + _dict['steps'] = _items + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wckey + if self.wckey: + _dict['wckey'] = self.wckey.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "comment": V0041OpenapiSlurmdbdJobsRespJobsInnerComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, + "allocation_nodes": obj.get("allocation_nodes"), + "array": V0041OpenapiSlurmdbdJobsRespJobsInnerArray.from_dict(obj["array"]) if obj.get("array") is not None else None, + "association": V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation.from_dict(obj["association"]) if obj.get("association") is not None else None, + "block": obj.get("block"), + "cluster": obj.get("cluster"), + "constraints": obj.get("constraints"), + "container": obj.get("container"), + "derived_exit_code": V0041OpenapiJobInfoRespJobsInnerDerivedExitCode.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "time": V0041OpenapiSlurmdbdJobsRespJobsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "flags": obj.get("flags"), + "group": obj.get("group"), + "het": V0041OpenapiSlurmdbdJobsRespJobsInnerHet.from_dict(obj["het"]) if obj.get("het") is not None else None, + "job_id": obj.get("job_id"), + "name": obj.get("name"), + "licenses": obj.get("licenses"), + "mcs": V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.from_dict(obj["mcs"]) if obj.get("mcs") is not None else None, + "nodes": obj.get("nodes"), + "partition": obj.get("partition"), + "hold": obj.get("hold"), + "priority": V0041JobDescMsgPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "required": V0041OpenapiSlurmdbdJobsRespJobsInnerRequired.from_dict(obj["required"]) if obj.get("required") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "reservation": V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.from_dict(obj["reservation"]) if obj.get("reservation") is not None else None, + "script": obj.get("script"), + "stdin_expanded": obj.get("stdin_expanded"), + "stdout_expanded": obj.get("stdout_expanded"), + "stderr_expanded": obj.get("stderr_expanded"), + "stdout": obj.get("stdout"), + "stderr": obj.get("stderr"), + "stdin": obj.get("stdin"), + "state": V0041OpenapiSlurmdbdJobsRespJobsInnerState.from_dict(obj["state"]) if obj.get("state") is not None else None, + "steps": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, + "submit_line": obj.get("submit_line"), + "tres": V0041OpenapiSlurmdbdJobsRespJobsInnerTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "used_gres": obj.get("used_gres"), + "user": obj.get("user"), + "wckey": V0041OpenapiSlurmdbdJobsRespJobsInnerWckey.from_dict(obj["wckey"]) if obj.get("wckey") is not None else None, + "working_directory": obj.get("working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py new file mode 100644 index 0000000..314b3d9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_task_id import V0041OpenapiJobInfoRespJobsInnerArrayTaskId +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerArray(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerArray + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID of job array, or 0 if N/A") + limits: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits] = None + task_id: Optional[V0041OpenapiJobInfoRespJobsInnerArrayTaskId] = None + task: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + __properties: ClassVar[List[str]] = ["job_id", "limits", "task_id", "task"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArray from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of task_id + if self.task_id: + _dict['task_id'] = self.task_id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArray from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "limits": V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "task_id": V0041OpenapiJobInfoRespJobsInnerArrayTaskId.from_dict(obj["task_id"]) if obj.get("task_id") is not None else None, + "task": obj.get("task") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py new file mode 100644 index 0000000..81f1e63 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits + """ # noqa: E501 + max: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax] = None + __properties: ClassVar[List[str]] = ["max"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax.from_dict(obj["max"]) if obj.get("max") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py new file mode 100644 index 0000000..810e765 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax + """ # noqa: E501 + running: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning] = None + __properties: ClassVar[List[str]] = ["running"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of running + if self.running: + _dict['running'] = self.running.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "running": V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning.from_dict(obj["running"]) if obj.get("running") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py new file mode 100644 index 0000000..2cac9e0 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning + """ # noqa: E501 + tasks: Optional[StrictInt] = Field(default=None, description="Maximum number of simultaneously running tasks, 0 if no limit") + __properties: ClassVar[List[str]] = ["tasks"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tasks": obj.get("tasks") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py new file mode 100644 index 0000000..d3850e4 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation(BaseModel): + """ + Unique identifier for the association + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster") + partition: Optional[StrictStr] = Field(default=None, description="Partition") + user: StrictStr = Field(description="User name") + id: Optional[StrictInt] = Field(default=None, description="Numeric association ID") + __properties: ClassVar[List[str]] = ["account", "cluster", "partition", "user", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "partition": obj.get("partition"), + "user": obj.get("user"), + "id": obj.get("id") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py new file mode 100644 index 0000000..372678f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerComment(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerComment + """ # noqa: E501 + administrator: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + job: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by user") + system: Optional[StrictStr] = Field(default=None, description="Arbitrary comment from slurmctld") + __properties: ClassVar[List[str]] = ["administrator", "job", "system"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerComment from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerComment from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "administrator": obj.get("administrator"), + "job": obj.get("job"), + "system": obj.get("system") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py new file mode 100644 index 0000000..9e03783 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode(BaseModel): + """ + Exit code + """ # noqa: E501 + status: Optional[List[StrictStr]] = Field(default=None, description="Status given by return code") + return_code: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode] = None + signal: Optional[V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal] = None + __properties: ClassVar[List[str]] = ["status", "return_code", "signal"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED']): + raise ValueError("each list item must be one of ('INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of return_code + if self.return_code: + _dict['return_code'] = self.return_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of signal + if self.signal: + _dict['signal'] = self.signal.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "return_code": V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode.from_dict(obj["return_code"]) if obj.get("return_code") is not None else None, + "signal": V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal.from_dict(obj["signal"]) if obj.get("signal") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py new file mode 100644 index 0000000..7ee4059 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_offset import V0041OpenapiJobInfoRespJobsInnerHetJobOffset +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerHet(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerHet + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Heterogeneous job ID, if applicable") + job_offset: Optional[V0041OpenapiJobInfoRespJobsInnerHetJobOffset] = None + __properties: ClassVar[List[str]] = ["job_id", "job_offset"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerHet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of job_offset + if self.job_offset: + _dict['job_offset'] = self.job_offset.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerHet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_offset": V0041OpenapiJobInfoRespJobsInnerHetJobOffset.from_dict(obj["job_offset"]) if obj.get("job_offset") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py new file mode 100644 index 0000000..1ad3818 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerMcs(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerMcs + """ # noqa: E501 + label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + __properties: ClassVar[List[str]] = ["label"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerMcs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerMcs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "label": obj.get("label") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py new file mode 100644 index 0000000..eae7b0c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_memory_per_cpu import V0041JobDescMsgMemoryPerCpu +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_memory_per_node import V0041OpenapiJobInfoRespJobsInnerMemoryPerNode +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerRequired(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerRequired + """ # noqa: E501 + cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required", alias="CPUs") + memory_per_cpu: Optional[V0041JobDescMsgMemoryPerCpu] = None + memory_per_node: Optional[V0041OpenapiJobInfoRespJobsInnerMemoryPerNode] = None + __properties: ClassVar[List[str]] = ["CPUs", "memory_per_cpu", "memory_per_node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerRequired from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerRequired from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPUs": obj.get("CPUs"), + "memory_per_cpu": V0041JobDescMsgMemoryPerCpu.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0041OpenapiJobInfoRespJobsInnerMemoryPerNode.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py new file mode 100644 index 0000000..e21a755 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerReservation(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerReservation + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Unique identifier of requested reservation") + name: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerReservation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerReservation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py new file mode 100644 index 0000000..541bee8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerState(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerState + """ # noqa: E501 + current: Optional[List[StrictStr]] = Field(default=None, description="Current state") + reason: Optional[StrictStr] = Field(default=None, description="Reason for previous Pending or Failed state") + __properties: ClassVar[List[str]] = ["current", "reason"] + + @field_validator('current') + def current_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerState from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerState from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "current": obj.get("current"), + "reason": obj.get("reason") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py new file mode 100644 index 0000000..d6d36ce --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code import V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner + """ # noqa: E501 + time: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime] = None + exit_code: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode] = None + nodes: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes] = None + tasks: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks] = None + pid: Optional[StrictStr] = Field(default=None, description="Process ID") + cpu: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU] = Field(default=None, alias="CPU") + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the step") + state: Optional[List[StrictStr]] = Field(default=None, description="Current state") + statistics: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics] = None + step: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep] = None + task: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask] = None + tres: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres] = None + __properties: ClassVar[List[str]] = ["time", "exit_code", "nodes", "tasks", "pid", "CPU", "kill_request_user", "state", "statistics", "step", "task", "tres"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of step + if self.step: + _dict['step'] = self.step.to_dict() + # override the default output from pydantic by calling `to_dict()` of task + if self.task: + _dict['task'] = self.task.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "nodes": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "tasks": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "pid": obj.get("pid"), + "CPU": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "state": obj.get("state"), + "statistics": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "step": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.from_dict(obj["step"]) if obj.get("step") is not None else None, + "task": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.from_dict(obj["task"]) if obj.get("task") is not None else None, + "tres": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py new file mode 100644 index 0000000..9532878 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU + """ # noqa: E501 + requested_frequency: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency] = None + governor: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency governor in kHz") + __properties: ClassVar[List[str]] = ["requested_frequency", "governor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested_frequency + if self.requested_frequency: + _dict['requested_frequency'] = self.requested_frequency.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested_frequency": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency.from_dict(obj["requested_frequency"]) if obj.get("requested_frequency") is not None else None, + "governor": obj.get("governor") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py new file mode 100644 index 0000000..4a48959 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency + """ # noqa: E501 + min: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin] = None + max: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax] = None + __properties: ClassVar[List[str]] = ["min", "max"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "min": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin.from_dict(obj["min"]) if obj.get("min") is not None else None, + "max": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax.from_dict(obj["max"]) if obj.get("max") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py new file mode 100644 index 0000000..ea1082a --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax(BaseModel): + """ + Maximum requested CPU frequency in kHz + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py new file mode 100644 index 0000000..97d23f9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin(BaseModel): + """ + Minimum requested CPU frequency in kHz + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py new file mode 100644 index 0000000..52feb97 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of nodes in the job step") + range: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job step") + list: Optional[List[StrictStr]] = Field(default=None, description="List of nodes used by the step") + __properties: ClassVar[List[str]] = ["count", "range", "list"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "range": obj.get("range"), + "list": obj.get("list") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py new file mode 100644 index 0000000..ead670f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics + """ # noqa: E501 + cpu: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU] = Field(default=None, alias="CPU") + energy: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy] = None + __properties: ClassVar[List[str]] = ["CPU", "energy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPU": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "energy": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py new file mode 100644 index 0000000..db52fb7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU + """ # noqa: E501 + actual_frequency: Optional[StrictInt] = Field(default=None, description="Average weighted CPU frequency of all tasks in kHz") + __properties: ClassVar[List[str]] = ["actual_frequency"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "actual_frequency": obj.get("actual_frequency") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py new file mode 100644 index 0000000..b80d12c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy + """ # noqa: E501 + consumed: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed] = None + __properties: ClassVar[List[str]] = ["consumed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumed": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py new file mode 100644 index 0000000..6fd74b1 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed(BaseModel): + """ + Total energy consumed by all tasks in a job in joules + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py new file mode 100644 index 0000000..75b648f --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Step ID") + name: Optional[StrictStr] = Field(default=None, description="Step name") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py new file mode 100644 index 0000000..42b2e15 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask + """ # noqa: E501 + distribution: Optional[StrictStr] = Field(default=None, description="The layout of the step was when it was running") + __properties: ClassVar[List[str]] = ["distribution"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "distribution": obj.get("distribution") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py new file mode 100644 index 0000000..1d9a71d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Total number of tasks") + __properties: ClassVar[List[str]] = ["count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py new file mode 100644 index 0000000..4a3c4d3 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + end: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd] = None + start: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart] = None + suspended: Optional[StrictInt] = Field(default=None, description="Time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "end", "start", "suspended", "system", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of end + if self.end: + _dict['end'] = self.end.to_dict() + # override the default output from pydantic by calling `to_dict()` of start + if self.start: + _dict['start'] = self.start.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "end": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd.from_dict(obj["end"]) if obj.get("end") is not None else None, + "start": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart.from_dict(obj["start"]) if obj.get("start") is not None else None, + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py new file mode 100644 index 0000000..1ea386c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd(BaseModel): + """ + End time (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py new file mode 100644 index 0000000..ce67f9c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart(BaseModel): + """ + Time execution began (UNIX timestamp) + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py new file mode 100644 index 0000000..f04268b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="System CPU time used by the step in seconds") + microseconds: Optional[StrictInt] = Field(default=None, description="System CPU time used by the step in microseconds") + __properties: ClassVar[List[str]] = ["seconds", "microseconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds"), + "microseconds": obj.get("microseconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py new file mode 100644 index 0000000..d72da9b --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="Total CPU time used by the step in seconds") + microseconds: Optional[StrictInt] = Field(default=None, description="Total CPU time used by the step in microseconds") + __properties: ClassVar[List[str]] = ["seconds", "microseconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds"), + "microseconds": obj.get("microseconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py new file mode 100644 index 0000000..ca19e6d --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="User CPU time used by the step in seconds") + microseconds: Optional[StrictInt] = Field(default=None, description="User CPU time used by the step in microseconds") + __properties: ClassVar[List[str]] = ["seconds", "microseconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds"), + "microseconds": obj.get("microseconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py new file mode 100644 index 0000000..c942f97 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres + """ # noqa: E501 + requested: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested] = None + consumed: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed] = None + allocated: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Trackable resources allocated to the step") + __properties: ClassVar[List[str]] = ["requested", "consumed", "allocated"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested + if self.requested: + _dict['requested'] = self.requested.to_dict() + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested.from_dict(obj["requested"]) if obj.get("requested") is not None else None, + "consumed": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None, + "allocated": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py new file mode 100644 index 0000000..827cfd9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed + """ # noqa: E501 + max: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum TRES usage consumed among all tasks") + min: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Minimum TRES usage consumed among all tasks") + average: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Average TRES usage consumed among all tasks") + total: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Total TRES usage consumed among all tasks") + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py new file mode 100644 index 0000000..abe6b3e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested + """ # noqa: E501 + max: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum TRES usage requested among all tasks") + min: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Minimum TRES usage requested among all tasks") + average: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Average TRES usage requested among all tasks") + total: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Total TRES usage requested among all tasks") + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py new file mode 100644 index 0000000..22c2ced --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner + """ # noqa: E501 + type: StrictStr = Field(description="TRES type (CPU, MEM, etc)") + name: Optional[StrictStr] = Field(default=None, description="TRES name (if applicable)") + id: Optional[StrictInt] = Field(default=None, description="ID used in database") + count: Optional[StrictInt] = Field(default=None, description="TRES count (0 if listed generically)") + __properties: ClassVar[List[str]] = ["type", "name", "id", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "id": obj.get("id"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py new file mode 100644 index 0000000..be8caca --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_time_limit import V0041JobDescMsgTimeLimit +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned import V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerTime(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + eligible: Optional[StrictInt] = Field(default=None, description="Time when the job became eligible to run (UNIX timestamp)") + end: Optional[StrictInt] = Field(default=None, description="End time (UNIX timestamp)") + planned: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned] = None + start: Optional[StrictInt] = Field(default=None, description="Time execution began (UNIX timestamp)") + submission: Optional[StrictInt] = Field(default=None, description="Time when the job was submitted (UNIX timestamp)") + suspended: Optional[StrictInt] = Field(default=None, description="Total time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem] = None + limit: Optional[V0041JobDescMsgTimeLimit] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "eligible", "end", "planned", "start", "submission", "suspended", "system", "limit", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of planned + if self.planned: + _dict['planned'] = self.planned.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of limit + if self.limit: + _dict['limit'] = self.limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "eligible": obj.get("eligible"), + "end": obj.get("end"), + "planned": V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned.from_dict(obj["planned"]) if obj.get("planned") is not None else None, + "start": obj.get("start"), + "submission": obj.get("submission"), + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "limit": V0041JobDescMsgTimeLimit.from_dict(obj["limit"]) if obj.get("limit") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py new file mode 100644 index 0000000..1a134b2 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned(BaseModel): + """ + Time required to start job after becoming eligible to run in seconds + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py new file mode 100644 index 0000000..e84cb42 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="System CPU time used by the job in seconds") + microseconds: Optional[StrictInt] = Field(default=None, description="System CPU time used by the job in microseconds") + __properties: ClassVar[List[str]] = ["seconds", "microseconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds"), + "microseconds": obj.get("microseconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py new file mode 100644 index 0000000..3eec583 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="Sum of System and User CPU time used by the job in seconds") + microseconds: Optional[StrictInt] = Field(default=None, description="Sum of System and User CPU time used by the job in microseconds") + __properties: ClassVar[List[str]] = ["seconds", "microseconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds"), + "microseconds": obj.get("microseconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py new file mode 100644 index 0000000..ddb4d25 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="User CPU time used by the job in seconds") + microseconds: Optional[StrictInt] = Field(default=None, description="User CPU time used by the job in microseconds") + __properties: ClassVar[List[str]] = ["seconds", "microseconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds"), + "microseconds": obj.get("microseconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py new file mode 100644 index 0000000..ddc73e8 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerTres(BaseModel): + """ + V0041OpenapiSlurmdbdJobsRespJobsInnerTres + """ # noqa: E501 + allocated: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Trackable resources allocated to the job") + requested: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Trackable resources requested by job") + __properties: ClassVar[List[str]] = ["allocated", "requested"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in requested (list) + _items = [] + if self.requested: + for _item_requested in self.requested: + if _item_requested: + _items.append(_item_requested.to_dict()) + _dict['requested'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None, + "requested": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["requested"]] if obj.get("requested") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py new file mode 100644 index 0000000..cc3ce54 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdJobsRespJobsInnerWckey(BaseModel): + """ + Workload characterization key + """ # noqa: E501 + wckey: StrictStr = Field(description="WCKey name") + flags: List[StrictStr] = Field(description="Active flags") + __properties: ClassVar[List[str]] = ["wckey", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['ASSIGNED_DEFAULT']): + raise ValueError("each list item must be one of ('ASSIGNED_DEFAULT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerWckey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdJobsRespJobsInnerWckey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckey": obj.get("wckey"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_qos_removed_resp.py b/slurmrest_python/models/v0041_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..5a704ba --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdQosRemovedResp(BaseModel): + """ + V0041OpenapiSlurmdbdQosRemovedResp + """ # noqa: E501 + removed_qos: List[StrictStr] = Field(description="removed QOS") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["removed_qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdQosRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdQosRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_qos": obj.get("removed_qos"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_qos_resp.py b/slurmrest_python/models/v0041_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..5f3a2f6 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner import V0041OpenapiSlurmdbdConfigRespQosInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdQosResp(BaseModel): + """ + V0041OpenapiSlurmdbdQosResp + """ # noqa: E501 + qos: List[V0041OpenapiSlurmdbdConfigRespQosInner] = Field(description="List of QOS") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdQosResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdQosResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0041OpenapiSlurmdbdConfigRespQosInner.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..1479790 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics import V0041OpenapiSlurmdbdStatsRespStatistics +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsResp(BaseModel): + """ + V0041OpenapiSlurmdbdStatsResp + """ # noqa: E501 + statistics: V0041OpenapiSlurmdbdStatsRespStatistics + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0041OpenapiSlurmdbdStatsRespStatistics.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics.py new file mode 100644 index 0000000..3760746 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups import V0041OpenapiSlurmdbdStatsRespStatisticsRollups +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_users_inner import V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatistics(BaseModel): + """ + statistics + """ # noqa: E501 + time_start: Optional[StrictInt] = Field(default=None, description="When data collection started (UNIX timestamp)") + rollups: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollups] = None + rpcs: Optional[List[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner]] = Field(default=None, description="List of RPCs sent to the slurmdbd", alias="RPCs") + users: Optional[List[V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner]] = Field(default=None, description="List of users that issued RPCs") + __properties: ClassVar[List[str]] = ["time_start", "rollups", "RPCs", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatistics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rollups + if self.rollups: + _dict['rollups'] = self.rollups.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs (list) + _items = [] + if self.rpcs: + for _item_rpcs in self.rpcs: + if _item_rpcs: + _items.append(_item_rpcs.to_dict()) + _dict['RPCs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatistics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time_start": obj.get("time_start"), + "rollups": V0041OpenapiSlurmdbdStatsRespStatisticsRollups.from_dict(obj["rollups"]) if obj.get("rollups") is not None else None, + "RPCs": [V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner.from_dict(_item) for _item in obj["RPCs"]] if obj.get("RPCs") is not None else None, + "users": [V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py new file mode 100644 index 0000000..6eb9d23 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRollups(BaseModel): + """ + Rollup statistics + """ # noqa: E501 + hourly: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly] = None + daily: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily] = None + monthly: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly] = None + __properties: ClassVar[List[str]] = ["hourly", "daily", "monthly"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollups from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of hourly + if self.hourly: + _dict['hourly'] = self.hourly.to_dict() + # override the default output from pydantic by calling `to_dict()` of daily + if self.daily: + _dict['daily'] = self.daily.to_dict() + # override the default output from pydantic by calling `to_dict()` of monthly + if self.monthly: + _dict['monthly'] = self.monthly.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollups from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hourly": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.from_dict(obj["hourly"]) if obj.get("hourly") is not None else None, + "daily": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.from_dict(obj["daily"]) if obj.get("daily") is not None else None, + "monthly": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.from_dict(obj["monthly"]) if obj.get("monthly") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py new file mode 100644 index 0000000..fcb8af5 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of daily rollups since last_run") + last_run: Optional[StrictInt] = Field(default=None, description="Last time daily rollup ran (UNIX timestamp)") + duration: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration] = None + __properties: ClassVar[List[str]] = ["count", "last_run", "duration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "last_run": obj.get("last_run"), + "duration": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.from_dict(obj["duration"]) if obj.get("duration") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py new file mode 100644 index 0000000..5abd9fb --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration + """ # noqa: E501 + last: Optional[StrictInt] = Field(default=None, description="Total time spent doing daily daily rollup (seconds)") + max: Optional[StrictInt] = Field(default=None, description="Longest daily rollup time (seconds)") + time: Optional[StrictInt] = Field(default=None, description="Total time spent doing daily rollups (seconds)") + __properties: ClassVar[List[str]] = ["last", "max", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "last": obj.get("last"), + "max": obj.get("max"), + "time": obj.get("time") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py new file mode 100644 index 0000000..423c942 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of hourly rollups since last_run") + last_run: Optional[StrictInt] = Field(default=None, description="Last time hourly rollup ran (UNIX timestamp)") + duration: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration] = None + __properties: ClassVar[List[str]] = ["count", "last_run", "duration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "last_run": obj.get("last_run"), + "duration": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.from_dict(obj["duration"]) if obj.get("duration") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py new file mode 100644 index 0000000..a8780e5 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration + """ # noqa: E501 + last: Optional[StrictInt] = Field(default=None, description="Total time spent doing last daily rollup (seconds)") + max: Optional[StrictInt] = Field(default=None, description="Longest hourly rollup time (seconds)") + time: Optional[StrictInt] = Field(default=None, description="Total time spent doing hourly rollups (seconds)") + __properties: ClassVar[List[str]] = ["last", "max", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "last": obj.get("last"), + "max": obj.get("max"), + "time": obj.get("time") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py new file mode 100644 index 0000000..6aeb3a7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of monthly rollups since last_run") + last_run: Optional[StrictInt] = Field(default=None, description="Last time monthly rollup ran (UNIX timestamp)") + duration: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration] = None + __properties: ClassVar[List[str]] = ["count", "last_run", "duration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "last_run": obj.get("last_run"), + "duration": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.from_dict(obj["duration"]) if obj.get("duration") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py new file mode 100644 index 0000000..9877cbd --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration + """ # noqa: E501 + last: Optional[StrictInt] = Field(default=None, description="Total time spent doing monthly daily rollup (seconds)") + max: Optional[StrictInt] = Field(default=None, description="Longest monthly rollup time (seconds)") + time: Optional[StrictInt] = Field(default=None, description="Total time spent doing monthly rollups (seconds)") + __properties: ClassVar[List[str]] = ["last", "max", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "last": obj.get("last"), + "max": obj.get("max"), + "time": obj.get("time") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py new file mode 100644 index 0000000..22d1e65 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner + """ # noqa: E501 + rpc: Optional[StrictStr] = Field(default=None, description="RPC type") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["rpc", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rpc": obj.get("rpc"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py new file mode 100644 index 0000000..93c6822 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime + """ # noqa: E501 + average: Optional[StrictInt] = Field(default=None, description="Average RPC processing time in microseconds") + total: Optional[StrictInt] = Field(default=None, description="Total RPC processing time in microseconds") + __properties: ClassVar[List[str]] = ["average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "average": obj.get("average"), + "total": obj.get("total") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py new file mode 100644 index 0000000..64ab332 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner(BaseModel): + """ + V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner + """ # noqa: E501 + user: Optional[StrictStr] = Field(default=None, description="User ID") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["user", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": obj.get("user"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_tres_resp.py b/slurmrest_python/models/v0041_openapi_tres_resp.py new file mode 100644 index 0000000..deade89 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_tres_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiTresResp(BaseModel): + """ + V0041OpenapiTresResp + """ # noqa: E501 + tres: List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner] = Field(description="TRES", alias="TRES") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["TRES", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiTresResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['TRES'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiTresResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "TRES": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["TRES"]] if obj.get("TRES") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..fe7e4d4 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition import V0041OpenapiUsersAddCondRespAssociationCondition +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_user import V0041OpenapiUsersAddCondRespUser +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondResp(BaseModel): + """ + V0041OpenapiUsersAddCondResp + """ # noqa: E501 + association_condition: V0041OpenapiUsersAddCondRespAssociationCondition + user: V0041OpenapiUsersAddCondRespUser + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["association_condition", "user", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0041OpenapiUsersAddCondRespAssociationCondition.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "user": V0041OpenapiUsersAddCondRespUser.from_dict(obj["user"]) if obj.get("user") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition.py new file mode 100644 index 0000000..0c3d2d6 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association import V0041OpenapiUsersAddCondRespAssociationConditionAssociation +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationCondition(BaseModel): + """ + Filters to select associations for users + """ # noqa: E501 + accounts: Optional[List[StrictStr]] = Field(default=None, description="CSV accounts list") + association: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociation] = None + clusters: Optional[List[StrictStr]] = Field(default=None, description="CSV clusters list") + partitions: Optional[List[StrictStr]] = Field(default=None, description="CSV partitions list") + users: List[StrictStr] = Field(description="CSV users list") + wckeys: Optional[List[StrictStr]] = Field(default=None, description="CSV WCKeys list") + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters", "partitions", "users", "wckeys"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationCondition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationCondition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0041OpenapiUsersAddCondRespAssociationConditionAssociation.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters"), + "partitions": obj.get("partitions"), + "users": obj.get("users"), + "wckeys": obj.get("wckeys") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association.py new file mode 100644 index 0000000..aa1376a --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_priority import V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpwall import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociation(BaseModel): + """ + Association limits and options + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + defaultqos: Optional[StrictStr] = Field(default=None, description="Default QOS") + grpjobs: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs] = None + grpjobsaccrue: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue] = None + grpsubmitjobs: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs] = None + grptres: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum number of TRES able to be allocated by running jobs in this association and its children") + grptresmins: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Total number of TRES minutes that can possibly be used by past, present and future jobs in this association and its children") + grptresrunmins: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum number of TRES minutes able to be allocated by running jobs in this association and its children") + grpwall: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall] = None + maxjobs: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs] = None + maxjobsaccrue: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue] = None + maxsubmitjobs: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs] = None + maxtresminsperjob: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum number of TRES minutes each job is able to use in this association") + maxtresrunmins: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum number of TRES minutes able to be allocated by running jobs in this association") + maxtresperjob: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum number of TRES each job is able to use in this association") + maxtrespernode: Optional[List[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner]] = Field(default=None, description="Maximum number of TRES each node is able to use") + maxwalldurationperjob: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob] = None + minpriothresh: Optional[V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh] = None + parent: Optional[StrictStr] = Field(default=None, description="Name of parent account") + priority: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority] = None + qoslevel: Optional[List[StrictStr]] = Field(default=None, description="List of available QOS names") + fairshare: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + __properties: ClassVar[List[str]] = ["comment", "defaultqos", "grpjobs", "grpjobsaccrue", "grpsubmitjobs", "grptres", "grptresmins", "grptresrunmins", "grpwall", "maxjobs", "maxjobsaccrue", "maxsubmitjobs", "maxtresminsperjob", "maxtresrunmins", "maxtresperjob", "maxtrespernode", "maxwalldurationperjob", "minpriothresh", "parent", "priority", "qoslevel", "fairshare"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of grpjobs + if self.grpjobs: + _dict['grpjobs'] = self.grpjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpjobsaccrue + if self.grpjobsaccrue: + _dict['grpjobsaccrue'] = self.grpjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpsubmitjobs + if self.grpsubmitjobs: + _dict['grpsubmitjobs'] = self.grpsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in grptres (list) + _items = [] + if self.grptres: + for _item_grptres in self.grptres: + if _item_grptres: + _items.append(_item_grptres.to_dict()) + _dict['grptres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresmins (list) + _items = [] + if self.grptresmins: + for _item_grptresmins in self.grptresmins: + if _item_grptresmins: + _items.append(_item_grptresmins.to_dict()) + _dict['grptresmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresrunmins (list) + _items = [] + if self.grptresrunmins: + for _item_grptresrunmins in self.grptresrunmins: + if _item_grptresrunmins: + _items.append(_item_grptresrunmins.to_dict()) + _dict['grptresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of grpwall + if self.grpwall: + _dict['grpwall'] = self.grpwall.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobs + if self.maxjobs: + _dict['maxjobs'] = self.maxjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobsaccrue + if self.maxjobsaccrue: + _dict['maxjobsaccrue'] = self.maxjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxsubmitjobs + if self.maxsubmitjobs: + _dict['maxsubmitjobs'] = self.maxsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in maxtresminsperjob (list) + _items = [] + if self.maxtresminsperjob: + for _item_maxtresminsperjob in self.maxtresminsperjob: + if _item_maxtresminsperjob: + _items.append(_item_maxtresminsperjob.to_dict()) + _dict['maxtresminsperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresrunmins (list) + _items = [] + if self.maxtresrunmins: + for _item_maxtresrunmins in self.maxtresrunmins: + if _item_maxtresrunmins: + _items.append(_item_maxtresrunmins.to_dict()) + _dict['maxtresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresperjob (list) + _items = [] + if self.maxtresperjob: + for _item_maxtresperjob in self.maxtresperjob: + if _item_maxtresperjob: + _items.append(_item_maxtresperjob.to_dict()) + _dict['maxtresperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtrespernode (list) + _items = [] + if self.maxtrespernode: + for _item_maxtrespernode in self.maxtrespernode: + if _item_maxtrespernode: + _items.append(_item_maxtrespernode.to_dict()) + _dict['maxtrespernode'] = _items + # override the default output from pydantic by calling `to_dict()` of maxwalldurationperjob + if self.maxwalldurationperjob: + _dict['maxwalldurationperjob'] = self.maxwalldurationperjob.to_dict() + # override the default output from pydantic by calling `to_dict()` of minpriothresh + if self.minpriothresh: + _dict['minpriothresh'] = self.minpriothresh.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "defaultqos": obj.get("defaultqos"), + "grpjobs": V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs.from_dict(obj["grpjobs"]) if obj.get("grpjobs") is not None else None, + "grpjobsaccrue": V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue.from_dict(obj["grpjobsaccrue"]) if obj.get("grpjobsaccrue") is not None else None, + "grpsubmitjobs": V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs.from_dict(obj["grpsubmitjobs"]) if obj.get("grpsubmitjobs") is not None else None, + "grptres": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["grptres"]] if obj.get("grptres") is not None else None, + "grptresmins": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["grptresmins"]] if obj.get("grptresmins") is not None else None, + "grptresrunmins": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["grptresrunmins"]] if obj.get("grptresrunmins") is not None else None, + "grpwall": V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall.from_dict(obj["grpwall"]) if obj.get("grpwall") is not None else None, + "maxjobs": V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs.from_dict(obj["maxjobs"]) if obj.get("maxjobs") is not None else None, + "maxjobsaccrue": V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue.from_dict(obj["maxjobsaccrue"]) if obj.get("maxjobsaccrue") is not None else None, + "maxsubmitjobs": V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs.from_dict(obj["maxsubmitjobs"]) if obj.get("maxsubmitjobs") is not None else None, + "maxtresminsperjob": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["maxtresminsperjob"]] if obj.get("maxtresminsperjob") is not None else None, + "maxtresrunmins": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["maxtresrunmins"]] if obj.get("maxtresrunmins") is not None else None, + "maxtresperjob": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["maxtresperjob"]] if obj.get("maxtresperjob") is not None else None, + "maxtrespernode": [V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner.from_dict(_item) for _item in obj["maxtrespernode"]] if obj.get("maxtrespernode") is not None else None, + "maxwalldurationperjob": V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob.from_dict(obj["maxwalldurationperjob"]) if obj.get("maxwalldurationperjob") is not None else None, + "minpriothresh": V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh.from_dict(obj["minpriothresh"]) if obj.get("minpriothresh") is not None else None, + "parent": obj.get("parent"), + "priority": V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qoslevel": obj.get("qoslevel"), + "fairshare": obj.get("fairshare") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py new file mode 100644 index 0000000..bcee250 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs(BaseModel): + """ + Maximum number of running jobs in this association and its children + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py new file mode 100644 index 0000000..98358f7 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue(BaseModel): + """ + Maximum number of pending jobs able to accrue age priority in this association and its children + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py new file mode 100644 index 0000000..e52b745 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs(BaseModel): + """ + Maximum number of jobs which can be in a pending or running state at any time in this association and its children + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py new file mode 100644 index 0000000..723e4ec --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall(BaseModel): + """ + Maximum wall clock time in minutes able to be allocated by running jobs in this association and its children + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py new file mode 100644 index 0000000..01df0a3 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs(BaseModel): + """ + Maximum number of running jobs per user in this association + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py new file mode 100644 index 0000000..d539631 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue(BaseModel): + """ + Maximum number of pending jobs able to accrue age priority at any given time in this association + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py new file mode 100644 index 0000000..65ac0a9 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs(BaseModel): + """ + Maximum number of jobs which can be in a pending or running state at any time in this association + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py new file mode 100644 index 0000000..61ac08c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob(BaseModel): + """ + Maximum wall clock time each job is able to use in this association + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py new file mode 100644 index 0000000..c8f931e --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh(BaseModel): + """ + Minimum priority required to reserve resources when scheduling + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_str.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..871094c --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespStr(BaseModel): + """ + V0041OpenapiUsersAddCondRespStr + """ # noqa: E501 + added_users: StrictStr = Field(description="added_users") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["added_users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_users": obj.get("added_users"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_add_cond_resp_user.py b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_user.py new file mode 100644 index 0000000..c06af19 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_add_cond_resp_user.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersAddCondRespUser(BaseModel): + """ + Admin level of user, DefaultAccount, DefaultWCKey + """ # noqa: E501 + adminlevel: Optional[List[StrictStr]] = Field(default=None, description="AdminLevel granted to the user") + defaultaccount: Optional[StrictStr] = Field(default=None, description="Default account") + defaultwckey: Optional[StrictStr] = Field(default=None, description="Default WCKey") + __properties: ClassVar[List[str]] = ["adminlevel", "defaultaccount", "defaultwckey"] + + @field_validator('adminlevel') + def adminlevel_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersAddCondRespUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminlevel": obj.get("adminlevel"), + "defaultaccount": obj.get("defaultaccount"), + "defaultwckey": obj.get("defaultwckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_users_resp.py b/slurmrest_python/models/v0041_openapi_users_resp.py new file mode 100644 index 0000000..014e6f6 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_users_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner import V0041OpenapiSlurmdbdConfigRespUsersInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiUsersResp(BaseModel): + """ + V0041OpenapiUsersResp + """ # noqa: E501 + users: List[V0041OpenapiSlurmdbdConfigRespUsersInner] = Field(description="users") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiUsersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V0041OpenapiSlurmdbdConfigRespUsersInner.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_wckey_removed_resp.py b/slurmrest_python/models/v0041_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..2dbf477 --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_wckey_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiWckeyRemovedResp(BaseModel): + """ + V0041OpenapiWckeyRemovedResp + """ # noqa: E501 + deleted_wckeys: List[StrictStr] = Field(description="deleted wckeys") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["deleted_wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiWckeyRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiWckeyRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_wckeys": obj.get("deleted_wckeys"), + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_openapi_wckey_resp.py b/slurmrest_python/models/v0041_openapi_wckey_resp.py new file mode 100644 index 0000000..c6467ba --- /dev/null +++ b/slurmrest_python/models/v0041_openapi_wckey_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner +from typing import Optional, Set +from typing_extensions import Self + +class V0041OpenapiWckeyResp(BaseModel): + """ + V0041OpenapiWckeyResp + """ # noqa: E501 + wckeys: List[V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner] = Field(description="wckeys") + meta: Optional[V0041OpenapiSharesRespMeta] = None + errors: Optional[List[V0041OpenapiSharesRespErrorsInner]] = Field(default=None, description="Query errors") + warnings: Optional[List[V0041OpenapiSharesRespWarningsInner]] = Field(default=None, description="Query warnings") + __properties: ClassVar[List[str]] = ["wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041OpenapiWckeyResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041OpenapiWckeyResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckeys": [V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "meta": V0041OpenapiSharesRespMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0041OpenapiSharesRespErrorsInner.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0041OpenapiSharesRespWarningsInner.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_update_node_msg.py b/slurmrest_python/models/v0041_update_node_msg.py new file mode 100644 index 0000000..22e645d --- /dev/null +++ b/slurmrest_python/models/v0041_update_node_msg.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_update_node_msg_resume_after import V0041UpdateNodeMsgResumeAfter +from slurmrest_python.models.v0041_update_node_msg_weight import V0041UpdateNodeMsgWeight +from typing import Optional, Set +from typing_extensions import Self + +class V0041UpdateNodeMsg(BaseModel): + """ + V0041UpdateNodeMsg + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + cpu_bind: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + features: Optional[List[StrictStr]] = Field(default=None, description="Available features") + features_act: Optional[List[StrictStr]] = Field(default=None, description="Currently active features") + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + address: Optional[List[StrictStr]] = Field(default=None, description="NodeAddr, used to establish a communication path") + hostname: Optional[List[StrictStr]] = Field(default=None, description="NodeHostname") + name: Optional[List[StrictStr]] = Field(default=None, description="NodeName") + state: Optional[List[StrictStr]] = Field(default=None, description="New state to assign to the node") + reason: Optional[StrictStr] = Field(default=None, description="Reason for node being DOWN or DRAINING") + reason_uid: Optional[StrictStr] = Field(default=None, description="User ID to associate with the reason (needed if user root is sending message)") + resume_after: Optional[V0041UpdateNodeMsgResumeAfter] = None + weight: Optional[V0041UpdateNodeMsgWeight] = None + __properties: ClassVar[List[str]] = ["comment", "cpu_bind", "extra", "features", "features_act", "gres", "address", "hostname", "name", "state", "reason", "reason_uid", "resume_after", "weight"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041UpdateNodeMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of weight + if self.weight: + _dict['weight'] = self.weight.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041UpdateNodeMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "cpu_bind": obj.get("cpu_bind"), + "extra": obj.get("extra"), + "features": obj.get("features"), + "features_act": obj.get("features_act"), + "gres": obj.get("gres"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "name": obj.get("name"), + "state": obj.get("state"), + "reason": obj.get("reason"), + "reason_uid": obj.get("reason_uid"), + "resume_after": V0041UpdateNodeMsgResumeAfter.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "weight": V0041UpdateNodeMsgWeight.from_dict(obj["weight"]) if obj.get("weight") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_update_node_msg_resume_after.py b/slurmrest_python/models/v0041_update_node_msg_resume_after.py new file mode 100644 index 0000000..771552b --- /dev/null +++ b/slurmrest_python/models/v0041_update_node_msg_resume_after.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041UpdateNodeMsgResumeAfter(BaseModel): + """ + Number of seconds after which to automatically resume DOWN or DRAINED node + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041UpdateNodeMsgResumeAfter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041UpdateNodeMsgResumeAfter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0041_update_node_msg_weight.py b/slurmrest_python/models/v0041_update_node_msg_weight.py new file mode 100644 index 0000000..6ae9a09 --- /dev/null +++ b/slurmrest_python/models/v0041_update_node_msg_weight.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0041UpdateNodeMsgWeight(BaseModel): + """ + Weight of the node for scheduling purposes + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0041UpdateNodeMsgWeight from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0041UpdateNodeMsgWeight from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_account.py b/slurmrest_python/models/v0042_account.py new file mode 100644 index 0000000..9304c0c --- /dev/null +++ b/slurmrest_python/models/v0042_account.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort +from slurmrest_python.models.v0042_coord import V0042Coord +from typing import Optional, Set +from typing_extensions import Self + +class V0042Account(BaseModel): + """ + V0042Account + """ # noqa: E501 + associations: Optional[List[V0042AssocShort]] = None + coordinators: Optional[List[V0042Coord]] = None + description: StrictStr = Field(description="Arbitrary string describing the account") + name: StrictStr = Field(description="Account name") + organization: StrictStr = Field(description="Organization to which the account belongs") + flags: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["associations", "coordinators", "description", "name", "organization", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Account from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Account from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0042AssocShort.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0042Coord.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "description": obj.get("description"), + "name": obj.get("name"), + "organization": obj.get("organization"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_account_short.py b/slurmrest_python/models/v0042_account_short.py new file mode 100644 index 0000000..6139106 --- /dev/null +++ b/slurmrest_python/models/v0042_account_short.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042AccountShort(BaseModel): + """ + V0042AccountShort + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary string describing the account") + organization: Optional[StrictStr] = Field(default=None, description="Organization to which the account belongs") + __properties: ClassVar[List[str]] = ["description", "organization"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AccountShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AccountShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "organization": obj.get("organization") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_accounting.py b/slurmrest_python/models/v0042_accounting.py new file mode 100644 index 0000000..c1b7dfc --- /dev/null +++ b/slurmrest_python/models/v0042_accounting.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from slurmrest_python.models.v0044_accounting_allocated import V0044AccountingAllocated +from typing import Optional, Set +from typing_extensions import Self + +class V0042Accounting(BaseModel): + """ + V0042Accounting + """ # noqa: E501 + allocated: Optional[V0044AccountingAllocated] = None + id: Optional[StrictInt] = Field(default=None, description="Association ID or Workload characterization key ID") + id_alt: Optional[StrictInt] = Field(default=None, description="Alternate ID (not currently used)") + start: Optional[StrictInt] = Field(default=None, description="When the record was started (UNIX timestamp)") + tres: Optional[V0042Tres] = Field(default=None, alias="TRES") + __properties: ClassVar[List[str]] = ["allocated", "id", "id_alt", "start", "TRES"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Accounting from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of allocated + if self.allocated: + _dict['allocated'] = self.allocated.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['TRES'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Accounting from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": V0044AccountingAllocated.from_dict(obj["allocated"]) if obj.get("allocated") is not None else None, + "id": obj.get("id"), + "id_alt": obj.get("id_alt"), + "start": obj.get("start"), + "TRES": V0042Tres.from_dict(obj["TRES"]) if obj.get("TRES") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_accounts_add_cond.py b/slurmrest_python/models/v0042_accounts_add_cond.py new file mode 100644 index 0000000..3ed60a7 --- /dev/null +++ b/slurmrest_python/models/v0042_accounts_add_cond.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_rec_set import V0042AssocRecSet +from typing import Optional, Set +from typing_extensions import Self + +class V0042AccountsAddCond(BaseModel): + """ + V0042AccountsAddCond + """ # noqa: E501 + accounts: List[StrictStr] + association: Optional[V0042AssocRecSet] = None + clusters: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AccountsAddCond from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AccountsAddCond from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0042AssocRecSet.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_acct_gather_energy.py b/slurmrest_python/models/v0042_acct_gather_energy.py new file mode 100644 index 0000000..173cb20 --- /dev/null +++ b/slurmrest_python/models/v0042_acct_gather_energy.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AcctGatherEnergy(BaseModel): + """ + V0042AcctGatherEnergy + """ # noqa: E501 + average_watts: Optional[StrictInt] = Field(default=None, description="Average power consumption, in watts") + base_consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules") + consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules") + current_watts: Optional[V0042Uint32NoValStruct] = None + previous_consumed_energy: Optional[StrictInt] = Field(default=None, description="Previous value of consumed_energy") + last_collected: Optional[StrictInt] = Field(default=None, description="Time when energy data was last retrieved (UNIX timestamp)") + __properties: ClassVar[List[str]] = ["average_watts", "base_consumed_energy", "consumed_energy", "current_watts", "previous_consumed_energy", "last_collected"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AcctGatherEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of current_watts + if self.current_watts: + _dict['current_watts'] = self.current_watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AcctGatherEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "average_watts": obj.get("average_watts"), + "base_consumed_energy": obj.get("base_consumed_energy"), + "consumed_energy": obj.get("consumed_energy"), + "current_watts": V0042Uint32NoValStruct.from_dict(obj["current_watts"]) if obj.get("current_watts") is not None else None, + "previous_consumed_energy": obj.get("previous_consumed_energy"), + "last_collected": obj.get("last_collected") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc.py b/slurmrest_python/models/v0042_assoc.py new file mode 100644 index 0000000..5f3044e --- /dev/null +++ b/slurmrest_python/models/v0042_assoc.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault +from slurmrest_python.models.v0042_accounting import V0042Accounting +from slurmrest_python.models.v0042_assoc_max import V0042AssocMax +from slurmrest_python.models.v0042_assoc_min import V0042AssocMin +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042Assoc(BaseModel): + """ + V0042Assoc + """ # noqa: E501 + accounting: Optional[List[V0042Accounting]] = None + account: Optional[StrictStr] = Field(default=None, description="Account name") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + default: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault] = None + flags: Optional[List[StrictStr]] = None + max: Optional[V0042AssocMax] = None + id: Optional[StrictInt] = Field(default=None, description="Unique ID") + is_default: Optional[StrictBool] = Field(default=None, description="Is default association for user") + lineage: Optional[StrictStr] = Field(default=None, description="Complete path up the hierarchy to the root association") + min: Optional[V0042AssocMin] = None + parent_account: Optional[StrictStr] = Field(default=None, description="Name of parent account") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + priority: Optional[V0042Uint32NoValStruct] = None + qos: Optional[List[StrictStr]] = Field(default=None, description="List of QOS names") + shares_raw: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + user: StrictStr = Field(description="User name") + __properties: ClassVar[List[str]] = ["accounting", "account", "cluster", "comment", "default", "flags", "max", "id", "is_default", "lineage", "min", "parent_account", "partition", "priority", "qos", "shares_raw", "user"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Assoc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Assoc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0042Accounting.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "comment": obj.get("comment"), + "default": V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "max": V0042AssocMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "id": obj.get("id"), + "is_default": obj.get("is_default"), + "lineage": obj.get("lineage"), + "min": V0042AssocMin.from_dict(obj["min"]) if obj.get("min") is not None else None, + "parent_account": obj.get("parent_account"), + "partition": obj.get("partition"), + "priority": V0042Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "shares_raw": obj.get("shares_raw"), + "user": obj.get("user") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max.py b/slurmrest_python/models/v0042_assoc_max.py new file mode 100644 index 0000000..59021eb --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_max_jobs import V0042AssocMaxJobs +from slurmrest_python.models.v0042_assoc_max_per import V0042AssocMaxPer +from slurmrest_python.models.v0042_assoc_max_tres import V0042AssocMaxTres +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMax(BaseModel): + """ + V0042AssocMax + """ # noqa: E501 + jobs: Optional[V0042AssocMaxJobs] = None + tres: Optional[V0042AssocMaxTres] = None + per: Optional[V0042AssocMaxPer] = None + __properties: ClassVar[List[str]] = ["jobs", "tres", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": V0042AssocMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "tres": V0042AssocMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "per": V0042AssocMaxPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_jobs.py b/slurmrest_python/models/v0042_assoc_max_jobs.py new file mode 100644 index 0000000..2f4e83a --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_jobs.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_max_jobs_per import V0042AssocMaxJobsPer +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxJobs(BaseModel): + """ + V0042AssocMaxJobs + """ # noqa: E501 + per: Optional[V0042AssocMaxJobsPer] = None + active: Optional[V0042Uint32NoValStruct] = None + accruing: Optional[V0042Uint32NoValStruct] = None + total: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["per", "active", "accruing", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + # override the default output from pydantic by calling `to_dict()` of active + if self.active: + _dict['active'] = self.active.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0042AssocMaxJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None, + "active": V0042Uint32NoValStruct.from_dict(obj["active"]) if obj.get("active") is not None else None, + "accruing": V0042Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "total": V0042Uint32NoValStruct.from_dict(obj["total"]) if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_jobs_per.py b/slurmrest_python/models/v0042_assoc_max_jobs_per.py new file mode 100644 index 0000000..5694850 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_jobs_per.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxJobsPer(BaseModel): + """ + V0042AssocMaxJobsPer + """ # noqa: E501 + count: Optional[V0042Uint32NoValStruct] = None + accruing: Optional[V0042Uint32NoValStruct] = None + submitted: Optional[V0042Uint32NoValStruct] = None + wall_clock: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["count", "accruing", "submitted", "wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of submitted + if self.submitted: + _dict['submitted'] = self.submitted.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": V0042Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None, + "accruing": V0042Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "submitted": V0042Uint32NoValStruct.from_dict(obj["submitted"]) if obj.get("submitted") is not None else None, + "wall_clock": V0042Uint32NoValStruct.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_per.py b/slurmrest_python/models/v0042_assoc_max_per.py new file mode 100644 index 0000000..e070bd6 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_per.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_max_per_account import V0042AssocMaxPerAccount +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxPer(BaseModel): + """ + V0042AssocMaxPer + """ # noqa: E501 + account: Optional[V0042AssocMaxPerAccount] = None + __properties: ClassVar[List[str]] = ["account"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0042AssocMaxPerAccount.from_dict(obj["account"]) if obj.get("account") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_per_account.py b/slurmrest_python/models/v0042_assoc_max_per_account.py new file mode 100644 index 0000000..676dad2 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_per_account.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxPerAccount(BaseModel): + """ + V0042AssocMaxPerAccount + """ # noqa: E501 + wall_clock: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxPerAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxPerAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wall_clock": V0042Uint32NoValStruct.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_tres.py b/slurmrest_python/models/v0042_assoc_max_tres.py new file mode 100644 index 0000000..d53fef1 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_tres.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_max_tres_group import V0042AssocMaxTresGroup +from slurmrest_python.models.v0042_assoc_max_tres_minutes import V0042AssocMaxTresMinutes +from slurmrest_python.models.v0042_assoc_max_tres_per import V0042AssocMaxTresPer +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxTres(BaseModel): + """ + V0042AssocMaxTres + """ # noqa: E501 + total: Optional[List[V0042Tres]] = None + group: Optional[V0042AssocMaxTresGroup] = None + minutes: Optional[V0042AssocMaxTresMinutes] = None + per: Optional[V0042AssocMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "group", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of group + if self.group: + _dict['group'] = self.group.to_dict() + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0042Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "group": V0042AssocMaxTresGroup.from_dict(obj["group"]) if obj.get("group") is not None else None, + "minutes": V0042AssocMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0042AssocMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_tres_group.py b/slurmrest_python/models/v0042_assoc_max_tres_group.py new file mode 100644 index 0000000..0ccabb0 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_tres_group.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxTresGroup(BaseModel): + """ + V0042AssocMaxTresGroup + """ # noqa: E501 + minutes: Optional[List[V0042Tres]] = None + active: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["minutes", "active"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxTresGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in minutes (list) + _items = [] + if self.minutes: + for _item_minutes in self.minutes: + if _item_minutes: + _items.append(_item_minutes.to_dict()) + _dict['minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in active (list) + _items = [] + if self.active: + for _item_active in self.active: + if _item_active: + _items.append(_item_active.to_dict()) + _dict['active'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxTresGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minutes": [V0042Tres.from_dict(_item) for _item in obj["minutes"]] if obj.get("minutes") is not None else None, + "active": [V0042Tres.from_dict(_item) for _item in obj["active"]] if obj.get("active") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_tres_minutes.py b/slurmrest_python/models/v0042_assoc_max_tres_minutes.py new file mode 100644 index 0000000..af3645c --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_tres_minutes.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_min_tres_per import V0042QosLimitsMinTresPer +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxTresMinutes(BaseModel): + """ + V0042AssocMaxTresMinutes + """ # noqa: E501 + total: Optional[List[V0042Tres]] = None + per: Optional[V0042QosLimitsMinTresPer] = None + __properties: ClassVar[List[str]] = ["total", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0042Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "per": V0042QosLimitsMinTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_max_tres_per.py b/slurmrest_python/models/v0042_assoc_max_tres_per.py new file mode 100644 index 0000000..68ca4fb --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_max_tres_per.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMaxTresPer(BaseModel): + """ + V0042AssocMaxTresPer + """ # noqa: E501 + job: Optional[List[V0042Tres]] = None + node: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["job", "node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0042Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0042Tres.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_min.py b/slurmrest_python/models/v0042_assoc_min.py new file mode 100644 index 0000000..75d856b --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_min.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocMin(BaseModel): + """ + V0042AssocMin + """ # noqa: E501 + priority_threshold: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["priority_threshold"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0042Uint32NoValStruct.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_rec_set.py b/slurmrest_python/models/v0042_assoc_rec_set.py new file mode 100644 index 0000000..ab4184e --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_rec_set.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocRecSet(BaseModel): + """ + V0042AssocRecSet + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + defaultqos: Optional[StrictStr] = Field(default=None, description="Default QOS") + grpjobs: Optional[V0042Uint32NoValStruct] = None + grpjobsaccrue: Optional[V0042Uint32NoValStruct] = None + grpsubmitjobs: Optional[V0042Uint32NoValStruct] = None + grptres: Optional[List[V0042Tres]] = None + grptresmins: Optional[List[V0042Tres]] = None + grptresrunmins: Optional[List[V0042Tres]] = None + grpwall: Optional[V0042Uint32NoValStruct] = None + maxjobs: Optional[V0042Uint32NoValStruct] = None + maxjobsaccrue: Optional[V0042Uint32NoValStruct] = None + maxsubmitjobs: Optional[V0042Uint32NoValStruct] = None + maxtresminsperjob: Optional[List[V0042Tres]] = None + maxtresrunmins: Optional[List[V0042Tres]] = None + maxtresperjob: Optional[List[V0042Tres]] = None + maxtrespernode: Optional[List[V0042Tres]] = None + maxwalldurationperjob: Optional[V0042Uint32NoValStruct] = None + minpriothresh: Optional[V0042Uint32NoValStruct] = None + parent: Optional[StrictStr] = Field(default=None, description="Name of parent account") + priority: Optional[V0042Uint32NoValStruct] = None + qoslevel: Optional[List[StrictStr]] = Field(default=None, description="List of QOS names") + fairshare: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + __properties: ClassVar[List[str]] = ["comment", "defaultqos", "grpjobs", "grpjobsaccrue", "grpsubmitjobs", "grptres", "grptresmins", "grptresrunmins", "grpwall", "maxjobs", "maxjobsaccrue", "maxsubmitjobs", "maxtresminsperjob", "maxtresrunmins", "maxtresperjob", "maxtrespernode", "maxwalldurationperjob", "minpriothresh", "parent", "priority", "qoslevel", "fairshare"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocRecSet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of grpjobs + if self.grpjobs: + _dict['grpjobs'] = self.grpjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpjobsaccrue + if self.grpjobsaccrue: + _dict['grpjobsaccrue'] = self.grpjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpsubmitjobs + if self.grpsubmitjobs: + _dict['grpsubmitjobs'] = self.grpsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in grptres (list) + _items = [] + if self.grptres: + for _item_grptres in self.grptres: + if _item_grptres: + _items.append(_item_grptres.to_dict()) + _dict['grptres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresmins (list) + _items = [] + if self.grptresmins: + for _item_grptresmins in self.grptresmins: + if _item_grptresmins: + _items.append(_item_grptresmins.to_dict()) + _dict['grptresmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresrunmins (list) + _items = [] + if self.grptresrunmins: + for _item_grptresrunmins in self.grptresrunmins: + if _item_grptresrunmins: + _items.append(_item_grptresrunmins.to_dict()) + _dict['grptresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of grpwall + if self.grpwall: + _dict['grpwall'] = self.grpwall.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobs + if self.maxjobs: + _dict['maxjobs'] = self.maxjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobsaccrue + if self.maxjobsaccrue: + _dict['maxjobsaccrue'] = self.maxjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxsubmitjobs + if self.maxsubmitjobs: + _dict['maxsubmitjobs'] = self.maxsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in maxtresminsperjob (list) + _items = [] + if self.maxtresminsperjob: + for _item_maxtresminsperjob in self.maxtresminsperjob: + if _item_maxtresminsperjob: + _items.append(_item_maxtresminsperjob.to_dict()) + _dict['maxtresminsperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresrunmins (list) + _items = [] + if self.maxtresrunmins: + for _item_maxtresrunmins in self.maxtresrunmins: + if _item_maxtresrunmins: + _items.append(_item_maxtresrunmins.to_dict()) + _dict['maxtresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresperjob (list) + _items = [] + if self.maxtresperjob: + for _item_maxtresperjob in self.maxtresperjob: + if _item_maxtresperjob: + _items.append(_item_maxtresperjob.to_dict()) + _dict['maxtresperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtrespernode (list) + _items = [] + if self.maxtrespernode: + for _item_maxtrespernode in self.maxtrespernode: + if _item_maxtrespernode: + _items.append(_item_maxtrespernode.to_dict()) + _dict['maxtrespernode'] = _items + # override the default output from pydantic by calling `to_dict()` of maxwalldurationperjob + if self.maxwalldurationperjob: + _dict['maxwalldurationperjob'] = self.maxwalldurationperjob.to_dict() + # override the default output from pydantic by calling `to_dict()` of minpriothresh + if self.minpriothresh: + _dict['minpriothresh'] = self.minpriothresh.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocRecSet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "defaultqos": obj.get("defaultqos"), + "grpjobs": V0042Uint32NoValStruct.from_dict(obj["grpjobs"]) if obj.get("grpjobs") is not None else None, + "grpjobsaccrue": V0042Uint32NoValStruct.from_dict(obj["grpjobsaccrue"]) if obj.get("grpjobsaccrue") is not None else None, + "grpsubmitjobs": V0042Uint32NoValStruct.from_dict(obj["grpsubmitjobs"]) if obj.get("grpsubmitjobs") is not None else None, + "grptres": [V0042Tres.from_dict(_item) for _item in obj["grptres"]] if obj.get("grptres") is not None else None, + "grptresmins": [V0042Tres.from_dict(_item) for _item in obj["grptresmins"]] if obj.get("grptresmins") is not None else None, + "grptresrunmins": [V0042Tres.from_dict(_item) for _item in obj["grptresrunmins"]] if obj.get("grptresrunmins") is not None else None, + "grpwall": V0042Uint32NoValStruct.from_dict(obj["grpwall"]) if obj.get("grpwall") is not None else None, + "maxjobs": V0042Uint32NoValStruct.from_dict(obj["maxjobs"]) if obj.get("maxjobs") is not None else None, + "maxjobsaccrue": V0042Uint32NoValStruct.from_dict(obj["maxjobsaccrue"]) if obj.get("maxjobsaccrue") is not None else None, + "maxsubmitjobs": V0042Uint32NoValStruct.from_dict(obj["maxsubmitjobs"]) if obj.get("maxsubmitjobs") is not None else None, + "maxtresminsperjob": [V0042Tres.from_dict(_item) for _item in obj["maxtresminsperjob"]] if obj.get("maxtresminsperjob") is not None else None, + "maxtresrunmins": [V0042Tres.from_dict(_item) for _item in obj["maxtresrunmins"]] if obj.get("maxtresrunmins") is not None else None, + "maxtresperjob": [V0042Tres.from_dict(_item) for _item in obj["maxtresperjob"]] if obj.get("maxtresperjob") is not None else None, + "maxtrespernode": [V0042Tres.from_dict(_item) for _item in obj["maxtrespernode"]] if obj.get("maxtrespernode") is not None else None, + "maxwalldurationperjob": V0042Uint32NoValStruct.from_dict(obj["maxwalldurationperjob"]) if obj.get("maxwalldurationperjob") is not None else None, + "minpriothresh": V0042Uint32NoValStruct.from_dict(obj["minpriothresh"]) if obj.get("minpriothresh") is not None else None, + "parent": obj.get("parent"), + "priority": V0042Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qoslevel": obj.get("qoslevel"), + "fairshare": obj.get("fairshare") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_shares_obj_wrap.py b/slurmrest_python/models/v0042_assoc_shares_obj_wrap.py new file mode 100644 index 0000000..d7350f7 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_shares_obj_wrap.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_fairshare import V0042AssocSharesObjWrapFairshare +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_tres import V0042AssocSharesObjWrapTres +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocSharesObjWrap(BaseModel): + """ + V0042AssocSharesObjWrap + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Association ID") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + name: Optional[StrictStr] = Field(default=None, description="Share name") + parent: Optional[StrictStr] = Field(default=None, description="Parent name") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + shares_normalized: Optional[V0042Float64NoValStruct] = None + shares: Optional[V0042Uint32NoValStruct] = None + tres: Optional[V0042AssocSharesObjWrapTres] = None + effective_usage: Optional[V0042Float64NoValStruct] = None + usage_normalized: Optional[V0042Float64NoValStruct] = None + usage: Optional[StrictInt] = Field(default=None, description="Measure of tresbillableunits usage") + fairshare: Optional[V0042AssocSharesObjWrapFairshare] = None + type: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["id", "cluster", "name", "parent", "partition", "shares_normalized", "shares", "tres", "effective_usage", "usage_normalized", "usage", "fairshare", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['USER', 'ASSOCIATION']): + raise ValueError("each list item must be one of ('USER', 'ASSOCIATION')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocSharesObjWrap from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares_normalized + if self.shares_normalized: + _dict['shares_normalized'] = self.shares_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of effective_usage + if self.effective_usage: + _dict['effective_usage'] = self.effective_usage.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_normalized + if self.usage_normalized: + _dict['usage_normalized'] = self.usage_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of fairshare + if self.fairshare: + _dict['fairshare'] = self.fairshare.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocSharesObjWrap from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "cluster": obj.get("cluster"), + "name": obj.get("name"), + "parent": obj.get("parent"), + "partition": obj.get("partition"), + "shares_normalized": V0042Float64NoValStruct.from_dict(obj["shares_normalized"]) if obj.get("shares_normalized") is not None else None, + "shares": V0042Uint32NoValStruct.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "tres": V0042AssocSharesObjWrapTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "effective_usage": V0042Float64NoValStruct.from_dict(obj["effective_usage"]) if obj.get("effective_usage") is not None else None, + "usage_normalized": V0042Float64NoValStruct.from_dict(obj["usage_normalized"]) if obj.get("usage_normalized") is not None else None, + "usage": obj.get("usage"), + "fairshare": V0042AssocSharesObjWrapFairshare.from_dict(obj["fairshare"]) if obj.get("fairshare") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_shares_obj_wrap_fairshare.py b/slurmrest_python/models/v0042_assoc_shares_obj_wrap_fairshare.py new file mode 100644 index 0000000..0b3aeb9 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_shares_obj_wrap_fairshare.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocSharesObjWrapFairshare(BaseModel): + """ + V0042AssocSharesObjWrapFairshare + """ # noqa: E501 + factor: Optional[V0042Float64NoValStruct] = None + level: Optional[V0042Float64NoValStruct] = None + __properties: ClassVar[List[str]] = ["factor", "level"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocSharesObjWrapFairshare from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of factor + if self.factor: + _dict['factor'] = self.factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of level + if self.level: + _dict['level'] = self.level.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocSharesObjWrapFairshare from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "factor": V0042Float64NoValStruct.from_dict(obj["factor"]) if obj.get("factor") is not None else None, + "level": V0042Float64NoValStruct.from_dict(obj["level"]) if obj.get("level") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_shares_obj_wrap_tres.py b/slurmrest_python/models/v0042_assoc_shares_obj_wrap_tres.py new file mode 100644 index 0000000..3c07a51 --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_shares_obj_wrap_tres.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_shares_float128_tres import V0042SharesFloat128Tres +from slurmrest_python.models.v0042_shares_uint64_tres import V0042SharesUint64Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocSharesObjWrapTres(BaseModel): + """ + V0042AssocSharesObjWrapTres + """ # noqa: E501 + run_seconds: Optional[List[V0042SharesUint64Tres]] = None + group_minutes: Optional[List[V0042SharesUint64Tres]] = None + usage: Optional[List[V0042SharesFloat128Tres]] = None + __properties: ClassVar[List[str]] = ["run_seconds", "group_minutes", "usage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocSharesObjWrapTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in run_seconds (list) + _items = [] + if self.run_seconds: + for _item_run_seconds in self.run_seconds: + if _item_run_seconds: + _items.append(_item_run_seconds.to_dict()) + _dict['run_seconds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in group_minutes (list) + _items = [] + if self.group_minutes: + for _item_group_minutes in self.group_minutes: + if _item_group_minutes: + _items.append(_item_group_minutes.to_dict()) + _dict['group_minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in usage (list) + _items = [] + if self.usage: + for _item_usage in self.usage: + if _item_usage: + _items.append(_item_usage.to_dict()) + _dict['usage'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocSharesObjWrapTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "run_seconds": [V0042SharesUint64Tres.from_dict(_item) for _item in obj["run_seconds"]] if obj.get("run_seconds") is not None else None, + "group_minutes": [V0042SharesUint64Tres.from_dict(_item) for _item in obj["group_minutes"]] if obj.get("group_minutes") is not None else None, + "usage": [V0042SharesFloat128Tres.from_dict(_item) for _item in obj["usage"]] if obj.get("usage") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_assoc_short.py b/slurmrest_python/models/v0042_assoc_short.py new file mode 100644 index 0000000..2acf6fd --- /dev/null +++ b/slurmrest_python/models/v0042_assoc_short.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042AssocShort(BaseModel): + """ + V0042AssocShort + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account name") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + user: StrictStr = Field(description="User name") + id: Optional[StrictInt] = Field(default=None, description="Numeric association ID") + __properties: ClassVar[List[str]] = ["account", "cluster", "partition", "user", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042AssocShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042AssocShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "partition": obj.get("partition"), + "user": obj.get("user"), + "id": obj.get("id") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_bf_exit_fields.py b/slurmrest_python/models/v0042_bf_exit_fields.py new file mode 100644 index 0000000..cec6f0e --- /dev/null +++ b/slurmrest_python/models/v0042_bf_exit_fields.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042BfExitFields(BaseModel): + """ + V0042BfExitFields + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + bf_max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + bf_max_job_test: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + bf_max_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + bf_node_space_size: Optional[StrictInt] = Field(default=None, description="Reached table size limit") + state_changed: Optional[StrictInt] = Field(default=None, description="System state changed") + __properties: ClassVar[List[str]] = ["end_job_queue", "bf_max_job_start", "bf_max_job_test", "bf_max_time", "bf_node_space_size", "state_changed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042BfExitFields from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042BfExitFields from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "bf_max_job_start": obj.get("bf_max_job_start"), + "bf_max_job_test": obj.get("bf_max_job_test"), + "bf_max_time": obj.get("bf_max_time"), + "bf_node_space_size": obj.get("bf_node_space_size"), + "state_changed": obj.get("state_changed") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_cluster_rec.py b/slurmrest_python/models/v0042_cluster_rec.py new file mode 100644 index 0000000..ace0061 --- /dev/null +++ b/slurmrest_python/models/v0042_cluster_rec.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController +from slurmrest_python.models.v0042_cluster_rec_associations import V0042ClusterRecAssociations +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042ClusterRec(BaseModel): + """ + V0042ClusterRec + """ # noqa: E501 + controller: Optional[V0041OpenapiSlurmdbdConfigRespClustersInnerController] = None + flags: Optional[List[StrictStr]] = None + name: Optional[StrictStr] = Field(default=None, description="ClusterName") + nodes: Optional[StrictStr] = Field(default=None, description="Node names") + select_plugin: Optional[StrictStr] = None + associations: Optional[V0042ClusterRecAssociations] = None + rpc_version: Optional[StrictInt] = Field(default=None, description="RPC version used in the cluster") + tres: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["controller", "flags", "name", "nodes", "select_plugin", "associations", "rpc_version", "tres"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL']): + raise ValueError("each list item must be one of ('REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ClusterRec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # override the default output from pydantic by calling `to_dict()` of associations + if self.associations: + _dict['associations'] = self.associations.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ClusterRec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "controller": V0041OpenapiSlurmdbdConfigRespClustersInnerController.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "nodes": obj.get("nodes"), + "select_plugin": obj.get("select_plugin"), + "associations": V0042ClusterRecAssociations.from_dict(obj["associations"]) if obj.get("associations") is not None else None, + "rpc_version": obj.get("rpc_version"), + "tres": [V0042Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_cluster_rec_associations.py b/slurmrest_python/models/v0042_cluster_rec_associations.py new file mode 100644 index 0000000..d57b17f --- /dev/null +++ b/slurmrest_python/models/v0042_cluster_rec_associations.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort +from typing import Optional, Set +from typing_extensions import Self + +class V0042ClusterRecAssociations(BaseModel): + """ + V0042ClusterRecAssociations + """ # noqa: E501 + root: Optional[V0042AssocShort] = None + __properties: ClassVar[List[str]] = ["root"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ClusterRecAssociations from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of root + if self.root: + _dict['root'] = self.root.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ClusterRecAssociations from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "root": V0042AssocShort.from_dict(obj["root"]) if obj.get("root") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_controller_ping.py b/slurmrest_python/models/v0042_controller_ping.py new file mode 100644 index 0000000..e3b131b --- /dev/null +++ b/slurmrest_python/models/v0042_controller_ping.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042ControllerPing(BaseModel): + """ + V0042ControllerPing + """ # noqa: E501 + hostname: Optional[StrictStr] = Field(default=None, description="Target for ping") + pinged: Optional[StrictStr] = Field(default=None, description="Ping result") + responding: StrictBool = Field(description="If ping RPC responded with pong from controller") + latency: Optional[StrictInt] = Field(default=None, description="Number of microseconds it took to successfully ping or timeout") + mode: Optional[StrictStr] = Field(default=None, description="The operating mode of the responding slurmctld") + primary: StrictBool = Field(description="Is responding slurmctld the primary controller") + __properties: ClassVar[List[str]] = ["hostname", "pinged", "responding", "latency", "mode", "primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ControllerPing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ControllerPing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "pinged": obj.get("pinged"), + "responding": obj.get("responding"), + "latency": obj.get("latency"), + "mode": obj.get("mode"), + "primary": obj.get("primary") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_coord.py b/slurmrest_python/models/v0042_coord.py new file mode 100644 index 0000000..ec9159c --- /dev/null +++ b/slurmrest_python/models/v0042_coord.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042Coord(BaseModel): + """ + V0042Coord + """ # noqa: E501 + name: StrictStr = Field(description="User name") + direct: Optional[StrictBool] = Field(default=None, description="Indicates whether the coordinator was directly assigned to this account") + __properties: ClassVar[List[str]] = ["name", "direct"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Coord from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Coord from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "direct": obj.get("direct") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_cron_entry.py b/slurmrest_python/models/v0042_cron_entry.py new file mode 100644 index 0000000..70d52a5 --- /dev/null +++ b/slurmrest_python/models/v0042_cron_entry.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine +from typing import Optional, Set +from typing_extensions import Self + +class V0042CronEntry(BaseModel): + """ + V0042CronEntry + """ # noqa: E501 + flags: Optional[List[StrictStr]] = None + minute: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible minute values (e.g. 0-10,50)") + hour: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible hour values (e.g. 0-5,23)") + day_of_month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of month values (e.g. 0-10,29)") + month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible month values (e.g. 0-5,12)") + day_of_week: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of week values (e.g.0-3,7)") + specification: Optional[StrictStr] = Field(default=None, description="Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week") + command: Optional[StrictStr] = Field(default=None, description="Command to run") + line: Optional[V0041JobDescMsgCrontabLine] = None + __properties: ClassVar[List[str]] = ["flags", "minute", "hour", "day_of_month", "month", "day_of_week", "specification", "command", "line"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK']): + raise ValueError("each list item must be one of ('WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042CronEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of line + if self.line: + _dict['line'] = self.line.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042CronEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "flags": obj.get("flags"), + "minute": obj.get("minute"), + "hour": obj.get("hour"), + "day_of_month": obj.get("day_of_month"), + "month": obj.get("month"), + "day_of_week": obj.get("day_of_week"), + "specification": obj.get("specification"), + "command": obj.get("command"), + "line": V0041JobDescMsgCrontabLine.from_dict(obj["line"]) if obj.get("line") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_float64_no_val_struct.py b/slurmrest_python/models/v0042_float64_no_val_struct.py new file mode 100644 index 0000000..5d2690d --- /dev/null +++ b/slurmrest_python/models/v0042_float64_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0042Float64NoValStruct(BaseModel): + """ + V0042Float64NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Float64NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Float64NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_instance.py b/slurmrest_python/models/v0042_instance.py new file mode 100644 index 0000000..1afebcf --- /dev/null +++ b/slurmrest_python/models/v0042_instance.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner_time import V0041OpenapiSlurmdbdConfigRespInstancesInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0042Instance(BaseModel): + """ + V0042Instance + """ # noqa: E501 + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + node_name: Optional[StrictStr] = Field(default=None, description="NodeName") + time: Optional[V0041OpenapiSlurmdbdConfigRespInstancesInnerTime] = None + __properties: ClassVar[List[str]] = ["cluster", "extra", "instance_id", "instance_type", "node_name", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Instance from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Instance from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cluster": obj.get("cluster"), + "extra": obj.get("extra"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "node_name": obj.get("node_name"), + "time": V0041OpenapiSlurmdbdConfigRespInstancesInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job.py b/slurmrest_python/models/v0042_job.py new file mode 100644 index 0000000..69c1520 --- /dev/null +++ b/slurmrest_python/models/v0042_job.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation import V0041OpenapiSlurmdbdJobsRespJobsInnerReservation +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort +from slurmrest_python.models.v0042_job_array import V0042JobArray +from slurmrest_python.models.v0042_job_het import V0042JobHet +from slurmrest_python.models.v0042_job_required import V0042JobRequired +from slurmrest_python.models.v0042_job_state import V0042JobState +from slurmrest_python.models.v0042_job_time import V0042JobTime +from slurmrest_python.models.v0042_job_tres import V0042JobTres +from slurmrest_python.models.v0042_process_exit_code_verbose import V0042ProcessExitCodeVerbose +from slurmrest_python.models.v0042_step import V0042Step +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_wckey_tag_struct import V0042WckeyTagStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042Job(BaseModel): + """ + V0042Job + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account the job ran under") + comment: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerComment] = None + allocation_nodes: Optional[StrictInt] = Field(default=None, description="List of nodes allocated to the job") + array: Optional[V0042JobArray] = None + association: Optional[V0042AssocShort] = None + block: Optional[StrictStr] = Field(default=None, description="The name of the block to be used (used with Blue Gene systems)") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + constraints: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested as a constraint") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + derived_exit_code: Optional[V0042ProcessExitCodeVerbose] = None + time: Optional[V0042JobTime] = None + exit_code: Optional[V0042ProcessExitCodeVerbose] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + flags: Optional[List[StrictStr]] = None + group: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + het: Optional[V0042JobHet] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + name: Optional[StrictStr] = Field(default=None, description="Job name") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mcs: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerMcs] = None + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job") + priority: Optional[V0042Uint32NoValStruct] = None + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + qosreq: Optional[StrictStr] = Field(default=None, description="Requested QOS") + required: Optional[V0042JobRequired] = None + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the job") + restart_cnt: Optional[StrictInt] = Field(default=None, description="How many times this job has been requeued/restarted") + reservation: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerReservation] = None + script: Optional[StrictStr] = Field(default=None, description="Job batch script; only the first component in a HetJob is populated or honored") + stdin_expanded: Optional[StrictStr] = Field(default=None, description="Job stdin with expanded fields") + stdout_expanded: Optional[StrictStr] = Field(default=None, description="Job stdout with expanded fields") + stderr_expanded: Optional[StrictStr] = Field(default=None, description="Job stderr with expanded fields") + stdout: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + stderr: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + stdin: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + state: Optional[V0042JobState] = None + steps: Optional[List[V0042Step]] = None + submit_line: Optional[StrictStr] = Field(default=None, description="Command used to submit the job") + tres: Optional[V0042JobTres] = None + used_gres: Optional[StrictStr] = Field(default=None, description="Generic resources used by job") + user: Optional[StrictStr] = Field(default=None, description="User that owns the job") + wckey: Optional[V0042WckeyTagStruct] = None + working_directory: Optional[StrictStr] = Field(default=None, description="Path to current working directory") + __properties: ClassVar[List[str]] = ["account", "comment", "allocation_nodes", "array", "association", "block", "cluster", "constraints", "container", "derived_exit_code", "time", "exit_code", "extra", "failed_node", "flags", "group", "het", "job_id", "name", "licenses", "mcs", "nodes", "partition", "hold", "priority", "qos", "qosreq", "required", "kill_request_user", "restart_cnt", "reservation", "script", "stdin_expanded", "stdout_expanded", "stderr_expanded", "stdout", "stderr", "stdin", "state", "steps", "submit_line", "tres", "used_gres", "user", "wckey", "working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED']): + raise ValueError("each list item must be one of ('NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Job from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of comment + if self.comment: + _dict['comment'] = self.comment.to_dict() + # override the default output from pydantic by calling `to_dict()` of array + if self.array: + _dict['array'] = self.array.to_dict() + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het + if self.het: + _dict['het'] = self.het.to_dict() + # override the default output from pydantic by calling `to_dict()` of mcs + if self.mcs: + _dict['mcs'] = self.mcs.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of required + if self.required: + _dict['required'] = self.required.to_dict() + # override the default output from pydantic by calling `to_dict()` of reservation + if self.reservation: + _dict['reservation'] = self.reservation.to_dict() + # override the default output from pydantic by calling `to_dict()` of state + if self.state: + _dict['state'] = self.state.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in steps (list) + _items = [] + if self.steps: + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) + _dict['steps'] = _items + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wckey + if self.wckey: + _dict['wckey'] = self.wckey.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Job from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "comment": V0041OpenapiSlurmdbdJobsRespJobsInnerComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, + "allocation_nodes": obj.get("allocation_nodes"), + "array": V0042JobArray.from_dict(obj["array"]) if obj.get("array") is not None else None, + "association": V0042AssocShort.from_dict(obj["association"]) if obj.get("association") is not None else None, + "block": obj.get("block"), + "cluster": obj.get("cluster"), + "constraints": obj.get("constraints"), + "container": obj.get("container"), + "derived_exit_code": V0042ProcessExitCodeVerbose.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "time": V0042JobTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0042ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "flags": obj.get("flags"), + "group": obj.get("group"), + "het": V0042JobHet.from_dict(obj["het"]) if obj.get("het") is not None else None, + "job_id": obj.get("job_id"), + "name": obj.get("name"), + "licenses": obj.get("licenses"), + "mcs": V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.from_dict(obj["mcs"]) if obj.get("mcs") is not None else None, + "nodes": obj.get("nodes"), + "partition": obj.get("partition"), + "hold": obj.get("hold"), + "priority": V0042Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "qosreq": obj.get("qosreq"), + "required": V0042JobRequired.from_dict(obj["required"]) if obj.get("required") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "restart_cnt": obj.get("restart_cnt"), + "reservation": V0041OpenapiSlurmdbdJobsRespJobsInnerReservation.from_dict(obj["reservation"]) if obj.get("reservation") is not None else None, + "script": obj.get("script"), + "stdin_expanded": obj.get("stdin_expanded"), + "stdout_expanded": obj.get("stdout_expanded"), + "stderr_expanded": obj.get("stderr_expanded"), + "stdout": obj.get("stdout"), + "stderr": obj.get("stderr"), + "stdin": obj.get("stdin"), + "state": V0042JobState.from_dict(obj["state"]) if obj.get("state") is not None else None, + "steps": [V0042Step.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, + "submit_line": obj.get("submit_line"), + "tres": V0042JobTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "used_gres": obj.get("used_gres"), + "user": obj.get("user"), + "wckey": V0042WckeyTagStruct.from_dict(obj["wckey"]) if obj.get("wckey") is not None else None, + "working_directory": obj.get("working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_alloc_req.py b/slurmrest_python/models/v0042_job_alloc_req.py new file mode 100644 index 0000000..70a9289 --- /dev/null +++ b/slurmrest_python/models/v0042_job_alloc_req.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobAllocReq(BaseModel): + """ + V0042JobAllocReq + """ # noqa: E501 + hetjob: Optional[List[V0042JobDescMsg]] = None + job: Optional[V0042JobDescMsg] = None + __properties: ClassVar[List[str]] = ["hetjob", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobAllocReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in hetjob (list) + _items = [] + if self.hetjob: + for _item_hetjob in self.hetjob: + if _item_hetjob: + _items.append(_item_hetjob.to_dict()) + _dict['hetjob'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobAllocReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hetjob": [V0042JobDescMsg.from_dict(_item) for _item in obj["hetjob"]] if obj.get("hetjob") is not None else None, + "job": V0042JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_array.py b/slurmrest_python/models/v0042_job_array.py new file mode 100644 index 0000000..fb95b5a --- /dev/null +++ b/slurmrest_python/models/v0042_job_array.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobArray(BaseModel): + """ + V0042JobArray + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID of job array, or 0 if N/A") + limits: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits] = None + task_id: Optional[V0042Uint32NoValStruct] = None + task: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + __properties: ClassVar[List[str]] = ["job_id", "limits", "task_id", "task"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobArray from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of task_id + if self.task_id: + _dict['task_id'] = self.task_id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobArray from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "limits": V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "task_id": V0042Uint32NoValStruct.from_dict(obj["task_id"]) if obj.get("task_id") is not None else None, + "task": obj.get("task") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_array_response_msg_entry.py b/slurmrest_python/models/v0042_job_array_response_msg_entry.py new file mode 100644 index 0000000..369a83e --- /dev/null +++ b/slurmrest_python/models/v0042_job_array_response_msg_entry.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobArrayResponseMsgEntry(BaseModel): + """ + V0042JobArrayResponseMsgEntry + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID for updated job") + step_id: Optional[StrictStr] = Field(default=None, description="Step ID for updated job") + error: Optional[StrictStr] = Field(default=None, description="Verbose update status or error") + error_code: Optional[StrictInt] = Field(default=None, description="Verbose update status or error") + why: Optional[StrictStr] = Field(default=None, description="Update response message") + __properties: ClassVar[List[str]] = ["job_id", "step_id", "error", "error_code", "why"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobArrayResponseMsgEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobArrayResponseMsgEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "error": obj.get("error"), + "error_code": obj.get("error_code"), + "why": obj.get("why") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_desc_msg.py b/slurmrest_python/models/v0042_job_desc_msg.py new file mode 100644 index 0000000..64a2c0c --- /dev/null +++ b/slurmrest_python/models/v0042_job_desc_msg.py @@ -0,0 +1,456 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_cron_entry import V0042CronEntry +from slurmrest_python.models.v0042_job_desc_msg_rlimits import V0042JobDescMsgRlimits +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobDescMsg(BaseModel): + """ + V0042JobDescMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + account_gather_frequency: Optional[StrictStr] = Field(default=None, description="Job accounting and profiling sampling intervals in seconds") + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocation_node_list: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + allocation_node_port: Optional[StrictInt] = Field(default=None, description="Port to send allocation confirmation to") + argv: Optional[List[StrictStr]] = None + array: Optional[StrictStr] = Field(default=None, description="Job array index value specification") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + begin_time: Optional[V0042Uint64NoValStruct] = None + flags: Optional[List[StrictStr]] = None + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + clusters: Optional[StrictStr] = Field(default=None, description="Clusters that a federated job can run on") + cluster_constraint: Optional[StrictStr] = Field(default=None, description="Required features that a federated cluster must have to have a sibling job submitted to it") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by user") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + core_specification: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_specification: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cpu_binding: Optional[StrictStr] = Field(default=None, description="Method for binding tasks to allocated CPUs") + cpu_binding_flags: Optional[List[StrictStr]] = None + cpu_frequency: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency range [-p2][:p3]") + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + crontab: Optional[V0042CronEntry] = None + deadline: Optional[StrictInt] = Field(default=None, description="Latest time that the job may start (UNIX timestamp)") + delay_boot: Optional[StrictInt] = Field(default=None, description="Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification") + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + end_time: Optional[StrictInt] = Field(default=None, description="Expected end time (UNIX timestamp)") + environment: Optional[List[StrictStr]] = None + rlimits: Optional[V0042JobDescMsgRlimits] = None + excluded_nodes: Optional[List[StrictStr]] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + constraints: Optional[StrictStr] = Field(default=None, description="Comma separated list of features that are required") + group_id: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + hetjob_group: Optional[StrictInt] = Field(default=None, description="Unique sequence number applied to this component of the heterogeneous job") + immediate: Optional[StrictBool] = Field(default=None, description="If true, exit if resources are not available within the time period specified") + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + kill_on_node_fail: Optional[StrictBool] = Field(default=None, description="If true, kill job on node failure") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mail_type: Optional[List[StrictStr]] = None + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_binding: Optional[StrictStr] = Field(default=None, description="Binding map for map/mask_cpu") + memory_binding_type: Optional[List[StrictStr]] = None + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for job step") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks: Optional[StrictInt] = Field(default=None, description="Number of tasks") + oom_kill_step: Optional[StrictInt] = Field(default=None, description="Kill whole step in case of OOM in one of the tasks") + open_mode: Optional[List[StrictStr]] = None + reserve_ports: Optional[StrictInt] = Field(default=None, description="Port to send various notification msg to") + overcommit: Optional[StrictBool] = Field(default=None, description="Overcommit resources") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + distribution_plane_size: Optional[V0042Uint16NoValStruct] = None + power_flags: Optional[List[Any]] = None + prefer: Optional[StrictStr] = Field(default=None, description="Comma separated list of features that are preferred but not required") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job") + priority: Optional[V0042Uint32NoValStruct] = None + profile: Optional[List[StrictStr]] = None + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[List[StrictStr]] = None + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + script: Optional[StrictStr] = Field(default=None, description="Job batch script; only the first component in a HetJob is populated or honored") + shared: Optional[List[StrictStr]] = None + site_factor: Optional[StrictInt] = Field(default=None, description="Site-specific priority factor") + spank_environment: Optional[List[StrictStr]] = None + distribution: Optional[StrictStr] = Field(default=None, description="Layout") + time_limit: Optional[V0042Uint32NoValStruct] = None + time_minimum: Optional[V0042Uint32NoValStruct] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated for every task") + user_id: Optional[StrictStr] = Field(default=None, description="User ID that owns the job") + wait_all_nodes: Optional[StrictBool] = Field(default=None, description="If true, wait to start until after all nodes have booted") + kill_warning_flags: Optional[List[StrictStr]] = None + kill_warning_signal: Optional[StrictStr] = Field(default=None, description="Signal to send when approaching end time (e.g. \"10\" or \"USR1\")") + kill_warning_delay: Optional[V0042Uint16NoValStruct] = None + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + cpus_per_task: Optional[StrictInt] = Field(default=None, description="Number of CPUs required by each task") + minimum_cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required") + maximum_cpus: Optional[StrictInt] = Field(default=None, description="Maximum number of CPUs required") + nodes: Optional[StrictStr] = Field(default=None, description="Node count range specification (e.g. 1-15:4)") + minimum_nodes: Optional[StrictInt] = Field(default=None, description="Minimum node count") + maximum_nodes: Optional[StrictInt] = Field(default=None, description="Maximum node count") + minimum_boards_per_node: Optional[StrictInt] = Field(default=None, description="Boards per node required") + minimum_sockets_per_board: Optional[StrictInt] = Field(default=None, description="Sockets per board required") + sockets_per_node: Optional[StrictInt] = Field(default=None, description="Sockets per node required") + threads_per_core: Optional[StrictInt] = Field(default=None, description="Threads per core required") + tasks_per_node: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each node") + tasks_per_socket: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each socket") + tasks_per_core: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each core") + tasks_per_board: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each board") + ntasks_per_tres: Optional[StrictInt] = Field(default=None, description="Number of tasks that can access each GPU") + minimum_cpus_per_node: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs per node") + memory_per_cpu: Optional[V0042Uint64NoValStruct] = None + memory_per_node: Optional[V0042Uint64NoValStruct] = None + temporary_disk_per_node: Optional[StrictInt] = Field(default=None, description="Minimum tmp disk space required per node") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + required_switches: Optional[V0042Uint32NoValStruct] = None + segment_size: Optional[V0042Uint16NoValStruct] = None + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + wait_for_switch: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + x11: Optional[List[StrictStr]] = None + x11_magic_cookie: Optional[StrictStr] = Field(default=None, description="Magic cookie for X11 forwarding") + x11_target_host: Optional[StrictStr] = Field(default=None, description="Hostname or UNIX socket if x11_target_port=0") + x11_target_port: Optional[StrictInt] = Field(default=None, description="TCP port") + __properties: ClassVar[List[str]] = ["account", "account_gather_frequency", "admin_comment", "allocation_node_list", "allocation_node_port", "argv", "array", "batch_features", "begin_time", "flags", "burst_buffer", "clusters", "cluster_constraint", "comment", "contiguous", "container", "container_id", "core_specification", "thread_specification", "cpu_binding", "cpu_binding_flags", "cpu_frequency", "cpus_per_tres", "crontab", "deadline", "delay_boot", "dependency", "end_time", "environment", "rlimits", "excluded_nodes", "extra", "constraints", "group_id", "hetjob_group", "immediate", "job_id", "kill_on_node_fail", "licenses", "mail_type", "mail_user", "mcs_label", "memory_binding", "memory_binding_type", "memory_per_tres", "name", "network", "nice", "tasks", "oom_kill_step", "open_mode", "reserve_ports", "overcommit", "partition", "distribution_plane_size", "power_flags", "prefer", "hold", "priority", "profile", "qos", "reboot", "required_nodes", "requeue", "reservation", "script", "shared", "site_factor", "spank_environment", "distribution", "time_limit", "time_minimum", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "user_id", "wait_all_nodes", "kill_warning_flags", "kill_warning_signal", "kill_warning_delay", "current_working_directory", "cpus_per_task", "minimum_cpus", "maximum_cpus", "nodes", "minimum_nodes", "maximum_nodes", "minimum_boards_per_node", "minimum_sockets_per_board", "sockets_per_node", "threads_per_core", "tasks_per_node", "tasks_per_socket", "tasks_per_core", "tasks_per_board", "ntasks_per_tres", "minimum_cpus_per_node", "memory_per_cpu", "memory_per_node", "temporary_disk_per_node", "selinux_context", "required_switches", "segment_size", "standard_error", "standard_input", "standard_output", "wait_for_switch", "wckey", "x11", "x11_magic_cookie", "x11_target_host", "x11_target_port"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED')") + return value + + @field_validator('cpu_binding_flags') + def cpu_binding_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE']): + raise ValueError("each list item must be one of ('CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('memory_binding_type') + def memory_binding_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'SORT', 'PREFER']): + raise ValueError("each list item must be one of ('NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'SORT', 'PREFER')") + return value + + @field_validator('open_mode') + def open_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['APPEND', 'TRUNCATE']): + raise ValueError("each list item must be one of ('APPEND', 'TRUNCATE')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + @field_validator('kill_warning_flags') + def kill_warning_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('x11') + def x11_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE']): + raise ValueError("each list item must be one of ('FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobDescMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of begin_time + if self.begin_time: + _dict['begin_time'] = self.begin_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of crontab + if self.crontab: + _dict['crontab'] = self.crontab.to_dict() + # override the default output from pydantic by calling `to_dict()` of rlimits + if self.rlimits: + _dict['rlimits'] = self.rlimits.to_dict() + # override the default output from pydantic by calling `to_dict()` of distribution_plane_size + if self.distribution_plane_size: + _dict['distribution_plane_size'] = self.distribution_plane_size.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of kill_warning_delay + if self.kill_warning_delay: + _dict['kill_warning_delay'] = self.kill_warning_delay.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of required_switches + if self.required_switches: + _dict['required_switches'] = self.required_switches.to_dict() + # override the default output from pydantic by calling `to_dict()` of segment_size + if self.segment_size: + _dict['segment_size'] = self.segment_size.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobDescMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "account_gather_frequency": obj.get("account_gather_frequency"), + "admin_comment": obj.get("admin_comment"), + "allocation_node_list": obj.get("allocation_node_list"), + "allocation_node_port": obj.get("allocation_node_port"), + "argv": obj.get("argv"), + "array": obj.get("array"), + "batch_features": obj.get("batch_features"), + "begin_time": V0042Uint64NoValStruct.from_dict(obj["begin_time"]) if obj.get("begin_time") is not None else None, + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "clusters": obj.get("clusters"), + "cluster_constraint": obj.get("cluster_constraint"), + "comment": obj.get("comment"), + "contiguous": obj.get("contiguous"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "core_specification": obj.get("core_specification"), + "thread_specification": obj.get("thread_specification"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_binding_flags": obj.get("cpu_binding_flags"), + "cpu_frequency": obj.get("cpu_frequency"), + "cpus_per_tres": obj.get("cpus_per_tres"), + "crontab": V0042CronEntry.from_dict(obj["crontab"]) if obj.get("crontab") is not None else None, + "deadline": obj.get("deadline"), + "delay_boot": obj.get("delay_boot"), + "dependency": obj.get("dependency"), + "end_time": obj.get("end_time"), + "environment": obj.get("environment"), + "rlimits": V0042JobDescMsgRlimits.from_dict(obj["rlimits"]) if obj.get("rlimits") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "extra": obj.get("extra"), + "constraints": obj.get("constraints"), + "group_id": obj.get("group_id"), + "hetjob_group": obj.get("hetjob_group"), + "immediate": obj.get("immediate"), + "job_id": obj.get("job_id"), + "kill_on_node_fail": obj.get("kill_on_node_fail"), + "licenses": obj.get("licenses"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "mcs_label": obj.get("mcs_label"), + "memory_binding": obj.get("memory_binding"), + "memory_binding_type": obj.get("memory_binding_type"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nice": obj.get("nice"), + "tasks": obj.get("tasks"), + "oom_kill_step": obj.get("oom_kill_step"), + "open_mode": obj.get("open_mode"), + "reserve_ports": obj.get("reserve_ports"), + "overcommit": obj.get("overcommit"), + "partition": obj.get("partition"), + "distribution_plane_size": V0042Uint16NoValStruct.from_dict(obj["distribution_plane_size"]) if obj.get("distribution_plane_size") is not None else None, + "power_flags": obj.get("power_flags"), + "prefer": obj.get("prefer"), + "hold": obj.get("hold"), + "priority": V0042Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "requeue": obj.get("requeue"), + "reservation": obj.get("reservation"), + "script": obj.get("script"), + "shared": obj.get("shared"), + "site_factor": obj.get("site_factor"), + "spank_environment": obj.get("spank_environment"), + "distribution": obj.get("distribution"), + "time_limit": V0042Uint32NoValStruct.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0042Uint32NoValStruct.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "user_id": obj.get("user_id"), + "wait_all_nodes": obj.get("wait_all_nodes"), + "kill_warning_flags": obj.get("kill_warning_flags"), + "kill_warning_signal": obj.get("kill_warning_signal"), + "kill_warning_delay": V0042Uint16NoValStruct.from_dict(obj["kill_warning_delay"]) if obj.get("kill_warning_delay") is not None else None, + "current_working_directory": obj.get("current_working_directory"), + "cpus_per_task": obj.get("cpus_per_task"), + "minimum_cpus": obj.get("minimum_cpus"), + "maximum_cpus": obj.get("maximum_cpus"), + "nodes": obj.get("nodes"), + "minimum_nodes": obj.get("minimum_nodes"), + "maximum_nodes": obj.get("maximum_nodes"), + "minimum_boards_per_node": obj.get("minimum_boards_per_node"), + "minimum_sockets_per_board": obj.get("minimum_sockets_per_board"), + "sockets_per_node": obj.get("sockets_per_node"), + "threads_per_core": obj.get("threads_per_core"), + "tasks_per_node": obj.get("tasks_per_node"), + "tasks_per_socket": obj.get("tasks_per_socket"), + "tasks_per_core": obj.get("tasks_per_core"), + "tasks_per_board": obj.get("tasks_per_board"), + "ntasks_per_tres": obj.get("ntasks_per_tres"), + "minimum_cpus_per_node": obj.get("minimum_cpus_per_node"), + "memory_per_cpu": V0042Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0042Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "temporary_disk_per_node": obj.get("temporary_disk_per_node"), + "selinux_context": obj.get("selinux_context"), + "required_switches": V0042Uint32NoValStruct.from_dict(obj["required_switches"]) if obj.get("required_switches") is not None else None, + "segment_size": V0042Uint16NoValStruct.from_dict(obj["segment_size"]) if obj.get("segment_size") is not None else None, + "standard_error": obj.get("standard_error"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "wait_for_switch": obj.get("wait_for_switch"), + "wckey": obj.get("wckey"), + "x11": obj.get("x11"), + "x11_magic_cookie": obj.get("x11_magic_cookie"), + "x11_target_host": obj.get("x11_target_host"), + "x11_target_port": obj.get("x11_target_port") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_desc_msg_rlimits.py b/slurmrest_python/models/v0042_job_desc_msg_rlimits.py new file mode 100644 index 0000000..ca07b0c --- /dev/null +++ b/slurmrest_python/models/v0042_job_desc_msg_rlimits.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobDescMsgRlimits(BaseModel): + """ + V0042JobDescMsgRlimits + """ # noqa: E501 + cpu: Optional[V0042Uint64NoValStruct] = None + fsize: Optional[V0042Uint64NoValStruct] = None + data: Optional[V0042Uint64NoValStruct] = None + stack: Optional[V0042Uint64NoValStruct] = None + core: Optional[V0042Uint64NoValStruct] = None + rss: Optional[V0042Uint64NoValStruct] = None + nproc: Optional[V0042Uint64NoValStruct] = None + nofile: Optional[V0042Uint64NoValStruct] = None + memlock: Optional[V0042Uint64NoValStruct] = None + var_as: Optional[V0042Uint64NoValStruct] = Field(default=None, alias="as") + __properties: ClassVar[List[str]] = ["cpu", "fsize", "data", "stack", "core", "rss", "nproc", "nofile", "memlock", "as"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobDescMsgRlimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['cpu'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of fsize + if self.fsize: + _dict['fsize'] = self.fsize.to_dict() + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of stack + if self.stack: + _dict['stack'] = self.stack.to_dict() + # override the default output from pydantic by calling `to_dict()` of core + if self.core: + _dict['core'] = self.core.to_dict() + # override the default output from pydantic by calling `to_dict()` of rss + if self.rss: + _dict['rss'] = self.rss.to_dict() + # override the default output from pydantic by calling `to_dict()` of nproc + if self.nproc: + _dict['nproc'] = self.nproc.to_dict() + # override the default output from pydantic by calling `to_dict()` of nofile + if self.nofile: + _dict['nofile'] = self.nofile.to_dict() + # override the default output from pydantic by calling `to_dict()` of memlock + if self.memlock: + _dict['memlock'] = self.memlock.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_as + if self.var_as: + _dict['as'] = self.var_as.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobDescMsgRlimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpu": V0042Uint64NoValStruct.from_dict(obj["cpu"]) if obj.get("cpu") is not None else None, + "fsize": V0042Uint64NoValStruct.from_dict(obj["fsize"]) if obj.get("fsize") is not None else None, + "data": V0042Uint64NoValStruct.from_dict(obj["data"]) if obj.get("data") is not None else None, + "stack": V0042Uint64NoValStruct.from_dict(obj["stack"]) if obj.get("stack") is not None else None, + "core": V0042Uint64NoValStruct.from_dict(obj["core"]) if obj.get("core") is not None else None, + "rss": V0042Uint64NoValStruct.from_dict(obj["rss"]) if obj.get("rss") is not None else None, + "nproc": V0042Uint64NoValStruct.from_dict(obj["nproc"]) if obj.get("nproc") is not None else None, + "nofile": V0042Uint64NoValStruct.from_dict(obj["nofile"]) if obj.get("nofile") is not None else None, + "memlock": V0042Uint64NoValStruct.from_dict(obj["memlock"]) if obj.get("memlock") is not None else None, + "as": V0042Uint64NoValStruct.from_dict(obj["as"]) if obj.get("as") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_het.py b/slurmrest_python/models/v0042_job_het.py new file mode 100644 index 0000000..4dc3637 --- /dev/null +++ b/slurmrest_python/models/v0042_job_het.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobHet(BaseModel): + """ + V0042JobHet + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Heterogeneous job ID, if applicable") + job_offset: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["job_id", "job_offset"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobHet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of job_offset + if self.job_offset: + _dict['job_offset'] = self.job_offset.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobHet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_offset": V0042Uint32NoValStruct.from_dict(obj["job_offset"]) if obj.get("job_offset") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_info.py b/slurmrest_python/models/v0042_job_info.py new file mode 100644 index 0000000..a7f3bb4 --- /dev/null +++ b/slurmrest_python/models/v0042_job_info.py @@ -0,0 +1,553 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct +from slurmrest_python.models.v0042_job_res import V0042JobRes +from slurmrest_python.models.v0042_part_prio import V0042PartPrio +from slurmrest_python.models.v0042_process_exit_code_verbose import V0042ProcessExitCodeVerbose +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobInfo(BaseModel): + """ + V0042JobInfo + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + accrue_time: Optional[V0042Uint64NoValStruct] = None + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocating_node: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + array_job_id: Optional[V0042Uint32NoValStruct] = None + array_task_id: Optional[V0042Uint32NoValStruct] = None + array_max_tasks: Optional[V0042Uint32NoValStruct] = None + array_task_string: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + association_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for the association") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + batch_flag: Optional[StrictBool] = Field(default=None, description="True if batch job") + batch_host: Optional[StrictStr] = Field(default=None, description="Name of host running batch script") + flags: Optional[List[StrictStr]] = None + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + burst_buffer_state: Optional[StrictStr] = Field(default=None, description="Burst buffer state details") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + cluster_features: Optional[StrictStr] = Field(default=None, description="List of required cluster features") + command: Optional[StrictStr] = Field(default=None, description="Executed command") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + core_spec: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_spec: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cores_per_socket: Optional[V0042Uint16NoValStruct] = None + billable_tres: Optional[V0042Float64NoValStruct] = None + cpus_per_task: Optional[V0042Uint16NoValStruct] = None + cpu_frequency_minimum: Optional[V0042Uint32NoValStruct] = None + cpu_frequency_maximum: Optional[V0042Uint32NoValStruct] = None + cpu_frequency_governor: Optional[V0042Uint32NoValStruct] = None + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + cron: Optional[StrictStr] = Field(default=None, description="Time specification for scrontab job") + deadline: Optional[V0042Uint64NoValStruct] = None + delay_boot: Optional[V0042Uint32NoValStruct] = None + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + derived_exit_code: Optional[V0042ProcessExitCodeVerbose] = None + eligible_time: Optional[V0042Uint64NoValStruct] = None + end_time: Optional[V0042Uint64NoValStruct] = None + excluded_nodes: Optional[StrictStr] = Field(default=None, description="Comma separated list of nodes that may not be used") + exit_code: Optional[V0042ProcessExitCodeVerbose] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + features: Optional[StrictStr] = Field(default=None, description="Comma separated list of features that are required") + federation_origin: Optional[StrictStr] = Field(default=None, description="Origin cluster's name (when using federation)") + federation_siblings_active: Optional[StrictStr] = Field(default=None, description="Active sibling job names") + federation_siblings_viable: Optional[StrictStr] = Field(default=None, description="Viable sibling job names") + gres_detail: Optional[List[StrictStr]] = None + group_id: Optional[StrictInt] = Field(default=None, description="Group ID of the user that owns the job") + group_name: Optional[StrictStr] = Field(default=None, description="Group name of the user that owns the job") + het_job_id: Optional[V0042Uint32NoValStruct] = None + het_job_id_set: Optional[StrictStr] = Field(default=None, description="Job ID range for all heterogeneous job components") + het_job_offset: Optional[V0042Uint32NoValStruct] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + job_resources: Optional[V0042JobRes] = None + job_size_str: Optional[List[StrictStr]] = None + job_state: Optional[List[StrictStr]] = None + last_sched_evaluation: Optional[V0042Uint64NoValStruct] = None + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mail_type: Optional[List[StrictStr]] = None + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + max_cpus: Optional[V0042Uint32NoValStruct] = None + max_nodes: Optional[V0042Uint32NoValStruct] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for the job") + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks_per_core: Optional[V0042Uint16NoValStruct] = None + tasks_per_tres: Optional[V0042Uint16NoValStruct] = None + tasks_per_node: Optional[V0042Uint16NoValStruct] = None + tasks_per_socket: Optional[V0042Uint16NoValStruct] = None + tasks_per_board: Optional[V0042Uint16NoValStruct] = None + cpus: Optional[V0042Uint32NoValStruct] = None + node_count: Optional[V0042Uint32NoValStruct] = None + tasks: Optional[V0042Uint32NoValStruct] = None + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + prefer: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested but that are not required") + memory_per_cpu: Optional[V0042Uint64NoValStruct] = None + memory_per_node: Optional[V0042Uint64NoValStruct] = None + minimum_cpus_per_node: Optional[V0042Uint16NoValStruct] = None + minimum_tmp_disk_per_node: Optional[V0042Uint32NoValStruct] = None + power: Optional[V0041OpenapiJobInfoRespJobsInnerPower] = None + preempt_time: Optional[V0042Uint64NoValStruct] = None + preemptable_time: Optional[V0042Uint64NoValStruct] = None + pre_sus_time: Optional[V0042Uint64NoValStruct] = None + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job") + priority: Optional[V0042Uint32NoValStruct] = None + priority_by_partition: Optional[List[V0042PartPrio]] = None + profile: Optional[List[StrictStr]] = None + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job, if pending the QOS requested") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[StrictStr] = Field(default=None, description="Comma separated list of required nodes") + required_switches: Optional[StrictInt] = Field(default=None, description="Maximum number of switches") + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + resize_time: Optional[V0042Uint64NoValStruct] = None + restart_cnt: Optional[StrictInt] = Field(default=None, description="Number of job restarts") + resv_name: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + scheduled_nodes: Optional[StrictStr] = Field(default=None, description="List of nodes scheduled to be used for the job") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + shared: Optional[List[StrictStr]] = None + sockets_per_board: Optional[StrictInt] = Field(default=None, description="Number of sockets per board required") + sockets_per_node: Optional[V0042Uint16NoValStruct] = None + start_time: Optional[V0042Uint64NoValStruct] = None + state_description: Optional[StrictStr] = Field(default=None, description="Optional details for state_reason") + state_reason: Optional[StrictStr] = Field(default=None, description="Reason for current Pending or Failed state") + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + submit_time: Optional[V0042Uint64NoValStruct] = None + suspend_time: Optional[V0042Uint64NoValStruct] = None + system_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment from slurmctld") + time_limit: Optional[V0042Uint32NoValStruct] = None + time_minimum: Optional[V0042Uint32NoValStruct] = None + threads_per_core: Optional[V0042Uint16NoValStruct] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma separated list of TRES=# values to be allocated per task") + tres_req_str: Optional[StrictStr] = Field(default=None, description="TRES requested by the job") + tres_alloc_str: Optional[StrictStr] = Field(default=None, description="TRES used by the job") + user_id: Optional[StrictInt] = Field(default=None, description="User ID that owns the job") + user_name: Optional[StrictStr] = Field(default=None, description="User name that owns the job") + maximum_switch_wait_time: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + __properties: ClassVar[List[str]] = ["account", "accrue_time", "admin_comment", "allocating_node", "array_job_id", "array_task_id", "array_max_tasks", "array_task_string", "association_id", "batch_features", "batch_flag", "batch_host", "flags", "burst_buffer", "burst_buffer_state", "cluster", "cluster_features", "command", "comment", "container", "container_id", "contiguous", "core_spec", "thread_spec", "cores_per_socket", "billable_tres", "cpus_per_task", "cpu_frequency_minimum", "cpu_frequency_maximum", "cpu_frequency_governor", "cpus_per_tres", "cron", "deadline", "delay_boot", "dependency", "derived_exit_code", "eligible_time", "end_time", "excluded_nodes", "exit_code", "extra", "failed_node", "features", "federation_origin", "federation_siblings_active", "federation_siblings_viable", "gres_detail", "group_id", "group_name", "het_job_id", "het_job_id_set", "het_job_offset", "job_id", "job_resources", "job_size_str", "job_state", "last_sched_evaluation", "licenses", "mail_type", "mail_user", "max_cpus", "max_nodes", "mcs_label", "memory_per_tres", "name", "network", "nodes", "nice", "tasks_per_core", "tasks_per_tres", "tasks_per_node", "tasks_per_socket", "tasks_per_board", "cpus", "node_count", "tasks", "partition", "prefer", "memory_per_cpu", "memory_per_node", "minimum_cpus_per_node", "minimum_tmp_disk_per_node", "power", "preempt_time", "preemptable_time", "pre_sus_time", "hold", "priority", "priority_by_partition", "profile", "qos", "reboot", "required_nodes", "required_switches", "requeue", "resize_time", "restart_cnt", "resv_name", "scheduled_nodes", "selinux_context", "shared", "sockets_per_board", "sockets_per_node", "start_time", "state_description", "state_reason", "standard_error", "standard_input", "standard_output", "submit_time", "suspend_time", "system_comment", "time_limit", "time_minimum", "threads_per_core", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "tres_req_str", "tres_alloc_str", "user_id", "user_name", "maximum_switch_wait_time", "wckey", "current_working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accrue_time + if self.accrue_time: + _dict['accrue_time'] = self.accrue_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_job_id + if self.array_job_id: + _dict['array_job_id'] = self.array_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_task_id + if self.array_task_id: + _dict['array_task_id'] = self.array_task_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_max_tasks + if self.array_max_tasks: + _dict['array_max_tasks'] = self.array_max_tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cores_per_socket + if self.cores_per_socket: + _dict['cores_per_socket'] = self.cores_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of billable_tres + if self.billable_tres: + _dict['billable_tres'] = self.billable_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_task + if self.cpus_per_task: + _dict['cpus_per_task'] = self.cpus_per_task.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_minimum + if self.cpu_frequency_minimum: + _dict['cpu_frequency_minimum'] = self.cpu_frequency_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_maximum + if self.cpu_frequency_maximum: + _dict['cpu_frequency_maximum'] = self.cpu_frequency_maximum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_governor + if self.cpu_frequency_governor: + _dict['cpu_frequency_governor'] = self.cpu_frequency_governor.to_dict() + # override the default output from pydantic by calling `to_dict()` of deadline + if self.deadline: + _dict['deadline'] = self.deadline.to_dict() + # override the default output from pydantic by calling `to_dict()` of delay_boot + if self.delay_boot: + _dict['delay_boot'] = self.delay_boot.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of eligible_time + if self.eligible_time: + _dict['eligible_time'] = self.eligible_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_id + if self.het_job_id: + _dict['het_job_id'] = self.het_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_offset + if self.het_job_offset: + _dict['het_job_offset'] = self.het_job_offset.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_resources + if self.job_resources: + _dict['job_resources'] = self.job_resources.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_sched_evaluation + if self.last_sched_evaluation: + _dict['last_sched_evaluation'] = self.last_sched_evaluation.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_cpus + if self.max_cpus: + _dict['max_cpus'] = self.max_cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_nodes + if self.max_nodes: + _dict['max_nodes'] = self.max_nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_core + if self.tasks_per_core: + _dict['tasks_per_core'] = self.tasks_per_core.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_tres + if self.tasks_per_tres: + _dict['tasks_per_tres'] = self.tasks_per_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_node + if self.tasks_per_node: + _dict['tasks_per_node'] = self.tasks_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_socket + if self.tasks_per_socket: + _dict['tasks_per_socket'] = self.tasks_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_board + if self.tasks_per_board: + _dict['tasks_per_board'] = self.tasks_per_board.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of node_count + if self.node_count: + _dict['node_count'] = self.node_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_cpus_per_node + if self.minimum_cpus_per_node: + _dict['minimum_cpus_per_node'] = self.minimum_cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_tmp_disk_per_node + if self.minimum_tmp_disk_per_node: + _dict['minimum_tmp_disk_per_node'] = self.minimum_tmp_disk_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of power + if self.power: + _dict['power'] = self.power.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt_time + if self.preempt_time: + _dict['preempt_time'] = self.preempt_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of preemptable_time + if self.preemptable_time: + _dict['preemptable_time'] = self.preemptable_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of pre_sus_time + if self.pre_sus_time: + _dict['pre_sus_time'] = self.pre_sus_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in priority_by_partition (list) + _items = [] + if self.priority_by_partition: + for _item_priority_by_partition in self.priority_by_partition: + if _item_priority_by_partition: + _items.append(_item_priority_by_partition.to_dict()) + _dict['priority_by_partition'] = _items + # override the default output from pydantic by calling `to_dict()` of resize_time + if self.resize_time: + _dict['resize_time'] = self.resize_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of sockets_per_node + if self.sockets_per_node: + _dict['sockets_per_node'] = self.sockets_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of submit_time + if self.submit_time: + _dict['submit_time'] = self.submit_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "accrue_time": V0042Uint64NoValStruct.from_dict(obj["accrue_time"]) if obj.get("accrue_time") is not None else None, + "admin_comment": obj.get("admin_comment"), + "allocating_node": obj.get("allocating_node"), + "array_job_id": V0042Uint32NoValStruct.from_dict(obj["array_job_id"]) if obj.get("array_job_id") is not None else None, + "array_task_id": V0042Uint32NoValStruct.from_dict(obj["array_task_id"]) if obj.get("array_task_id") is not None else None, + "array_max_tasks": V0042Uint32NoValStruct.from_dict(obj["array_max_tasks"]) if obj.get("array_max_tasks") is not None else None, + "array_task_string": obj.get("array_task_string"), + "association_id": obj.get("association_id"), + "batch_features": obj.get("batch_features"), + "batch_flag": obj.get("batch_flag"), + "batch_host": obj.get("batch_host"), + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "burst_buffer_state": obj.get("burst_buffer_state"), + "cluster": obj.get("cluster"), + "cluster_features": obj.get("cluster_features"), + "command": obj.get("command"), + "comment": obj.get("comment"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "contiguous": obj.get("contiguous"), + "core_spec": obj.get("core_spec"), + "thread_spec": obj.get("thread_spec"), + "cores_per_socket": V0042Uint16NoValStruct.from_dict(obj["cores_per_socket"]) if obj.get("cores_per_socket") is not None else None, + "billable_tres": V0042Float64NoValStruct.from_dict(obj["billable_tres"]) if obj.get("billable_tres") is not None else None, + "cpus_per_task": V0042Uint16NoValStruct.from_dict(obj["cpus_per_task"]) if obj.get("cpus_per_task") is not None else None, + "cpu_frequency_minimum": V0042Uint32NoValStruct.from_dict(obj["cpu_frequency_minimum"]) if obj.get("cpu_frequency_minimum") is not None else None, + "cpu_frequency_maximum": V0042Uint32NoValStruct.from_dict(obj["cpu_frequency_maximum"]) if obj.get("cpu_frequency_maximum") is not None else None, + "cpu_frequency_governor": V0042Uint32NoValStruct.from_dict(obj["cpu_frequency_governor"]) if obj.get("cpu_frequency_governor") is not None else None, + "cpus_per_tres": obj.get("cpus_per_tres"), + "cron": obj.get("cron"), + "deadline": V0042Uint64NoValStruct.from_dict(obj["deadline"]) if obj.get("deadline") is not None else None, + "delay_boot": V0042Uint32NoValStruct.from_dict(obj["delay_boot"]) if obj.get("delay_boot") is not None else None, + "dependency": obj.get("dependency"), + "derived_exit_code": V0042ProcessExitCodeVerbose.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "eligible_time": V0042Uint64NoValStruct.from_dict(obj["eligible_time"]) if obj.get("eligible_time") is not None else None, + "end_time": V0042Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "exit_code": V0042ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "features": obj.get("features"), + "federation_origin": obj.get("federation_origin"), + "federation_siblings_active": obj.get("federation_siblings_active"), + "federation_siblings_viable": obj.get("federation_siblings_viable"), + "gres_detail": obj.get("gres_detail"), + "group_id": obj.get("group_id"), + "group_name": obj.get("group_name"), + "het_job_id": V0042Uint32NoValStruct.from_dict(obj["het_job_id"]) if obj.get("het_job_id") is not None else None, + "het_job_id_set": obj.get("het_job_id_set"), + "het_job_offset": V0042Uint32NoValStruct.from_dict(obj["het_job_offset"]) if obj.get("het_job_offset") is not None else None, + "job_id": obj.get("job_id"), + "job_resources": V0042JobRes.from_dict(obj["job_resources"]) if obj.get("job_resources") is not None else None, + "job_size_str": obj.get("job_size_str"), + "job_state": obj.get("job_state"), + "last_sched_evaluation": V0042Uint64NoValStruct.from_dict(obj["last_sched_evaluation"]) if obj.get("last_sched_evaluation") is not None else None, + "licenses": obj.get("licenses"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "max_cpus": V0042Uint32NoValStruct.from_dict(obj["max_cpus"]) if obj.get("max_cpus") is not None else None, + "max_nodes": V0042Uint32NoValStruct.from_dict(obj["max_nodes"]) if obj.get("max_nodes") is not None else None, + "mcs_label": obj.get("mcs_label"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nodes": obj.get("nodes"), + "nice": obj.get("nice"), + "tasks_per_core": V0042Uint16NoValStruct.from_dict(obj["tasks_per_core"]) if obj.get("tasks_per_core") is not None else None, + "tasks_per_tres": V0042Uint16NoValStruct.from_dict(obj["tasks_per_tres"]) if obj.get("tasks_per_tres") is not None else None, + "tasks_per_node": V0042Uint16NoValStruct.from_dict(obj["tasks_per_node"]) if obj.get("tasks_per_node") is not None else None, + "tasks_per_socket": V0042Uint16NoValStruct.from_dict(obj["tasks_per_socket"]) if obj.get("tasks_per_socket") is not None else None, + "tasks_per_board": V0042Uint16NoValStruct.from_dict(obj["tasks_per_board"]) if obj.get("tasks_per_board") is not None else None, + "cpus": V0042Uint32NoValStruct.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "node_count": V0042Uint32NoValStruct.from_dict(obj["node_count"]) if obj.get("node_count") is not None else None, + "tasks": V0042Uint32NoValStruct.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "partition": obj.get("partition"), + "prefer": obj.get("prefer"), + "memory_per_cpu": V0042Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0042Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "minimum_cpus_per_node": V0042Uint16NoValStruct.from_dict(obj["minimum_cpus_per_node"]) if obj.get("minimum_cpus_per_node") is not None else None, + "minimum_tmp_disk_per_node": V0042Uint32NoValStruct.from_dict(obj["minimum_tmp_disk_per_node"]) if obj.get("minimum_tmp_disk_per_node") is not None else None, + "power": V0041OpenapiJobInfoRespJobsInnerPower.from_dict(obj["power"]) if obj.get("power") is not None else None, + "preempt_time": V0042Uint64NoValStruct.from_dict(obj["preempt_time"]) if obj.get("preempt_time") is not None else None, + "preemptable_time": V0042Uint64NoValStruct.from_dict(obj["preemptable_time"]) if obj.get("preemptable_time") is not None else None, + "pre_sus_time": V0042Uint64NoValStruct.from_dict(obj["pre_sus_time"]) if obj.get("pre_sus_time") is not None else None, + "hold": obj.get("hold"), + "priority": V0042Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "priority_by_partition": [V0042PartPrio.from_dict(_item) for _item in obj["priority_by_partition"]] if obj.get("priority_by_partition") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "required_switches": obj.get("required_switches"), + "requeue": obj.get("requeue"), + "resize_time": V0042Uint64NoValStruct.from_dict(obj["resize_time"]) if obj.get("resize_time") is not None else None, + "restart_cnt": obj.get("restart_cnt"), + "resv_name": obj.get("resv_name"), + "scheduled_nodes": obj.get("scheduled_nodes"), + "selinux_context": obj.get("selinux_context"), + "shared": obj.get("shared"), + "sockets_per_board": obj.get("sockets_per_board"), + "sockets_per_node": V0042Uint16NoValStruct.from_dict(obj["sockets_per_node"]) if obj.get("sockets_per_node") is not None else None, + "start_time": V0042Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "state_description": obj.get("state_description"), + "state_reason": obj.get("state_reason"), + "standard_error": obj.get("standard_error"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "submit_time": V0042Uint64NoValStruct.from_dict(obj["submit_time"]) if obj.get("submit_time") is not None else None, + "suspend_time": V0042Uint64NoValStruct.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None, + "system_comment": obj.get("system_comment"), + "time_limit": V0042Uint32NoValStruct.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0042Uint32NoValStruct.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "threads_per_core": V0042Uint16NoValStruct.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "tres_req_str": obj.get("tres_req_str"), + "tres_alloc_str": obj.get("tres_alloc_str"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "maximum_switch_wait_time": obj.get("maximum_switch_wait_time"), + "wckey": obj.get("wckey"), + "current_working_directory": obj.get("current_working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_required.py b/slurmrest_python/models/v0042_job_required.py new file mode 100644 index 0000000..adad26d --- /dev/null +++ b/slurmrest_python/models/v0042_job_required.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobRequired(BaseModel): + """ + V0042JobRequired + """ # noqa: E501 + cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required", alias="CPUs") + memory_per_cpu: Optional[V0042Uint64NoValStruct] = None + memory_per_node: Optional[V0042Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["CPUs", "memory_per_cpu", "memory_per_node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobRequired from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobRequired from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPUs": obj.get("CPUs"), + "memory_per_cpu": V0042Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0042Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_res.py b/slurmrest_python/models/v0042_job_res.py new file mode 100644 index 0000000..1f47980 --- /dev/null +++ b/slurmrest_python/models/v0042_job_res.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_job_res_nodes import V0042JobResNodes +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobRes(BaseModel): + """ + V0042JobRes + """ # noqa: E501 + select_type: List[StrictStr] + nodes: Optional[V0042JobResNodes] = None + cpus: StrictInt = Field(description="Number of allocated CPUs") + threads_per_core: V0042Uint16NoValStruct + __properties: ClassVar[List[str]] = ["select_type", "nodes", "cpus", "threads_per_core"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobRes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobRes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "select_type": obj.get("select_type"), + "nodes": V0042JobResNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "cpus": obj.get("cpus"), + "threads_per_core": V0042Uint16NoValStruct.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_res_core.py b/slurmrest_python/models/v0042_job_res_core.py new file mode 100644 index 0000000..b633465 --- /dev/null +++ b/slurmrest_python/models/v0042_job_res_core.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobResCore(BaseModel): + """ + V0042JobResCore + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + status: List[StrictStr] + __properties: ClassVar[List[str]] = ["index", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE']): + raise ValueError("each list item must be one of ('INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobResCore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobResCore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "status": obj.get("status") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_res_node.py b/slurmrest_python/models/v0042_job_res_node.py new file mode 100644 index 0000000..4a78972 --- /dev/null +++ b/slurmrest_python/models/v0042_job_res_node.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory +from slurmrest_python.models.v0042_job_res_socket import V0042JobResSocket +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobResNode(BaseModel): + """ + V0042JobResNode + """ # noqa: E501 + index: StrictInt = Field(description="Node index") + name: StrictStr = Field(description="Node name") + cpus: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus] = None + memory: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory] = None + sockets: List[V0042JobResSocket] + __properties: ClassVar[List[str]] = ["index", "name", "cpus", "memory", "sockets"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobResNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory + if self.memory: + _dict['memory'] = self.memory.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in sockets (list) + _items = [] + if self.sockets: + for _item_sockets in self.sockets: + if _item_sockets: + _items.append(_item_sockets.to_dict()) + _dict['sockets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobResNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "name": obj.get("name"), + "cpus": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "memory": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.from_dict(obj["memory"]) if obj.get("memory") is not None else None, + "sockets": [V0042JobResSocket.from_dict(_item) for _item in obj["sockets"]] if obj.get("sockets") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_res_nodes.py b/slurmrest_python/models/v0042_job_res_nodes.py new file mode 100644 index 0000000..9d23941 --- /dev/null +++ b/slurmrest_python/models/v0042_job_res_nodes.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_job_res_node import V0042JobResNode +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobResNodes(BaseModel): + """ + V0042JobResNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of allocated nodes") + select_type: Optional[List[StrictStr]] = None + list: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + whole: Optional[StrictBool] = Field(default=None, description="Whether whole nodes were allocated") + allocation: Optional[List[V0042JobResNode]] = Field(default=None, description="Job resources for a node") + __properties: ClassVar[List[str]] = ["count", "select_type", "list", "whole", "allocation"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['AVAILABLE', 'ONE_ROW', 'RESERVED']): + raise ValueError("each list item must be one of ('AVAILABLE', 'ONE_ROW', 'RESERVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobResNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocation (list) + _items = [] + if self.allocation: + for _item_allocation in self.allocation: + if _item_allocation: + _items.append(_item_allocation.to_dict()) + _dict['allocation'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobResNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "select_type": obj.get("select_type"), + "list": obj.get("list"), + "whole": obj.get("whole"), + "allocation": [V0042JobResNode.from_dict(_item) for _item in obj["allocation"]] if obj.get("allocation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_res_socket.py b/slurmrest_python/models/v0042_job_res_socket.py new file mode 100644 index 0000000..2a60f8e --- /dev/null +++ b/slurmrest_python/models/v0042_job_res_socket.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0042_job_res_core import V0042JobResCore +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobResSocket(BaseModel): + """ + V0042JobResSocket + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + cores: List[V0042JobResCore] + __properties: ClassVar[List[str]] = ["index", "cores"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobResSocket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in cores (list) + _items = [] + if self.cores: + for _item_cores in self.cores: + if _item_cores: + _items.append(_item_cores.to_dict()) + _dict['cores'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobResSocket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "cores": [V0042JobResCore.from_dict(_item) for _item in obj["cores"]] if obj.get("cores") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_state.py b/slurmrest_python/models/v0042_job_state.py new file mode 100644 index 0000000..77a2f17 --- /dev/null +++ b/slurmrest_python/models/v0042_job_state.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobState(BaseModel): + """ + V0042JobState + """ # noqa: E501 + current: Optional[List[StrictStr]] = None + reason: Optional[StrictStr] = Field(default=None, description="Reason for previous Pending or Failed state") + __properties: ClassVar[List[str]] = ["current", "reason"] + + @field_validator('current') + def current_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobState from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobState from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "current": obj.get("current"), + "reason": obj.get("reason") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_submit_req.py b/slurmrest_python/models/v0042_job_submit_req.py new file mode 100644 index 0000000..2b769b4 --- /dev/null +++ b/slurmrest_python/models/v0042_job_submit_req.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobSubmitReq(BaseModel): + """ + V0042JobSubmitReq + """ # noqa: E501 + script: Optional[StrictStr] = Field(default=None, description="Job batch script contents; Same as the script field in jobs[0] or job.") + jobs: Optional[List[V0042JobDescMsg]] = None + job: Optional[V0042JobDescMsg] = None + __properties: ClassVar[List[str]] = ["script", "jobs", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobSubmitReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobSubmitReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "script": obj.get("script"), + "jobs": [V0042JobDescMsg.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "job": V0042JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_time.py b/slurmrest_python/models/v0042_job_time.py new file mode 100644 index 0000000..d50488b --- /dev/null +++ b/slurmrest_python/models/v0042_job_time.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobTime(BaseModel): + """ + V0042JobTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + eligible: Optional[StrictInt] = Field(default=None, description="Time when the job became eligible to run (UNIX timestamp)") + end: Optional[StrictInt] = Field(default=None, description="End time (UNIX timestamp)") + planned: Optional[V0042Uint64NoValStruct] = None + start: Optional[StrictInt] = Field(default=None, description="Time execution began (UNIX timestamp)") + submission: Optional[StrictInt] = Field(default=None, description="Time when the job was submitted (UNIX timestamp)") + suspended: Optional[StrictInt] = Field(default=None, description="Total time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem] = None + limit: Optional[V0042Uint32NoValStruct] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "eligible", "end", "planned", "start", "submission", "suspended", "system", "limit", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of planned + if self.planned: + _dict['planned'] = self.planned.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of limit + if self.limit: + _dict['limit'] = self.limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "eligible": obj.get("eligible"), + "end": obj.get("end"), + "planned": V0042Uint64NoValStruct.from_dict(obj["planned"]) if obj.get("planned") is not None else None, + "start": obj.get("start"), + "submission": obj.get("submission"), + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "limit": V0042Uint32NoValStruct.from_dict(obj["limit"]) if obj.get("limit") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_job_tres.py b/slurmrest_python/models/v0042_job_tres.py new file mode 100644 index 0000000..98ac10d --- /dev/null +++ b/slurmrest_python/models/v0042_job_tres.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042JobTres(BaseModel): + """ + V0042JobTres + """ # noqa: E501 + allocated: Optional[List[V0042Tres]] = None + requested: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["allocated", "requested"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042JobTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in requested (list) + _items = [] + if self.requested: + for _item_requested in self.requested: + if _item_requested: + _items.append(_item_requested.to_dict()) + _dict['requested'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042JobTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": [V0042Tres.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None, + "requested": [V0042Tres.from_dict(_item) for _item in obj["requested"]] if obj.get("requested") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_kill_jobs_msg.py b/slurmrest_python/models/v0042_kill_jobs_msg.py new file mode 100644 index 0000000..0ab3b07 --- /dev/null +++ b/slurmrest_python/models/v0042_kill_jobs_msg.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042KillJobsMsg(BaseModel): + """ + V0042KillJobsMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific account") + flags: Optional[List[StrictStr]] = None + job_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific name") + jobs: Optional[List[StrictStr]] = None + partition: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific partition") + qos: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific QOS") + reservation: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific reservation") + signal: Optional[StrictStr] = Field(default=None, description="Signal to send to jobs") + job_state: Optional[List[StrictStr]] = None + user_id: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific numeric user id") + user_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific user name") + wckey: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific wckey") + nodes: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["account", "flags", "job_name", "jobs", "partition", "qos", "reservation", "signal", "job_state", "user_id", "user_name", "wckey", "nodes"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042KillJobsMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042KillJobsMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "flags": obj.get("flags"), + "job_name": obj.get("job_name"), + "jobs": obj.get("jobs"), + "partition": obj.get("partition"), + "qos": obj.get("qos"), + "reservation": obj.get("reservation"), + "signal": obj.get("signal"), + "job_state": obj.get("job_state"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "wckey": obj.get("wckey"), + "nodes": obj.get("nodes") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_kill_jobs_resp_job.py b/slurmrest_python/models/v0042_kill_jobs_resp_job.py new file mode 100644 index 0000000..ff59cab --- /dev/null +++ b/slurmrest_python/models/v0042_kill_jobs_resp_job.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042KillJobsRespJob(BaseModel): + """ + V0042KillJobsRespJob + """ # noqa: E501 + error: Optional[V0041OpenapiKillJobsRespStatusInnerError] = None + step_id: StrictStr = Field(description="Job or Step ID that signaling failed") + job_id: V0042Uint32NoValStruct + federation: Optional[V0041OpenapiKillJobsRespStatusInnerFederation] = None + __properties: ClassVar[List[str]] = ["error", "step_id", "job_id", "federation"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042KillJobsRespJob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_id + if self.job_id: + _dict['job_id'] = self.job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of federation + if self.federation: + _dict['federation'] = self.federation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042KillJobsRespJob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": V0041OpenapiKillJobsRespStatusInnerError.from_dict(obj["error"]) if obj.get("error") is not None else None, + "step_id": obj.get("step_id"), + "job_id": V0042Uint32NoValStruct.from_dict(obj["job_id"]) if obj.get("job_id") is not None else None, + "federation": V0041OpenapiKillJobsRespStatusInnerFederation.from_dict(obj["federation"]) if obj.get("federation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_license.py b/slurmrest_python/models/v0042_license.py new file mode 100644 index 0000000..25a3860 --- /dev/null +++ b/slurmrest_python/models/v0042_license.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042License(BaseModel): + """ + V0042License + """ # noqa: E501 + license_name: Optional[StrictStr] = Field(default=None, description="Name of the license", alias="LicenseName") + total: Optional[StrictInt] = Field(default=None, description="Total number of licenses present", alias="Total") + used: Optional[StrictInt] = Field(default=None, description="Number of licenses in use", alias="Used") + free: Optional[StrictInt] = Field(default=None, description="Number of licenses currently available", alias="Free") + remote: Optional[StrictBool] = Field(default=None, description="Indicates whether licenses are served by the database", alias="Remote") + reserved: Optional[StrictInt] = Field(default=None, description="Number of licenses reserved", alias="Reserved") + last_consumed: Optional[StrictInt] = Field(default=None, description="Last known number of licenses that were consumed in the license manager (Remote Only)", alias="LastConsumed") + last_deficit: Optional[StrictInt] = Field(default=None, description="Number of \"missing licenses\" from the cluster's perspective", alias="LastDeficit") + last_update: Optional[StrictInt] = Field(default=None, description="When the license information was last updated (UNIX Timestamp)", alias="LastUpdate") + __properties: ClassVar[List[str]] = ["LicenseName", "Total", "Used", "Free", "Remote", "Reserved", "LastConsumed", "LastDeficit", "LastUpdate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042License from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042License from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "LicenseName": obj.get("LicenseName"), + "Total": obj.get("Total"), + "Used": obj.get("Used"), + "Free": obj.get("Free"), + "Remote": obj.get("Remote"), + "Reserved": obj.get("Reserved"), + "LastConsumed": obj.get("LastConsumed"), + "LastDeficit": obj.get("LastDeficit"), + "LastUpdate": obj.get("LastUpdate") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_node.py b/slurmrest_python/models/v0042_node.py new file mode 100644 index 0000000..7971fd4 --- /dev/null +++ b/slurmrest_python/models/v0042_node.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from slurmrest_python.models.v0042_acct_gather_energy import V0042AcctGatherEnergy +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042Node(BaseModel): + """ + V0042Node + """ # noqa: E501 + architecture: Optional[StrictStr] = Field(default=None, description="Computer architecture") + burstbuffer_network_address: Optional[StrictStr] = Field(default=None, description="Alternate network path to be used for sbcast network traffic") + boards: Optional[StrictInt] = Field(default=None, description="Number of Baseboards in nodes with a baseboard controller") + boot_time: Optional[V0042Uint64NoValStruct] = None + cluster_name: Optional[StrictStr] = Field(default=None, description="Cluster name (only set in federated environments)") + cores: Optional[StrictInt] = Field(default=None, description="Number of cores in a single physical processor socket") + specialized_cores: Optional[StrictInt] = Field(default=None, description="Number of cores reserved for system use") + cpu_binding: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + cpu_load: Optional[StrictInt] = Field(default=None, description="CPU load as reported by the OS") + free_mem: Optional[V0042Uint64NoValStruct] = None + cpus: Optional[StrictInt] = Field(default=None, description="Total CPUs, including cores and threads") + effective_cpus: Optional[StrictInt] = Field(default=None, description="Number of effective CPUs (excluding specialized CPUs)") + specialized_cpus: Optional[StrictStr] = Field(default=None, description="Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd") + energy: Optional[V0042AcctGatherEnergy] = None + external_sensors: Optional[Dict[str, Any]] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + power: Optional[Dict[str, Any]] = None + features: Optional[List[StrictStr]] = None + active_features: Optional[List[StrictStr]] = None + gpu_spec: Optional[StrictStr] = Field(default=None, description="CPU cores reserved for jobs that also use a GPU") + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + gres_drained: Optional[StrictStr] = Field(default=None, description="Drained generic resources") + gres_used: Optional[StrictStr] = Field(default=None, description="Generic resources currently in use") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + last_busy: Optional[V0042Uint64NoValStruct] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label") + specialized_memory: Optional[StrictInt] = Field(default=None, description="Combined memory limit, in MB, for Slurm compute node daemons") + name: Optional[StrictStr] = Field(default=None, description="NodeName") + next_state_after_reboot: Optional[List[StrictStr]] = None + address: Optional[StrictStr] = Field(default=None, description="NodeAddr, used to establish a communication path") + hostname: Optional[StrictStr] = Field(default=None, description="NodeHostname") + state: Optional[List[StrictStr]] = None + operating_system: Optional[StrictStr] = Field(default=None, description="Operating system reported by the node") + owner: Optional[StrictStr] = Field(default=None, description="User allowed to run jobs on this node (unset if no restriction)") + partitions: Optional[List[StrictStr]] = None + port: Optional[StrictInt] = Field(default=None, description="TCP port number of the slurmd") + real_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB on the node") + res_cores_per_gpu: Optional[StrictInt] = Field(default=None, description="Number of CPU cores per GPU restricted to GPU jobs") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + reason: Optional[StrictStr] = Field(default=None, description="Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state") + reason_changed_at: Optional[V0042Uint64NoValStruct] = None + reason_set_by_user: Optional[StrictStr] = Field(default=None, description="User who set the reason") + resume_after: Optional[V0042Uint64NoValStruct] = None + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation containing this node") + alloc_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB currently allocated for jobs") + alloc_cpus: Optional[StrictInt] = Field(default=None, description="Total number of CPUs currently allocated for jobs") + alloc_idle_cpus: Optional[StrictInt] = Field(default=None, description="Total number of idle CPUs") + tres_used: Optional[StrictStr] = Field(default=None, description="Trackable resources currently allocated for jobs") + tres_weighted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Ignored. Was weighted number of billable trackable resources allocated") + slurmd_start_time: Optional[V0042Uint64NoValStruct] = None + sockets: Optional[StrictInt] = Field(default=None, description="Number of physical processor sockets/chips on the node") + threads: Optional[StrictInt] = Field(default=None, description="Number of logical threads in a single physical core") + temporary_disk: Optional[StrictInt] = Field(default=None, description="Total size in MB of temporary disk storage in TmpFS") + weight: Optional[StrictInt] = Field(default=None, description="Weight of the node for scheduling purposes") + tres: Optional[StrictStr] = Field(default=None, description="Configured trackable resources") + version: Optional[StrictStr] = Field(default=None, description="Slurmd version") + __properties: ClassVar[List[str]] = ["architecture", "burstbuffer_network_address", "boards", "boot_time", "cluster_name", "cores", "specialized_cores", "cpu_binding", "cpu_load", "free_mem", "cpus", "effective_cpus", "specialized_cpus", "energy", "external_sensors", "extra", "power", "features", "active_features", "gpu_spec", "gres", "gres_drained", "gres_used", "instance_id", "instance_type", "last_busy", "mcs_label", "specialized_memory", "name", "next_state_after_reboot", "address", "hostname", "state", "operating_system", "owner", "partitions", "port", "real_memory", "res_cores_per_gpu", "comment", "reason", "reason_changed_at", "reason_set_by_user", "resume_after", "reservation", "alloc_memory", "alloc_cpus", "alloc_idle_cpus", "tres_used", "tres_weighted", "slurmd_start_time", "sockets", "threads", "temporary_disk", "weight", "tres", "version"] + + @field_validator('next_state_after_reboot') + def next_state_after_reboot_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Node from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of boot_time + if self.boot_time: + _dict['boot_time'] = self.boot_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of free_mem + if self.free_mem: + _dict['free_mem'] = self.free_mem.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_busy + if self.last_busy: + _dict['last_busy'] = self.last_busy.to_dict() + # override the default output from pydantic by calling `to_dict()` of reason_changed_at + if self.reason_changed_at: + _dict['reason_changed_at'] = self.reason_changed_at.to_dict() + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurmd_start_time + if self.slurmd_start_time: + _dict['slurmd_start_time'] = self.slurmd_start_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Node from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "architecture": obj.get("architecture"), + "burstbuffer_network_address": obj.get("burstbuffer_network_address"), + "boards": obj.get("boards"), + "boot_time": V0042Uint64NoValStruct.from_dict(obj["boot_time"]) if obj.get("boot_time") is not None else None, + "cluster_name": obj.get("cluster_name"), + "cores": obj.get("cores"), + "specialized_cores": obj.get("specialized_cores"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_load": obj.get("cpu_load"), + "free_mem": V0042Uint64NoValStruct.from_dict(obj["free_mem"]) if obj.get("free_mem") is not None else None, + "cpus": obj.get("cpus"), + "effective_cpus": obj.get("effective_cpus"), + "specialized_cpus": obj.get("specialized_cpus"), + "energy": V0042AcctGatherEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None, + "external_sensors": obj.get("external_sensors"), + "extra": obj.get("extra"), + "power": obj.get("power"), + "features": obj.get("features"), + "active_features": obj.get("active_features"), + "gpu_spec": obj.get("gpu_spec"), + "gres": obj.get("gres"), + "gres_drained": obj.get("gres_drained"), + "gres_used": obj.get("gres_used"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "last_busy": V0042Uint64NoValStruct.from_dict(obj["last_busy"]) if obj.get("last_busy") is not None else None, + "mcs_label": obj.get("mcs_label"), + "specialized_memory": obj.get("specialized_memory"), + "name": obj.get("name"), + "next_state_after_reboot": obj.get("next_state_after_reboot"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "state": obj.get("state"), + "operating_system": obj.get("operating_system"), + "owner": obj.get("owner"), + "partitions": obj.get("partitions"), + "port": obj.get("port"), + "real_memory": obj.get("real_memory"), + "res_cores_per_gpu": obj.get("res_cores_per_gpu"), + "comment": obj.get("comment"), + "reason": obj.get("reason"), + "reason_changed_at": V0042Uint64NoValStruct.from_dict(obj["reason_changed_at"]) if obj.get("reason_changed_at") is not None else None, + "reason_set_by_user": obj.get("reason_set_by_user"), + "resume_after": V0042Uint64NoValStruct.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "reservation": obj.get("reservation"), + "alloc_memory": obj.get("alloc_memory"), + "alloc_cpus": obj.get("alloc_cpus"), + "alloc_idle_cpus": obj.get("alloc_idle_cpus"), + "tres_used": obj.get("tres_used"), + "tres_weighted": obj.get("tres_weighted"), + "slurmd_start_time": V0042Uint64NoValStruct.from_dict(obj["slurmd_start_time"]) if obj.get("slurmd_start_time") is not None else None, + "sockets": obj.get("sockets"), + "threads": obj.get("threads"), + "temporary_disk": obj.get("temporary_disk"), + "weight": obj.get("weight"), + "tres": obj.get("tres"), + "version": obj.get("version") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_accounts_add_cond_resp.py b/slurmrest_python/models/v0042_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..03cb8a3 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_accounts_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_account_short import V0042AccountShort +from slurmrest_python.models.v0042_accounts_add_cond import V0042AccountsAddCond +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiAccountsAddCondResp(BaseModel): + """ + V0042OpenapiAccountsAddCondResp + """ # noqa: E501 + association_condition: Optional[V0042AccountsAddCond] = None + account: Optional[V0042AccountShort] = None + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["association_condition", "account", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0042AccountsAddCond.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "account": V0042AccountShort.from_dict(obj["account"]) if obj.get("account") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_accounts_add_cond_resp_str.py b/slurmrest_python/models/v0042_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..556fc3c --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiAccountsAddCondRespStr(BaseModel): + """ + V0042OpenapiAccountsAddCondRespStr + """ # noqa: E501 + added_accounts: StrictStr = Field(description="added_accounts") + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["added_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_accounts": obj.get("added_accounts"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_accounts_removed_resp.py b/slurmrest_python/models/v0042_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..9570738 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_accounts_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiAccountsRemovedResp(BaseModel): + """ + V0042OpenapiAccountsRemovedResp + """ # noqa: E501 + removed_accounts: List[StrictStr] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_accounts": obj.get("removed_accounts"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_accounts_resp.py b/slurmrest_python/models/v0042_openapi_accounts_resp.py new file mode 100644 index 0000000..654a596 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_accounts_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_account import V0042Account +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiAccountsResp(BaseModel): + """ + V0042OpenapiAccountsResp + """ # noqa: E501 + accounts: List[V0042Account] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiAccountsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": [V0042Account.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_assocs_removed_resp.py b/slurmrest_python/models/v0042_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..0f38d22 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_assocs_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiAssocsRemovedResp(BaseModel): + """ + V0042OpenapiAssocsRemovedResp + """ # noqa: E501 + removed_associations: List[StrictStr] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiAssocsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiAssocsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_associations": obj.get("removed_associations"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_assocs_resp.py b/slurmrest_python/models/v0042_openapi_assocs_resp.py new file mode 100644 index 0000000..c80d064 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_assocs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc import V0042Assoc +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiAssocsResp(BaseModel): + """ + V0042OpenapiAssocsResp + """ # noqa: E501 + associations: List[V0042Assoc] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiAssocsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiAssocsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0042Assoc.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_clusters_removed_resp.py b/slurmrest_python/models/v0042_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..bbe8248 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_clusters_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiClustersRemovedResp(BaseModel): + """ + V0042OpenapiClustersRemovedResp + """ # noqa: E501 + deleted_clusters: List[StrictStr] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["deleted_clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiClustersRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiClustersRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_clusters": obj.get("deleted_clusters"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_clusters_resp.py b/slurmrest_python/models/v0042_openapi_clusters_resp.py new file mode 100644 index 0000000..8d44cfe --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_clusters_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_cluster_rec import V0042ClusterRec +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiClustersResp(BaseModel): + """ + V0042OpenapiClustersResp + """ # noqa: E501 + clusters: List[V0042ClusterRec] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiClustersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiClustersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0042ClusterRec.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_diag_resp.py b/slurmrest_python/models/v0042_openapi_diag_resp.py new file mode 100644 index 0000000..111e394 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_diag_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_stats_msg import V0042StatsMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiDiagResp(BaseModel): + """ + V0042OpenapiDiagResp + """ # noqa: E501 + statistics: V0042StatsMsg + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiDiagResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiDiagResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0042StatsMsg.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_error.py b/slurmrest_python/models/v0042_openapi_error.py new file mode 100644 index 0000000..f2d2f0f --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_error.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiError(BaseModel): + """ + V0042OpenapiError + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form error description") + error_number: Optional[StrictInt] = Field(default=None, description="Slurm numeric error identifier") + error: Optional[StrictStr] = Field(default=None, description="Short form error description") + source: Optional[StrictStr] = Field(default=None, description="Source of error or where error was first detected") + __properties: ClassVar[List[str]] = ["description", "error_number", "error", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "error_number": obj.get("error_number"), + "error": obj.get("error"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_instances_resp.py b/slurmrest_python/models/v0042_openapi_instances_resp.py new file mode 100644 index 0000000..02aceee --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_instances_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_instance import V0042Instance +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiInstancesResp(BaseModel): + """ + V0042OpenapiInstancesResp + """ # noqa: E501 + instances: List[V0042Instance] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiInstancesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiInstancesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "instances": [V0042Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_job_alloc_resp.py b/slurmrest_python/models/v0042_openapi_job_alloc_resp.py new file mode 100644 index 0000000..313649b --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_job_alloc_resp.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiJobAllocResp(BaseModel): + """ + V0042OpenapiJobAllocResp + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Submitted Job ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["job_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiJobAllocResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiJobAllocResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_job_info_resp.py b/slurmrest_python/models/v0042_openapi_job_info_resp.py new file mode 100644 index 0000000..fb2ed00 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_job_info_resp.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_job_info import V0042JobInfo +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiJobInfoResp(BaseModel): + """ + V0042OpenapiJobInfoResp + """ # noqa: E501 + jobs: List[V0042JobInfo] + last_backfill: V0042Uint64NoValStruct + last_update: V0042Uint64NoValStruct + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["jobs", "last_backfill", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiJobInfoResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of last_backfill + if self.last_backfill: + _dict['last_backfill'] = self.last_backfill.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiJobInfoResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0042JobInfo.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "last_backfill": V0042Uint64NoValStruct.from_dict(obj["last_backfill"]) if obj.get("last_backfill") is not None else None, + "last_update": V0042Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_job_post_response.py b/slurmrest_python/models/v0042_openapi_job_post_response.py new file mode 100644 index 0000000..ec1ba6d --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_job_post_response.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_job_array_response_msg_entry import V0042JobArrayResponseMsgEntry +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiJobPostResponse(BaseModel): + """ + V0042OpenapiJobPostResponse + """ # noqa: E501 + results: Optional[List[V0042JobArrayResponseMsgEntry]] = None + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["results", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiJobPostResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiJobPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "results": [V0042JobArrayResponseMsgEntry.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_job_submit_response.py b/slurmrest_python/models/v0042_openapi_job_submit_response.py new file mode 100644 index 0000000..7772cf4 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_job_submit_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiJobSubmitResponse(BaseModel): + """ + V0042OpenapiJobSubmitResponse + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="submitted Job ID") + step_id: Optional[StrictStr] = Field(default=None, description="submitted Step ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["job_id", "step_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiJobSubmitResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiJobSubmitResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_kill_job_resp.py b/slurmrest_python/models/v0042_openapi_kill_job_resp.py new file mode 100644 index 0000000..1b83903 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_kill_job_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_kill_jobs_resp_job import V0042KillJobsRespJob +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiKillJobResp(BaseModel): + """ + V0042OpenapiKillJobResp + """ # noqa: E501 + status: List[V0042KillJobsRespJob] = Field(description="List of jobs signal responses") + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["status", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiKillJobResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in status (list) + _items = [] + if self.status: + for _item_status in self.status: + if _item_status: + _items.append(_item_status.to_dict()) + _dict['status'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiKillJobResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": [V0042KillJobsRespJob.from_dict(_item) for _item in obj["status"]] if obj.get("status") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_kill_jobs_resp.py b/slurmrest_python/models/v0042_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..860a580 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_kill_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_kill_jobs_resp_job import V0042KillJobsRespJob +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiKillJobsResp(BaseModel): + """ + V0042OpenapiKillJobsResp + """ # noqa: E501 + status: List[V0042KillJobsRespJob] = Field(description="List of jobs signal responses") + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["status", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiKillJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in status (list) + _items = [] + if self.status: + for _item_status in self.status: + if _item_status: + _items.append(_item_status.to_dict()) + _dict['status'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiKillJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": [V0042KillJobsRespJob.from_dict(_item) for _item in obj["status"]] if obj.get("status") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_licenses_resp.py b/slurmrest_python/models/v0042_openapi_licenses_resp.py new file mode 100644 index 0000000..2a1c7cf --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_licenses_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_license import V0042License +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiLicensesResp(BaseModel): + """ + V0042OpenapiLicensesResp + """ # noqa: E501 + licenses: List[V0042License] + last_update: V0042Uint64NoValStruct + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["licenses", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiLicensesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in licenses (list) + _items = [] + if self.licenses: + for _item_licenses in self.licenses: + if _item_licenses: + _items.append(_item_licenses.to_dict()) + _dict['licenses'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiLicensesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "licenses": [V0042License.from_dict(_item) for _item in obj["licenses"]] if obj.get("licenses") is not None else None, + "last_update": V0042Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_meta.py b/slurmrest_python/models/v0042_openapi_meta.py new file mode 100644 index 0000000..e6598b9 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_meta.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiMeta(BaseModel): + """ + V0042OpenapiMeta + """ # noqa: E501 + plugin: Optional[V0041OpenapiSharesRespMetaPlugin] = None + client: Optional[V0041OpenapiSharesRespMetaClient] = None + command: Optional[List[StrictStr]] = None + slurm: Optional[V0041OpenapiSharesRespMetaSlurm] = None + __properties: ClassVar[List[str]] = ["plugin", "client", "command", "slurm"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of plugin + if self.plugin: + _dict['plugin'] = self.plugin.to_dict() + # override the default output from pydantic by calling `to_dict()` of client + if self.client: + _dict['client'] = self.client.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurm + if self.slurm: + _dict['slurm'] = self.slurm.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plugin": V0041OpenapiSharesRespMetaPlugin.from_dict(obj["plugin"]) if obj.get("plugin") is not None else None, + "client": V0041OpenapiSharesRespMetaClient.from_dict(obj["client"]) if obj.get("client") is not None else None, + "command": obj.get("command"), + "slurm": V0041OpenapiSharesRespMetaSlurm.from_dict(obj["slurm"]) if obj.get("slurm") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_nodes_resp.py b/slurmrest_python/models/v0042_openapi_nodes_resp.py new file mode 100644 index 0000000..829d609 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_nodes_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_node import V0042Node +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiNodesResp(BaseModel): + """ + V0042OpenapiNodesResp + """ # noqa: E501 + nodes: List[V0042Node] + last_update: V0042Uint64NoValStruct + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["nodes", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiNodesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in nodes (list) + _items = [] + if self.nodes: + for _item_nodes in self.nodes: + if _item_nodes: + _items.append(_item_nodes.to_dict()) + _dict['nodes'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiNodesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": [V0042Node.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None, + "last_update": V0042Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_partition_resp.py b/slurmrest_python/models/v0042_openapi_partition_resp.py new file mode 100644 index 0000000..cee7c64 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_partition_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_partition_info import V0042PartitionInfo +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiPartitionResp(BaseModel): + """ + V0042OpenapiPartitionResp + """ # noqa: E501 + partitions: List[V0042PartitionInfo] + last_update: V0042Uint64NoValStruct + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["partitions", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiPartitionResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in partitions (list) + _items = [] + if self.partitions: + for _item_partitions in self.partitions: + if _item_partitions: + _items.append(_item_partitions.to_dict()) + _dict['partitions'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiPartitionResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partitions": [V0042PartitionInfo.from_dict(_item) for _item in obj["partitions"]] if obj.get("partitions") is not None else None, + "last_update": V0042Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_ping_array_resp.py b/slurmrest_python/models/v0042_openapi_ping_array_resp.py new file mode 100644 index 0000000..95cec20 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_ping_array_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_controller_ping import V0042ControllerPing +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiPingArrayResp(BaseModel): + """ + V0042OpenapiPingArrayResp + """ # noqa: E501 + pings: List[V0042ControllerPing] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["pings", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiPingArrayResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pings (list) + _items = [] + if self.pings: + for _item_pings in self.pings: + if _item_pings: + _items.append(_item_pings.to_dict()) + _dict['pings'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiPingArrayResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pings": [V0042ControllerPing.from_dict(_item) for _item in obj["pings"]] if obj.get("pings") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_reservation_resp.py b/slurmrest_python/models/v0042_openapi_reservation_resp.py new file mode 100644 index 0000000..353f063 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_reservation_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_reservation_info import V0042ReservationInfo +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiReservationResp(BaseModel): + """ + V0042OpenapiReservationResp + """ # noqa: E501 + reservations: List[V0042ReservationInfo] + last_update: V0042Uint64NoValStruct + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["reservations", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiReservationResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiReservationResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0042ReservationInfo.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None, + "last_update": V0042Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_resp.py b/slurmrest_python/models/v0042_openapi_resp.py new file mode 100644 index 0000000..fa6f62b --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_resp.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiResp(BaseModel): + """ + V0042OpenapiResp + """ # noqa: E501 + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_shares_resp.py b/slurmrest_python/models/v0042_openapi_shares_resp.py new file mode 100644 index 0000000..8be78d4 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_shares_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_shares_resp_msg import V0042SharesRespMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiSharesResp(BaseModel): + """ + V0042OpenapiSharesResp + """ # noqa: E501 + shares: V0042SharesRespMsg + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["shares", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiSharesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiSharesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": V0042SharesRespMsg.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_slurmdbd_config_resp.py b/slurmrest_python/models/v0042_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..52f135c --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_slurmdbd_config_resp.py @@ -0,0 +1,192 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_account import V0042Account +from slurmrest_python.models.v0042_assoc import V0042Assoc +from slurmrest_python.models.v0042_cluster_rec import V0042ClusterRec +from slurmrest_python.models.v0042_instance import V0042Instance +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_qos import V0042Qos +from slurmrest_python.models.v0042_tres import V0042Tres +from slurmrest_python.models.v0042_user import V0042User +from slurmrest_python.models.v0042_wckey import V0042Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiSlurmdbdConfigResp(BaseModel): + """ + V0042OpenapiSlurmdbdConfigResp + """ # noqa: E501 + clusters: Optional[List[V0042ClusterRec]] = None + tres: Optional[List[V0042Tres]] = None + accounts: Optional[List[V0042Account]] = None + users: Optional[List[V0042User]] = None + qos: Optional[List[V0042Qos]] = None + wckeys: Optional[List[V0042Wckey]] = None + associations: Optional[List[V0042Assoc]] = None + instances: Optional[List[V0042Instance]] = None + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["clusters", "tres", "accounts", "users", "qos", "wckeys", "associations", "instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdConfigResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdConfigResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0042ClusterRec.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "tres": [V0042Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None, + "accounts": [V0042Account.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "users": [V0042User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "qos": [V0042Qos.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "wckeys": [V0042Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "associations": [V0042Assoc.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "instances": [V0042Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_slurmdbd_jobs_resp.py b/slurmrest_python/models/v0042_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..402db72 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_job import V0042Job +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiSlurmdbdJobsResp(BaseModel): + """ + V0042OpenapiSlurmdbdJobsResp + """ # noqa: E501 + jobs: List[V0042Job] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["jobs", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0042Job.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_slurmdbd_ping_resp.py b/slurmrest_python/models/v0042_openapi_slurmdbd_ping_resp.py new file mode 100644 index 0000000..26d9911 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_slurmdbd_ping_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_slurmdbd_ping import V0042SlurmdbdPing +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiSlurmdbdPingResp(BaseModel): + """ + V0042OpenapiSlurmdbdPingResp + """ # noqa: E501 + pings: List[V0042SlurmdbdPing] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["pings", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdPingResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pings (list) + _items = [] + if self.pings: + for _item_pings in self.pings: + if _item_pings: + _items.append(_item_pings.to_dict()) + _dict['pings'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdPingResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pings": [V0042SlurmdbdPing.from_dict(_item) for _item in obj["pings"]] if obj.get("pings") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_slurmdbd_qos_removed_resp.py b/slurmrest_python/models/v0042_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..3826431 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiSlurmdbdQosRemovedResp(BaseModel): + """ + V0042OpenapiSlurmdbdQosRemovedResp + """ # noqa: E501 + removed_qos: List[StrictStr] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdQosRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdQosRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_qos": obj.get("removed_qos"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_slurmdbd_qos_resp.py b/slurmrest_python/models/v0042_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..93d3b0d --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_qos import V0042Qos +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiSlurmdbdQosResp(BaseModel): + """ + V0042OpenapiSlurmdbdQosResp + """ # noqa: E501 + qos: List[V0042Qos] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdQosResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdQosResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0042Qos.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_slurmdbd_stats_resp.py b/slurmrest_python/models/v0042_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..224505f --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_stats_rec import V0042StatsRec +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiSlurmdbdStatsResp(BaseModel): + """ + V0042OpenapiSlurmdbdStatsResp + """ # noqa: E501 + statistics: V0042StatsRec + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdStatsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiSlurmdbdStatsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0042StatsRec.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_tres_resp.py b/slurmrest_python/models/v0042_openapi_tres_resp.py new file mode 100644 index 0000000..5fb3a86 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_tres_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiTresResp(BaseModel): + """ + V0042OpenapiTresResp + """ # noqa: E501 + tres: List[V0042Tres] = Field(alias="TRES") + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["TRES", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiTresResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['TRES'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiTresResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "TRES": [V0042Tres.from_dict(_item) for _item in obj["TRES"]] if obj.get("TRES") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_users_add_cond_resp.py b/slurmrest_python/models/v0042_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..6a6ae7e --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_users_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_user_short import V0042UserShort +from slurmrest_python.models.v0042_users_add_cond import V0042UsersAddCond +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiUsersAddCondResp(BaseModel): + """ + V0042OpenapiUsersAddCondResp + """ # noqa: E501 + association_condition: V0042UsersAddCond + user: V0042UserShort + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["association_condition", "user", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiUsersAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiUsersAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0042UsersAddCond.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "user": V0042UserShort.from_dict(obj["user"]) if obj.get("user") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_users_add_cond_resp_str.py b/slurmrest_python/models/v0042_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..918ac06 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_users_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiUsersAddCondRespStr(BaseModel): + """ + V0042OpenapiUsersAddCondRespStr + """ # noqa: E501 + added_users: StrictStr = Field(description="added_users") + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["added_users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiUsersAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiUsersAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_users": obj.get("added_users"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_users_resp.py b/slurmrest_python/models/v0042_openapi_users_resp.py new file mode 100644 index 0000000..c14d91d --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_users_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_user import V0042User +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiUsersResp(BaseModel): + """ + V0042OpenapiUsersResp + """ # noqa: E501 + users: List[V0042User] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiUsersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiUsersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V0042User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_warning.py b/slurmrest_python/models/v0042_openapi_warning.py new file mode 100644 index 0000000..ac3ca19 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_warning.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiWarning(BaseModel): + """ + V0042OpenapiWarning + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form warning description") + source: Optional[StrictStr] = Field(default=None, description="Source of warning or where warning was first detected") + __properties: ClassVar[List[str]] = ["description", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiWarning from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiWarning from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_wckey_removed_resp.py b/slurmrest_python/models/v0042_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..21be4db --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_wckey_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiWckeyRemovedResp(BaseModel): + """ + V0042OpenapiWckeyRemovedResp + """ # noqa: E501 + deleted_wckeys: List[StrictStr] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["deleted_wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiWckeyRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiWckeyRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_wckeys": obj.get("deleted_wckeys"), + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_openapi_wckey_resp.py b/slurmrest_python/models/v0042_openapi_wckey_resp.py new file mode 100644 index 0000000..7a73e11 --- /dev/null +++ b/slurmrest_python/models/v0042_openapi_wckey_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning +from slurmrest_python.models.v0042_wckey import V0042Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0042OpenapiWckeyResp(BaseModel): + """ + V0042OpenapiWckeyResp + """ # noqa: E501 + wckeys: List[V0042Wckey] + meta: Optional[V0042OpenapiMeta] = None + errors: Optional[List[V0042OpenapiError]] = None + warnings: Optional[List[V0042OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042OpenapiWckeyResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042OpenapiWckeyResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckeys": [V0042Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "meta": V0042OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0042OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0042OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_part_prio.py b/slurmrest_python/models/v0042_part_prio.py new file mode 100644 index 0000000..96421b5 --- /dev/null +++ b/slurmrest_python/models/v0042_part_prio.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042PartPrio(BaseModel): + """ + V0042PartPrio + """ # noqa: E501 + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + priority: Optional[StrictInt] = Field(default=None, description="Prospective job priority if it runs in this partition") + __properties: ClassVar[List[str]] = ["partition", "priority"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042PartPrio from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042PartPrio from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partition": obj.get("partition"), + "priority": obj.get("priority") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_partition_info.py b/slurmrest_python/models/v0042_partition_info.py new file mode 100644 index 0000000..6249c74 --- /dev/null +++ b/slurmrest_python/models/v0042_partition_info.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_accounts import V0041OpenapiPartitionRespPartitionsInnerAccounts +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_cpus import V0041OpenapiPartitionRespPartitionsInnerCpus +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_groups import V0041OpenapiPartitionRespPartitionsInnerGroups +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_minimums import V0041OpenapiPartitionRespPartitionsInnerMinimums +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_nodes import V0041OpenapiPartitionRespPartitionsInnerNodes +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_priority import V0041OpenapiPartitionRespPartitionsInnerPriority +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_qos import V0041OpenapiPartitionRespPartitionsInnerQos +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_tres import V0041OpenapiPartitionRespPartitionsInnerTres +from slurmrest_python.models.v0042_partition_info_defaults import V0042PartitionInfoDefaults +from slurmrest_python.models.v0042_partition_info_maximums import V0042PartitionInfoMaximums +from slurmrest_python.models.v0042_partition_info_partition import V0042PartitionInfoPartition +from slurmrest_python.models.v0042_partition_info_timeouts import V0042PartitionInfoTimeouts +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042PartitionInfo(BaseModel): + """ + V0042PartitionInfo + """ # noqa: E501 + nodes: Optional[V0041OpenapiPartitionRespPartitionsInnerNodes] = None + accounts: Optional[V0041OpenapiPartitionRespPartitionsInnerAccounts] = None + groups: Optional[V0041OpenapiPartitionRespPartitionsInnerGroups] = None + qos: Optional[V0041OpenapiPartitionRespPartitionsInnerQos] = None + alternate: Optional[StrictStr] = Field(default=None, description="Alternate") + tres: Optional[V0041OpenapiPartitionRespPartitionsInnerTres] = None + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + select_type: Optional[List[StrictStr]] = None + cpus: Optional[V0041OpenapiPartitionRespPartitionsInnerCpus] = None + defaults: Optional[V0042PartitionInfoDefaults] = None + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime") + maximums: Optional[V0042PartitionInfoMaximums] = None + minimums: Optional[V0041OpenapiPartitionRespPartitionsInnerMinimums] = None + name: Optional[StrictStr] = Field(default=None, description="PartitionName") + node_sets: Optional[StrictStr] = Field(default=None, description="NodeSets") + priority: Optional[V0041OpenapiPartitionRespPartitionsInnerPriority] = None + timeouts: Optional[V0042PartitionInfoTimeouts] = None + partition: Optional[V0042PartitionInfoPartition] = None + suspend_time: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["nodes", "accounts", "groups", "qos", "alternate", "tres", "cluster", "select_type", "cpus", "defaults", "grace_time", "maximums", "minimums", "name", "node_sets", "priority", "timeouts", "partition", "suspend_time"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042PartitionInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of accounts + if self.accounts: + _dict['accounts'] = self.accounts.to_dict() + # override the default output from pydantic by calling `to_dict()` of groups + if self.groups: + _dict['groups'] = self.groups.to_dict() + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of defaults + if self.defaults: + _dict['defaults'] = self.defaults.to_dict() + # override the default output from pydantic by calling `to_dict()` of maximums + if self.maximums: + _dict['maximums'] = self.maximums.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimums + if self.minimums: + _dict['minimums'] = self.minimums.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of timeouts + if self.timeouts: + _dict['timeouts'] = self.timeouts.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition + if self.partition: + _dict['partition'] = self.partition.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042PartitionInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": V0041OpenapiPartitionRespPartitionsInnerNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "accounts": V0041OpenapiPartitionRespPartitionsInnerAccounts.from_dict(obj["accounts"]) if obj.get("accounts") is not None else None, + "groups": V0041OpenapiPartitionRespPartitionsInnerGroups.from_dict(obj["groups"]) if obj.get("groups") is not None else None, + "qos": V0041OpenapiPartitionRespPartitionsInnerQos.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "alternate": obj.get("alternate"), + "tres": V0041OpenapiPartitionRespPartitionsInnerTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "cluster": obj.get("cluster"), + "select_type": obj.get("select_type"), + "cpus": V0041OpenapiPartitionRespPartitionsInnerCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "defaults": V0042PartitionInfoDefaults.from_dict(obj["defaults"]) if obj.get("defaults") is not None else None, + "grace_time": obj.get("grace_time"), + "maximums": V0042PartitionInfoMaximums.from_dict(obj["maximums"]) if obj.get("maximums") is not None else None, + "minimums": V0041OpenapiPartitionRespPartitionsInnerMinimums.from_dict(obj["minimums"]) if obj.get("minimums") is not None else None, + "name": obj.get("name"), + "node_sets": obj.get("node_sets"), + "priority": V0041OpenapiPartitionRespPartitionsInnerPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "timeouts": V0042PartitionInfoTimeouts.from_dict(obj["timeouts"]) if obj.get("timeouts") is not None else None, + "partition": V0042PartitionInfoPartition.from_dict(obj["partition"]) if obj.get("partition") is not None else None, + "suspend_time": V0042Uint32NoValStruct.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_partition_info_defaults.py b/slurmrest_python/models/v0042_partition_info_defaults.py new file mode 100644 index 0000000..4f91a04 --- /dev/null +++ b/slurmrest_python/models/v0042_partition_info_defaults.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042PartitionInfoDefaults(BaseModel): + """ + V0042PartitionInfoDefaults + """ # noqa: E501 + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="DefMemPerCPU or DefMemPerNode") + partition_memory_per_cpu: Optional[V0042Uint64NoValStruct] = None + partition_memory_per_node: Optional[V0042Uint64NoValStruct] = None + time: Optional[V0042Uint32NoValStruct] = None + job: Optional[StrictStr] = Field(default=None, description="JobDefaults") + __properties: ClassVar[List[str]] = ["memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "time", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042PartitionInfoDefaults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042PartitionInfoDefaults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0042Uint64NoValStruct.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0042Uint64NoValStruct.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "time": V0042Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None, + "job": obj.get("job") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_partition_info_maximums.py b/slurmrest_python/models/v0042_partition_info_maximums.py new file mode 100644 index 0000000..9c2f5a9 --- /dev/null +++ b/slurmrest_python/models/v0042_partition_info_maximums.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_partition_info_maximums_oversubscribe import V0042PartitionInfoMaximumsOversubscribe +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042PartitionInfoMaximums(BaseModel): + """ + V0042PartitionInfoMaximums + """ # noqa: E501 + cpus_per_node: Optional[V0042Uint32NoValStruct] = None + cpus_per_socket: Optional[V0042Uint32NoValStruct] = None + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="MaxMemPerCPU or MaxMemPerNode") + partition_memory_per_cpu: Optional[V0042Uint64NoValStruct] = None + partition_memory_per_node: Optional[V0042Uint64NoValStruct] = None + nodes: Optional[V0042Uint32NoValStruct] = None + shares: Optional[StrictInt] = Field(default=None, description="OverSubscribe") + oversubscribe: Optional[V0042PartitionInfoMaximumsOversubscribe] = None + time: Optional[V0042Uint32NoValStruct] = None + over_time_limit: Optional[V0042Uint16NoValStruct] = None + __properties: ClassVar[List[str]] = ["cpus_per_node", "cpus_per_socket", "memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "nodes", "shares", "oversubscribe", "time", "over_time_limit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042PartitionInfoMaximums from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus_per_node + if self.cpus_per_node: + _dict['cpus_per_node'] = self.cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_socket + if self.cpus_per_socket: + _dict['cpus_per_socket'] = self.cpus_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of oversubscribe + if self.oversubscribe: + _dict['oversubscribe'] = self.oversubscribe.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of over_time_limit + if self.over_time_limit: + _dict['over_time_limit'] = self.over_time_limit.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042PartitionInfoMaximums from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpus_per_node": V0042Uint32NoValStruct.from_dict(obj["cpus_per_node"]) if obj.get("cpus_per_node") is not None else None, + "cpus_per_socket": V0042Uint32NoValStruct.from_dict(obj["cpus_per_socket"]) if obj.get("cpus_per_socket") is not None else None, + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0042Uint64NoValStruct.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0042Uint64NoValStruct.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "nodes": V0042Uint32NoValStruct.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "shares": obj.get("shares"), + "oversubscribe": V0042PartitionInfoMaximumsOversubscribe.from_dict(obj["oversubscribe"]) if obj.get("oversubscribe") is not None else None, + "time": V0042Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None, + "over_time_limit": V0042Uint16NoValStruct.from_dict(obj["over_time_limit"]) if obj.get("over_time_limit") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_partition_info_maximums_oversubscribe.py b/slurmrest_python/models/v0042_partition_info_maximums_oversubscribe.py new file mode 100644 index 0000000..3821532 --- /dev/null +++ b/slurmrest_python/models/v0042_partition_info_maximums_oversubscribe.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042PartitionInfoMaximumsOversubscribe(BaseModel): + """ + V0042PartitionInfoMaximumsOversubscribe + """ # noqa: E501 + jobs: Optional[StrictInt] = Field(default=None, description="Maximum number of jobs allowed to oversubscribe resources") + flags: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["jobs", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['force']): + raise ValueError("each list item must be one of ('force')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042PartitionInfoMaximumsOversubscribe from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042PartitionInfoMaximumsOversubscribe from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": obj.get("jobs"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_partition_info_partition.py b/slurmrest_python/models/v0042_partition_info_partition.py new file mode 100644 index 0000000..eb1971c --- /dev/null +++ b/slurmrest_python/models/v0042_partition_info_partition.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042PartitionInfoPartition(BaseModel): + """ + V0042PartitionInfoPartition + """ # noqa: E501 + state: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["state"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INACTIVE', 'UNKNOWN', 'UP', 'DOWN', 'DRAIN']): + raise ValueError("each list item must be one of ('INACTIVE', 'UNKNOWN', 'UP', 'DOWN', 'DRAIN')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042PartitionInfoPartition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042PartitionInfoPartition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "state": obj.get("state") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_partition_info_timeouts.py b/slurmrest_python/models/v0042_partition_info_timeouts.py new file mode 100644 index 0000000..1b6503e --- /dev/null +++ b/slurmrest_python/models/v0042_partition_info_timeouts.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042PartitionInfoTimeouts(BaseModel): + """ + V0042PartitionInfoTimeouts + """ # noqa: E501 + resume: Optional[V0042Uint16NoValStruct] = None + suspend: Optional[V0042Uint16NoValStruct] = None + __properties: ClassVar[List[str]] = ["resume", "suspend"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042PartitionInfoTimeouts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume + if self.resume: + _dict['resume'] = self.resume.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend + if self.suspend: + _dict['suspend'] = self.suspend.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042PartitionInfoTimeouts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resume": V0042Uint16NoValStruct.from_dict(obj["resume"]) if obj.get("resume") is not None else None, + "suspend": V0042Uint16NoValStruct.from_dict(obj["suspend"]) if obj.get("suspend") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_process_exit_code_verbose.py b/slurmrest_python/models/v0042_process_exit_code_verbose.py new file mode 100644 index 0000000..fc029da --- /dev/null +++ b/slurmrest_python/models/v0042_process_exit_code_verbose.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_process_exit_code_verbose_signal import V0042ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042ProcessExitCodeVerbose(BaseModel): + """ + V0042ProcessExitCodeVerbose + """ # noqa: E501 + status: Optional[List[StrictStr]] = None + return_code: Optional[V0042Uint32NoValStruct] = None + signal: Optional[V0042ProcessExitCodeVerboseSignal] = None + __properties: ClassVar[List[str]] = ["status", "return_code", "signal"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED']): + raise ValueError("each list item must be one of ('INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ProcessExitCodeVerbose from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of return_code + if self.return_code: + _dict['return_code'] = self.return_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of signal + if self.signal: + _dict['signal'] = self.signal.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ProcessExitCodeVerbose from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "return_code": V0042Uint32NoValStruct.from_dict(obj["return_code"]) if obj.get("return_code") is not None else None, + "signal": V0042ProcessExitCodeVerboseSignal.from_dict(obj["signal"]) if obj.get("signal") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_process_exit_code_verbose_signal.py b/slurmrest_python/models/v0042_process_exit_code_verbose_signal.py new file mode 100644 index 0000000..b8cdfad --- /dev/null +++ b/slurmrest_python/models/v0042_process_exit_code_verbose_signal.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042ProcessExitCodeVerboseSignal(BaseModel): + """ + V0042ProcessExitCodeVerboseSignal + """ # noqa: E501 + id: Optional[V0042Uint16NoValStruct] = None + name: Optional[StrictStr] = Field(default=None, description="Signal sent to process (name)") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ProcessExitCodeVerboseSignal from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ProcessExitCodeVerboseSignal from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": V0042Uint16NoValStruct.from_dict(obj["id"]) if obj.get("id") is not None else None, + "name": obj.get("name") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos.py b/slurmrest_python/models/v0042_qos.py new file mode 100644 index 0000000..212ca67 --- /dev/null +++ b/slurmrest_python/models/v0042_qos.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct +from slurmrest_python.models.v0042_qos_limits import V0042QosLimits +from slurmrest_python.models.v0042_qos_preempt import V0042QosPreempt +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042Qos(BaseModel): + """ + V0042Qos + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary description") + flags: Optional[List[StrictStr]] = None + id: Optional[StrictInt] = Field(default=None, description="Unique ID") + limits: Optional[V0042QosLimits] = None + name: Optional[StrictStr] = Field(default=None, description="Name") + preempt: Optional[V0042QosPreempt] = None + priority: Optional[V0042Uint32NoValStruct] = None + usage_factor: Optional[V0042Float64NoValStruct] = None + usage_threshold: Optional[V0042Float64NoValStruct] = None + __properties: ClassVar[List[str]] = ["description", "flags", "id", "limits", "name", "preempt", "priority", "usage_factor", "usage_threshold"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'ADD', 'REMOVE', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE']): + raise ValueError("each list item must be one of ('NOT_SET', 'ADD', 'REMOVE', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Qos from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt + if self.preempt: + _dict['preempt'] = self.preempt.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_factor + if self.usage_factor: + _dict['usage_factor'] = self.usage_factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_threshold + if self.usage_threshold: + _dict['usage_threshold'] = self.usage_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Qos from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "flags": obj.get("flags"), + "id": obj.get("id"), + "limits": V0042QosLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "name": obj.get("name"), + "preempt": V0042QosPreempt.from_dict(obj["preempt"]) if obj.get("preempt") is not None else None, + "priority": V0042Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "usage_factor": V0042Float64NoValStruct.from_dict(obj["usage_factor"]) if obj.get("usage_factor") is not None else None, + "usage_threshold": V0042Float64NoValStruct.from_dict(obj["usage_threshold"]) if obj.get("usage_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits.py b/slurmrest_python/models/v0042_qos_limits.py new file mode 100644 index 0000000..dac877e --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct +from slurmrest_python.models.v0042_qos_limits_max import V0042QosLimitsMax +from slurmrest_python.models.v0042_qos_limits_min import V0042QosLimitsMin +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimits(BaseModel): + """ + V0042QosLimits + """ # noqa: E501 + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime") + max: Optional[V0042QosLimitsMax] = None + factor: Optional[V0042Float64NoValStruct] = None + min: Optional[V0042QosLimitsMin] = None + __properties: ClassVar[List[str]] = ["grace_time", "max", "factor", "min"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of factor + if self.factor: + _dict['factor'] = self.factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "grace_time": obj.get("grace_time"), + "max": V0042QosLimitsMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "factor": V0042Float64NoValStruct.from_dict(obj["factor"]) if obj.get("factor") is not None else None, + "min": V0042QosLimitsMin.from_dict(obj["min"]) if obj.get("min") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max.py b/slurmrest_python/models/v0042_qos_limits_max.py new file mode 100644 index 0000000..0a86a8a --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_max_active_jobs import V0042QosLimitsMaxActiveJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs import V0042QosLimitsMaxJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs import V0042QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0042_qos_limits_max_tres import V0042QosLimitsMaxTres +from slurmrest_python.models.v0042_qos_limits_max_wall_clock import V0042QosLimitsMaxWallClock +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMax(BaseModel): + """ + V0042QosLimitsMax + """ # noqa: E501 + active_jobs: Optional[V0042QosLimitsMaxActiveJobs] = None + jobs: Optional[V0042QosLimitsMaxJobs] = None + tres: Optional[V0042QosLimitsMaxTres] = None + wall_clock: Optional[V0042QosLimitsMaxWallClock] = None + accruing: Optional[V0042QosLimitsMaxJobsActiveJobs] = None + __properties: ClassVar[List[str]] = ["active_jobs", "jobs", "tres", "wall_clock", "accruing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "active_jobs": V0042QosLimitsMaxActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "jobs": V0042QosLimitsMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "tres": V0042QosLimitsMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "wall_clock": V0042QosLimitsMaxWallClock.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None, + "accruing": V0042QosLimitsMaxJobsActiveJobs.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_active_jobs.py b/slurmrest_python/models/v0042_qos_limits_max_active_jobs.py new file mode 100644 index 0000000..c2ecaf0 --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_active_jobs.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxActiveJobs(BaseModel): + """ + V0042QosLimitsMaxActiveJobs + """ # noqa: E501 + accruing: Optional[V0042Uint32NoValStruct] = None + count: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["accruing", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accruing": V0042Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "count": V0042Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_jobs.py b/slurmrest_python/models/v0042_qos_limits_max_jobs.py new file mode 100644 index 0000000..e30de23 --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_jobs.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs import V0042QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs_per import V0042QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxJobs(BaseModel): + """ + V0042QosLimitsMaxJobs + """ # noqa: E501 + count: Optional[V0042Uint32NoValStruct] = None + active_jobs: Optional[V0042QosLimitsMaxJobsActiveJobs] = None + per: Optional[V0042QosLimitsMaxJobsActiveJobsPer] = None + __properties: ClassVar[List[str]] = ["count", "active_jobs", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": V0042Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None, + "active_jobs": V0042QosLimitsMaxJobsActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "per": V0042QosLimitsMaxJobsActiveJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs.py b/slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..45a0d8d --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs_per import V0042QosLimitsMaxJobsActiveJobsPer +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxJobsActiveJobs(BaseModel): + """ + V0042QosLimitsMaxJobsActiveJobs + """ # noqa: E501 + per: Optional[V0042QosLimitsMaxJobsActiveJobsPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxJobsActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxJobsActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0042QosLimitsMaxJobsActiveJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs_per.py b/slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..d7385d2 --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxJobsActiveJobsPer(BaseModel): + """ + V0042QosLimitsMaxJobsActiveJobsPer + """ # noqa: E501 + account: Optional[V0042Uint32NoValStruct] = None + user: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxJobsActiveJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxJobsActiveJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0042Uint32NoValStruct.from_dict(obj["account"]) if obj.get("account") is not None else None, + "user": V0042Uint32NoValStruct.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_tres.py b/slurmrest_python/models/v0042_qos_limits_max_tres.py new file mode 100644 index 0000000..3536198 --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes import V0042QosLimitsMaxTresMinutes +from slurmrest_python.models.v0042_qos_limits_max_tres_per import V0042QosLimitsMaxTresPer +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxTres(BaseModel): + """ + V0042QosLimitsMaxTres + """ # noqa: E501 + total: Optional[List[V0042Tres]] = None + minutes: Optional[V0042QosLimitsMaxTresMinutes] = None + per: Optional[V0042QosLimitsMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0042Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "minutes": V0042QosLimitsMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0042QosLimitsMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_tres_minutes.py b/slurmrest_python/models/v0042_qos_limits_max_tres_minutes.py new file mode 100644 index 0000000..84d5bb3 --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_tres_minutes.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes_per import V0042QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxTresMinutes(BaseModel): + """ + V0042QosLimitsMaxTresMinutes + """ # noqa: E501 + total: Optional[List[V0042Tres]] = None + per: Optional[V0042QosLimitsMaxTresMinutesPer] = None + __properties: ClassVar[List[str]] = ["total", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0042Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "per": V0042QosLimitsMaxTresMinutesPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_tres_minutes_per.py b/slurmrest_python/models/v0042_qos_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..c118b39 --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_tres_minutes_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxTresMinutesPer(BaseModel): + """ + V0042QosLimitsMaxTresMinutesPer + """ # noqa: E501 + qos: Optional[List[V0042Tres]] = None + job: Optional[List[V0042Tres]] = None + account: Optional[List[V0042Tres]] = None + user: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["qos", "job", "account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTresMinutesPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTresMinutesPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0042Tres.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "job": [V0042Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "account": [V0042Tres.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "user": [V0042Tres.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_tres_per.py b/slurmrest_python/models/v0042_qos_limits_max_tres_per.py new file mode 100644 index 0000000..597f0aa --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_tres_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxTresPer(BaseModel): + """ + V0042QosLimitsMaxTresPer + """ # noqa: E501 + account: Optional[List[V0042Tres]] = None + job: Optional[List[V0042Tres]] = None + node: Optional[List[V0042Tres]] = None + user: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["account", "job", "node", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": [V0042Tres.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "job": [V0042Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0042Tres.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None, + "user": [V0042Tres.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_wall_clock.py b/slurmrest_python/models/v0042_qos_limits_max_wall_clock.py new file mode 100644 index 0000000..74de718 --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_wall_clock.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_max_wall_clock_per import V0042QosLimitsMaxWallClockPer +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxWallClock(BaseModel): + """ + V0042QosLimitsMaxWallClock + """ # noqa: E501 + per: Optional[V0042QosLimitsMaxWallClockPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxWallClock from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxWallClock from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0042QosLimitsMaxWallClockPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_max_wall_clock_per.py b/slurmrest_python/models/v0042_qos_limits_max_wall_clock_per.py new file mode 100644 index 0000000..07343ca --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_max_wall_clock_per.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMaxWallClockPer(BaseModel): + """ + V0042QosLimitsMaxWallClockPer + """ # noqa: E501 + qos: Optional[V0042Uint32NoValStruct] = None + job: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["qos", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxWallClockPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMaxWallClockPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": V0042Uint32NoValStruct.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "job": V0042Uint32NoValStruct.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_min.py b/slurmrest_python/models/v0042_qos_limits_min.py new file mode 100644 index 0000000..98e0d2b --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_min.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_min_tres import V0042QosLimitsMinTres +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMin(BaseModel): + """ + V0042QosLimitsMin + """ # noqa: E501 + priority_threshold: Optional[V0042Uint32NoValStruct] = None + tres: Optional[V0042QosLimitsMinTres] = None + __properties: ClassVar[List[str]] = ["priority_threshold", "tres"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0042Uint32NoValStruct.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None, + "tres": V0042QosLimitsMinTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_min_tres.py b/slurmrest_python/models/v0042_qos_limits_min_tres.py new file mode 100644 index 0000000..a72581c --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_min_tres.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_qos_limits_min_tres_per import V0042QosLimitsMinTresPer +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMinTres(BaseModel): + """ + V0042QosLimitsMinTres + """ # noqa: E501 + per: Optional[V0042QosLimitsMinTresPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMinTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMinTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0042QosLimitsMinTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_limits_min_tres_per.py b/slurmrest_python/models/v0042_qos_limits_min_tres_per.py new file mode 100644 index 0000000..5cd7bfb --- /dev/null +++ b/slurmrest_python/models/v0042_qos_limits_min_tres_per.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosLimitsMinTresPer(BaseModel): + """ + V0042QosLimitsMinTresPer + """ # noqa: E501 + job: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosLimitsMinTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosLimitsMinTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0042Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_qos_preempt.py b/slurmrest_python/models/v0042_qos_preempt.py new file mode 100644 index 0000000..95ee1dd --- /dev/null +++ b/slurmrest_python/models/v0042_qos_preempt.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042QosPreempt(BaseModel): + """ + V0042QosPreempt + """ # noqa: E501 + list: Optional[List[StrictStr]] = None + mode: Optional[List[StrictStr]] = None + exempt_time: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["list", "mode", "exempt_time"] + + @field_validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG']): + raise ValueError("each list item must be one of ('DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042QosPreempt from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of exempt_time + if self.exempt_time: + _dict['exempt_time'] = self.exempt_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042QosPreempt from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "list": obj.get("list"), + "mode": obj.get("mode"), + "exempt_time": V0042Uint32NoValStruct.from_dict(obj["exempt_time"]) if obj.get("exempt_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_reservation_core_spec.py b/slurmrest_python/models/v0042_reservation_core_spec.py new file mode 100644 index 0000000..d7e9b03 --- /dev/null +++ b/slurmrest_python/models/v0042_reservation_core_spec.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042ReservationCoreSpec(BaseModel): + """ + V0042ReservationCoreSpec + """ # noqa: E501 + node: Optional[StrictStr] = Field(default=None, description="Name of reserved node") + core: Optional[StrictStr] = Field(default=None, description="IDs of reserved cores") + __properties: ClassVar[List[str]] = ["node", "core"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ReservationCoreSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ReservationCoreSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "node": obj.get("node"), + "core": obj.get("core") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_reservation_info.py b/slurmrest_python/models/v0042_reservation_info.py new file mode 100644 index 0000000..99f7fb9 --- /dev/null +++ b/slurmrest_python/models/v0042_reservation_info.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_reservation_core_spec import V0042ReservationCoreSpec +from slurmrest_python.models.v0042_reservation_info_purge_completed import V0042ReservationInfoPurgeCompleted +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042ReservationInfo(BaseModel): + """ + V0042ReservationInfo + """ # noqa: E501 + accounts: Optional[StrictStr] = Field(default=None, description="Comma separated list of permitted accounts") + burst_buffer: Optional[StrictStr] = Field(default=None, description="BurstBuffer") + core_count: Optional[StrictInt] = Field(default=None, description="CoreCnt") + core_specializations: Optional[List[V0042ReservationCoreSpec]] = None + end_time: Optional[V0042Uint64NoValStruct] = None + features: Optional[StrictStr] = Field(default=None, description="Features") + flags: Optional[List[StrictStr]] = None + groups: Optional[StrictStr] = Field(default=None, description="Groups") + licenses: Optional[StrictStr] = Field(default=None, description="Licenses") + max_start_delay: Optional[StrictInt] = Field(default=None, description="MaxStartDelay in seconds") + name: Optional[StrictStr] = Field(default=None, description="ReservationName") + node_count: Optional[StrictInt] = Field(default=None, description="NodeCnt") + node_list: Optional[StrictStr] = Field(default=None, description="Nodes") + partition: Optional[StrictStr] = Field(default=None, description="PartitionName") + purge_completed: Optional[V0042ReservationInfoPurgeCompleted] = None + start_time: Optional[V0042Uint64NoValStruct] = None + watts: Optional[V0042Uint32NoValStruct] = None + tres: Optional[StrictStr] = Field(default=None, description="Comma separated list of required TRES") + users: Optional[StrictStr] = Field(default=None, description="Comma separated list of permitted users") + __properties: ClassVar[List[str]] = ["accounts", "burst_buffer", "core_count", "core_specializations", "end_time", "features", "flags", "groups", "licenses", "max_start_delay", "name", "node_count", "node_list", "partition", "purge_completed", "start_time", "watts", "tres", "users"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING']): + raise ValueError("each list item must be one of ('MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ReservationInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in core_specializations (list) + _items = [] + if self.core_specializations: + for _item_core_specializations in self.core_specializations: + if _item_core_specializations: + _items.append(_item_core_specializations.to_dict()) + _dict['core_specializations'] = _items + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of purge_completed + if self.purge_completed: + _dict['purge_completed'] = self.purge_completed.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of watts + if self.watts: + _dict['watts'] = self.watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ReservationInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "burst_buffer": obj.get("burst_buffer"), + "core_count": obj.get("core_count"), + "core_specializations": [V0042ReservationCoreSpec.from_dict(_item) for _item in obj["core_specializations"]] if obj.get("core_specializations") is not None else None, + "end_time": V0042Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "features": obj.get("features"), + "flags": obj.get("flags"), + "groups": obj.get("groups"), + "licenses": obj.get("licenses"), + "max_start_delay": obj.get("max_start_delay"), + "name": obj.get("name"), + "node_count": obj.get("node_count"), + "node_list": obj.get("node_list"), + "partition": obj.get("partition"), + "purge_completed": V0042ReservationInfoPurgeCompleted.from_dict(obj["purge_completed"]) if obj.get("purge_completed") is not None else None, + "start_time": V0042Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "watts": V0042Uint32NoValStruct.from_dict(obj["watts"]) if obj.get("watts") is not None else None, + "tres": obj.get("tres"), + "users": obj.get("users") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_reservation_info_purge_completed.py b/slurmrest_python/models/v0042_reservation_info_purge_completed.py new file mode 100644 index 0000000..b7e9beb --- /dev/null +++ b/slurmrest_python/models/v0042_reservation_info_purge_completed.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042ReservationInfoPurgeCompleted(BaseModel): + """ + V0042ReservationInfoPurgeCompleted + """ # noqa: E501 + time: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ReservationInfoPurgeCompleted from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ReservationInfoPurgeCompleted from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0042Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_rollup_stats.py b/slurmrest_python/models/v0042_rollup_stats.py new file mode 100644 index 0000000..31685e3 --- /dev/null +++ b/slurmrest_python/models/v0042_rollup_stats.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly +from typing import Optional, Set +from typing_extensions import Self + +class V0042RollupStats(BaseModel): + """ + V0042RollupStats + """ # noqa: E501 + hourly: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly] = None + daily: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily] = None + monthly: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly] = None + __properties: ClassVar[List[str]] = ["hourly", "daily", "monthly"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042RollupStats from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of hourly + if self.hourly: + _dict['hourly'] = self.hourly.to_dict() + # override the default output from pydantic by calling `to_dict()` of daily + if self.daily: + _dict['daily'] = self.daily.to_dict() + # override the default output from pydantic by calling `to_dict()` of monthly + if self.monthly: + _dict['monthly'] = self.monthly.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042RollupStats from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hourly": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly.from_dict(obj["hourly"]) if obj.get("hourly") is not None else None, + "daily": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily.from_dict(obj["daily"]) if obj.get("daily") is not None else None, + "monthly": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly.from_dict(obj["monthly"]) if obj.get("monthly") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_schedule_exit_fields.py b/slurmrest_python/models/v0042_schedule_exit_fields.py new file mode 100644 index 0000000..2b8b6f8 --- /dev/null +++ b/slurmrest_python/models/v0042_schedule_exit_fields.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042ScheduleExitFields(BaseModel): + """ + V0042ScheduleExitFields + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + default_queue_depth: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + max_rpc_cnt: Optional[StrictInt] = Field(default=None, description="Reached RPC limit") + max_sched_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + licenses: Optional[StrictInt] = Field(default=None, description="Blocked on licenses") + __properties: ClassVar[List[str]] = ["end_job_queue", "default_queue_depth", "max_job_start", "max_rpc_cnt", "max_sched_time", "licenses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042ScheduleExitFields from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042ScheduleExitFields from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "default_queue_depth": obj.get("default_queue_depth"), + "max_job_start": obj.get("max_job_start"), + "max_rpc_cnt": obj.get("max_rpc_cnt"), + "max_sched_time": obj.get("max_sched_time"), + "licenses": obj.get("licenses") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_shares_float128_tres.py b/slurmrest_python/models/v0042_shares_float128_tres.py new file mode 100644 index 0000000..0ff29ea --- /dev/null +++ b/slurmrest_python/models/v0042_shares_float128_tres.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0042SharesFloat128Tres(BaseModel): + """ + V0042SharesFloat128Tres + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="TRES value") + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042SharesFloat128Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042SharesFloat128Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": obj.get("value") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_shares_resp_msg.py b/slurmrest_python/models/v0042_shares_resp_msg.py new file mode 100644 index 0000000..25f4938 --- /dev/null +++ b/slurmrest_python/models/v0042_shares_resp_msg.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_shares_obj_wrap import V0042AssocSharesObjWrap +from typing import Optional, Set +from typing_extensions import Self + +class V0042SharesRespMsg(BaseModel): + """ + V0042SharesRespMsg + """ # noqa: E501 + shares: Optional[List[V0042AssocSharesObjWrap]] = None + total_shares: Optional[StrictInt] = Field(default=None, description="Total number of shares") + __properties: ClassVar[List[str]] = ["shares", "total_shares"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042SharesRespMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in shares (list) + _items = [] + if self.shares: + for _item_shares in self.shares: + if _item_shares: + _items.append(_item_shares.to_dict()) + _dict['shares'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042SharesRespMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": [V0042AssocSharesObjWrap.from_dict(_item) for _item in obj["shares"]] if obj.get("shares") is not None else None, + "total_shares": obj.get("total_shares") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_shares_uint64_tres.py b/slurmrest_python/models/v0042_shares_uint64_tres.py new file mode 100644 index 0000000..3b4e5a5 --- /dev/null +++ b/slurmrest_python/models/v0042_shares_uint64_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042SharesUint64Tres(BaseModel): + """ + V0042SharesUint64Tres + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[V0042Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042SharesUint64Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict['value'] = self.value.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042SharesUint64Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": V0042Uint64NoValStruct.from_dict(obj["value"]) if obj.get("value") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_slurmdbd_ping.py b/slurmrest_python/models/v0042_slurmdbd_ping.py new file mode 100644 index 0000000..6926197 --- /dev/null +++ b/slurmrest_python/models/v0042_slurmdbd_ping.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0042SlurmdbdPing(BaseModel): + """ + V0042SlurmdbdPing + """ # noqa: E501 + hostname: StrictStr = Field(description="Target for ping") + responding: StrictBool = Field(description="If ping RPC responded with pong from slurmdbd") + latency: StrictInt = Field(description="Number of microseconds it took to successfully ping or timeout") + primary: StrictBool = Field(description="Is responding slurmdbd the primary controller") + __properties: ClassVar[List[str]] = ["hostname", "responding", "latency", "primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042SlurmdbdPing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042SlurmdbdPing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "responding": obj.get("responding"), + "latency": obj.get("latency"), + "primary": obj.get("primary") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_msg.py b/slurmrest_python/models/v0042_stats_msg.py new file mode 100644 index 0000000..d3c8d99 --- /dev/null +++ b/slurmrest_python/models/v0042_stats_msg.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_bf_exit_fields import V0042BfExitFields +from slurmrest_python.models.v0042_schedule_exit_fields import V0042ScheduleExitFields +from slurmrest_python.models.v0042_stats_msg_rpc_dump import V0042StatsMsgRpcDump +from slurmrest_python.models.v0042_stats_msg_rpc_queue import V0042StatsMsgRpcQueue +from slurmrest_python.models.v0042_stats_msg_rpc_type import V0042StatsMsgRpcType +from slurmrest_python.models.v0042_stats_msg_rpc_user import V0042StatsMsgRpcUser +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsMsg(BaseModel): + """ + V0042StatsMsg + """ # noqa: E501 + parts_packed: Optional[StrictInt] = Field(default=None, description="Zero if only RPC statistic included") + req_time: Optional[V0042Uint64NoValStruct] = None + req_time_start: Optional[V0042Uint64NoValStruct] = None + server_thread_count: Optional[StrictInt] = Field(default=None, description="Number of current active slurmctld threads") + agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of enqueued outgoing RPC requests in an internal retry list") + agent_count: Optional[StrictInt] = Field(default=None, description="Number of agent threads") + agent_thread_count: Optional[StrictInt] = Field(default=None, description="Total number of active threads created by all agent threads") + dbd_agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of messages for SlurmDBD that are queued") + gettimeofday_latency: Optional[StrictInt] = Field(default=None, description="Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup") + schedule_cycle_max: Optional[StrictInt] = Field(default=None, description="Max time of any scheduling cycle in microseconds since last reset") + schedule_cycle_last: Optional[StrictInt] = Field(default=None, description="Time in microseconds for last scheduling cycle") + schedule_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total run time in microseconds for all scheduling cycles since last reset") + schedule_cycle_total: Optional[StrictInt] = Field(default=None, description="Number of scheduling cycles since last reset") + schedule_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds for all scheduling cycles since last reset") + schedule_cycle_mean_depth: Optional[StrictInt] = Field(default=None, description="Mean of the number of jobs processed in a scheduling cycle") + schedule_cycle_per_minute: Optional[StrictInt] = Field(default=None, description="Number of scheduling executions per minute") + schedule_cycle_depth: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed in scheduling cycles") + schedule_exit: Optional[V0042ScheduleExitFields] = None + schedule_queue_length: Optional[StrictInt] = Field(default=None, description="Number of jobs pending in queue") + jobs_submitted: Optional[StrictInt] = Field(default=None, description="Number of jobs submitted since last reset") + jobs_started: Optional[StrictInt] = Field(default=None, description="Number of jobs started since last reset") + jobs_completed: Optional[StrictInt] = Field(default=None, description="Number of jobs completed since last reset") + jobs_canceled: Optional[StrictInt] = Field(default=None, description="Number of jobs canceled since the last reset") + jobs_failed: Optional[StrictInt] = Field(default=None, description="Number of jobs failed due to slurmd or other internal issues since last reset") + jobs_pending: Optional[StrictInt] = Field(default=None, description="Number of jobs pending at the time of listed in job_state_ts") + jobs_running: Optional[StrictInt] = Field(default=None, description="Number of jobs running at the time of listed in job_state_ts") + job_states_ts: Optional[V0042Uint64NoValStruct] = None + bf_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last slurm start") + bf_last_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last reset") + bf_backfilled_het_jobs: Optional[StrictInt] = Field(default=None, description="Number of heterogeneous job components started through backfilling since last Slurm start") + bf_cycle_counter: Optional[StrictInt] = Field(default=None, description="Number of backfill scheduling cycles since last reset") + bf_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds of backfilling scheduling cycles since last reset") + bf_depth_mean: Optional[StrictInt] = Field(default=None, description="Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_mean_try: Optional[StrictInt] = Field(default=None, description="The subset of Depth Mean that the backfill scheduler attempted to schedule") + bf_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total time in microseconds of backfilling scheduling cycles since last reset") + bf_cycle_last: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of last backfill scheduling cycle") + bf_cycle_max: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of longest backfill scheduling cycle") + bf_exit: Optional[V0042BfExitFields] = None + bf_last_depth: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle") + bf_last_depth_try: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources") + bf_depth_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_try_sum: Optional[StrictInt] = Field(default=None, description="Subset of bf_depth_sum that the backfill scheduler attempted to schedule") + bf_queue_len: Optional[StrictInt] = Field(default=None, description="Number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_mean: Optional[StrictInt] = Field(default=None, description="Mean number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs pending to be processed by backfilling algorithm since last reset") + bf_table_size: Optional[StrictInt] = Field(default=None, description="Number of different time slots tested by the backfill scheduler in its last iteration") + bf_table_size_sum: Optional[StrictInt] = Field(default=None, description="Total number of different time slots tested by the backfill scheduler") + bf_table_size_mean: Optional[StrictInt] = Field(default=None, description="Mean number of different time slots tested by the backfill scheduler") + bf_when_last_cycle: Optional[V0042Uint64NoValStruct] = None + bf_active: Optional[StrictBool] = Field(default=None, description="Backfill scheduler currently running") + rpcs_by_message_type: Optional[List[V0042StatsMsgRpcType]] = Field(default=None, description="RPCs by type") + rpcs_by_user: Optional[List[V0042StatsMsgRpcUser]] = Field(default=None, description="RPCs by user") + pending_rpcs: Optional[List[V0042StatsMsgRpcQueue]] = Field(default=None, description="Pending RPCs") + pending_rpcs_by_hostlist: Optional[List[V0042StatsMsgRpcDump]] = Field(default=None, description="Pending RPCs by hostlist") + __properties: ClassVar[List[str]] = ["parts_packed", "req_time", "req_time_start", "server_thread_count", "agent_queue_size", "agent_count", "agent_thread_count", "dbd_agent_queue_size", "gettimeofday_latency", "schedule_cycle_max", "schedule_cycle_last", "schedule_cycle_sum", "schedule_cycle_total", "schedule_cycle_mean", "schedule_cycle_mean_depth", "schedule_cycle_per_minute", "schedule_cycle_depth", "schedule_exit", "schedule_queue_length", "jobs_submitted", "jobs_started", "jobs_completed", "jobs_canceled", "jobs_failed", "jobs_pending", "jobs_running", "job_states_ts", "bf_backfilled_jobs", "bf_last_backfilled_jobs", "bf_backfilled_het_jobs", "bf_cycle_counter", "bf_cycle_mean", "bf_depth_mean", "bf_depth_mean_try", "bf_cycle_sum", "bf_cycle_last", "bf_cycle_max", "bf_exit", "bf_last_depth", "bf_last_depth_try", "bf_depth_sum", "bf_depth_try_sum", "bf_queue_len", "bf_queue_len_mean", "bf_queue_len_sum", "bf_table_size", "bf_table_size_sum", "bf_table_size_mean", "bf_when_last_cycle", "bf_active", "rpcs_by_message_type", "rpcs_by_user", "pending_rpcs", "pending_rpcs_by_hostlist"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of req_time + if self.req_time: + _dict['req_time'] = self.req_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of req_time_start + if self.req_time_start: + _dict['req_time_start'] = self.req_time_start.to_dict() + # override the default output from pydantic by calling `to_dict()` of schedule_exit + if self.schedule_exit: + _dict['schedule_exit'] = self.schedule_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_states_ts + if self.job_states_ts: + _dict['job_states_ts'] = self.job_states_ts.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_exit + if self.bf_exit: + _dict['bf_exit'] = self.bf_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_when_last_cycle + if self.bf_when_last_cycle: + _dict['bf_when_last_cycle'] = self.bf_when_last_cycle.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_message_type (list) + _items = [] + if self.rpcs_by_message_type: + for _item_rpcs_by_message_type in self.rpcs_by_message_type: + if _item_rpcs_by_message_type: + _items.append(_item_rpcs_by_message_type.to_dict()) + _dict['rpcs_by_message_type'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_user (list) + _items = [] + if self.rpcs_by_user: + for _item_rpcs_by_user in self.rpcs_by_user: + if _item_rpcs_by_user: + _items.append(_item_rpcs_by_user.to_dict()) + _dict['rpcs_by_user'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs (list) + _items = [] + if self.pending_rpcs: + for _item_pending_rpcs in self.pending_rpcs: + if _item_pending_rpcs: + _items.append(_item_pending_rpcs.to_dict()) + _dict['pending_rpcs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs_by_hostlist (list) + _items = [] + if self.pending_rpcs_by_hostlist: + for _item_pending_rpcs_by_hostlist in self.pending_rpcs_by_hostlist: + if _item_pending_rpcs_by_hostlist: + _items.append(_item_pending_rpcs_by_hostlist.to_dict()) + _dict['pending_rpcs_by_hostlist'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parts_packed": obj.get("parts_packed"), + "req_time": V0042Uint64NoValStruct.from_dict(obj["req_time"]) if obj.get("req_time") is not None else None, + "req_time_start": V0042Uint64NoValStruct.from_dict(obj["req_time_start"]) if obj.get("req_time_start") is not None else None, + "server_thread_count": obj.get("server_thread_count"), + "agent_queue_size": obj.get("agent_queue_size"), + "agent_count": obj.get("agent_count"), + "agent_thread_count": obj.get("agent_thread_count"), + "dbd_agent_queue_size": obj.get("dbd_agent_queue_size"), + "gettimeofday_latency": obj.get("gettimeofday_latency"), + "schedule_cycle_max": obj.get("schedule_cycle_max"), + "schedule_cycle_last": obj.get("schedule_cycle_last"), + "schedule_cycle_sum": obj.get("schedule_cycle_sum"), + "schedule_cycle_total": obj.get("schedule_cycle_total"), + "schedule_cycle_mean": obj.get("schedule_cycle_mean"), + "schedule_cycle_mean_depth": obj.get("schedule_cycle_mean_depth"), + "schedule_cycle_per_minute": obj.get("schedule_cycle_per_minute"), + "schedule_cycle_depth": obj.get("schedule_cycle_depth"), + "schedule_exit": V0042ScheduleExitFields.from_dict(obj["schedule_exit"]) if obj.get("schedule_exit") is not None else None, + "schedule_queue_length": obj.get("schedule_queue_length"), + "jobs_submitted": obj.get("jobs_submitted"), + "jobs_started": obj.get("jobs_started"), + "jobs_completed": obj.get("jobs_completed"), + "jobs_canceled": obj.get("jobs_canceled"), + "jobs_failed": obj.get("jobs_failed"), + "jobs_pending": obj.get("jobs_pending"), + "jobs_running": obj.get("jobs_running"), + "job_states_ts": V0042Uint64NoValStruct.from_dict(obj["job_states_ts"]) if obj.get("job_states_ts") is not None else None, + "bf_backfilled_jobs": obj.get("bf_backfilled_jobs"), + "bf_last_backfilled_jobs": obj.get("bf_last_backfilled_jobs"), + "bf_backfilled_het_jobs": obj.get("bf_backfilled_het_jobs"), + "bf_cycle_counter": obj.get("bf_cycle_counter"), + "bf_cycle_mean": obj.get("bf_cycle_mean"), + "bf_depth_mean": obj.get("bf_depth_mean"), + "bf_depth_mean_try": obj.get("bf_depth_mean_try"), + "bf_cycle_sum": obj.get("bf_cycle_sum"), + "bf_cycle_last": obj.get("bf_cycle_last"), + "bf_cycle_max": obj.get("bf_cycle_max"), + "bf_exit": V0042BfExitFields.from_dict(obj["bf_exit"]) if obj.get("bf_exit") is not None else None, + "bf_last_depth": obj.get("bf_last_depth"), + "bf_last_depth_try": obj.get("bf_last_depth_try"), + "bf_depth_sum": obj.get("bf_depth_sum"), + "bf_depth_try_sum": obj.get("bf_depth_try_sum"), + "bf_queue_len": obj.get("bf_queue_len"), + "bf_queue_len_mean": obj.get("bf_queue_len_mean"), + "bf_queue_len_sum": obj.get("bf_queue_len_sum"), + "bf_table_size": obj.get("bf_table_size"), + "bf_table_size_sum": obj.get("bf_table_size_sum"), + "bf_table_size_mean": obj.get("bf_table_size_mean"), + "bf_when_last_cycle": V0042Uint64NoValStruct.from_dict(obj["bf_when_last_cycle"]) if obj.get("bf_when_last_cycle") is not None else None, + "bf_active": obj.get("bf_active"), + "rpcs_by_message_type": [V0042StatsMsgRpcType.from_dict(_item) for _item in obj["rpcs_by_message_type"]] if obj.get("rpcs_by_message_type") is not None else None, + "rpcs_by_user": [V0042StatsMsgRpcUser.from_dict(_item) for _item in obj["rpcs_by_user"]] if obj.get("rpcs_by_user") is not None else None, + "pending_rpcs": [V0042StatsMsgRpcQueue.from_dict(_item) for _item in obj["pending_rpcs"]] if obj.get("pending_rpcs") is not None else None, + "pending_rpcs_by_hostlist": [V0042StatsMsgRpcDump.from_dict(_item) for _item in obj["pending_rpcs_by_hostlist"]] if obj.get("pending_rpcs_by_hostlist") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_msg_rpc_dump.py b/slurmrest_python/models/v0042_stats_msg_rpc_dump.py new file mode 100644 index 0000000..9e08561 --- /dev/null +++ b/slurmrest_python/models/v0042_stats_msg_rpc_dump.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsMsgRpcDump(BaseModel): + """ + V0042StatsMsgRpcDump + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string") + count: List[StrictStr] + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcDump from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcDump from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_msg_rpc_queue.py b/slurmrest_python/models/v0042_stats_msg_rpc_queue.py new file mode 100644 index 0000000..c79e69a --- /dev/null +++ b/slurmrest_python/models/v0042_stats_msg_rpc_queue.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsMsgRpcQueue(BaseModel): + """ + V0042StatsMsgRpcQueue + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string") + count: StrictInt = Field(description="Number of pending RPCs queued") + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcQueue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcQueue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_msg_rpc_type.py b/slurmrest_python/models/v0042_stats_msg_rpc_type.py new file mode 100644 index 0000000..8c066b8 --- /dev/null +++ b/slurmrest_python/models/v0042_stats_msg_rpc_type.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsMsgRpcType(BaseModel): + """ + V0042StatsMsgRpcType + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string") + count: StrictInt = Field(description="Number of RPCs received") + queued: StrictInt = Field(description="Number of RPCs queued") + dropped: StrictInt = Field(description="Number of RPCs dropped") + cycle_last: StrictInt = Field(description="Number of RPCs processed within the last RPC queue cycle") + cycle_max: StrictInt = Field(description="Maximum number of RPCs processed within a RPC queue cycle since start") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0042Uint64NoValStruct + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count", "queued", "dropped", "cycle_last", "cycle_max", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcType from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcType from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count"), + "queued": obj.get("queued"), + "dropped": obj.get("dropped"), + "cycle_last": obj.get("cycle_last"), + "cycle_max": obj.get("cycle_max"), + "total_time": obj.get("total_time"), + "average_time": V0042Uint64NoValStruct.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_msg_rpc_user.py b/slurmrest_python/models/v0042_stats_msg_rpc_user.py new file mode 100644 index 0000000..9ba6899 --- /dev/null +++ b/slurmrest_python/models/v0042_stats_msg_rpc_user.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsMsgRpcUser(BaseModel): + """ + V0042StatsMsgRpcUser + """ # noqa: E501 + user_id: StrictInt = Field(description="User ID (numeric)") + user: StrictStr = Field(description="User name") + count: StrictInt = Field(description="Number of RPCs received") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0042Uint64NoValStruct + __properties: ClassVar[List[str]] = ["user_id", "user", "count", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsMsgRpcUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_id": obj.get("user_id"), + "user": obj.get("user"), + "count": obj.get("count"), + "total_time": obj.get("total_time"), + "average_time": V0042Uint64NoValStruct.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_rec.py b/slurmrest_python/models/v0042_stats_rec.py new file mode 100644 index 0000000..3a0ed74 --- /dev/null +++ b/slurmrest_python/models/v0042_stats_rec.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_rollup_stats import V0042RollupStats +from slurmrest_python.models.v0042_stats_rpc import V0042StatsRpc +from slurmrest_python.models.v0042_stats_user import V0042StatsUser +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsRec(BaseModel): + """ + V0042StatsRec + """ # noqa: E501 + time_start: Optional[StrictInt] = Field(default=None, description="When data collection started (UNIX timestamp)") + rollups: Optional[V0042RollupStats] = None + rpcs: Optional[List[V0042StatsRpc]] = Field(default=None, alias="RPCs") + users: Optional[List[V0042StatsUser]] = None + __properties: ClassVar[List[str]] = ["time_start", "rollups", "RPCs", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsRec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rollups + if self.rollups: + _dict['rollups'] = self.rollups.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs (list) + _items = [] + if self.rpcs: + for _item_rpcs in self.rpcs: + if _item_rpcs: + _items.append(_item_rpcs.to_dict()) + _dict['RPCs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsRec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time_start": obj.get("time_start"), + "rollups": V0042RollupStats.from_dict(obj["rollups"]) if obj.get("rollups") is not None else None, + "RPCs": [V0042StatsRpc.from_dict(_item) for _item in obj["RPCs"]] if obj.get("RPCs") is not None else None, + "users": [V0042StatsUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_rpc.py b/slurmrest_python/models/v0042_stats_rpc.py new file mode 100644 index 0000000..9f3b8b1 --- /dev/null +++ b/slurmrest_python/models/v0042_stats_rpc.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsRpc(BaseModel): + """ + V0042StatsRpc + """ # noqa: E501 + rpc: Optional[StrictStr] = Field(default=None, description="RPC type") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["rpc", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsRpc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsRpc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rpc": obj.get("rpc"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_stats_user.py b/slurmrest_python/models/v0042_stats_user.py new file mode 100644 index 0000000..75a84e0 --- /dev/null +++ b/slurmrest_python/models/v0042_stats_user.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0042StatsUser(BaseModel): + """ + V0042StatsUser + """ # noqa: E501 + user: Optional[StrictStr] = Field(default=None, description="User ID") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["user", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StatsUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StatsUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": obj.get("user"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step.py b/slurmrest_python/models/v0042_step.py new file mode 100644 index 0000000..b569678 --- /dev/null +++ b/slurmrest_python/models/v0042_step.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks +from slurmrest_python.models.v0042_process_exit_code_verbose import V0042ProcessExitCodeVerbose +from slurmrest_python.models.v0042_step_cpu import V0042StepCPU +from slurmrest_python.models.v0042_step_nodes import V0042StepNodes +from slurmrest_python.models.v0042_step_statistics import V0042StepStatistics +from slurmrest_python.models.v0042_step_time import V0042StepTime +from slurmrest_python.models.v0042_step_tres import V0042StepTres +from typing import Optional, Set +from typing_extensions import Self + +class V0042Step(BaseModel): + """ + V0042Step + """ # noqa: E501 + time: Optional[V0042StepTime] = None + exit_code: Optional[V0042ProcessExitCodeVerbose] = None + nodes: Optional[V0042StepNodes] = None + tasks: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks] = None + pid: Optional[StrictStr] = Field(default=None, description="Deprecated; Process ID") + cpu: Optional[V0042StepCPU] = Field(default=None, alias="CPU") + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the step") + state: Optional[List[StrictStr]] = None + statistics: Optional[V0042StepStatistics] = None + step: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep] = None + task: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask] = None + tres: Optional[V0042StepTres] = None + __properties: ClassVar[List[str]] = ["time", "exit_code", "nodes", "tasks", "pid", "CPU", "kill_request_user", "state", "statistics", "step", "task", "tres"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Step from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of step + if self.step: + _dict['step'] = self.step.to_dict() + # override the default output from pydantic by calling `to_dict()` of task + if self.task: + _dict['task'] = self.task.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Step from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0042StepTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0042ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "nodes": V0042StepNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "tasks": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "pid": obj.get("pid"), + "CPU": V0042StepCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "state": obj.get("state"), + "statistics": V0042StepStatistics.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "step": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep.from_dict(obj["step"]) if obj.get("step") is not None else None, + "task": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.from_dict(obj["task"]) if obj.get("task") is not None else None, + "tres": V0042StepTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_cpu.py b/slurmrest_python/models/v0042_step_cpu.py new file mode 100644 index 0000000..29ae794 --- /dev/null +++ b/slurmrest_python/models/v0042_step_cpu.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_step_cpu_requested_frequency import V0042StepCPURequestedFrequency +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepCPU(BaseModel): + """ + V0042StepCPU + """ # noqa: E501 + requested_frequency: Optional[V0042StepCPURequestedFrequency] = None + governor: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency governor in kHz") + __properties: ClassVar[List[str]] = ["requested_frequency", "governor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepCPU from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested_frequency + if self.requested_frequency: + _dict['requested_frequency'] = self.requested_frequency.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepCPU from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested_frequency": V0042StepCPURequestedFrequency.from_dict(obj["requested_frequency"]) if obj.get("requested_frequency") is not None else None, + "governor": obj.get("governor") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_cpu_requested_frequency.py b/slurmrest_python/models/v0042_step_cpu_requested_frequency.py new file mode 100644 index 0000000..7ed287f --- /dev/null +++ b/slurmrest_python/models/v0042_step_cpu_requested_frequency.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepCPURequestedFrequency(BaseModel): + """ + V0042StepCPURequestedFrequency + """ # noqa: E501 + min: Optional[V0042Uint32NoValStruct] = None + max: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["min", "max"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepCPURequestedFrequency from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepCPURequestedFrequency from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "min": V0042Uint32NoValStruct.from_dict(obj["min"]) if obj.get("min") is not None else None, + "max": V0042Uint32NoValStruct.from_dict(obj["max"]) if obj.get("max") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_nodes.py b/slurmrest_python/models/v0042_step_nodes.py new file mode 100644 index 0000000..c359555 --- /dev/null +++ b/slurmrest_python/models/v0042_step_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepNodes(BaseModel): + """ + V0042StepNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of nodes in the job step") + range: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job step") + list: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["count", "range", "list"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "range": obj.get("range"), + "list": obj.get("list") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_statistics.py b/slurmrest_python/models/v0042_step_statistics.py new file mode 100644 index 0000000..a0b95ce --- /dev/null +++ b/slurmrest_python/models/v0042_step_statistics.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU +from slurmrest_python.models.v0042_step_statistics_energy import V0042StepStatisticsEnergy +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepStatistics(BaseModel): + """ + V0042StepStatistics + """ # noqa: E501 + cpu: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU] = Field(default=None, alias="CPU") + energy: Optional[V0042StepStatisticsEnergy] = None + __properties: ClassVar[List[str]] = ["CPU", "energy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepStatistics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepStatistics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPU": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "energy": V0042StepStatisticsEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_statistics_energy.py b/slurmrest_python/models/v0042_step_statistics_energy.py new file mode 100644 index 0000000..d319697 --- /dev/null +++ b/slurmrest_python/models/v0042_step_statistics_energy.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepStatisticsEnergy(BaseModel): + """ + V0042StepStatisticsEnergy + """ # noqa: E501 + consumed: Optional[V0042Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["consumed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepStatisticsEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepStatisticsEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumed": V0042Uint64NoValStruct.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_time.py b/slurmrest_python/models/v0042_step_time.py new file mode 100644 index 0000000..a7db521 --- /dev/null +++ b/slurmrest_python/models/v0042_step_time.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepTime(BaseModel): + """ + V0042StepTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + end: Optional[V0042Uint64NoValStruct] = None + start: Optional[V0042Uint64NoValStruct] = None + suspended: Optional[StrictInt] = Field(default=None, description="Total time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "end", "start", "suspended", "system", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of end + if self.end: + _dict['end'] = self.end.to_dict() + # override the default output from pydantic by calling `to_dict()` of start + if self.start: + _dict['start'] = self.start.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "end": V0042Uint64NoValStruct.from_dict(obj["end"]) if obj.get("end") is not None else None, + "start": V0042Uint64NoValStruct.from_dict(obj["start"]) if obj.get("start") is not None else None, + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_tres.py b/slurmrest_python/models/v0042_step_tres.py new file mode 100644 index 0000000..0c3d360 --- /dev/null +++ b/slurmrest_python/models/v0042_step_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_step_tres_consumed import V0042StepTresConsumed +from slurmrest_python.models.v0042_step_tres_requested import V0042StepTresRequested +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepTres(BaseModel): + """ + V0042StepTres + """ # noqa: E501 + requested: Optional[V0042StepTresRequested] = None + consumed: Optional[V0042StepTresConsumed] = None + allocated: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["requested", "consumed", "allocated"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested + if self.requested: + _dict['requested'] = self.requested.to_dict() + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested": V0042StepTresRequested.from_dict(obj["requested"]) if obj.get("requested") is not None else None, + "consumed": V0042StepTresConsumed.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None, + "allocated": [V0042Tres.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_tres_consumed.py b/slurmrest_python/models/v0042_step_tres_consumed.py new file mode 100644 index 0000000..5581e93 --- /dev/null +++ b/slurmrest_python/models/v0042_step_tres_consumed.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepTresConsumed(BaseModel): + """ + V0042StepTresConsumed + """ # noqa: E501 + max: Optional[List[V0042Tres]] = None + min: Optional[List[V0042Tres]] = None + average: Optional[List[V0042Tres]] = None + total: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepTresConsumed from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepTresConsumed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0042Tres.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0042Tres.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0042Tres.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0042Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_step_tres_requested.py b/slurmrest_python/models/v0042_step_tres_requested.py new file mode 100644 index 0000000..284f934 --- /dev/null +++ b/slurmrest_python/models/v0042_step_tres_requested.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_tres import V0042Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0042StepTresRequested(BaseModel): + """ + V0042StepTresRequested + """ # noqa: E501 + max: Optional[List[V0042Tres]] = None + min: Optional[List[V0042Tres]] = None + average: Optional[List[V0042Tres]] = None + total: Optional[List[V0042Tres]] = None + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042StepTresRequested from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042StepTresRequested from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0042Tres.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0042Tres.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0042Tres.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0042Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_tres.py b/slurmrest_python/models/v0042_tres.py new file mode 100644 index 0000000..3e66e90 --- /dev/null +++ b/slurmrest_python/models/v0042_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042Tres(BaseModel): + """ + V0042Tres + """ # noqa: E501 + type: StrictStr = Field(description="TRES type (CPU, MEM, etc)") + name: Optional[StrictStr] = Field(default=None, description="TRES name (if applicable)") + id: Optional[StrictInt] = Field(default=None, description="ID used in the database") + count: Optional[StrictInt] = Field(default=None, description="TRES count (0 if listed generically)") + __properties: ClassVar[List[str]] = ["type", "name", "id", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "id": obj.get("id"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_uint16_no_val_struct.py b/slurmrest_python/models/v0042_uint16_no_val_struct.py new file mode 100644 index 0000000..9240662 --- /dev/null +++ b/slurmrest_python/models/v0042_uint16_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042Uint16NoValStruct(BaseModel): + """ + V0042Uint16NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Uint16NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Uint16NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_uint32_no_val_struct.py b/slurmrest_python/models/v0042_uint32_no_val_struct.py new file mode 100644 index 0000000..2d30740 --- /dev/null +++ b/slurmrest_python/models/v0042_uint32_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042Uint32NoValStruct(BaseModel): + """ + V0042Uint32NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Uint32NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Uint32NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_uint64_no_val_struct.py b/slurmrest_python/models/v0042_uint64_no_val_struct.py new file mode 100644 index 0000000..3838956 --- /dev/null +++ b/slurmrest_python/models/v0042_uint64_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042Uint64NoValStruct(BaseModel): + """ + V0042Uint64NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Uint64NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Uint64NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_update_node_msg.py b/slurmrest_python/models/v0042_update_node_msg.py new file mode 100644 index 0000000..8df24ae --- /dev/null +++ b/slurmrest_python/models/v0042_update_node_msg.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0042UpdateNodeMsg(BaseModel): + """ + V0042UpdateNodeMsg + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + cpu_bind: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + features: Optional[List[StrictStr]] = None + features_act: Optional[List[StrictStr]] = None + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + address: Optional[List[StrictStr]] = None + hostname: Optional[List[StrictStr]] = None + name: Optional[List[StrictStr]] = None + state: Optional[List[StrictStr]] = None + reason: Optional[StrictStr] = Field(default=None, description="Reason for node being DOWN or DRAINING") + reason_uid: Optional[StrictStr] = Field(default=None, description="User ID to associate with the reason (needed if user root is sending message)") + resume_after: Optional[V0042Uint32NoValStruct] = None + weight: Optional[V0042Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["comment", "cpu_bind", "extra", "features", "features_act", "gres", "address", "hostname", "name", "state", "reason", "reason_uid", "resume_after", "weight"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042UpdateNodeMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of weight + if self.weight: + _dict['weight'] = self.weight.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042UpdateNodeMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "cpu_bind": obj.get("cpu_bind"), + "extra": obj.get("extra"), + "features": obj.get("features"), + "features_act": obj.get("features_act"), + "gres": obj.get("gres"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "name": obj.get("name"), + "state": obj.get("state"), + "reason": obj.get("reason"), + "reason_uid": obj.get("reason_uid"), + "resume_after": V0042Uint32NoValStruct.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "weight": V0042Uint32NoValStruct.from_dict(obj["weight"]) if obj.get("weight") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_user.py b/slurmrest_python/models/v0042_user.py new file mode 100644 index 0000000..f2332a2 --- /dev/null +++ b/slurmrest_python/models/v0042_user.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort +from slurmrest_python.models.v0042_coord import V0042Coord +from slurmrest_python.models.v0042_user_default import V0042UserDefault +from slurmrest_python.models.v0042_wckey import V0042Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0042User(BaseModel): + """ + V0042User + """ # noqa: E501 + administrator_level: Optional[List[StrictStr]] = None + associations: Optional[List[V0042AssocShort]] = None + coordinators: Optional[List[V0042Coord]] = None + default: Optional[V0042UserDefault] = None + flags: Optional[List[StrictStr]] = None + name: StrictStr = Field(description="User name") + old_name: Optional[StrictStr] = Field(default=None, description="Previous user name") + wckeys: Optional[List[V0042Wckey]] = None + __properties: ClassVar[List[str]] = ["administrator_level", "associations", "coordinators", "default", "flags", "name", "old_name", "wckeys"] + + @field_validator('administrator_level') + def administrator_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'DELETED']): + raise ValueError("each list item must be one of ('NONE', 'DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042User from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042User from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "administrator_level": obj.get("administrator_level"), + "associations": [V0042AssocShort.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0042Coord.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "default": V0042UserDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "old_name": obj.get("old_name"), + "wckeys": [V0042Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_user_default.py b/slurmrest_python/models/v0042_user_default.py new file mode 100644 index 0000000..c18cbb5 --- /dev/null +++ b/slurmrest_python/models/v0042_user_default.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042UserDefault(BaseModel): + """ + V0042UserDefault + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Default account") + wckey: Optional[StrictStr] = Field(default=None, description="Default WCKey") + __properties: ClassVar[List[str]] = ["account", "wckey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042UserDefault from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042UserDefault from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "wckey": obj.get("wckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_user_short.py b/slurmrest_python/models/v0042_user_short.py new file mode 100644 index 0000000..ad66c78 --- /dev/null +++ b/slurmrest_python/models/v0042_user_short.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0042UserShort(BaseModel): + """ + V0042UserShort + """ # noqa: E501 + adminlevel: Optional[List[StrictStr]] = None + defaultaccount: Optional[StrictStr] = Field(default=None, description="Default account") + defaultwckey: Optional[StrictStr] = Field(default=None, description="Default WCKey") + __properties: ClassVar[List[str]] = ["adminlevel", "defaultaccount", "defaultwckey"] + + @field_validator('adminlevel') + def adminlevel_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042UserShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042UserShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminlevel": obj.get("adminlevel"), + "defaultaccount": obj.get("defaultaccount"), + "defaultwckey": obj.get("defaultwckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_users_add_cond.py b/slurmrest_python/models/v0042_users_add_cond.py new file mode 100644 index 0000000..1ba83a1 --- /dev/null +++ b/slurmrest_python/models/v0042_users_add_cond.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_assoc_rec_set import V0042AssocRecSet +from typing import Optional, Set +from typing_extensions import Self + +class V0042UsersAddCond(BaseModel): + """ + V0042UsersAddCond + """ # noqa: E501 + accounts: Optional[List[StrictStr]] = None + association: Optional[V0042AssocRecSet] = None + clusters: Optional[List[StrictStr]] = None + partitions: Optional[List[StrictStr]] = None + users: List[StrictStr] + wckeys: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters", "partitions", "users", "wckeys"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042UsersAddCond from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042UsersAddCond from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0042AssocRecSet.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters"), + "partitions": obj.get("partitions"), + "users": obj.get("users"), + "wckeys": obj.get("wckeys") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_wckey.py b/slurmrest_python/models/v0042_wckey.py new file mode 100644 index 0000000..3e6bc20 --- /dev/null +++ b/slurmrest_python/models/v0042_wckey.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_accounting import V0042Accounting +from typing import Optional, Set +from typing_extensions import Self + +class V0042Wckey(BaseModel): + """ + V0042Wckey + """ # noqa: E501 + accounting: Optional[List[V0042Accounting]] = None + cluster: StrictStr = Field(description="Cluster name") + id: Optional[StrictInt] = Field(default=None, description="Unique ID for this user-cluster-wckey combination") + name: StrictStr = Field(description="WCKey name") + user: StrictStr = Field(description="User name") + flags: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounting", "cluster", "id", "name", "user", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED']): + raise ValueError("each list item must be one of ('DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042Wckey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042Wckey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0042Accounting.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "cluster": obj.get("cluster"), + "id": obj.get("id"), + "name": obj.get("name"), + "user": obj.get("user"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0042_wckey_tag_struct.py b/slurmrest_python/models/v0042_wckey_tag_struct.py new file mode 100644 index 0000000..7b55a9e --- /dev/null +++ b/slurmrest_python/models/v0042_wckey_tag_struct.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0042WckeyTagStruct(BaseModel): + """ + V0042WckeyTagStruct + """ # noqa: E501 + wckey: StrictStr = Field(description="WCKey name") + flags: List[StrictStr] + __properties: ClassVar[List[str]] = ["wckey", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['ASSIGNED_DEFAULT']): + raise ValueError("each list item must be one of ('ASSIGNED_DEFAULT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0042WckeyTagStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0042WckeyTagStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckey": obj.get("wckey"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_account.py b/slurmrest_python/models/v0043_account.py new file mode 100644 index 0000000..a503a08 --- /dev/null +++ b/slurmrest_python/models/v0043_account.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort +from slurmrest_python.models.v0043_coord import V0043Coord +from typing import Optional, Set +from typing_extensions import Self + +class V0043Account(BaseModel): + """ + V0043Account + """ # noqa: E501 + associations: Optional[List[V0043AssocShort]] = None + coordinators: Optional[List[V0043Coord]] = None + description: StrictStr = Field(description="Arbitrary string describing the account") + name: StrictStr = Field(description="Account name") + organization: StrictStr = Field(description="Organization to which the account belongs") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this account") + __properties: ClassVar[List[str]] = ["associations", "coordinators", "description", "name", "organization", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Account from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Account from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0043AssocShort.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0043Coord.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "description": obj.get("description"), + "name": obj.get("name"), + "organization": obj.get("organization"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_account_short.py b/slurmrest_python/models/v0043_account_short.py new file mode 100644 index 0000000..dbd8347 --- /dev/null +++ b/slurmrest_python/models/v0043_account_short.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043AccountShort(BaseModel): + """ + V0043AccountShort + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary string describing the account") + organization: Optional[StrictStr] = Field(default=None, description="Organization to which the account belongs") + __properties: ClassVar[List[str]] = ["description", "organization"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AccountShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AccountShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "organization": obj.get("organization") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_accounting.py b/slurmrest_python/models/v0043_accounting.py new file mode 100644 index 0000000..ae08edf --- /dev/null +++ b/slurmrest_python/models/v0043_accounting.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from slurmrest_python.models.v0044_accounting_allocated import V0044AccountingAllocated +from typing import Optional, Set +from typing_extensions import Self + +class V0043Accounting(BaseModel): + """ + V0043Accounting + """ # noqa: E501 + allocated: Optional[V0044AccountingAllocated] = None + id: Optional[StrictInt] = Field(default=None, description="Association ID or Workload characterization key ID") + id_alt: Optional[StrictInt] = Field(default=None, description="Alternate ID (not currently used)") + start: Optional[StrictInt] = Field(default=None, description="When the record was started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + tres: Optional[V0043Tres] = Field(default=None, alias="TRES") + __properties: ClassVar[List[str]] = ["allocated", "id", "id_alt", "start", "TRES"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Accounting from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of allocated + if self.allocated: + _dict['allocated'] = self.allocated.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['TRES'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Accounting from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": V0044AccountingAllocated.from_dict(obj["allocated"]) if obj.get("allocated") is not None else None, + "id": obj.get("id"), + "id_alt": obj.get("id_alt"), + "start": obj.get("start"), + "TRES": V0043Tres.from_dict(obj["TRES"]) if obj.get("TRES") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_accounts_add_cond.py b/slurmrest_python/models/v0043_accounts_add_cond.py new file mode 100644 index 0000000..1ba979d --- /dev/null +++ b/slurmrest_python/models/v0043_accounts_add_cond.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_rec_set import V0043AssocRecSet +from typing import Optional, Set +from typing_extensions import Self + +class V0043AccountsAddCond(BaseModel): + """ + V0043AccountsAddCond + """ # noqa: E501 + accounts: List[StrictStr] + association: Optional[V0043AssocRecSet] = None + clusters: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AccountsAddCond from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AccountsAddCond from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0043AssocRecSet.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_acct_gather_energy.py b/slurmrest_python/models/v0043_acct_gather_energy.py new file mode 100644 index 0000000..1d422dc --- /dev/null +++ b/slurmrest_python/models/v0043_acct_gather_energy.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AcctGatherEnergy(BaseModel): + """ + V0043AcctGatherEnergy + """ # noqa: E501 + average_watts: Optional[StrictInt] = Field(default=None, description="Average power consumption, in watts") + base_consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules") + consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules") + current_watts: Optional[V0043Uint32NoValStruct] = None + previous_consumed_energy: Optional[StrictInt] = Field(default=None, description="Previous value of consumed_energy") + last_collected: Optional[StrictInt] = Field(default=None, description="Time when energy data was last retrieved (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + __properties: ClassVar[List[str]] = ["average_watts", "base_consumed_energy", "consumed_energy", "current_watts", "previous_consumed_energy", "last_collected"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AcctGatherEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of current_watts + if self.current_watts: + _dict['current_watts'] = self.current_watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AcctGatherEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "average_watts": obj.get("average_watts"), + "base_consumed_energy": obj.get("base_consumed_energy"), + "consumed_energy": obj.get("consumed_energy"), + "current_watts": V0043Uint32NoValStruct.from_dict(obj["current_watts"]) if obj.get("current_watts") is not None else None, + "previous_consumed_energy": obj.get("previous_consumed_energy"), + "last_collected": obj.get("last_collected") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc.py b/slurmrest_python/models/v0043_assoc.py new file mode 100644 index 0000000..0739fac --- /dev/null +++ b/slurmrest_python/models/v0043_assoc.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault +from slurmrest_python.models.v0043_accounting import V0043Accounting +from slurmrest_python.models.v0043_assoc_max import V0043AssocMax +from slurmrest_python.models.v0043_assoc_min import V0043AssocMin +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043Assoc(BaseModel): + """ + V0043Assoc + """ # noqa: E501 + accounting: Optional[List[V0043Accounting]] = None + account: Optional[StrictStr] = Field(default=None, description="Account name") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + default: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags on the association") + max: Optional[V0043AssocMax] = None + id: Optional[StrictInt] = Field(default=None, description="Unique ID (Association ID)") + is_default: Optional[StrictBool] = Field(default=None, description="Is default association for user") + lineage: Optional[StrictStr] = Field(default=None, description="Complete path up the hierarchy to the root association") + min: Optional[V0043AssocMin] = None + parent_account: Optional[StrictStr] = Field(default=None, description="Name of parent account") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + priority: Optional[V0043Uint32NoValStruct] = None + qos: Optional[List[StrictStr]] = Field(default=None, description="List of QOS names") + shares_raw: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + user: StrictStr = Field(description="User name") + __properties: ClassVar[List[str]] = ["accounting", "account", "cluster", "comment", "default", "flags", "max", "id", "is_default", "lineage", "min", "parent_account", "partition", "priority", "qos", "shares_raw", "user"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Assoc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Assoc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0043Accounting.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "comment": obj.get("comment"), + "default": V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "max": V0043AssocMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "id": obj.get("id"), + "is_default": obj.get("is_default"), + "lineage": obj.get("lineage"), + "min": V0043AssocMin.from_dict(obj["min"]) if obj.get("min") is not None else None, + "parent_account": obj.get("parent_account"), + "partition": obj.get("partition"), + "priority": V0043Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "shares_raw": obj.get("shares_raw"), + "user": obj.get("user") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max.py b/slurmrest_python/models/v0043_assoc_max.py new file mode 100644 index 0000000..208d5d7 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_max_jobs import V0043AssocMaxJobs +from slurmrest_python.models.v0043_assoc_max_per import V0043AssocMaxPer +from slurmrest_python.models.v0043_assoc_max_tres import V0043AssocMaxTres +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMax(BaseModel): + """ + V0043AssocMax + """ # noqa: E501 + jobs: Optional[V0043AssocMaxJobs] = None + tres: Optional[V0043AssocMaxTres] = None + per: Optional[V0043AssocMaxPer] = None + __properties: ClassVar[List[str]] = ["jobs", "tres", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": V0043AssocMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "tres": V0043AssocMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "per": V0043AssocMaxPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_jobs.py b/slurmrest_python/models/v0043_assoc_max_jobs.py new file mode 100644 index 0000000..b5b4008 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_jobs.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_max_jobs_per import V0043AssocMaxJobsPer +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxJobs(BaseModel): + """ + V0043AssocMaxJobs + """ # noqa: E501 + per: Optional[V0043AssocMaxJobsPer] = None + active: Optional[V0043Uint32NoValStruct] = None + accruing: Optional[V0043Uint32NoValStruct] = None + total: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["per", "active", "accruing", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + # override the default output from pydantic by calling `to_dict()` of active + if self.active: + _dict['active'] = self.active.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0043AssocMaxJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None, + "active": V0043Uint32NoValStruct.from_dict(obj["active"]) if obj.get("active") is not None else None, + "accruing": V0043Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "total": V0043Uint32NoValStruct.from_dict(obj["total"]) if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_jobs_per.py b/slurmrest_python/models/v0043_assoc_max_jobs_per.py new file mode 100644 index 0000000..fd6f680 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_jobs_per.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxJobsPer(BaseModel): + """ + V0043AssocMaxJobsPer + """ # noqa: E501 + count: Optional[V0043Uint32NoValStruct] = None + accruing: Optional[V0043Uint32NoValStruct] = None + submitted: Optional[V0043Uint32NoValStruct] = None + wall_clock: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["count", "accruing", "submitted", "wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of submitted + if self.submitted: + _dict['submitted'] = self.submitted.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": V0043Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None, + "accruing": V0043Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "submitted": V0043Uint32NoValStruct.from_dict(obj["submitted"]) if obj.get("submitted") is not None else None, + "wall_clock": V0043Uint32NoValStruct.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_per.py b/slurmrest_python/models/v0043_assoc_max_per.py new file mode 100644 index 0000000..1eb703e --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_per.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_max_per_account import V0043AssocMaxPerAccount +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxPer(BaseModel): + """ + V0043AssocMaxPer + """ # noqa: E501 + account: Optional[V0043AssocMaxPerAccount] = None + __properties: ClassVar[List[str]] = ["account"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0043AssocMaxPerAccount.from_dict(obj["account"]) if obj.get("account") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_per_account.py b/slurmrest_python/models/v0043_assoc_max_per_account.py new file mode 100644 index 0000000..49896d1 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_per_account.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxPerAccount(BaseModel): + """ + V0043AssocMaxPerAccount + """ # noqa: E501 + wall_clock: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxPerAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxPerAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wall_clock": V0043Uint32NoValStruct.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_tres.py b/slurmrest_python/models/v0043_assoc_max_tres.py new file mode 100644 index 0000000..e0a3c3d --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_tres.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_max_tres_group import V0043AssocMaxTresGroup +from slurmrest_python.models.v0043_assoc_max_tres_minutes import V0043AssocMaxTresMinutes +from slurmrest_python.models.v0043_assoc_max_tres_per import V0043AssocMaxTresPer +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxTres(BaseModel): + """ + V0043AssocMaxTres + """ # noqa: E501 + total: Optional[List[V0043Tres]] = None + group: Optional[V0043AssocMaxTresGroup] = None + minutes: Optional[V0043AssocMaxTresMinutes] = None + per: Optional[V0043AssocMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "group", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of group + if self.group: + _dict['group'] = self.group.to_dict() + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0043Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "group": V0043AssocMaxTresGroup.from_dict(obj["group"]) if obj.get("group") is not None else None, + "minutes": V0043AssocMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0043AssocMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_tres_group.py b/slurmrest_python/models/v0043_assoc_max_tres_group.py new file mode 100644 index 0000000..6723043 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_tres_group.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxTresGroup(BaseModel): + """ + V0043AssocMaxTresGroup + """ # noqa: E501 + minutes: Optional[List[V0043Tres]] = None + active: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["minutes", "active"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxTresGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in minutes (list) + _items = [] + if self.minutes: + for _item_minutes in self.minutes: + if _item_minutes: + _items.append(_item_minutes.to_dict()) + _dict['minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in active (list) + _items = [] + if self.active: + for _item_active in self.active: + if _item_active: + _items.append(_item_active.to_dict()) + _dict['active'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxTresGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minutes": [V0043Tres.from_dict(_item) for _item in obj["minutes"]] if obj.get("minutes") is not None else None, + "active": [V0043Tres.from_dict(_item) for _item in obj["active"]] if obj.get("active") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_tres_minutes.py b/slurmrest_python/models/v0043_assoc_max_tres_minutes.py new file mode 100644 index 0000000..8bbe4ba --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_tres_minutes.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_min_tres_per import V0043QosLimitsMinTresPer +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxTresMinutes(BaseModel): + """ + V0043AssocMaxTresMinutes + """ # noqa: E501 + total: Optional[List[V0043Tres]] = None + per: Optional[V0043QosLimitsMinTresPer] = None + __properties: ClassVar[List[str]] = ["total", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0043Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "per": V0043QosLimitsMinTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_max_tres_per.py b/slurmrest_python/models/v0043_assoc_max_tres_per.py new file mode 100644 index 0000000..bcfda1b --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_max_tres_per.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMaxTresPer(BaseModel): + """ + V0043AssocMaxTresPer + """ # noqa: E501 + job: Optional[List[V0043Tres]] = None + node: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["job", "node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0043Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0043Tres.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_min.py b/slurmrest_python/models/v0043_assoc_min.py new file mode 100644 index 0000000..bfca71a --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_min.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocMin(BaseModel): + """ + V0043AssocMin + """ # noqa: E501 + priority_threshold: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["priority_threshold"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0043Uint32NoValStruct.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_rec_set.py b/slurmrest_python/models/v0043_assoc_rec_set.py new file mode 100644 index 0000000..39d1bb6 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_rec_set.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocRecSet(BaseModel): + """ + V0043AssocRecSet + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + defaultqos: Optional[StrictStr] = Field(default=None, description="Default QOS") + grpjobs: Optional[V0043Uint32NoValStruct] = None + grpjobsaccrue: Optional[V0043Uint32NoValStruct] = None + grpsubmitjobs: Optional[V0043Uint32NoValStruct] = None + grptres: Optional[List[V0043Tres]] = None + grptresmins: Optional[List[V0043Tres]] = None + grptresrunmins: Optional[List[V0043Tres]] = None + grpwall: Optional[V0043Uint32NoValStruct] = None + maxjobs: Optional[V0043Uint32NoValStruct] = None + maxjobsaccrue: Optional[V0043Uint32NoValStruct] = None + maxsubmitjobs: Optional[V0043Uint32NoValStruct] = None + maxtresminsperjob: Optional[List[V0043Tres]] = None + maxtresrunmins: Optional[List[V0043Tres]] = None + maxtresperjob: Optional[List[V0043Tres]] = None + maxtrespernode: Optional[List[V0043Tres]] = None + maxwalldurationperjob: Optional[V0043Uint32NoValStruct] = None + minpriothresh: Optional[V0043Uint32NoValStruct] = None + parent: Optional[StrictStr] = Field(default=None, description="Name of parent account") + priority: Optional[V0043Uint32NoValStruct] = None + qoslevel: Optional[List[StrictStr]] = Field(default=None, description="List of QOS names") + fairshare: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + __properties: ClassVar[List[str]] = ["comment", "defaultqos", "grpjobs", "grpjobsaccrue", "grpsubmitjobs", "grptres", "grptresmins", "grptresrunmins", "grpwall", "maxjobs", "maxjobsaccrue", "maxsubmitjobs", "maxtresminsperjob", "maxtresrunmins", "maxtresperjob", "maxtrespernode", "maxwalldurationperjob", "minpriothresh", "parent", "priority", "qoslevel", "fairshare"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocRecSet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of grpjobs + if self.grpjobs: + _dict['grpjobs'] = self.grpjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpjobsaccrue + if self.grpjobsaccrue: + _dict['grpjobsaccrue'] = self.grpjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpsubmitjobs + if self.grpsubmitjobs: + _dict['grpsubmitjobs'] = self.grpsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in grptres (list) + _items = [] + if self.grptres: + for _item_grptres in self.grptres: + if _item_grptres: + _items.append(_item_grptres.to_dict()) + _dict['grptres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresmins (list) + _items = [] + if self.grptresmins: + for _item_grptresmins in self.grptresmins: + if _item_grptresmins: + _items.append(_item_grptresmins.to_dict()) + _dict['grptresmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresrunmins (list) + _items = [] + if self.grptresrunmins: + for _item_grptresrunmins in self.grptresrunmins: + if _item_grptresrunmins: + _items.append(_item_grptresrunmins.to_dict()) + _dict['grptresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of grpwall + if self.grpwall: + _dict['grpwall'] = self.grpwall.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobs + if self.maxjobs: + _dict['maxjobs'] = self.maxjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobsaccrue + if self.maxjobsaccrue: + _dict['maxjobsaccrue'] = self.maxjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxsubmitjobs + if self.maxsubmitjobs: + _dict['maxsubmitjobs'] = self.maxsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in maxtresminsperjob (list) + _items = [] + if self.maxtresminsperjob: + for _item_maxtresminsperjob in self.maxtresminsperjob: + if _item_maxtresminsperjob: + _items.append(_item_maxtresminsperjob.to_dict()) + _dict['maxtresminsperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresrunmins (list) + _items = [] + if self.maxtresrunmins: + for _item_maxtresrunmins in self.maxtresrunmins: + if _item_maxtresrunmins: + _items.append(_item_maxtresrunmins.to_dict()) + _dict['maxtresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresperjob (list) + _items = [] + if self.maxtresperjob: + for _item_maxtresperjob in self.maxtresperjob: + if _item_maxtresperjob: + _items.append(_item_maxtresperjob.to_dict()) + _dict['maxtresperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtrespernode (list) + _items = [] + if self.maxtrespernode: + for _item_maxtrespernode in self.maxtrespernode: + if _item_maxtrespernode: + _items.append(_item_maxtrespernode.to_dict()) + _dict['maxtrespernode'] = _items + # override the default output from pydantic by calling `to_dict()` of maxwalldurationperjob + if self.maxwalldurationperjob: + _dict['maxwalldurationperjob'] = self.maxwalldurationperjob.to_dict() + # override the default output from pydantic by calling `to_dict()` of minpriothresh + if self.minpriothresh: + _dict['minpriothresh'] = self.minpriothresh.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocRecSet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "defaultqos": obj.get("defaultqos"), + "grpjobs": V0043Uint32NoValStruct.from_dict(obj["grpjobs"]) if obj.get("grpjobs") is not None else None, + "grpjobsaccrue": V0043Uint32NoValStruct.from_dict(obj["grpjobsaccrue"]) if obj.get("grpjobsaccrue") is not None else None, + "grpsubmitjobs": V0043Uint32NoValStruct.from_dict(obj["grpsubmitjobs"]) if obj.get("grpsubmitjobs") is not None else None, + "grptres": [V0043Tres.from_dict(_item) for _item in obj["grptres"]] if obj.get("grptres") is not None else None, + "grptresmins": [V0043Tres.from_dict(_item) for _item in obj["grptresmins"]] if obj.get("grptresmins") is not None else None, + "grptresrunmins": [V0043Tres.from_dict(_item) for _item in obj["grptresrunmins"]] if obj.get("grptresrunmins") is not None else None, + "grpwall": V0043Uint32NoValStruct.from_dict(obj["grpwall"]) if obj.get("grpwall") is not None else None, + "maxjobs": V0043Uint32NoValStruct.from_dict(obj["maxjobs"]) if obj.get("maxjobs") is not None else None, + "maxjobsaccrue": V0043Uint32NoValStruct.from_dict(obj["maxjobsaccrue"]) if obj.get("maxjobsaccrue") is not None else None, + "maxsubmitjobs": V0043Uint32NoValStruct.from_dict(obj["maxsubmitjobs"]) if obj.get("maxsubmitjobs") is not None else None, + "maxtresminsperjob": [V0043Tres.from_dict(_item) for _item in obj["maxtresminsperjob"]] if obj.get("maxtresminsperjob") is not None else None, + "maxtresrunmins": [V0043Tres.from_dict(_item) for _item in obj["maxtresrunmins"]] if obj.get("maxtresrunmins") is not None else None, + "maxtresperjob": [V0043Tres.from_dict(_item) for _item in obj["maxtresperjob"]] if obj.get("maxtresperjob") is not None else None, + "maxtrespernode": [V0043Tres.from_dict(_item) for _item in obj["maxtrespernode"]] if obj.get("maxtrespernode") is not None else None, + "maxwalldurationperjob": V0043Uint32NoValStruct.from_dict(obj["maxwalldurationperjob"]) if obj.get("maxwalldurationperjob") is not None else None, + "minpriothresh": V0043Uint32NoValStruct.from_dict(obj["minpriothresh"]) if obj.get("minpriothresh") is not None else None, + "parent": obj.get("parent"), + "priority": V0043Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qoslevel": obj.get("qoslevel"), + "fairshare": obj.get("fairshare") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_shares_obj_wrap.py b/slurmrest_python/models/v0043_assoc_shares_obj_wrap.py new file mode 100644 index 0000000..75fe733 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_shares_obj_wrap.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_fairshare import V0043AssocSharesObjWrapFairshare +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_tres import V0043AssocSharesObjWrapTres +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocSharesObjWrap(BaseModel): + """ + V0043AssocSharesObjWrap + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Association ID") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + name: Optional[StrictStr] = Field(default=None, description="Share name") + parent: Optional[StrictStr] = Field(default=None, description="Parent name") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + shares_normalized: Optional[V0043Float64NoValStruct] = None + shares: Optional[V0043Uint32NoValStruct] = None + tres: Optional[V0043AssocSharesObjWrapTres] = None + effective_usage: Optional[V0043Float64NoValStruct] = None + usage_normalized: Optional[V0043Float64NoValStruct] = None + usage: Optional[StrictInt] = Field(default=None, description="Measure of tresbillableunits usage") + fairshare: Optional[V0043AssocSharesObjWrapFairshare] = None + type: Optional[List[StrictStr]] = Field(default=None, description="User or account association") + __properties: ClassVar[List[str]] = ["id", "cluster", "name", "parent", "partition", "shares_normalized", "shares", "tres", "effective_usage", "usage_normalized", "usage", "fairshare", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['USER', 'ASSOCIATION']): + raise ValueError("each list item must be one of ('USER', 'ASSOCIATION')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocSharesObjWrap from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares_normalized + if self.shares_normalized: + _dict['shares_normalized'] = self.shares_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of effective_usage + if self.effective_usage: + _dict['effective_usage'] = self.effective_usage.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_normalized + if self.usage_normalized: + _dict['usage_normalized'] = self.usage_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of fairshare + if self.fairshare: + _dict['fairshare'] = self.fairshare.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocSharesObjWrap from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "cluster": obj.get("cluster"), + "name": obj.get("name"), + "parent": obj.get("parent"), + "partition": obj.get("partition"), + "shares_normalized": V0043Float64NoValStruct.from_dict(obj["shares_normalized"]) if obj.get("shares_normalized") is not None else None, + "shares": V0043Uint32NoValStruct.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "tres": V0043AssocSharesObjWrapTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "effective_usage": V0043Float64NoValStruct.from_dict(obj["effective_usage"]) if obj.get("effective_usage") is not None else None, + "usage_normalized": V0043Float64NoValStruct.from_dict(obj["usage_normalized"]) if obj.get("usage_normalized") is not None else None, + "usage": obj.get("usage"), + "fairshare": V0043AssocSharesObjWrapFairshare.from_dict(obj["fairshare"]) if obj.get("fairshare") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_shares_obj_wrap_fairshare.py b/slurmrest_python/models/v0043_assoc_shares_obj_wrap_fairshare.py new file mode 100644 index 0000000..ff50bfa --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_shares_obj_wrap_fairshare.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocSharesObjWrapFairshare(BaseModel): + """ + V0043AssocSharesObjWrapFairshare + """ # noqa: E501 + factor: Optional[V0043Float64NoValStruct] = None + level: Optional[V0043Float64NoValStruct] = None + __properties: ClassVar[List[str]] = ["factor", "level"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocSharesObjWrapFairshare from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of factor + if self.factor: + _dict['factor'] = self.factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of level + if self.level: + _dict['level'] = self.level.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocSharesObjWrapFairshare from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "factor": V0043Float64NoValStruct.from_dict(obj["factor"]) if obj.get("factor") is not None else None, + "level": V0043Float64NoValStruct.from_dict(obj["level"]) if obj.get("level") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_shares_obj_wrap_tres.py b/slurmrest_python/models/v0043_assoc_shares_obj_wrap_tres.py new file mode 100644 index 0000000..e083a52 --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_shares_obj_wrap_tres.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_shares_float128_tres import V0043SharesFloat128Tres +from slurmrest_python.models.v0043_shares_uint64_tres import V0043SharesUint64Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocSharesObjWrapTres(BaseModel): + """ + V0043AssocSharesObjWrapTres + """ # noqa: E501 + run_seconds: Optional[List[V0043SharesUint64Tres]] = None + group_minutes: Optional[List[V0043SharesUint64Tres]] = None + usage: Optional[List[V0043SharesFloat128Tres]] = None + __properties: ClassVar[List[str]] = ["run_seconds", "group_minutes", "usage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocSharesObjWrapTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in run_seconds (list) + _items = [] + if self.run_seconds: + for _item_run_seconds in self.run_seconds: + if _item_run_seconds: + _items.append(_item_run_seconds.to_dict()) + _dict['run_seconds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in group_minutes (list) + _items = [] + if self.group_minutes: + for _item_group_minutes in self.group_minutes: + if _item_group_minutes: + _items.append(_item_group_minutes.to_dict()) + _dict['group_minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in usage (list) + _items = [] + if self.usage: + for _item_usage in self.usage: + if _item_usage: + _items.append(_item_usage.to_dict()) + _dict['usage'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocSharesObjWrapTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "run_seconds": [V0043SharesUint64Tres.from_dict(_item) for _item in obj["run_seconds"]] if obj.get("run_seconds") is not None else None, + "group_minutes": [V0043SharesUint64Tres.from_dict(_item) for _item in obj["group_minutes"]] if obj.get("group_minutes") is not None else None, + "usage": [V0043SharesFloat128Tres.from_dict(_item) for _item in obj["usage"]] if obj.get("usage") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_assoc_short.py b/slurmrest_python/models/v0043_assoc_short.py new file mode 100644 index 0000000..6f9d0ce --- /dev/null +++ b/slurmrest_python/models/v0043_assoc_short.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043AssocShort(BaseModel): + """ + V0043AssocShort + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account name") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + user: StrictStr = Field(description="User name") + id: Optional[StrictInt] = Field(default=None, description="Numeric association ID") + __properties: ClassVar[List[str]] = ["account", "cluster", "partition", "user", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043AssocShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043AssocShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "partition": obj.get("partition"), + "user": obj.get("user"), + "id": obj.get("id") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_bf_exit_fields.py b/slurmrest_python/models/v0043_bf_exit_fields.py new file mode 100644 index 0000000..47826e3 --- /dev/null +++ b/slurmrest_python/models/v0043_bf_exit_fields.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043BfExitFields(BaseModel): + """ + V0043BfExitFields + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + bf_max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + bf_max_job_test: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + bf_max_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + bf_node_space_size: Optional[StrictInt] = Field(default=None, description="Reached table size limit") + state_changed: Optional[StrictInt] = Field(default=None, description="System state changed") + __properties: ClassVar[List[str]] = ["end_job_queue", "bf_max_job_start", "bf_max_job_test", "bf_max_time", "bf_node_space_size", "state_changed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043BfExitFields from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043BfExitFields from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "bf_max_job_start": obj.get("bf_max_job_start"), + "bf_max_job_test": obj.get("bf_max_job_test"), + "bf_max_time": obj.get("bf_max_time"), + "bf_node_space_size": obj.get("bf_node_space_size"), + "state_changed": obj.get("state_changed") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_cluster_rec.py b/slurmrest_python/models/v0043_cluster_rec.py new file mode 100644 index 0000000..c6a260e --- /dev/null +++ b/slurmrest_python/models/v0043_cluster_rec.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController +from slurmrest_python.models.v0043_cluster_rec_associations import V0043ClusterRecAssociations +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043ClusterRec(BaseModel): + """ + V0043ClusterRec + """ # noqa: E501 + controller: Optional[V0041OpenapiSlurmdbdConfigRespClustersInnerController] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags") + name: Optional[StrictStr] = Field(default=None, description="ClusterName") + nodes: Optional[StrictStr] = Field(default=None, description="Node names") + select_plugin: Optional[StrictStr] = None + associations: Optional[V0043ClusterRecAssociations] = None + rpc_version: Optional[StrictInt] = Field(default=None, description="RPC version used in the cluster") + tres: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["controller", "flags", "name", "nodes", "select_plugin", "associations", "rpc_version", "tres"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL']): + raise ValueError("each list item must be one of ('DELETED', 'REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ClusterRec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # override the default output from pydantic by calling `to_dict()` of associations + if self.associations: + _dict['associations'] = self.associations.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ClusterRec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "controller": V0041OpenapiSlurmdbdConfigRespClustersInnerController.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "nodes": obj.get("nodes"), + "select_plugin": obj.get("select_plugin"), + "associations": V0043ClusterRecAssociations.from_dict(obj["associations"]) if obj.get("associations") is not None else None, + "rpc_version": obj.get("rpc_version"), + "tres": [V0043Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_cluster_rec_associations.py b/slurmrest_python/models/v0043_cluster_rec_associations.py new file mode 100644 index 0000000..a252705 --- /dev/null +++ b/slurmrest_python/models/v0043_cluster_rec_associations.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort +from typing import Optional, Set +from typing_extensions import Self + +class V0043ClusterRecAssociations(BaseModel): + """ + V0043ClusterRecAssociations + """ # noqa: E501 + root: Optional[V0043AssocShort] = None + __properties: ClassVar[List[str]] = ["root"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ClusterRecAssociations from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of root + if self.root: + _dict['root'] = self.root.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ClusterRecAssociations from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "root": V0043AssocShort.from_dict(obj["root"]) if obj.get("root") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_controller_ping.py b/slurmrest_python/models/v0043_controller_ping.py new file mode 100644 index 0000000..1928861 --- /dev/null +++ b/slurmrest_python/models/v0043_controller_ping.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043ControllerPing(BaseModel): + """ + V0043ControllerPing + """ # noqa: E501 + hostname: Optional[StrictStr] = Field(default=None, description="Target for ping") + pinged: Optional[StrictStr] = Field(default=None, description="Ping result") + responding: StrictBool = Field(description="If ping RPC responded with pong from controller") + latency: Optional[StrictInt] = Field(default=None, description="Number of microseconds it took to successfully ping or timeout") + mode: Optional[StrictStr] = Field(default=None, description="The operating mode of the responding slurmctld") + primary: StrictBool = Field(description="Is responding slurmctld the primary controller (Is responding slurmctld the primary controller)") + __properties: ClassVar[List[str]] = ["hostname", "pinged", "responding", "latency", "mode", "primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ControllerPing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ControllerPing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "pinged": obj.get("pinged"), + "responding": obj.get("responding"), + "latency": obj.get("latency"), + "mode": obj.get("mode"), + "primary": obj.get("primary") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_coord.py b/slurmrest_python/models/v0043_coord.py new file mode 100644 index 0000000..0fd5934 --- /dev/null +++ b/slurmrest_python/models/v0043_coord.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043Coord(BaseModel): + """ + V0043Coord + """ # noqa: E501 + name: StrictStr = Field(description="User name") + direct: Optional[StrictBool] = Field(default=None, description="Indicates whether the coordinator was directly assigned to this account") + __properties: ClassVar[List[str]] = ["name", "direct"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Coord from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Coord from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "direct": obj.get("direct") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_cron_entry.py b/slurmrest_python/models/v0043_cron_entry.py new file mode 100644 index 0000000..48f5eb6 --- /dev/null +++ b/slurmrest_python/models/v0043_cron_entry.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine +from typing import Optional, Set +from typing_extensions import Self + +class V0043CronEntry(BaseModel): + """ + V0043CronEntry + """ # noqa: E501 + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags") + minute: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible minute values (e.g. 0-10,50)") + hour: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible hour values (e.g. 0-5,23)") + day_of_month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of month values (e.g. 0-10,29)") + month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible month values (e.g. 0-5,12)") + day_of_week: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of week values (e.g.0-3,7)") + specification: Optional[StrictStr] = Field(default=None, description="Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week") + command: Optional[StrictStr] = Field(default=None, description="Command to run") + line: Optional[V0041JobDescMsgCrontabLine] = None + __properties: ClassVar[List[str]] = ["flags", "minute", "hour", "day_of_month", "month", "day_of_week", "specification", "command", "line"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK']): + raise ValueError("each list item must be one of ('WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043CronEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of line + if self.line: + _dict['line'] = self.line.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043CronEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "flags": obj.get("flags"), + "minute": obj.get("minute"), + "hour": obj.get("hour"), + "day_of_month": obj.get("day_of_month"), + "month": obj.get("month"), + "day_of_week": obj.get("day_of_week"), + "specification": obj.get("specification"), + "command": obj.get("command"), + "line": V0041JobDescMsgCrontabLine.from_dict(obj["line"]) if obj.get("line") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_float64_no_val_struct.py b/slurmrest_python/models/v0043_float64_no_val_struct.py new file mode 100644 index 0000000..855ed70 --- /dev/null +++ b/slurmrest_python/models/v0043_float64_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0043Float64NoValStruct(BaseModel): + """ + V0043Float64NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Float64NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Float64NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_instance.py b/slurmrest_python/models/v0043_instance.py new file mode 100644 index 0000000..33c0995 --- /dev/null +++ b/slurmrest_python/models/v0043_instance.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_instance_time import V0044InstanceTime +from typing import Optional, Set +from typing_extensions import Self + +class V0043Instance(BaseModel): + """ + V0043Instance + """ # noqa: E501 + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + node_name: Optional[StrictStr] = Field(default=None, description="NodeName") + time: Optional[V0044InstanceTime] = None + __properties: ClassVar[List[str]] = ["cluster", "extra", "instance_id", "instance_type", "node_name", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Instance from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Instance from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cluster": obj.get("cluster"), + "extra": obj.get("extra"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "node_name": obj.get("node_name"), + "time": V0044InstanceTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job.py b/slurmrest_python/models/v0043_job.py new file mode 100644 index 0000000..836cdf9 --- /dev/null +++ b/slurmrest_python/models/v0043_job.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state import V0041OpenapiSlurmdbdJobsRespJobsInnerState +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort +from slurmrest_python.models.v0043_job_array import V0043JobArray +from slurmrest_python.models.v0043_job_het import V0043JobHet +from slurmrest_python.models.v0043_job_required import V0043JobRequired +from slurmrest_python.models.v0043_job_time import V0043JobTime +from slurmrest_python.models.v0043_job_tres import V0043JobTres +from slurmrest_python.models.v0043_process_exit_code_verbose import V0043ProcessExitCodeVerbose +from slurmrest_python.models.v0043_step import V0043Step +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_wckey_tag_struct import V0043WckeyTagStruct +from slurmrest_python.models.v0044_job_reservation import V0044JobReservation +from typing import Optional, Set +from typing_extensions import Self + +class V0043Job(BaseModel): + """ + V0043Job + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account the job ran under") + comment: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerComment] = None + allocation_nodes: Optional[StrictInt] = Field(default=None, description="List of nodes allocated to the job") + array: Optional[V0043JobArray] = None + association: Optional[V0043AssocShort] = None + block: Optional[StrictStr] = Field(default=None, description="The name of the block to be used (used with Blue Gene systems)") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + constraints: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested as a constraint") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + derived_exit_code: Optional[V0043ProcessExitCodeVerbose] = None + time: Optional[V0043JobTime] = None + exit_code: Optional[V0043ProcessExitCodeVerbose] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this job") + group: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + het: Optional[V0043JobHet] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + name: Optional[StrictStr] = Field(default=None, description="Job name") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mcs: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerMcs] = None + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job (Job held)") + priority: Optional[V0043Uint32NoValStruct] = None + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + qosreq: Optional[StrictStr] = Field(default=None, description="Requested QOS") + required: Optional[V0043JobRequired] = None + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the job") + restart_cnt: Optional[StrictInt] = Field(default=None, description="How many times this job has been requeued/restarted") + reservation: Optional[V0044JobReservation] = None + script: Optional[StrictStr] = Field(default=None, description="Job batch script; only the first component in a HetJob is populated or honored") + segment_size: Optional[StrictInt] = Field(default=None, description="Requested segment size") + stdin_expanded: Optional[StrictStr] = Field(default=None, description="Job stdin with expanded fields") + stdout_expanded: Optional[StrictStr] = Field(default=None, description="Job stdout with expanded fields") + stderr_expanded: Optional[StrictStr] = Field(default=None, description="Job stderr with expanded fields") + stdout: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + stderr: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + stdin: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + state: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerState] = None + steps: Optional[List[V0043Step]] = None + submit_line: Optional[StrictStr] = Field(default=None, description="Command used to submit the job") + tres: Optional[V0043JobTres] = None + used_gres: Optional[StrictStr] = Field(default=None, description="Generic resources used by job") + user: Optional[StrictStr] = Field(default=None, description="User that owns the job") + wckey: Optional[V0043WckeyTagStruct] = None + working_directory: Optional[StrictStr] = Field(default=None, description="Path to current working directory") + __properties: ClassVar[List[str]] = ["account", "comment", "allocation_nodes", "array", "association", "block", "cluster", "constraints", "container", "derived_exit_code", "time", "exit_code", "extra", "failed_node", "flags", "group", "het", "job_id", "name", "licenses", "mcs", "nodes", "partition", "hold", "priority", "qos", "qosreq", "required", "kill_request_user", "restart_cnt", "reservation", "script", "segment_size", "stdin_expanded", "stdout_expanded", "stderr_expanded", "stdout", "stderr", "stdin", "state", "steps", "submit_line", "tres", "used_gres", "user", "wckey", "working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED']): + raise ValueError("each list item must be one of ('NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Job from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of comment + if self.comment: + _dict['comment'] = self.comment.to_dict() + # override the default output from pydantic by calling `to_dict()` of array + if self.array: + _dict['array'] = self.array.to_dict() + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het + if self.het: + _dict['het'] = self.het.to_dict() + # override the default output from pydantic by calling `to_dict()` of mcs + if self.mcs: + _dict['mcs'] = self.mcs.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of required + if self.required: + _dict['required'] = self.required.to_dict() + # override the default output from pydantic by calling `to_dict()` of reservation + if self.reservation: + _dict['reservation'] = self.reservation.to_dict() + # override the default output from pydantic by calling `to_dict()` of state + if self.state: + _dict['state'] = self.state.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in steps (list) + _items = [] + if self.steps: + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) + _dict['steps'] = _items + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wckey + if self.wckey: + _dict['wckey'] = self.wckey.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Job from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "comment": V0041OpenapiSlurmdbdJobsRespJobsInnerComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, + "allocation_nodes": obj.get("allocation_nodes"), + "array": V0043JobArray.from_dict(obj["array"]) if obj.get("array") is not None else None, + "association": V0043AssocShort.from_dict(obj["association"]) if obj.get("association") is not None else None, + "block": obj.get("block"), + "cluster": obj.get("cluster"), + "constraints": obj.get("constraints"), + "container": obj.get("container"), + "derived_exit_code": V0043ProcessExitCodeVerbose.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "time": V0043JobTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0043ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "flags": obj.get("flags"), + "group": obj.get("group"), + "het": V0043JobHet.from_dict(obj["het"]) if obj.get("het") is not None else None, + "job_id": obj.get("job_id"), + "name": obj.get("name"), + "licenses": obj.get("licenses"), + "mcs": V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.from_dict(obj["mcs"]) if obj.get("mcs") is not None else None, + "nodes": obj.get("nodes"), + "partition": obj.get("partition"), + "hold": obj.get("hold"), + "priority": V0043Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "qosreq": obj.get("qosreq"), + "required": V0043JobRequired.from_dict(obj["required"]) if obj.get("required") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "restart_cnt": obj.get("restart_cnt"), + "reservation": V0044JobReservation.from_dict(obj["reservation"]) if obj.get("reservation") is not None else None, + "script": obj.get("script"), + "segment_size": obj.get("segment_size"), + "stdin_expanded": obj.get("stdin_expanded"), + "stdout_expanded": obj.get("stdout_expanded"), + "stderr_expanded": obj.get("stderr_expanded"), + "stdout": obj.get("stdout"), + "stderr": obj.get("stderr"), + "stdin": obj.get("stdin"), + "state": V0041OpenapiSlurmdbdJobsRespJobsInnerState.from_dict(obj["state"]) if obj.get("state") is not None else None, + "steps": [V0043Step.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, + "submit_line": obj.get("submit_line"), + "tres": V0043JobTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "used_gres": obj.get("used_gres"), + "user": obj.get("user"), + "wckey": V0043WckeyTagStruct.from_dict(obj["wckey"]) if obj.get("wckey") is not None else None, + "working_directory": obj.get("working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_alloc_req.py b/slurmrest_python/models/v0043_job_alloc_req.py new file mode 100644 index 0000000..a0c4000 --- /dev/null +++ b/slurmrest_python/models/v0043_job_alloc_req.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobAllocReq(BaseModel): + """ + V0043JobAllocReq + """ # noqa: E501 + hetjob: Optional[List[V0043JobDescMsg]] = None + job: Optional[V0043JobDescMsg] = None + __properties: ClassVar[List[str]] = ["hetjob", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobAllocReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in hetjob (list) + _items = [] + if self.hetjob: + for _item_hetjob in self.hetjob: + if _item_hetjob: + _items.append(_item_hetjob.to_dict()) + _dict['hetjob'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobAllocReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hetjob": [V0043JobDescMsg.from_dict(_item) for _item in obj["hetjob"]] if obj.get("hetjob") is not None else None, + "job": V0043JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_array.py b/slurmrest_python/models/v0043_job_array.py new file mode 100644 index 0000000..3251a48 --- /dev/null +++ b/slurmrest_python/models/v0043_job_array.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobArray(BaseModel): + """ + V0043JobArray + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID of job array, or 0 if N/A") + limits: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits] = None + task_id: Optional[V0043Uint32NoValStruct] = None + task: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + __properties: ClassVar[List[str]] = ["job_id", "limits", "task_id", "task"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobArray from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of task_id + if self.task_id: + _dict['task_id'] = self.task_id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobArray from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "limits": V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "task_id": V0043Uint32NoValStruct.from_dict(obj["task_id"]) if obj.get("task_id") is not None else None, + "task": obj.get("task") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_array_response_msg_entry.py b/slurmrest_python/models/v0043_job_array_response_msg_entry.py new file mode 100644 index 0000000..27dfbdb --- /dev/null +++ b/slurmrest_python/models/v0043_job_array_response_msg_entry.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobArrayResponseMsgEntry(BaseModel): + """ + V0043JobArrayResponseMsgEntry + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID for updated job") + step_id: Optional[StrictStr] = Field(default=None, description="Step ID for updated job") + error: Optional[StrictStr] = Field(default=None, description="Verbose update status or error") + error_code: Optional[StrictInt] = Field(default=None, description="Verbose update status or error") + why: Optional[StrictStr] = Field(default=None, description="Update response message") + __properties: ClassVar[List[str]] = ["job_id", "step_id", "error", "error_code", "why"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobArrayResponseMsgEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobArrayResponseMsgEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "error": obj.get("error"), + "error_code": obj.get("error_code"), + "why": obj.get("why") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_desc_msg.py b/slurmrest_python/models/v0043_job_desc_msg.py new file mode 100644 index 0000000..81a945f --- /dev/null +++ b/slurmrest_python/models/v0043_job_desc_msg.py @@ -0,0 +1,456 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_cron_entry import V0043CronEntry +from slurmrest_python.models.v0043_job_desc_msg_rlimits import V0043JobDescMsgRlimits +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobDescMsg(BaseModel): + """ + V0043JobDescMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + account_gather_frequency: Optional[StrictStr] = Field(default=None, description="Job accounting and profiling sampling intervals in seconds") + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocation_node_list: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + allocation_node_port: Optional[StrictInt] = Field(default=None, description="Port to send allocation confirmation to") + argv: Optional[List[StrictStr]] = None + array: Optional[StrictStr] = Field(default=None, description="Job array index value specification") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + begin_time: Optional[V0043Uint64NoValStruct] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Job flags") + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + clusters: Optional[StrictStr] = Field(default=None, description="Clusters that a federated job can run on") + cluster_constraint: Optional[StrictStr] = Field(default=None, description="Required features that a federated cluster must have to have a sibling job submitted to it") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by user") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + core_specification: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_specification: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cpu_binding: Optional[StrictStr] = Field(default=None, description="Method for binding tasks to allocated CPUs") + cpu_binding_flags: Optional[List[StrictStr]] = Field(default=None, description="Flags for CPU binding") + cpu_frequency: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency range [-p2][:p3]") + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + crontab: Optional[V0043CronEntry] = None + deadline: Optional[StrictInt] = Field(default=None, description="Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + delay_boot: Optional[StrictInt] = Field(default=None, description="Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification") + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + end_time: Optional[StrictInt] = Field(default=None, description="Expected end time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + environment: Optional[List[StrictStr]] = None + rlimits: Optional[V0043JobDescMsgRlimits] = None + excluded_nodes: Optional[List[StrictStr]] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + constraints: Optional[StrictStr] = Field(default=None, description="Comma-separated list of features that are required") + group_id: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + hetjob_group: Optional[StrictInt] = Field(default=None, description="Unique sequence number applied to this component of the heterogeneous job") + immediate: Optional[StrictBool] = Field(default=None, description="If true, exit if resources are not available within the time period specified") + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + kill_on_node_fail: Optional[StrictBool] = Field(default=None, description="If true, kill job on node failure") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mail_type: Optional[List[StrictStr]] = Field(default=None, description="Mail event type(s)") + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_binding: Optional[StrictStr] = Field(default=None, description="Binding map for map/mask_cpu") + memory_binding_type: Optional[List[StrictStr]] = Field(default=None, description="Method for binding tasks to memory") + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for job step") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks: Optional[StrictInt] = Field(default=None, description="Number of tasks") + oom_kill_step: Optional[StrictInt] = Field(default=None, description="Kill whole step in case of OOM in one of the tasks") + open_mode: Optional[List[StrictStr]] = Field(default=None, description="Open mode used for stdout and stderr files") + reserve_ports: Optional[StrictInt] = Field(default=None, description="Port to send various notification msg to") + overcommit: Optional[StrictBool] = Field(default=None, description="Overcommit resources") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + distribution_plane_size: Optional[V0043Uint16NoValStruct] = None + power_flags: Optional[List[Any]] = None + prefer: Optional[StrictStr] = Field(default=None, description="Comma-separated list of features that are preferred but not required") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job (Job held)") + priority: Optional[V0043Uint32NoValStruct] = None + profile: Optional[List[StrictStr]] = Field(default=None, description="Profile used by the acct_gather_profile plugin") + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[List[StrictStr]] = None + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + script: Optional[StrictStr] = Field(default=None, description="Job batch script; only the first component in a HetJob is populated or honored") + shared: Optional[List[StrictStr]] = Field(default=None, description="How the job can share resources with other jobs, if at all") + site_factor: Optional[StrictInt] = Field(default=None, description="Site-specific priority factor") + spank_environment: Optional[List[StrictStr]] = None + distribution: Optional[StrictStr] = Field(default=None, description="Layout") + time_limit: Optional[V0043Uint32NoValStruct] = None + time_minimum: Optional[V0043Uint32NoValStruct] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every task") + user_id: Optional[StrictStr] = Field(default=None, description="User ID that owns the job") + wait_all_nodes: Optional[StrictBool] = Field(default=None, description="If true, wait to start until after all nodes have booted") + kill_warning_flags: Optional[List[StrictStr]] = Field(default=None, description="Flags related to job signals") + kill_warning_signal: Optional[StrictStr] = Field(default=None, description="Signal to send when approaching end time (e.g. \"10\" or \"USR1\")") + kill_warning_delay: Optional[V0043Uint16NoValStruct] = None + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + cpus_per_task: Optional[StrictInt] = Field(default=None, description="Number of CPUs required by each task") + minimum_cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required") + maximum_cpus: Optional[StrictInt] = Field(default=None, description="Maximum number of CPUs required") + nodes: Optional[StrictStr] = Field(default=None, description="Node count range specification (e.g. 1-15:4)") + minimum_nodes: Optional[StrictInt] = Field(default=None, description="Minimum node count") + maximum_nodes: Optional[StrictInt] = Field(default=None, description="Maximum node count") + minimum_boards_per_node: Optional[StrictInt] = Field(default=None, description="Boards per node required") + minimum_sockets_per_board: Optional[StrictInt] = Field(default=None, description="Sockets per board required") + sockets_per_node: Optional[StrictInt] = Field(default=None, description="Sockets per node required") + threads_per_core: Optional[StrictInt] = Field(default=None, description="Threads per core required") + tasks_per_node: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each node") + tasks_per_socket: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each socket") + tasks_per_core: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each core") + tasks_per_board: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each board") + ntasks_per_tres: Optional[StrictInt] = Field(default=None, description="Number of tasks that can access each GPU") + minimum_cpus_per_node: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs per node") + memory_per_cpu: Optional[V0043Uint64NoValStruct] = None + memory_per_node: Optional[V0043Uint64NoValStruct] = None + temporary_disk_per_node: Optional[StrictInt] = Field(default=None, description="Minimum tmp disk space required per node") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + required_switches: Optional[V0043Uint32NoValStruct] = None + segment_size: Optional[V0043Uint16NoValStruct] = None + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + wait_for_switch: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + x11: Optional[List[StrictStr]] = Field(default=None, description="X11 forwarding options") + x11_magic_cookie: Optional[StrictStr] = Field(default=None, description="Magic cookie for X11 forwarding") + x11_target_host: Optional[StrictStr] = Field(default=None, description="Hostname or UNIX socket if x11_target_port=0") + x11_target_port: Optional[StrictInt] = Field(default=None, description="TCP port") + __properties: ClassVar[List[str]] = ["account", "account_gather_frequency", "admin_comment", "allocation_node_list", "allocation_node_port", "argv", "array", "batch_features", "begin_time", "flags", "burst_buffer", "clusters", "cluster_constraint", "comment", "contiguous", "container", "container_id", "core_specification", "thread_specification", "cpu_binding", "cpu_binding_flags", "cpu_frequency", "cpus_per_tres", "crontab", "deadline", "delay_boot", "dependency", "end_time", "environment", "rlimits", "excluded_nodes", "extra", "constraints", "group_id", "hetjob_group", "immediate", "job_id", "kill_on_node_fail", "licenses", "mail_type", "mail_user", "mcs_label", "memory_binding", "memory_binding_type", "memory_per_tres", "name", "network", "nice", "tasks", "oom_kill_step", "open_mode", "reserve_ports", "overcommit", "partition", "distribution_plane_size", "power_flags", "prefer", "hold", "priority", "profile", "qos", "reboot", "required_nodes", "requeue", "reservation", "script", "shared", "site_factor", "spank_environment", "distribution", "time_limit", "time_minimum", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "user_id", "wait_all_nodes", "kill_warning_flags", "kill_warning_signal", "kill_warning_delay", "current_working_directory", "cpus_per_task", "minimum_cpus", "maximum_cpus", "nodes", "minimum_nodes", "maximum_nodes", "minimum_boards_per_node", "minimum_sockets_per_board", "sockets_per_node", "threads_per_core", "tasks_per_node", "tasks_per_socket", "tasks_per_core", "tasks_per_board", "ntasks_per_tres", "minimum_cpus_per_node", "memory_per_cpu", "memory_per_node", "temporary_disk_per_node", "selinux_context", "required_switches", "segment_size", "standard_error", "standard_input", "standard_output", "wait_for_switch", "wckey", "x11", "x11_magic_cookie", "x11_target_host", "x11_target_port"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED')") + return value + + @field_validator('cpu_binding_flags') + def cpu_binding_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE']): + raise ValueError("each list item must be one of ('CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('memory_binding_type') + def memory_binding_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'SORT', 'PREFER']): + raise ValueError("each list item must be one of ('NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'SORT', 'PREFER')") + return value + + @field_validator('open_mode') + def open_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['APPEND', 'TRUNCATE']): + raise ValueError("each list item must be one of ('APPEND', 'TRUNCATE')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + @field_validator('kill_warning_flags') + def kill_warning_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('x11') + def x11_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE']): + raise ValueError("each list item must be one of ('FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobDescMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of begin_time + if self.begin_time: + _dict['begin_time'] = self.begin_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of crontab + if self.crontab: + _dict['crontab'] = self.crontab.to_dict() + # override the default output from pydantic by calling `to_dict()` of rlimits + if self.rlimits: + _dict['rlimits'] = self.rlimits.to_dict() + # override the default output from pydantic by calling `to_dict()` of distribution_plane_size + if self.distribution_plane_size: + _dict['distribution_plane_size'] = self.distribution_plane_size.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of kill_warning_delay + if self.kill_warning_delay: + _dict['kill_warning_delay'] = self.kill_warning_delay.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of required_switches + if self.required_switches: + _dict['required_switches'] = self.required_switches.to_dict() + # override the default output from pydantic by calling `to_dict()` of segment_size + if self.segment_size: + _dict['segment_size'] = self.segment_size.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobDescMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "account_gather_frequency": obj.get("account_gather_frequency"), + "admin_comment": obj.get("admin_comment"), + "allocation_node_list": obj.get("allocation_node_list"), + "allocation_node_port": obj.get("allocation_node_port"), + "argv": obj.get("argv"), + "array": obj.get("array"), + "batch_features": obj.get("batch_features"), + "begin_time": V0043Uint64NoValStruct.from_dict(obj["begin_time"]) if obj.get("begin_time") is not None else None, + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "clusters": obj.get("clusters"), + "cluster_constraint": obj.get("cluster_constraint"), + "comment": obj.get("comment"), + "contiguous": obj.get("contiguous"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "core_specification": obj.get("core_specification"), + "thread_specification": obj.get("thread_specification"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_binding_flags": obj.get("cpu_binding_flags"), + "cpu_frequency": obj.get("cpu_frequency"), + "cpus_per_tres": obj.get("cpus_per_tres"), + "crontab": V0043CronEntry.from_dict(obj["crontab"]) if obj.get("crontab") is not None else None, + "deadline": obj.get("deadline"), + "delay_boot": obj.get("delay_boot"), + "dependency": obj.get("dependency"), + "end_time": obj.get("end_time"), + "environment": obj.get("environment"), + "rlimits": V0043JobDescMsgRlimits.from_dict(obj["rlimits"]) if obj.get("rlimits") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "extra": obj.get("extra"), + "constraints": obj.get("constraints"), + "group_id": obj.get("group_id"), + "hetjob_group": obj.get("hetjob_group"), + "immediate": obj.get("immediate"), + "job_id": obj.get("job_id"), + "kill_on_node_fail": obj.get("kill_on_node_fail"), + "licenses": obj.get("licenses"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "mcs_label": obj.get("mcs_label"), + "memory_binding": obj.get("memory_binding"), + "memory_binding_type": obj.get("memory_binding_type"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nice": obj.get("nice"), + "tasks": obj.get("tasks"), + "oom_kill_step": obj.get("oom_kill_step"), + "open_mode": obj.get("open_mode"), + "reserve_ports": obj.get("reserve_ports"), + "overcommit": obj.get("overcommit"), + "partition": obj.get("partition"), + "distribution_plane_size": V0043Uint16NoValStruct.from_dict(obj["distribution_plane_size"]) if obj.get("distribution_plane_size") is not None else None, + "power_flags": obj.get("power_flags"), + "prefer": obj.get("prefer"), + "hold": obj.get("hold"), + "priority": V0043Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "requeue": obj.get("requeue"), + "reservation": obj.get("reservation"), + "script": obj.get("script"), + "shared": obj.get("shared"), + "site_factor": obj.get("site_factor"), + "spank_environment": obj.get("spank_environment"), + "distribution": obj.get("distribution"), + "time_limit": V0043Uint32NoValStruct.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0043Uint32NoValStruct.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "user_id": obj.get("user_id"), + "wait_all_nodes": obj.get("wait_all_nodes"), + "kill_warning_flags": obj.get("kill_warning_flags"), + "kill_warning_signal": obj.get("kill_warning_signal"), + "kill_warning_delay": V0043Uint16NoValStruct.from_dict(obj["kill_warning_delay"]) if obj.get("kill_warning_delay") is not None else None, + "current_working_directory": obj.get("current_working_directory"), + "cpus_per_task": obj.get("cpus_per_task"), + "minimum_cpus": obj.get("minimum_cpus"), + "maximum_cpus": obj.get("maximum_cpus"), + "nodes": obj.get("nodes"), + "minimum_nodes": obj.get("minimum_nodes"), + "maximum_nodes": obj.get("maximum_nodes"), + "minimum_boards_per_node": obj.get("minimum_boards_per_node"), + "minimum_sockets_per_board": obj.get("minimum_sockets_per_board"), + "sockets_per_node": obj.get("sockets_per_node"), + "threads_per_core": obj.get("threads_per_core"), + "tasks_per_node": obj.get("tasks_per_node"), + "tasks_per_socket": obj.get("tasks_per_socket"), + "tasks_per_core": obj.get("tasks_per_core"), + "tasks_per_board": obj.get("tasks_per_board"), + "ntasks_per_tres": obj.get("ntasks_per_tres"), + "minimum_cpus_per_node": obj.get("minimum_cpus_per_node"), + "memory_per_cpu": V0043Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0043Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "temporary_disk_per_node": obj.get("temporary_disk_per_node"), + "selinux_context": obj.get("selinux_context"), + "required_switches": V0043Uint32NoValStruct.from_dict(obj["required_switches"]) if obj.get("required_switches") is not None else None, + "segment_size": V0043Uint16NoValStruct.from_dict(obj["segment_size"]) if obj.get("segment_size") is not None else None, + "standard_error": obj.get("standard_error"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "wait_for_switch": obj.get("wait_for_switch"), + "wckey": obj.get("wckey"), + "x11": obj.get("x11"), + "x11_magic_cookie": obj.get("x11_magic_cookie"), + "x11_target_host": obj.get("x11_target_host"), + "x11_target_port": obj.get("x11_target_port") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_desc_msg_rlimits.py b/slurmrest_python/models/v0043_job_desc_msg_rlimits.py new file mode 100644 index 0000000..da27b61 --- /dev/null +++ b/slurmrest_python/models/v0043_job_desc_msg_rlimits.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobDescMsgRlimits(BaseModel): + """ + V0043JobDescMsgRlimits + """ # noqa: E501 + cpu: Optional[V0043Uint64NoValStruct] = None + fsize: Optional[V0043Uint64NoValStruct] = None + data: Optional[V0043Uint64NoValStruct] = None + stack: Optional[V0043Uint64NoValStruct] = None + core: Optional[V0043Uint64NoValStruct] = None + rss: Optional[V0043Uint64NoValStruct] = None + nproc: Optional[V0043Uint64NoValStruct] = None + nofile: Optional[V0043Uint64NoValStruct] = None + memlock: Optional[V0043Uint64NoValStruct] = None + var_as: Optional[V0043Uint64NoValStruct] = Field(default=None, alias="as") + __properties: ClassVar[List[str]] = ["cpu", "fsize", "data", "stack", "core", "rss", "nproc", "nofile", "memlock", "as"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobDescMsgRlimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['cpu'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of fsize + if self.fsize: + _dict['fsize'] = self.fsize.to_dict() + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of stack + if self.stack: + _dict['stack'] = self.stack.to_dict() + # override the default output from pydantic by calling `to_dict()` of core + if self.core: + _dict['core'] = self.core.to_dict() + # override the default output from pydantic by calling `to_dict()` of rss + if self.rss: + _dict['rss'] = self.rss.to_dict() + # override the default output from pydantic by calling `to_dict()` of nproc + if self.nproc: + _dict['nproc'] = self.nproc.to_dict() + # override the default output from pydantic by calling `to_dict()` of nofile + if self.nofile: + _dict['nofile'] = self.nofile.to_dict() + # override the default output from pydantic by calling `to_dict()` of memlock + if self.memlock: + _dict['memlock'] = self.memlock.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_as + if self.var_as: + _dict['as'] = self.var_as.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobDescMsgRlimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpu": V0043Uint64NoValStruct.from_dict(obj["cpu"]) if obj.get("cpu") is not None else None, + "fsize": V0043Uint64NoValStruct.from_dict(obj["fsize"]) if obj.get("fsize") is not None else None, + "data": V0043Uint64NoValStruct.from_dict(obj["data"]) if obj.get("data") is not None else None, + "stack": V0043Uint64NoValStruct.from_dict(obj["stack"]) if obj.get("stack") is not None else None, + "core": V0043Uint64NoValStruct.from_dict(obj["core"]) if obj.get("core") is not None else None, + "rss": V0043Uint64NoValStruct.from_dict(obj["rss"]) if obj.get("rss") is not None else None, + "nproc": V0043Uint64NoValStruct.from_dict(obj["nproc"]) if obj.get("nproc") is not None else None, + "nofile": V0043Uint64NoValStruct.from_dict(obj["nofile"]) if obj.get("nofile") is not None else None, + "memlock": V0043Uint64NoValStruct.from_dict(obj["memlock"]) if obj.get("memlock") is not None else None, + "as": V0043Uint64NoValStruct.from_dict(obj["as"]) if obj.get("as") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_het.py b/slurmrest_python/models/v0043_job_het.py new file mode 100644 index 0000000..6c49ea7 --- /dev/null +++ b/slurmrest_python/models/v0043_job_het.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobHet(BaseModel): + """ + V0043JobHet + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Heterogeneous job ID, if applicable") + job_offset: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["job_id", "job_offset"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobHet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of job_offset + if self.job_offset: + _dict['job_offset'] = self.job_offset.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobHet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_offset": V0043Uint32NoValStruct.from_dict(obj["job_offset"]) if obj.get("job_offset") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_info.py b/slurmrest_python/models/v0043_job_info.py new file mode 100644 index 0000000..207cb26 --- /dev/null +++ b/slurmrest_python/models/v0043_job_info.py @@ -0,0 +1,563 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct +from slurmrest_python.models.v0043_job_res import V0043JobRes +from slurmrest_python.models.v0043_part_prio import V0043PartPrio +from slurmrest_python.models.v0043_process_exit_code_verbose import V0043ProcessExitCodeVerbose +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobInfo(BaseModel): + """ + V0043JobInfo + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + accrue_time: Optional[V0043Uint64NoValStruct] = None + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocating_node: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + array_job_id: Optional[V0043Uint32NoValStruct] = None + array_task_id: Optional[V0043Uint32NoValStruct] = None + array_max_tasks: Optional[V0043Uint32NoValStruct] = None + array_task_string: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + association_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for the association") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + batch_flag: Optional[StrictBool] = Field(default=None, description="True if batch job") + batch_host: Optional[StrictStr] = Field(default=None, description="Name of host running batch script") + flags: Optional[List[StrictStr]] = Field(default=None, description="Job flags") + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + burst_buffer_state: Optional[StrictStr] = Field(default=None, description="Burst buffer state details") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + cluster_features: Optional[StrictStr] = Field(default=None, description="List of required cluster features") + command: Optional[StrictStr] = Field(default=None, description="Executed command") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + core_spec: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_spec: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cores_per_socket: Optional[V0043Uint16NoValStruct] = None + billable_tres: Optional[V0043Float64NoValStruct] = None + cpus_per_task: Optional[V0043Uint16NoValStruct] = None + cpu_frequency_minimum: Optional[V0043Uint32NoValStruct] = None + cpu_frequency_maximum: Optional[V0043Uint32NoValStruct] = None + cpu_frequency_governor: Optional[V0043Uint32NoValStruct] = None + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + cron: Optional[StrictStr] = Field(default=None, description="Time specification for scrontab job") + deadline: Optional[V0043Uint64NoValStruct] = None + delay_boot: Optional[V0043Uint32NoValStruct] = None + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + derived_exit_code: Optional[V0043ProcessExitCodeVerbose] = None + eligible_time: Optional[V0043Uint64NoValStruct] = None + end_time: Optional[V0043Uint64NoValStruct] = None + excluded_nodes: Optional[StrictStr] = Field(default=None, description="Comma-separated list of nodes that may not be used") + exit_code: Optional[V0043ProcessExitCodeVerbose] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + features: Optional[StrictStr] = Field(default=None, description="Comma-separated list of features that are required") + federation_origin: Optional[StrictStr] = Field(default=None, description="Origin cluster's name (when using federation)") + federation_siblings_active: Optional[StrictStr] = Field(default=None, description="Active sibling job names") + federation_siblings_viable: Optional[StrictStr] = Field(default=None, description="Viable sibling job names") + gres_detail: Optional[List[StrictStr]] = None + group_id: Optional[StrictInt] = Field(default=None, description="Group ID of the user that owns the job") + group_name: Optional[StrictStr] = Field(default=None, description="Group name of the user that owns the job") + het_job_id: Optional[V0043Uint32NoValStruct] = None + het_job_id_set: Optional[StrictStr] = Field(default=None, description="Job ID range for all heterogeneous job components") + het_job_offset: Optional[V0043Uint32NoValStruct] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + job_resources: Optional[V0043JobRes] = None + job_size_str: Optional[List[StrictStr]] = None + job_state: Optional[List[StrictStr]] = Field(default=None, description="Current state") + last_sched_evaluation: Optional[V0043Uint64NoValStruct] = None + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + licenses_allocated: Optional[StrictStr] = Field(default=None, description="License(s) allocated to the job") + mail_type: Optional[List[StrictStr]] = Field(default=None, description="Mail event type(s)") + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + max_cpus: Optional[V0043Uint32NoValStruct] = None + max_nodes: Optional[V0043Uint32NoValStruct] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for the job") + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks_per_core: Optional[V0043Uint16NoValStruct] = None + tasks_per_tres: Optional[V0043Uint16NoValStruct] = None + tasks_per_node: Optional[V0043Uint16NoValStruct] = None + tasks_per_socket: Optional[V0043Uint16NoValStruct] = None + tasks_per_board: Optional[V0043Uint16NoValStruct] = None + cpus: Optional[V0043Uint32NoValStruct] = None + node_count: Optional[V0043Uint32NoValStruct] = None + tasks: Optional[V0043Uint32NoValStruct] = None + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + prefer: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested but that are not required") + memory_per_cpu: Optional[V0043Uint64NoValStruct] = None + memory_per_node: Optional[V0043Uint64NoValStruct] = None + minimum_cpus_per_node: Optional[V0043Uint16NoValStruct] = None + minimum_tmp_disk_per_node: Optional[V0043Uint32NoValStruct] = None + power: Optional[V0041OpenapiJobInfoRespJobsInnerPower] = None + preempt_time: Optional[V0043Uint64NoValStruct] = None + preemptable_time: Optional[V0043Uint64NoValStruct] = None + pre_sus_time: Optional[V0043Uint64NoValStruct] = None + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job (Job held)") + priority: Optional[V0043Uint32NoValStruct] = None + priority_by_partition: Optional[List[V0043PartPrio]] = None + profile: Optional[List[StrictStr]] = Field(default=None, description="Profile used by the acct_gather_profile plugin") + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job, if pending the QOS requested") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[StrictStr] = Field(default=None, description="Comma-separated list of required nodes") + required_switches: Optional[StrictInt] = Field(default=None, description="Maximum number of switches") + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + resize_time: Optional[V0043Uint64NoValStruct] = None + restart_cnt: Optional[StrictInt] = Field(default=None, description="Number of job restarts") + resv_name: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + scheduled_nodes: Optional[StrictStr] = Field(default=None, description="List of nodes scheduled to be used for the job") + segment_size: Optional[StrictInt] = Field(default=None, description="Requested segment size") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + shared: Optional[List[StrictStr]] = Field(default=None, description="How the job can share resources with other jobs, if at all") + sockets_per_board: Optional[StrictInt] = Field(default=None, description="Number of sockets per board required") + sockets_per_node: Optional[V0043Uint16NoValStruct] = None + start_time: Optional[V0043Uint64NoValStruct] = None + state_description: Optional[StrictStr] = Field(default=None, description="Optional details for state_reason") + state_reason: Optional[StrictStr] = Field(default=None, description="Reason for current Pending or Failed state") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + stdin_expanded: Optional[StrictStr] = Field(default=None, description="Job stdin with expanded fields") + stdout_expanded: Optional[StrictStr] = Field(default=None, description="Job stdout with expanded fields") + stderr_expanded: Optional[StrictStr] = Field(default=None, description="Job stderr with expanded fields") + submit_time: Optional[V0043Uint64NoValStruct] = None + suspend_time: Optional[V0043Uint64NoValStruct] = None + system_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment from slurmctld") + time_limit: Optional[V0043Uint32NoValStruct] = None + time_minimum: Optional[V0043Uint32NoValStruct] = None + threads_per_core: Optional[V0043Uint16NoValStruct] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per task") + tres_req_str: Optional[StrictStr] = Field(default=None, description="TRES requested by the job") + tres_alloc_str: Optional[StrictStr] = Field(default=None, description="TRES used by the job") + user_id: Optional[StrictInt] = Field(default=None, description="User ID that owns the job") + user_name: Optional[StrictStr] = Field(default=None, description="User name that owns the job") + maximum_switch_wait_time: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + __properties: ClassVar[List[str]] = ["account", "accrue_time", "admin_comment", "allocating_node", "array_job_id", "array_task_id", "array_max_tasks", "array_task_string", "association_id", "batch_features", "batch_flag", "batch_host", "flags", "burst_buffer", "burst_buffer_state", "cluster", "cluster_features", "command", "comment", "container", "container_id", "contiguous", "core_spec", "thread_spec", "cores_per_socket", "billable_tres", "cpus_per_task", "cpu_frequency_minimum", "cpu_frequency_maximum", "cpu_frequency_governor", "cpus_per_tres", "cron", "deadline", "delay_boot", "dependency", "derived_exit_code", "eligible_time", "end_time", "excluded_nodes", "exit_code", "extra", "failed_node", "features", "federation_origin", "federation_siblings_active", "federation_siblings_viable", "gres_detail", "group_id", "group_name", "het_job_id", "het_job_id_set", "het_job_offset", "job_id", "job_resources", "job_size_str", "job_state", "last_sched_evaluation", "licenses", "licenses_allocated", "mail_type", "mail_user", "max_cpus", "max_nodes", "mcs_label", "memory_per_tres", "name", "network", "nodes", "nice", "tasks_per_core", "tasks_per_tres", "tasks_per_node", "tasks_per_socket", "tasks_per_board", "cpus", "node_count", "tasks", "partition", "prefer", "memory_per_cpu", "memory_per_node", "minimum_cpus_per_node", "minimum_tmp_disk_per_node", "power", "preempt_time", "preemptable_time", "pre_sus_time", "hold", "priority", "priority_by_partition", "profile", "qos", "reboot", "required_nodes", "required_switches", "requeue", "resize_time", "restart_cnt", "resv_name", "scheduled_nodes", "segment_size", "selinux_context", "shared", "sockets_per_board", "sockets_per_node", "start_time", "state_description", "state_reason", "standard_input", "standard_output", "standard_error", "stdin_expanded", "stdout_expanded", "stderr_expanded", "submit_time", "suspend_time", "system_comment", "time_limit", "time_minimum", "threads_per_core", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "tres_req_str", "tres_alloc_str", "user_id", "user_name", "maximum_switch_wait_time", "wckey", "current_working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accrue_time + if self.accrue_time: + _dict['accrue_time'] = self.accrue_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_job_id + if self.array_job_id: + _dict['array_job_id'] = self.array_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_task_id + if self.array_task_id: + _dict['array_task_id'] = self.array_task_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_max_tasks + if self.array_max_tasks: + _dict['array_max_tasks'] = self.array_max_tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cores_per_socket + if self.cores_per_socket: + _dict['cores_per_socket'] = self.cores_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of billable_tres + if self.billable_tres: + _dict['billable_tres'] = self.billable_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_task + if self.cpus_per_task: + _dict['cpus_per_task'] = self.cpus_per_task.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_minimum + if self.cpu_frequency_minimum: + _dict['cpu_frequency_minimum'] = self.cpu_frequency_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_maximum + if self.cpu_frequency_maximum: + _dict['cpu_frequency_maximum'] = self.cpu_frequency_maximum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_governor + if self.cpu_frequency_governor: + _dict['cpu_frequency_governor'] = self.cpu_frequency_governor.to_dict() + # override the default output from pydantic by calling `to_dict()` of deadline + if self.deadline: + _dict['deadline'] = self.deadline.to_dict() + # override the default output from pydantic by calling `to_dict()` of delay_boot + if self.delay_boot: + _dict['delay_boot'] = self.delay_boot.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of eligible_time + if self.eligible_time: + _dict['eligible_time'] = self.eligible_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_id + if self.het_job_id: + _dict['het_job_id'] = self.het_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_offset + if self.het_job_offset: + _dict['het_job_offset'] = self.het_job_offset.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_resources + if self.job_resources: + _dict['job_resources'] = self.job_resources.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_sched_evaluation + if self.last_sched_evaluation: + _dict['last_sched_evaluation'] = self.last_sched_evaluation.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_cpus + if self.max_cpus: + _dict['max_cpus'] = self.max_cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_nodes + if self.max_nodes: + _dict['max_nodes'] = self.max_nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_core + if self.tasks_per_core: + _dict['tasks_per_core'] = self.tasks_per_core.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_tres + if self.tasks_per_tres: + _dict['tasks_per_tres'] = self.tasks_per_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_node + if self.tasks_per_node: + _dict['tasks_per_node'] = self.tasks_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_socket + if self.tasks_per_socket: + _dict['tasks_per_socket'] = self.tasks_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_board + if self.tasks_per_board: + _dict['tasks_per_board'] = self.tasks_per_board.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of node_count + if self.node_count: + _dict['node_count'] = self.node_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_cpus_per_node + if self.minimum_cpus_per_node: + _dict['minimum_cpus_per_node'] = self.minimum_cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_tmp_disk_per_node + if self.minimum_tmp_disk_per_node: + _dict['minimum_tmp_disk_per_node'] = self.minimum_tmp_disk_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of power + if self.power: + _dict['power'] = self.power.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt_time + if self.preempt_time: + _dict['preempt_time'] = self.preempt_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of preemptable_time + if self.preemptable_time: + _dict['preemptable_time'] = self.preemptable_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of pre_sus_time + if self.pre_sus_time: + _dict['pre_sus_time'] = self.pre_sus_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in priority_by_partition (list) + _items = [] + if self.priority_by_partition: + for _item_priority_by_partition in self.priority_by_partition: + if _item_priority_by_partition: + _items.append(_item_priority_by_partition.to_dict()) + _dict['priority_by_partition'] = _items + # override the default output from pydantic by calling `to_dict()` of resize_time + if self.resize_time: + _dict['resize_time'] = self.resize_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of sockets_per_node + if self.sockets_per_node: + _dict['sockets_per_node'] = self.sockets_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of submit_time + if self.submit_time: + _dict['submit_time'] = self.submit_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "accrue_time": V0043Uint64NoValStruct.from_dict(obj["accrue_time"]) if obj.get("accrue_time") is not None else None, + "admin_comment": obj.get("admin_comment"), + "allocating_node": obj.get("allocating_node"), + "array_job_id": V0043Uint32NoValStruct.from_dict(obj["array_job_id"]) if obj.get("array_job_id") is not None else None, + "array_task_id": V0043Uint32NoValStruct.from_dict(obj["array_task_id"]) if obj.get("array_task_id") is not None else None, + "array_max_tasks": V0043Uint32NoValStruct.from_dict(obj["array_max_tasks"]) if obj.get("array_max_tasks") is not None else None, + "array_task_string": obj.get("array_task_string"), + "association_id": obj.get("association_id"), + "batch_features": obj.get("batch_features"), + "batch_flag": obj.get("batch_flag"), + "batch_host": obj.get("batch_host"), + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "burst_buffer_state": obj.get("burst_buffer_state"), + "cluster": obj.get("cluster"), + "cluster_features": obj.get("cluster_features"), + "command": obj.get("command"), + "comment": obj.get("comment"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "contiguous": obj.get("contiguous"), + "core_spec": obj.get("core_spec"), + "thread_spec": obj.get("thread_spec"), + "cores_per_socket": V0043Uint16NoValStruct.from_dict(obj["cores_per_socket"]) if obj.get("cores_per_socket") is not None else None, + "billable_tres": V0043Float64NoValStruct.from_dict(obj["billable_tres"]) if obj.get("billable_tres") is not None else None, + "cpus_per_task": V0043Uint16NoValStruct.from_dict(obj["cpus_per_task"]) if obj.get("cpus_per_task") is not None else None, + "cpu_frequency_minimum": V0043Uint32NoValStruct.from_dict(obj["cpu_frequency_minimum"]) if obj.get("cpu_frequency_minimum") is not None else None, + "cpu_frequency_maximum": V0043Uint32NoValStruct.from_dict(obj["cpu_frequency_maximum"]) if obj.get("cpu_frequency_maximum") is not None else None, + "cpu_frequency_governor": V0043Uint32NoValStruct.from_dict(obj["cpu_frequency_governor"]) if obj.get("cpu_frequency_governor") is not None else None, + "cpus_per_tres": obj.get("cpus_per_tres"), + "cron": obj.get("cron"), + "deadline": V0043Uint64NoValStruct.from_dict(obj["deadline"]) if obj.get("deadline") is not None else None, + "delay_boot": V0043Uint32NoValStruct.from_dict(obj["delay_boot"]) if obj.get("delay_boot") is not None else None, + "dependency": obj.get("dependency"), + "derived_exit_code": V0043ProcessExitCodeVerbose.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "eligible_time": V0043Uint64NoValStruct.from_dict(obj["eligible_time"]) if obj.get("eligible_time") is not None else None, + "end_time": V0043Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "exit_code": V0043ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "features": obj.get("features"), + "federation_origin": obj.get("federation_origin"), + "federation_siblings_active": obj.get("federation_siblings_active"), + "federation_siblings_viable": obj.get("federation_siblings_viable"), + "gres_detail": obj.get("gres_detail"), + "group_id": obj.get("group_id"), + "group_name": obj.get("group_name"), + "het_job_id": V0043Uint32NoValStruct.from_dict(obj["het_job_id"]) if obj.get("het_job_id") is not None else None, + "het_job_id_set": obj.get("het_job_id_set"), + "het_job_offset": V0043Uint32NoValStruct.from_dict(obj["het_job_offset"]) if obj.get("het_job_offset") is not None else None, + "job_id": obj.get("job_id"), + "job_resources": V0043JobRes.from_dict(obj["job_resources"]) if obj.get("job_resources") is not None else None, + "job_size_str": obj.get("job_size_str"), + "job_state": obj.get("job_state"), + "last_sched_evaluation": V0043Uint64NoValStruct.from_dict(obj["last_sched_evaluation"]) if obj.get("last_sched_evaluation") is not None else None, + "licenses": obj.get("licenses"), + "licenses_allocated": obj.get("licenses_allocated"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "max_cpus": V0043Uint32NoValStruct.from_dict(obj["max_cpus"]) if obj.get("max_cpus") is not None else None, + "max_nodes": V0043Uint32NoValStruct.from_dict(obj["max_nodes"]) if obj.get("max_nodes") is not None else None, + "mcs_label": obj.get("mcs_label"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nodes": obj.get("nodes"), + "nice": obj.get("nice"), + "tasks_per_core": V0043Uint16NoValStruct.from_dict(obj["tasks_per_core"]) if obj.get("tasks_per_core") is not None else None, + "tasks_per_tres": V0043Uint16NoValStruct.from_dict(obj["tasks_per_tres"]) if obj.get("tasks_per_tres") is not None else None, + "tasks_per_node": V0043Uint16NoValStruct.from_dict(obj["tasks_per_node"]) if obj.get("tasks_per_node") is not None else None, + "tasks_per_socket": V0043Uint16NoValStruct.from_dict(obj["tasks_per_socket"]) if obj.get("tasks_per_socket") is not None else None, + "tasks_per_board": V0043Uint16NoValStruct.from_dict(obj["tasks_per_board"]) if obj.get("tasks_per_board") is not None else None, + "cpus": V0043Uint32NoValStruct.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "node_count": V0043Uint32NoValStruct.from_dict(obj["node_count"]) if obj.get("node_count") is not None else None, + "tasks": V0043Uint32NoValStruct.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "partition": obj.get("partition"), + "prefer": obj.get("prefer"), + "memory_per_cpu": V0043Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0043Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "minimum_cpus_per_node": V0043Uint16NoValStruct.from_dict(obj["minimum_cpus_per_node"]) if obj.get("minimum_cpus_per_node") is not None else None, + "minimum_tmp_disk_per_node": V0043Uint32NoValStruct.from_dict(obj["minimum_tmp_disk_per_node"]) if obj.get("minimum_tmp_disk_per_node") is not None else None, + "power": V0041OpenapiJobInfoRespJobsInnerPower.from_dict(obj["power"]) if obj.get("power") is not None else None, + "preempt_time": V0043Uint64NoValStruct.from_dict(obj["preempt_time"]) if obj.get("preempt_time") is not None else None, + "preemptable_time": V0043Uint64NoValStruct.from_dict(obj["preemptable_time"]) if obj.get("preemptable_time") is not None else None, + "pre_sus_time": V0043Uint64NoValStruct.from_dict(obj["pre_sus_time"]) if obj.get("pre_sus_time") is not None else None, + "hold": obj.get("hold"), + "priority": V0043Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "priority_by_partition": [V0043PartPrio.from_dict(_item) for _item in obj["priority_by_partition"]] if obj.get("priority_by_partition") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "required_switches": obj.get("required_switches"), + "requeue": obj.get("requeue"), + "resize_time": V0043Uint64NoValStruct.from_dict(obj["resize_time"]) if obj.get("resize_time") is not None else None, + "restart_cnt": obj.get("restart_cnt"), + "resv_name": obj.get("resv_name"), + "scheduled_nodes": obj.get("scheduled_nodes"), + "segment_size": obj.get("segment_size"), + "selinux_context": obj.get("selinux_context"), + "shared": obj.get("shared"), + "sockets_per_board": obj.get("sockets_per_board"), + "sockets_per_node": V0043Uint16NoValStruct.from_dict(obj["sockets_per_node"]) if obj.get("sockets_per_node") is not None else None, + "start_time": V0043Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "state_description": obj.get("state_description"), + "state_reason": obj.get("state_reason"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "standard_error": obj.get("standard_error"), + "stdin_expanded": obj.get("stdin_expanded"), + "stdout_expanded": obj.get("stdout_expanded"), + "stderr_expanded": obj.get("stderr_expanded"), + "submit_time": V0043Uint64NoValStruct.from_dict(obj["submit_time"]) if obj.get("submit_time") is not None else None, + "suspend_time": V0043Uint64NoValStruct.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None, + "system_comment": obj.get("system_comment"), + "time_limit": V0043Uint32NoValStruct.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0043Uint32NoValStruct.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "threads_per_core": V0043Uint16NoValStruct.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "tres_req_str": obj.get("tres_req_str"), + "tres_alloc_str": obj.get("tres_alloc_str"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "maximum_switch_wait_time": obj.get("maximum_switch_wait_time"), + "wckey": obj.get("wckey"), + "current_working_directory": obj.get("current_working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_required.py b/slurmrest_python/models/v0043_job_required.py new file mode 100644 index 0000000..bcbc81f --- /dev/null +++ b/slurmrest_python/models/v0043_job_required.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobRequired(BaseModel): + """ + V0043JobRequired + """ # noqa: E501 + cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required", alias="CPUs") + memory_per_cpu: Optional[V0043Uint64NoValStruct] = None + memory_per_node: Optional[V0043Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["CPUs", "memory_per_cpu", "memory_per_node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobRequired from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobRequired from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPUs": obj.get("CPUs"), + "memory_per_cpu": V0043Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0043Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_res.py b/slurmrest_python/models/v0043_job_res.py new file mode 100644 index 0000000..4f9419e --- /dev/null +++ b/slurmrest_python/models/v0043_job_res.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_job_res_nodes import V0043JobResNodes +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobRes(BaseModel): + """ + V0043JobRes + """ # noqa: E501 + select_type: List[StrictStr] = Field(description="Scheduler consumable resource selection type") + nodes: Optional[V0043JobResNodes] = None + cpus: StrictInt = Field(description="Number of allocated CPUs") + threads_per_core: V0043Uint16NoValStruct + __properties: ClassVar[List[str]] = ["select_type", "nodes", "cpus", "threads_per_core"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobRes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobRes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "select_type": obj.get("select_type"), + "nodes": V0043JobResNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "cpus": obj.get("cpus"), + "threads_per_core": V0043Uint16NoValStruct.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_res_core.py b/slurmrest_python/models/v0043_job_res_core.py new file mode 100644 index 0000000..2f7276d --- /dev/null +++ b/slurmrest_python/models/v0043_job_res_core.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobResCore(BaseModel): + """ + V0043JobResCore + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + status: List[StrictStr] = Field(description="Core status") + __properties: ClassVar[List[str]] = ["index", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE']): + raise ValueError("each list item must be one of ('INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobResCore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobResCore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "status": obj.get("status") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_res_node.py b/slurmrest_python/models/v0043_job_res_node.py new file mode 100644 index 0000000..5c8f9f5 --- /dev/null +++ b/slurmrest_python/models/v0043_job_res_node.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory +from slurmrest_python.models.v0043_job_res_socket import V0043JobResSocket +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobResNode(BaseModel): + """ + V0043JobResNode + """ # noqa: E501 + index: StrictInt = Field(description="Node index") + name: StrictStr = Field(description="Node name") + cpus: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus] = None + memory: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory] = None + sockets: List[V0043JobResSocket] + __properties: ClassVar[List[str]] = ["index", "name", "cpus", "memory", "sockets"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobResNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory + if self.memory: + _dict['memory'] = self.memory.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in sockets (list) + _items = [] + if self.sockets: + for _item_sockets in self.sockets: + if _item_sockets: + _items.append(_item_sockets.to_dict()) + _dict['sockets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobResNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "name": obj.get("name"), + "cpus": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "memory": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.from_dict(obj["memory"]) if obj.get("memory") is not None else None, + "sockets": [V0043JobResSocket.from_dict(_item) for _item in obj["sockets"]] if obj.get("sockets") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_res_nodes.py b/slurmrest_python/models/v0043_job_res_nodes.py new file mode 100644 index 0000000..b2ec77b --- /dev/null +++ b/slurmrest_python/models/v0043_job_res_nodes.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_job_res_node import V0043JobResNode +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobResNodes(BaseModel): + """ + V0043JobResNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of allocated nodes") + select_type: Optional[List[StrictStr]] = Field(default=None, description="Node scheduling selection method") + list: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + whole: Optional[StrictBool] = Field(default=None, description="Whether whole nodes were allocated") + allocation: Optional[List[V0043JobResNode]] = Field(default=None, description="Job resources for a node") + __properties: ClassVar[List[str]] = ["count", "select_type", "list", "whole", "allocation"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['AVAILABLE', 'ONE_ROW', 'RESERVED']): + raise ValueError("each list item must be one of ('AVAILABLE', 'ONE_ROW', 'RESERVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobResNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocation (list) + _items = [] + if self.allocation: + for _item_allocation in self.allocation: + if _item_allocation: + _items.append(_item_allocation.to_dict()) + _dict['allocation'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobResNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "select_type": obj.get("select_type"), + "list": obj.get("list"), + "whole": obj.get("whole"), + "allocation": [V0043JobResNode.from_dict(_item) for _item in obj["allocation"]] if obj.get("allocation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_res_socket.py b/slurmrest_python/models/v0043_job_res_socket.py new file mode 100644 index 0000000..05170ec --- /dev/null +++ b/slurmrest_python/models/v0043_job_res_socket.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0043_job_res_core import V0043JobResCore +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobResSocket(BaseModel): + """ + V0043JobResSocket + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + cores: List[V0043JobResCore] + __properties: ClassVar[List[str]] = ["index", "cores"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobResSocket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in cores (list) + _items = [] + if self.cores: + for _item_cores in self.cores: + if _item_cores: + _items.append(_item_cores.to_dict()) + _dict['cores'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobResSocket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "cores": [V0043JobResCore.from_dict(_item) for _item in obj["cores"]] if obj.get("cores") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_submit_req.py b/slurmrest_python/models/v0043_job_submit_req.py new file mode 100644 index 0000000..ff01188 --- /dev/null +++ b/slurmrest_python/models/v0043_job_submit_req.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobSubmitReq(BaseModel): + """ + V0043JobSubmitReq + """ # noqa: E501 + script: Optional[StrictStr] = Field(default=None, description="Job batch script contents; Same as the script field in jobs[0] or job.") + jobs: Optional[List[V0043JobDescMsg]] = None + job: Optional[V0043JobDescMsg] = None + __properties: ClassVar[List[str]] = ["script", "jobs", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobSubmitReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobSubmitReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "script": obj.get("script"), + "jobs": [V0043JobDescMsg.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "job": V0043JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_time.py b/slurmrest_python/models/v0043_job_time.py new file mode 100644 index 0000000..40fddd2 --- /dev/null +++ b/slurmrest_python/models/v0043_job_time.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobTime(BaseModel): + """ + V0043JobTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + eligible: Optional[StrictInt] = Field(default=None, description="Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + end: Optional[StrictInt] = Field(default=None, description="End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + planned: Optional[V0043Uint64NoValStruct] = None + start: Optional[StrictInt] = Field(default=None, description="Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + submission: Optional[StrictInt] = Field(default=None, description="Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + suspended: Optional[StrictInt] = Field(default=None, description="Total time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem] = None + limit: Optional[V0043Uint32NoValStruct] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "eligible", "end", "planned", "start", "submission", "suspended", "system", "limit", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of planned + if self.planned: + _dict['planned'] = self.planned.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of limit + if self.limit: + _dict['limit'] = self.limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "eligible": obj.get("eligible"), + "end": obj.get("end"), + "planned": V0043Uint64NoValStruct.from_dict(obj["planned"]) if obj.get("planned") is not None else None, + "start": obj.get("start"), + "submission": obj.get("submission"), + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "limit": V0043Uint32NoValStruct.from_dict(obj["limit"]) if obj.get("limit") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_job_tres.py b/slurmrest_python/models/v0043_job_tres.py new file mode 100644 index 0000000..ead257e --- /dev/null +++ b/slurmrest_python/models/v0043_job_tres.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043JobTres(BaseModel): + """ + V0043JobTres + """ # noqa: E501 + allocated: Optional[List[V0043Tres]] = None + requested: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["allocated", "requested"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043JobTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in requested (list) + _items = [] + if self.requested: + for _item_requested in self.requested: + if _item_requested: + _items.append(_item_requested.to_dict()) + _dict['requested'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043JobTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": [V0043Tres.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None, + "requested": [V0043Tres.from_dict(_item) for _item in obj["requested"]] if obj.get("requested") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_kill_jobs_msg.py b/slurmrest_python/models/v0043_kill_jobs_msg.py new file mode 100644 index 0000000..e3a1af3 --- /dev/null +++ b/slurmrest_python/models/v0043_kill_jobs_msg.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043KillJobsMsg(BaseModel): + """ + V0043KillJobsMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific account") + flags: Optional[List[StrictStr]] = Field(default=None, description="Filter jobs according to flags") + job_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific name") + jobs: Optional[List[StrictStr]] = None + partition: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific partition") + qos: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific QOS") + reservation: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific reservation") + signal: Optional[StrictStr] = Field(default=None, description="Signal to send to jobs") + job_state: Optional[List[StrictStr]] = Field(default=None, description="Filter jobs to a specific state") + user_id: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific numeric user id") + user_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific user name") + wckey: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific wckey") + nodes: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["account", "flags", "job_name", "jobs", "partition", "qos", "reservation", "signal", "job_state", "user_id", "user_name", "wckey", "nodes"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043KillJobsMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043KillJobsMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "flags": obj.get("flags"), + "job_name": obj.get("job_name"), + "jobs": obj.get("jobs"), + "partition": obj.get("partition"), + "qos": obj.get("qos"), + "reservation": obj.get("reservation"), + "signal": obj.get("signal"), + "job_state": obj.get("job_state"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "wckey": obj.get("wckey"), + "nodes": obj.get("nodes") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_kill_jobs_resp_job.py b/slurmrest_python/models/v0043_kill_jobs_resp_job.py new file mode 100644 index 0000000..e3dc235 --- /dev/null +++ b/slurmrest_python/models/v0043_kill_jobs_resp_job.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043KillJobsRespJob(BaseModel): + """ + V0043KillJobsRespJob + """ # noqa: E501 + error: Optional[V0041OpenapiKillJobsRespStatusInnerError] = None + step_id: StrictStr = Field(description="Job or Step ID that signaling failed") + job_id: V0043Uint32NoValStruct + federation: Optional[V0041OpenapiKillJobsRespStatusInnerFederation] = None + __properties: ClassVar[List[str]] = ["error", "step_id", "job_id", "federation"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043KillJobsRespJob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_id + if self.job_id: + _dict['job_id'] = self.job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of federation + if self.federation: + _dict['federation'] = self.federation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043KillJobsRespJob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": V0041OpenapiKillJobsRespStatusInnerError.from_dict(obj["error"]) if obj.get("error") is not None else None, + "step_id": obj.get("step_id"), + "job_id": V0043Uint32NoValStruct.from_dict(obj["job_id"]) if obj.get("job_id") is not None else None, + "federation": V0041OpenapiKillJobsRespStatusInnerFederation.from_dict(obj["federation"]) if obj.get("federation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_license.py b/slurmrest_python/models/v0043_license.py new file mode 100644 index 0000000..a7a1914 --- /dev/null +++ b/slurmrest_python/models/v0043_license.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043License(BaseModel): + """ + V0043License + """ # noqa: E501 + license_name: Optional[StrictStr] = Field(default=None, description="Name of the license", alias="LicenseName") + total: Optional[StrictInt] = Field(default=None, description="Total number of licenses present", alias="Total") + used: Optional[StrictInt] = Field(default=None, description="Number of licenses in use", alias="Used") + free: Optional[StrictInt] = Field(default=None, description="Number of licenses currently available", alias="Free") + remote: Optional[StrictBool] = Field(default=None, description="Indicates whether licenses are served by the database", alias="Remote") + reserved: Optional[StrictInt] = Field(default=None, description="Number of licenses reserved", alias="Reserved") + last_consumed: Optional[StrictInt] = Field(default=None, description="Last known number of licenses that were consumed in the license manager (Remote Only)", alias="LastConsumed") + last_deficit: Optional[StrictInt] = Field(default=None, description="Number of \"missing licenses\" from the cluster's perspective", alias="LastDeficit") + last_update: Optional[StrictInt] = Field(default=None, description="When the license information was last updated (UNIX Timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))", alias="LastUpdate") + __properties: ClassVar[List[str]] = ["LicenseName", "Total", "Used", "Free", "Remote", "Reserved", "LastConsumed", "LastDeficit", "LastUpdate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043License from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043License from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "LicenseName": obj.get("LicenseName"), + "Total": obj.get("Total"), + "Used": obj.get("Used"), + "Free": obj.get("Free"), + "Remote": obj.get("Remote"), + "Reserved": obj.get("Reserved"), + "LastConsumed": obj.get("LastConsumed"), + "LastDeficit": obj.get("LastDeficit"), + "LastUpdate": obj.get("LastUpdate") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_node.py b/slurmrest_python/models/v0043_node.py new file mode 100644 index 0000000..22ae60b --- /dev/null +++ b/slurmrest_python/models/v0043_node.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from slurmrest_python.models.v0043_acct_gather_energy import V0043AcctGatherEnergy +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043Node(BaseModel): + """ + V0043Node + """ # noqa: E501 + architecture: Optional[StrictStr] = Field(default=None, description="Computer architecture") + burstbuffer_network_address: Optional[StrictStr] = Field(default=None, description="Alternate network path to be used for sbcast network traffic") + boards: Optional[StrictInt] = Field(default=None, description="Number of Baseboards in nodes with a baseboard controller") + boot_time: Optional[V0043Uint64NoValStruct] = None + tls_cert_last_renewal: Optional[V0043Uint64NoValStruct] = None + cert_flags: Optional[List[StrictStr]] = Field(default=None, description="Certmgr status flags") + cluster_name: Optional[StrictStr] = Field(default=None, description="Cluster name (only set in federated environments)") + cores: Optional[StrictInt] = Field(default=None, description="Number of cores in a single physical processor socket") + specialized_cores: Optional[StrictInt] = Field(default=None, description="Number of cores reserved for system use") + cpu_binding: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + cpu_load: Optional[StrictInt] = Field(default=None, description="CPU load as reported by the OS") + free_mem: Optional[V0043Uint64NoValStruct] = None + cpus: Optional[StrictInt] = Field(default=None, description="Total CPUs, including cores and threads") + effective_cpus: Optional[StrictInt] = Field(default=None, description="Number of effective CPUs (excluding specialized CPUs)") + specialized_cpus: Optional[StrictStr] = Field(default=None, description="Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd") + energy: Optional[V0043AcctGatherEnergy] = None + external_sensors: Optional[Dict[str, Any]] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + power: Optional[Dict[str, Any]] = None + features: Optional[List[StrictStr]] = None + active_features: Optional[List[StrictStr]] = None + gpu_spec: Optional[StrictStr] = Field(default=None, description="CPU cores reserved for jobs that also use a GPU") + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + gres_drained: Optional[StrictStr] = Field(default=None, description="Drained generic resources") + gres_used: Optional[StrictStr] = Field(default=None, description="Generic resources currently in use") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + last_busy: Optional[V0043Uint64NoValStruct] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label") + specialized_memory: Optional[StrictInt] = Field(default=None, description="Combined memory limit, in MB, for Slurm compute node daemons") + name: Optional[StrictStr] = Field(default=None, description="NodeName") + next_state_after_reboot: Optional[List[StrictStr]] = Field(default=None, description="The state the node will be assigned after rebooting") + address: Optional[StrictStr] = Field(default=None, description="NodeAddr, used to establish a communication path") + hostname: Optional[StrictStr] = Field(default=None, description="NodeHostname") + state: Optional[List[StrictStr]] = Field(default=None, description="Node state(s) applicable to this node") + operating_system: Optional[StrictStr] = Field(default=None, description="Operating system reported by the node") + owner: Optional[StrictStr] = Field(default=None, description="User allowed to run jobs on this node (unset if no restriction)") + partitions: Optional[List[StrictStr]] = None + port: Optional[StrictInt] = Field(default=None, description="TCP port number of the slurmd") + real_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB on the node") + res_cores_per_gpu: Optional[StrictInt] = Field(default=None, description="Number of CPU cores per GPU restricted to GPU jobs") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + reason: Optional[StrictStr] = Field(default=None, description="Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state") + reason_changed_at: Optional[V0043Uint64NoValStruct] = None + reason_set_by_user: Optional[StrictStr] = Field(default=None, description="User who set the reason") + resume_after: Optional[V0043Uint64NoValStruct] = None + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation containing this node") + alloc_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB currently allocated for jobs") + alloc_cpus: Optional[StrictInt] = Field(default=None, description="Total number of CPUs currently allocated for jobs") + alloc_idle_cpus: Optional[StrictInt] = Field(default=None, description="Total number of idle CPUs") + tres_used: Optional[StrictStr] = Field(default=None, description="Trackable resources currently allocated for jobs") + tres_weighted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Ignored. Was weighted number of billable trackable resources allocated") + slurmd_start_time: Optional[V0043Uint64NoValStruct] = None + sockets: Optional[StrictInt] = Field(default=None, description="Number of physical processor sockets/chips on the node") + threads: Optional[StrictInt] = Field(default=None, description="Number of logical threads in a single physical core") + temporary_disk: Optional[StrictInt] = Field(default=None, description="Total size in MB of temporary disk storage in TmpFS") + weight: Optional[StrictInt] = Field(default=None, description="Weight of the node for scheduling purposes") + topology: Optional[StrictStr] = Field(default=None, description="Topology") + tres: Optional[StrictStr] = Field(default=None, description="Configured trackable resources") + version: Optional[StrictStr] = Field(default=None, description="Slurmd version") + __properties: ClassVar[List[str]] = ["architecture", "burstbuffer_network_address", "boards", "boot_time", "tls_cert_last_renewal", "cert_flags", "cluster_name", "cores", "specialized_cores", "cpu_binding", "cpu_load", "free_mem", "cpus", "effective_cpus", "specialized_cpus", "energy", "external_sensors", "extra", "power", "features", "active_features", "gpu_spec", "gres", "gres_drained", "gres_used", "instance_id", "instance_type", "last_busy", "mcs_label", "specialized_memory", "name", "next_state_after_reboot", "address", "hostname", "state", "operating_system", "owner", "partitions", "port", "real_memory", "res_cores_per_gpu", "comment", "reason", "reason_changed_at", "reason_set_by_user", "resume_after", "reservation", "alloc_memory", "alloc_cpus", "alloc_idle_cpus", "tres_used", "tres_weighted", "slurmd_start_time", "sockets", "threads", "temporary_disk", "weight", "topology", "tres", "version"] + + @field_validator('cert_flags') + def cert_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['TOKEN_SET']): + raise ValueError("each list item must be one of ('TOKEN_SET')") + return value + + @field_validator('next_state_after_reboot') + def next_state_after_reboot_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Node from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of boot_time + if self.boot_time: + _dict['boot_time'] = self.boot_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of tls_cert_last_renewal + if self.tls_cert_last_renewal: + _dict['tls_cert_last_renewal'] = self.tls_cert_last_renewal.to_dict() + # override the default output from pydantic by calling `to_dict()` of free_mem + if self.free_mem: + _dict['free_mem'] = self.free_mem.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_busy + if self.last_busy: + _dict['last_busy'] = self.last_busy.to_dict() + # override the default output from pydantic by calling `to_dict()` of reason_changed_at + if self.reason_changed_at: + _dict['reason_changed_at'] = self.reason_changed_at.to_dict() + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurmd_start_time + if self.slurmd_start_time: + _dict['slurmd_start_time'] = self.slurmd_start_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Node from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "architecture": obj.get("architecture"), + "burstbuffer_network_address": obj.get("burstbuffer_network_address"), + "boards": obj.get("boards"), + "boot_time": V0043Uint64NoValStruct.from_dict(obj["boot_time"]) if obj.get("boot_time") is not None else None, + "tls_cert_last_renewal": V0043Uint64NoValStruct.from_dict(obj["tls_cert_last_renewal"]) if obj.get("tls_cert_last_renewal") is not None else None, + "cert_flags": obj.get("cert_flags"), + "cluster_name": obj.get("cluster_name"), + "cores": obj.get("cores"), + "specialized_cores": obj.get("specialized_cores"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_load": obj.get("cpu_load"), + "free_mem": V0043Uint64NoValStruct.from_dict(obj["free_mem"]) if obj.get("free_mem") is not None else None, + "cpus": obj.get("cpus"), + "effective_cpus": obj.get("effective_cpus"), + "specialized_cpus": obj.get("specialized_cpus"), + "energy": V0043AcctGatherEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None, + "external_sensors": obj.get("external_sensors"), + "extra": obj.get("extra"), + "power": obj.get("power"), + "features": obj.get("features"), + "active_features": obj.get("active_features"), + "gpu_spec": obj.get("gpu_spec"), + "gres": obj.get("gres"), + "gres_drained": obj.get("gres_drained"), + "gres_used": obj.get("gres_used"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "last_busy": V0043Uint64NoValStruct.from_dict(obj["last_busy"]) if obj.get("last_busy") is not None else None, + "mcs_label": obj.get("mcs_label"), + "specialized_memory": obj.get("specialized_memory"), + "name": obj.get("name"), + "next_state_after_reboot": obj.get("next_state_after_reboot"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "state": obj.get("state"), + "operating_system": obj.get("operating_system"), + "owner": obj.get("owner"), + "partitions": obj.get("partitions"), + "port": obj.get("port"), + "real_memory": obj.get("real_memory"), + "res_cores_per_gpu": obj.get("res_cores_per_gpu"), + "comment": obj.get("comment"), + "reason": obj.get("reason"), + "reason_changed_at": V0043Uint64NoValStruct.from_dict(obj["reason_changed_at"]) if obj.get("reason_changed_at") is not None else None, + "reason_set_by_user": obj.get("reason_set_by_user"), + "resume_after": V0043Uint64NoValStruct.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "reservation": obj.get("reservation"), + "alloc_memory": obj.get("alloc_memory"), + "alloc_cpus": obj.get("alloc_cpus"), + "alloc_idle_cpus": obj.get("alloc_idle_cpus"), + "tres_used": obj.get("tres_used"), + "tres_weighted": obj.get("tres_weighted"), + "slurmd_start_time": V0043Uint64NoValStruct.from_dict(obj["slurmd_start_time"]) if obj.get("slurmd_start_time") is not None else None, + "sockets": obj.get("sockets"), + "threads": obj.get("threads"), + "temporary_disk": obj.get("temporary_disk"), + "weight": obj.get("weight"), + "topology": obj.get("topology"), + "tres": obj.get("tres"), + "version": obj.get("version") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_accounts_add_cond_resp.py b/slurmrest_python/models/v0043_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..8fe3b40 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_accounts_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_account_short import V0043AccountShort +from slurmrest_python.models.v0043_accounts_add_cond import V0043AccountsAddCond +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiAccountsAddCondResp(BaseModel): + """ + V0043OpenapiAccountsAddCondResp + """ # noqa: E501 + association_condition: Optional[V0043AccountsAddCond] = None + account: Optional[V0043AccountShort] = None + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["association_condition", "account", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0043AccountsAddCond.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "account": V0043AccountShort.from_dict(obj["account"]) if obj.get("account") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_accounts_add_cond_resp_str.py b/slurmrest_python/models/v0043_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..6003961 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiAccountsAddCondRespStr(BaseModel): + """ + V0043OpenapiAccountsAddCondRespStr + """ # noqa: E501 + added_accounts: StrictStr = Field(description="added_accounts") + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["added_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_accounts": obj.get("added_accounts"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_accounts_removed_resp.py b/slurmrest_python/models/v0043_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..79a68cf --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_accounts_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiAccountsRemovedResp(BaseModel): + """ + V0043OpenapiAccountsRemovedResp + """ # noqa: E501 + removed_accounts: List[StrictStr] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_accounts": obj.get("removed_accounts"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_accounts_resp.py b/slurmrest_python/models/v0043_openapi_accounts_resp.py new file mode 100644 index 0000000..7ae60ae --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_accounts_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_account import V0043Account +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiAccountsResp(BaseModel): + """ + V0043OpenapiAccountsResp + """ # noqa: E501 + accounts: List[V0043Account] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiAccountsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": [V0043Account.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_assocs_removed_resp.py b/slurmrest_python/models/v0043_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..2fc743b --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_assocs_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiAssocsRemovedResp(BaseModel): + """ + V0043OpenapiAssocsRemovedResp + """ # noqa: E501 + removed_associations: List[StrictStr] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiAssocsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiAssocsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_associations": obj.get("removed_associations"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_assocs_resp.py b/slurmrest_python/models/v0043_openapi_assocs_resp.py new file mode 100644 index 0000000..75fafca --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_assocs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc import V0043Assoc +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiAssocsResp(BaseModel): + """ + V0043OpenapiAssocsResp + """ # noqa: E501 + associations: List[V0043Assoc] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiAssocsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiAssocsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0043Assoc.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_clusters_removed_resp.py b/slurmrest_python/models/v0043_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..0daf402 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_clusters_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiClustersRemovedResp(BaseModel): + """ + V0043OpenapiClustersRemovedResp + """ # noqa: E501 + deleted_clusters: List[StrictStr] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["deleted_clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiClustersRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiClustersRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_clusters": obj.get("deleted_clusters"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_clusters_resp.py b/slurmrest_python/models/v0043_openapi_clusters_resp.py new file mode 100644 index 0000000..4ec6a86 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_clusters_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_cluster_rec import V0043ClusterRec +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiClustersResp(BaseModel): + """ + V0043OpenapiClustersResp + """ # noqa: E501 + clusters: List[V0043ClusterRec] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiClustersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiClustersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0043ClusterRec.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_diag_resp.py b/slurmrest_python/models/v0043_openapi_diag_resp.py new file mode 100644 index 0000000..6bf1e3b --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_diag_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_stats_msg import V0043StatsMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiDiagResp(BaseModel): + """ + V0043OpenapiDiagResp + """ # noqa: E501 + statistics: V0043StatsMsg + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiDiagResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiDiagResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0043StatsMsg.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_error.py b/slurmrest_python/models/v0043_openapi_error.py new file mode 100644 index 0000000..558dd81 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_error.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiError(BaseModel): + """ + V0043OpenapiError + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form error description") + error_number: Optional[StrictInt] = Field(default=None, description="Slurm numeric error identifier") + error: Optional[StrictStr] = Field(default=None, description="Short form error description") + source: Optional[StrictStr] = Field(default=None, description="Source of error or where error was first detected") + __properties: ClassVar[List[str]] = ["description", "error_number", "error", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "error_number": obj.get("error_number"), + "error": obj.get("error"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_instances_resp.py b/slurmrest_python/models/v0043_openapi_instances_resp.py new file mode 100644 index 0000000..eb41b7c --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_instances_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_instance import V0043Instance +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiInstancesResp(BaseModel): + """ + V0043OpenapiInstancesResp + """ # noqa: E501 + instances: List[V0043Instance] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiInstancesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiInstancesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "instances": [V0043Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_job_alloc_resp.py b/slurmrest_python/models/v0043_openapi_job_alloc_resp.py new file mode 100644 index 0000000..644801a --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_job_alloc_resp.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiJobAllocResp(BaseModel): + """ + V0043OpenapiJobAllocResp + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Submitted Job ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["job_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiJobAllocResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiJobAllocResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_job_info_resp.py b/slurmrest_python/models/v0043_openapi_job_info_resp.py new file mode 100644 index 0000000..bbfd107 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_job_info_resp.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_job_info import V0043JobInfo +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiJobInfoResp(BaseModel): + """ + V0043OpenapiJobInfoResp + """ # noqa: E501 + jobs: List[V0043JobInfo] + last_backfill: V0043Uint64NoValStruct + last_update: V0043Uint64NoValStruct + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["jobs", "last_backfill", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiJobInfoResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of last_backfill + if self.last_backfill: + _dict['last_backfill'] = self.last_backfill.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiJobInfoResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0043JobInfo.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "last_backfill": V0043Uint64NoValStruct.from_dict(obj["last_backfill"]) if obj.get("last_backfill") is not None else None, + "last_update": V0043Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_job_post_response.py b/slurmrest_python/models/v0043_openapi_job_post_response.py new file mode 100644 index 0000000..ae304bd --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_job_post_response.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_job_array_response_msg_entry import V0043JobArrayResponseMsgEntry +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiJobPostResponse(BaseModel): + """ + V0043OpenapiJobPostResponse + """ # noqa: E501 + results: Optional[List[V0043JobArrayResponseMsgEntry]] = None + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["results", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiJobPostResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiJobPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "results": [V0043JobArrayResponseMsgEntry.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_job_submit_response.py b/slurmrest_python/models/v0043_openapi_job_submit_response.py new file mode 100644 index 0000000..2dca967 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_job_submit_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiJobSubmitResponse(BaseModel): + """ + V0043OpenapiJobSubmitResponse + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="submitted Job ID") + step_id: Optional[StrictStr] = Field(default=None, description="submitted Step ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["job_id", "step_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiJobSubmitResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiJobSubmitResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_kill_job_resp.py b/slurmrest_python/models/v0043_openapi_kill_job_resp.py new file mode 100644 index 0000000..4b1821a --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_kill_job_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_kill_jobs_resp_job import V0043KillJobsRespJob +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiKillJobResp(BaseModel): + """ + V0043OpenapiKillJobResp + """ # noqa: E501 + status: List[V0043KillJobsRespJob] = Field(description="List of jobs signal responses") + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["status", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiKillJobResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in status (list) + _items = [] + if self.status: + for _item_status in self.status: + if _item_status: + _items.append(_item_status.to_dict()) + _dict['status'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiKillJobResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": [V0043KillJobsRespJob.from_dict(_item) for _item in obj["status"]] if obj.get("status") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_kill_jobs_resp.py b/slurmrest_python/models/v0043_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..48a4a43 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_kill_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_kill_jobs_resp_job import V0043KillJobsRespJob +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiKillJobsResp(BaseModel): + """ + V0043OpenapiKillJobsResp + """ # noqa: E501 + status: List[V0043KillJobsRespJob] = Field(description="List of jobs signal responses") + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["status", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiKillJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in status (list) + _items = [] + if self.status: + for _item_status in self.status: + if _item_status: + _items.append(_item_status.to_dict()) + _dict['status'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiKillJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": [V0043KillJobsRespJob.from_dict(_item) for _item in obj["status"]] if obj.get("status") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_licenses_resp.py b/slurmrest_python/models/v0043_openapi_licenses_resp.py new file mode 100644 index 0000000..761a697 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_licenses_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_license import V0043License +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiLicensesResp(BaseModel): + """ + V0043OpenapiLicensesResp + """ # noqa: E501 + licenses: List[V0043License] + last_update: V0043Uint64NoValStruct + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["licenses", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiLicensesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in licenses (list) + _items = [] + if self.licenses: + for _item_licenses in self.licenses: + if _item_licenses: + _items.append(_item_licenses.to_dict()) + _dict['licenses'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiLicensesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "licenses": [V0043License.from_dict(_item) for _item in obj["licenses"]] if obj.get("licenses") is not None else None, + "last_update": V0043Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_meta.py b/slurmrest_python/models/v0043_openapi_meta.py new file mode 100644 index 0000000..2346014 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_meta.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiMeta(BaseModel): + """ + V0043OpenapiMeta + """ # noqa: E501 + plugin: Optional[V0041OpenapiSharesRespMetaPlugin] = None + client: Optional[V0041OpenapiSharesRespMetaClient] = None + command: Optional[List[StrictStr]] = None + slurm: Optional[V0041OpenapiSharesRespMetaSlurm] = None + __properties: ClassVar[List[str]] = ["plugin", "client", "command", "slurm"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of plugin + if self.plugin: + _dict['plugin'] = self.plugin.to_dict() + # override the default output from pydantic by calling `to_dict()` of client + if self.client: + _dict['client'] = self.client.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurm + if self.slurm: + _dict['slurm'] = self.slurm.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plugin": V0041OpenapiSharesRespMetaPlugin.from_dict(obj["plugin"]) if obj.get("plugin") is not None else None, + "client": V0041OpenapiSharesRespMetaClient.from_dict(obj["client"]) if obj.get("client") is not None else None, + "command": obj.get("command"), + "slurm": V0041OpenapiSharesRespMetaSlurm.from_dict(obj["slurm"]) if obj.get("slurm") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_nodes_resp.py b/slurmrest_python/models/v0043_openapi_nodes_resp.py new file mode 100644 index 0000000..e254c21 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_nodes_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_node import V0043Node +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiNodesResp(BaseModel): + """ + V0043OpenapiNodesResp + """ # noqa: E501 + nodes: List[V0043Node] + last_update: V0043Uint64NoValStruct + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["nodes", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiNodesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in nodes (list) + _items = [] + if self.nodes: + for _item_nodes in self.nodes: + if _item_nodes: + _items.append(_item_nodes.to_dict()) + _dict['nodes'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiNodesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": [V0043Node.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None, + "last_update": V0043Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_partition_resp.py b/slurmrest_python/models/v0043_openapi_partition_resp.py new file mode 100644 index 0000000..e791710 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_partition_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_partition_info import V0043PartitionInfo +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiPartitionResp(BaseModel): + """ + V0043OpenapiPartitionResp + """ # noqa: E501 + partitions: List[V0043PartitionInfo] + last_update: V0043Uint64NoValStruct + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["partitions", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiPartitionResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in partitions (list) + _items = [] + if self.partitions: + for _item_partitions in self.partitions: + if _item_partitions: + _items.append(_item_partitions.to_dict()) + _dict['partitions'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiPartitionResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partitions": [V0043PartitionInfo.from_dict(_item) for _item in obj["partitions"]] if obj.get("partitions") is not None else None, + "last_update": V0043Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_ping_array_resp.py b/slurmrest_python/models/v0043_openapi_ping_array_resp.py new file mode 100644 index 0000000..e1173a7 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_ping_array_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_controller_ping import V0043ControllerPing +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiPingArrayResp(BaseModel): + """ + V0043OpenapiPingArrayResp + """ # noqa: E501 + pings: List[V0043ControllerPing] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["pings", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiPingArrayResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pings (list) + _items = [] + if self.pings: + for _item_pings in self.pings: + if _item_pings: + _items.append(_item_pings.to_dict()) + _dict['pings'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiPingArrayResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pings": [V0043ControllerPing.from_dict(_item) for _item in obj["pings"]] if obj.get("pings") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_reservation_mod_resp.py b/slurmrest_python/models/v0043_openapi_reservation_mod_resp.py new file mode 100644 index 0000000..ed5d27c --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_reservation_mod_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiReservationModResp(BaseModel): + """ + V0043OpenapiReservationModResp + """ # noqa: E501 + reservations: List[V0043ReservationDescMsg] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["reservations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiReservationModResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiReservationModResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0043ReservationDescMsg.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_reservation_resp.py b/slurmrest_python/models/v0043_openapi_reservation_resp.py new file mode 100644 index 0000000..887cf2d --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_reservation_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_reservation_info import V0043ReservationInfo +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiReservationResp(BaseModel): + """ + V0043OpenapiReservationResp + """ # noqa: E501 + reservations: List[V0043ReservationInfo] + last_update: V0043Uint64NoValStruct + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["reservations", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiReservationResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiReservationResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0043ReservationInfo.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None, + "last_update": V0043Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_resp.py b/slurmrest_python/models/v0043_openapi_resp.py new file mode 100644 index 0000000..af399c4 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_resp.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiResp(BaseModel): + """ + V0043OpenapiResp + """ # noqa: E501 + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_shares_resp.py b/slurmrest_python/models/v0043_openapi_shares_resp.py new file mode 100644 index 0000000..e4507ab --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_shares_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_shares_resp_msg import V0043SharesRespMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiSharesResp(BaseModel): + """ + V0043OpenapiSharesResp + """ # noqa: E501 + shares: V0043SharesRespMsg + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["shares", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiSharesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiSharesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": V0043SharesRespMsg.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_slurmdbd_config_resp.py b/slurmrest_python/models/v0043_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..61ec237 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_slurmdbd_config_resp.py @@ -0,0 +1,192 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_account import V0043Account +from slurmrest_python.models.v0043_assoc import V0043Assoc +from slurmrest_python.models.v0043_cluster_rec import V0043ClusterRec +from slurmrest_python.models.v0043_instance import V0043Instance +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_qos import V0043Qos +from slurmrest_python.models.v0043_tres import V0043Tres +from slurmrest_python.models.v0043_user import V0043User +from slurmrest_python.models.v0043_wckey import V0043Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiSlurmdbdConfigResp(BaseModel): + """ + V0043OpenapiSlurmdbdConfigResp + """ # noqa: E501 + clusters: Optional[List[V0043ClusterRec]] = None + tres: Optional[List[V0043Tres]] = None + accounts: Optional[List[V0043Account]] = None + users: Optional[List[V0043User]] = None + qos: Optional[List[V0043Qos]] = None + wckeys: Optional[List[V0043Wckey]] = None + associations: Optional[List[V0043Assoc]] = None + instances: Optional[List[V0043Instance]] = None + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["clusters", "tres", "accounts", "users", "qos", "wckeys", "associations", "instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdConfigResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdConfigResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0043ClusterRec.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "tres": [V0043Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None, + "accounts": [V0043Account.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "users": [V0043User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "qos": [V0043Qos.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "wckeys": [V0043Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "associations": [V0043Assoc.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "instances": [V0043Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_slurmdbd_jobs_resp.py b/slurmrest_python/models/v0043_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..ae018fe --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_job import V0043Job +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiSlurmdbdJobsResp(BaseModel): + """ + V0043OpenapiSlurmdbdJobsResp + """ # noqa: E501 + jobs: List[V0043Job] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["jobs", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0043Job.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_slurmdbd_ping_resp.py b/slurmrest_python/models/v0043_openapi_slurmdbd_ping_resp.py new file mode 100644 index 0000000..2ce285b --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_slurmdbd_ping_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_slurmdbd_ping import V0043SlurmdbdPing +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiSlurmdbdPingResp(BaseModel): + """ + V0043OpenapiSlurmdbdPingResp + """ # noqa: E501 + pings: List[V0043SlurmdbdPing] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["pings", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdPingResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pings (list) + _items = [] + if self.pings: + for _item_pings in self.pings: + if _item_pings: + _items.append(_item_pings.to_dict()) + _dict['pings'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdPingResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pings": [V0043SlurmdbdPing.from_dict(_item) for _item in obj["pings"]] if obj.get("pings") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_slurmdbd_qos_removed_resp.py b/slurmrest_python/models/v0043_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..264b3be --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiSlurmdbdQosRemovedResp(BaseModel): + """ + V0043OpenapiSlurmdbdQosRemovedResp + """ # noqa: E501 + removed_qos: List[StrictStr] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdQosRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdQosRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_qos": obj.get("removed_qos"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_slurmdbd_qos_resp.py b/slurmrest_python/models/v0043_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..9d5bf0e --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_qos import V0043Qos +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiSlurmdbdQosResp(BaseModel): + """ + V0043OpenapiSlurmdbdQosResp + """ # noqa: E501 + qos: List[V0043Qos] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdQosResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdQosResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0043Qos.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_slurmdbd_stats_resp.py b/slurmrest_python/models/v0043_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..e48243b --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_stats_rec import V0043StatsRec +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiSlurmdbdStatsResp(BaseModel): + """ + V0043OpenapiSlurmdbdStatsResp + """ # noqa: E501 + statistics: V0043StatsRec + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdStatsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiSlurmdbdStatsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0043StatsRec.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_tres_resp.py b/slurmrest_python/models/v0043_openapi_tres_resp.py new file mode 100644 index 0000000..e1dc0bc --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_tres_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiTresResp(BaseModel): + """ + V0043OpenapiTresResp + """ # noqa: E501 + tres: List[V0043Tres] = Field(alias="TRES") + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["TRES", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiTresResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['TRES'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiTresResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "TRES": [V0043Tres.from_dict(_item) for _item in obj["TRES"]] if obj.get("TRES") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_users_add_cond_resp.py b/slurmrest_python/models/v0043_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..ea964ad --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_users_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_user_short import V0043UserShort +from slurmrest_python.models.v0043_users_add_cond import V0043UsersAddCond +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiUsersAddCondResp(BaseModel): + """ + V0043OpenapiUsersAddCondResp + """ # noqa: E501 + association_condition: V0043UsersAddCond + user: V0043UserShort + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["association_condition", "user", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiUsersAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiUsersAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0043UsersAddCond.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "user": V0043UserShort.from_dict(obj["user"]) if obj.get("user") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_users_add_cond_resp_str.py b/slurmrest_python/models/v0043_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..935b79e --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_users_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiUsersAddCondRespStr(BaseModel): + """ + V0043OpenapiUsersAddCondRespStr + """ # noqa: E501 + added_users: StrictStr = Field(description="added_users") + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["added_users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiUsersAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiUsersAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_users": obj.get("added_users"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_users_resp.py b/slurmrest_python/models/v0043_openapi_users_resp.py new file mode 100644 index 0000000..d285436 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_users_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_user import V0043User +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiUsersResp(BaseModel): + """ + V0043OpenapiUsersResp + """ # noqa: E501 + users: List[V0043User] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiUsersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiUsersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V0043User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_warning.py b/slurmrest_python/models/v0043_openapi_warning.py new file mode 100644 index 0000000..9e42431 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_warning.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiWarning(BaseModel): + """ + V0043OpenapiWarning + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form warning description") + source: Optional[StrictStr] = Field(default=None, description="Source of warning or where warning was first detected") + __properties: ClassVar[List[str]] = ["description", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiWarning from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiWarning from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_wckey_removed_resp.py b/slurmrest_python/models/v0043_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..b2acc64 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_wckey_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiWckeyRemovedResp(BaseModel): + """ + V0043OpenapiWckeyRemovedResp + """ # noqa: E501 + deleted_wckeys: List[StrictStr] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["deleted_wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiWckeyRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiWckeyRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_wckeys": obj.get("deleted_wckeys"), + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_openapi_wckey_resp.py b/slurmrest_python/models/v0043_openapi_wckey_resp.py new file mode 100644 index 0000000..e9c1950 --- /dev/null +++ b/slurmrest_python/models/v0043_openapi_wckey_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning +from slurmrest_python.models.v0043_wckey import V0043Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0043OpenapiWckeyResp(BaseModel): + """ + V0043OpenapiWckeyResp + """ # noqa: E501 + wckeys: List[V0043Wckey] + meta: Optional[V0043OpenapiMeta] = None + errors: Optional[List[V0043OpenapiError]] = None + warnings: Optional[List[V0043OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043OpenapiWckeyResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043OpenapiWckeyResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckeys": [V0043Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "meta": V0043OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0043OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0043OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_part_prio.py b/slurmrest_python/models/v0043_part_prio.py new file mode 100644 index 0000000..bbf6194 --- /dev/null +++ b/slurmrest_python/models/v0043_part_prio.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043PartPrio(BaseModel): + """ + V0043PartPrio + """ # noqa: E501 + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + priority: Optional[StrictInt] = Field(default=None, description="Prospective job priority if it runs in this partition") + __properties: ClassVar[List[str]] = ["partition", "priority"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043PartPrio from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043PartPrio from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partition": obj.get("partition"), + "priority": obj.get("priority") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_partition_info.py b/slurmrest_python/models/v0043_partition_info.py new file mode 100644 index 0000000..6a657f0 --- /dev/null +++ b/slurmrest_python/models/v0043_partition_info.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_partition import V0041OpenapiPartitionRespPartitionsInnerPartition +from slurmrest_python.models.v0043_partition_info_defaults import V0043PartitionInfoDefaults +from slurmrest_python.models.v0043_partition_info_maximums import V0043PartitionInfoMaximums +from slurmrest_python.models.v0043_partition_info_timeouts import V0043PartitionInfoTimeouts +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0044_partition_info_accounts import V0044PartitionInfoAccounts +from slurmrest_python.models.v0044_partition_info_cpus import V0044PartitionInfoCpus +from slurmrest_python.models.v0044_partition_info_groups import V0044PartitionInfoGroups +from slurmrest_python.models.v0044_partition_info_minimums import V0044PartitionInfoMinimums +from slurmrest_python.models.v0044_partition_info_nodes import V0044PartitionInfoNodes +from slurmrest_python.models.v0044_partition_info_priority import V0044PartitionInfoPriority +from slurmrest_python.models.v0044_partition_info_qos import V0044PartitionInfoQos +from slurmrest_python.models.v0044_partition_info_tres import V0044PartitionInfoTres +from typing import Optional, Set +from typing_extensions import Self + +class V0043PartitionInfo(BaseModel): + """ + V0043PartitionInfo + """ # noqa: E501 + nodes: Optional[V0044PartitionInfoNodes] = None + accounts: Optional[V0044PartitionInfoAccounts] = None + groups: Optional[V0044PartitionInfoGroups] = None + qos: Optional[V0044PartitionInfoQos] = None + alternate: Optional[StrictStr] = Field(default=None, description="Alternate - Partition name of alternate partition to be used if the state of this partition is DRAIN or INACTIVE") + tres: Optional[V0044PartitionInfoTres] = None + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + select_type: Optional[List[StrictStr]] = Field(default=None, description="Scheduler consumable resource selection type") + cpus: Optional[V0044PartitionInfoCpus] = None + defaults: Optional[V0043PartitionInfoDefaults] = None + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime - Grace time in seconds to be extended to a job which has been selected for preemption") + maximums: Optional[V0043PartitionInfoMaximums] = None + minimums: Optional[V0044PartitionInfoMinimums] = None + name: Optional[StrictStr] = Field(default=None, description="PartitionName - Name by which the partition may be referenced") + node_sets: Optional[StrictStr] = Field(default=None, description="NodeSets - Comma-separated list of nodesets which are associated with this partition") + priority: Optional[V0044PartitionInfoPriority] = None + timeouts: Optional[V0043PartitionInfoTimeouts] = None + topology: Optional[StrictStr] = Field(default=None, description="Topology - Name of the topology, defined in topology.yaml, used by jobs in this partition") + partition: Optional[V0041OpenapiPartitionRespPartitionsInnerPartition] = None + suspend_time: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["nodes", "accounts", "groups", "qos", "alternate", "tres", "cluster", "select_type", "cpus", "defaults", "grace_time", "maximums", "minimums", "name", "node_sets", "priority", "timeouts", "topology", "partition", "suspend_time"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043PartitionInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of accounts + if self.accounts: + _dict['accounts'] = self.accounts.to_dict() + # override the default output from pydantic by calling `to_dict()` of groups + if self.groups: + _dict['groups'] = self.groups.to_dict() + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of defaults + if self.defaults: + _dict['defaults'] = self.defaults.to_dict() + # override the default output from pydantic by calling `to_dict()` of maximums + if self.maximums: + _dict['maximums'] = self.maximums.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimums + if self.minimums: + _dict['minimums'] = self.minimums.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of timeouts + if self.timeouts: + _dict['timeouts'] = self.timeouts.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition + if self.partition: + _dict['partition'] = self.partition.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043PartitionInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": V0044PartitionInfoNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "accounts": V0044PartitionInfoAccounts.from_dict(obj["accounts"]) if obj.get("accounts") is not None else None, + "groups": V0044PartitionInfoGroups.from_dict(obj["groups"]) if obj.get("groups") is not None else None, + "qos": V0044PartitionInfoQos.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "alternate": obj.get("alternate"), + "tres": V0044PartitionInfoTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "cluster": obj.get("cluster"), + "select_type": obj.get("select_type"), + "cpus": V0044PartitionInfoCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "defaults": V0043PartitionInfoDefaults.from_dict(obj["defaults"]) if obj.get("defaults") is not None else None, + "grace_time": obj.get("grace_time"), + "maximums": V0043PartitionInfoMaximums.from_dict(obj["maximums"]) if obj.get("maximums") is not None else None, + "minimums": V0044PartitionInfoMinimums.from_dict(obj["minimums"]) if obj.get("minimums") is not None else None, + "name": obj.get("name"), + "node_sets": obj.get("node_sets"), + "priority": V0044PartitionInfoPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "timeouts": V0043PartitionInfoTimeouts.from_dict(obj["timeouts"]) if obj.get("timeouts") is not None else None, + "topology": obj.get("topology"), + "partition": V0041OpenapiPartitionRespPartitionsInnerPartition.from_dict(obj["partition"]) if obj.get("partition") is not None else None, + "suspend_time": V0043Uint32NoValStruct.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_partition_info_defaults.py b/slurmrest_python/models/v0043_partition_info_defaults.py new file mode 100644 index 0000000..eba43ca --- /dev/null +++ b/slurmrest_python/models/v0043_partition_info_defaults.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043PartitionInfoDefaults(BaseModel): + """ + V0043PartitionInfoDefaults + """ # noqa: E501 + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="Raw value for DefMemPerCPU or DefMemPerNode") + partition_memory_per_cpu: Optional[V0043Uint64NoValStruct] = None + partition_memory_per_node: Optional[V0043Uint64NoValStruct] = None + time: Optional[V0043Uint32NoValStruct] = None + job: Optional[StrictStr] = Field(default=None, description="JobDefaults - Comma-separated list of job default values (this field is only used to set new defaults)") + __properties: ClassVar[List[str]] = ["memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "time", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043PartitionInfoDefaults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043PartitionInfoDefaults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0043Uint64NoValStruct.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0043Uint64NoValStruct.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "time": V0043Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None, + "job": obj.get("job") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_partition_info_maximums.py b/slurmrest_python/models/v0043_partition_info_maximums.py new file mode 100644 index 0000000..6a8b7d5 --- /dev/null +++ b/slurmrest_python/models/v0043_partition_info_maximums.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe import V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043PartitionInfoMaximums(BaseModel): + """ + V0043PartitionInfoMaximums + """ # noqa: E501 + cpus_per_node: Optional[V0043Uint32NoValStruct] = None + cpus_per_socket: Optional[V0043Uint32NoValStruct] = None + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="Raw value for MaxMemPerCPU or MaxMemPerNode") + partition_memory_per_cpu: Optional[V0043Uint64NoValStruct] = None + partition_memory_per_node: Optional[V0043Uint64NoValStruct] = None + nodes: Optional[V0043Uint32NoValStruct] = None + shares: Optional[StrictInt] = Field(default=None, description="OverSubscribe - Controls the ability of the partition to execute more than one job at a time on each resource") + oversubscribe: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe] = None + time: Optional[V0043Uint32NoValStruct] = None + over_time_limit: Optional[V0043Uint16NoValStruct] = None + __properties: ClassVar[List[str]] = ["cpus_per_node", "cpus_per_socket", "memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "nodes", "shares", "oversubscribe", "time", "over_time_limit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043PartitionInfoMaximums from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus_per_node + if self.cpus_per_node: + _dict['cpus_per_node'] = self.cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_socket + if self.cpus_per_socket: + _dict['cpus_per_socket'] = self.cpus_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of oversubscribe + if self.oversubscribe: + _dict['oversubscribe'] = self.oversubscribe.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of over_time_limit + if self.over_time_limit: + _dict['over_time_limit'] = self.over_time_limit.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043PartitionInfoMaximums from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpus_per_node": V0043Uint32NoValStruct.from_dict(obj["cpus_per_node"]) if obj.get("cpus_per_node") is not None else None, + "cpus_per_socket": V0043Uint32NoValStruct.from_dict(obj["cpus_per_socket"]) if obj.get("cpus_per_socket") is not None else None, + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0043Uint64NoValStruct.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0043Uint64NoValStruct.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "nodes": V0043Uint32NoValStruct.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "shares": obj.get("shares"), + "oversubscribe": V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.from_dict(obj["oversubscribe"]) if obj.get("oversubscribe") is not None else None, + "time": V0043Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None, + "over_time_limit": V0043Uint16NoValStruct.from_dict(obj["over_time_limit"]) if obj.get("over_time_limit") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_partition_info_timeouts.py b/slurmrest_python/models/v0043_partition_info_timeouts.py new file mode 100644 index 0000000..feaef39 --- /dev/null +++ b/slurmrest_python/models/v0043_partition_info_timeouts.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043PartitionInfoTimeouts(BaseModel): + """ + V0043PartitionInfoTimeouts + """ # noqa: E501 + resume: Optional[V0043Uint16NoValStruct] = None + suspend: Optional[V0043Uint16NoValStruct] = None + __properties: ClassVar[List[str]] = ["resume", "suspend"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043PartitionInfoTimeouts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume + if self.resume: + _dict['resume'] = self.resume.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend + if self.suspend: + _dict['suspend'] = self.suspend.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043PartitionInfoTimeouts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resume": V0043Uint16NoValStruct.from_dict(obj["resume"]) if obj.get("resume") is not None else None, + "suspend": V0043Uint16NoValStruct.from_dict(obj["suspend"]) if obj.get("suspend") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_process_exit_code_verbose.py b/slurmrest_python/models/v0043_process_exit_code_verbose.py new file mode 100644 index 0000000..ebf92e5 --- /dev/null +++ b/slurmrest_python/models/v0043_process_exit_code_verbose.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_process_exit_code_verbose_signal import V0043ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043ProcessExitCodeVerbose(BaseModel): + """ + V0043ProcessExitCodeVerbose + """ # noqa: E501 + status: Optional[List[StrictStr]] = Field(default=None, description="Status given by return code") + return_code: Optional[V0043Uint32NoValStruct] = None + signal: Optional[V0043ProcessExitCodeVerboseSignal] = None + __properties: ClassVar[List[str]] = ["status", "return_code", "signal"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED']): + raise ValueError("each list item must be one of ('INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ProcessExitCodeVerbose from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of return_code + if self.return_code: + _dict['return_code'] = self.return_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of signal + if self.signal: + _dict['signal'] = self.signal.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ProcessExitCodeVerbose from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "return_code": V0043Uint32NoValStruct.from_dict(obj["return_code"]) if obj.get("return_code") is not None else None, + "signal": V0043ProcessExitCodeVerboseSignal.from_dict(obj["signal"]) if obj.get("signal") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_process_exit_code_verbose_signal.py b/slurmrest_python/models/v0043_process_exit_code_verbose_signal.py new file mode 100644 index 0000000..d3ecece --- /dev/null +++ b/slurmrest_python/models/v0043_process_exit_code_verbose_signal.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043ProcessExitCodeVerboseSignal(BaseModel): + """ + V0043ProcessExitCodeVerboseSignal + """ # noqa: E501 + id: Optional[V0043Uint16NoValStruct] = None + name: Optional[StrictStr] = Field(default=None, description="Signal sent to process (name)") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ProcessExitCodeVerboseSignal from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ProcessExitCodeVerboseSignal from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": V0043Uint16NoValStruct.from_dict(obj["id"]) if obj.get("id") is not None else None, + "name": obj.get("name") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos.py b/slurmrest_python/models/v0043_qos.py new file mode 100644 index 0000000..68c44a9 --- /dev/null +++ b/slurmrest_python/models/v0043_qos.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct +from slurmrest_python.models.v0043_qos_limits import V0043QosLimits +from slurmrest_python.models.v0043_qos_preempt import V0043QosPreempt +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043Qos(BaseModel): + """ + V0043Qos + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary description") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags, to avoid modifying current values specify NOT_SET") + id: Optional[StrictInt] = Field(default=None, description="Unique ID") + limits: Optional[V0043QosLimits] = None + name: Optional[StrictStr] = Field(default=None, description="Name") + preempt: Optional[V0043QosPreempt] = None + priority: Optional[V0043Uint32NoValStruct] = None + usage_factor: Optional[V0043Float64NoValStruct] = None + usage_threshold: Optional[V0043Float64NoValStruct] = None + __properties: ClassVar[List[str]] = ["description", "flags", "id", "limits", "name", "preempt", "priority", "usage_factor", "usage_threshold"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'ADD', 'REMOVE', 'DELETED', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE']): + raise ValueError("each list item must be one of ('NOT_SET', 'ADD', 'REMOVE', 'DELETED', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Qos from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt + if self.preempt: + _dict['preempt'] = self.preempt.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_factor + if self.usage_factor: + _dict['usage_factor'] = self.usage_factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_threshold + if self.usage_threshold: + _dict['usage_threshold'] = self.usage_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Qos from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "flags": obj.get("flags"), + "id": obj.get("id"), + "limits": V0043QosLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "name": obj.get("name"), + "preempt": V0043QosPreempt.from_dict(obj["preempt"]) if obj.get("preempt") is not None else None, + "priority": V0043Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "usage_factor": V0043Float64NoValStruct.from_dict(obj["usage_factor"]) if obj.get("usage_factor") is not None else None, + "usage_threshold": V0043Float64NoValStruct.from_dict(obj["usage_threshold"]) if obj.get("usage_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits.py b/slurmrest_python/models/v0043_qos_limits.py new file mode 100644 index 0000000..57aa3b1 --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct +from slurmrest_python.models.v0043_qos_limits_max import V0043QosLimitsMax +from slurmrest_python.models.v0043_qos_limits_min import V0043QosLimitsMin +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimits(BaseModel): + """ + V0043QosLimits + """ # noqa: E501 + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime - Preemption grace time in seconds to be extended to a job which has been selected for preemption") + max: Optional[V0043QosLimitsMax] = None + factor: Optional[V0043Float64NoValStruct] = None + min: Optional[V0043QosLimitsMin] = None + __properties: ClassVar[List[str]] = ["grace_time", "max", "factor", "min"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of factor + if self.factor: + _dict['factor'] = self.factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "grace_time": obj.get("grace_time"), + "max": V0043QosLimitsMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "factor": V0043Float64NoValStruct.from_dict(obj["factor"]) if obj.get("factor") is not None else None, + "min": V0043QosLimitsMin.from_dict(obj["min"]) if obj.get("min") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max.py b/slurmrest_python/models/v0043_qos_limits_max.py new file mode 100644 index 0000000..79e1fe9 --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_max_active_jobs import V0043QosLimitsMaxActiveJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs import V0043QosLimitsMaxJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs import V0043QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0043_qos_limits_max_tres import V0043QosLimitsMaxTres +from slurmrest_python.models.v0043_qos_limits_max_wall_clock import V0043QosLimitsMaxWallClock +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMax(BaseModel): + """ + V0043QosLimitsMax + """ # noqa: E501 + active_jobs: Optional[V0043QosLimitsMaxActiveJobs] = None + jobs: Optional[V0043QosLimitsMaxJobs] = None + tres: Optional[V0043QosLimitsMaxTres] = None + wall_clock: Optional[V0043QosLimitsMaxWallClock] = None + accruing: Optional[V0043QosLimitsMaxJobsActiveJobs] = None + __properties: ClassVar[List[str]] = ["active_jobs", "jobs", "tres", "wall_clock", "accruing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "active_jobs": V0043QosLimitsMaxActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "jobs": V0043QosLimitsMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "tres": V0043QosLimitsMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "wall_clock": V0043QosLimitsMaxWallClock.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None, + "accruing": V0043QosLimitsMaxJobsActiveJobs.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_active_jobs.py b/slurmrest_python/models/v0043_qos_limits_max_active_jobs.py new file mode 100644 index 0000000..8818b6a --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_active_jobs.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxActiveJobs(BaseModel): + """ + V0043QosLimitsMaxActiveJobs + """ # noqa: E501 + accruing: Optional[V0043Uint32NoValStruct] = None + count: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["accruing", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accruing": V0043Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "count": V0043Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_jobs.py b/slurmrest_python/models/v0043_qos_limits_max_jobs.py new file mode 100644 index 0000000..efe7da8 --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_jobs.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs import V0043QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs_per import V0043QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxJobs(BaseModel): + """ + V0043QosLimitsMaxJobs + """ # noqa: E501 + count: Optional[V0043Uint32NoValStruct] = None + active_jobs: Optional[V0043QosLimitsMaxJobsActiveJobs] = None + per: Optional[V0043QosLimitsMaxJobsActiveJobsPer] = None + __properties: ClassVar[List[str]] = ["count", "active_jobs", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": V0043Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None, + "active_jobs": V0043QosLimitsMaxJobsActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "per": V0043QosLimitsMaxJobsActiveJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs.py b/slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..3175dae --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs_per import V0043QosLimitsMaxJobsActiveJobsPer +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxJobsActiveJobs(BaseModel): + """ + V0043QosLimitsMaxJobsActiveJobs + """ # noqa: E501 + per: Optional[V0043QosLimitsMaxJobsActiveJobsPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxJobsActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxJobsActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0043QosLimitsMaxJobsActiveJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs_per.py b/slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..4e3d3b0 --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxJobsActiveJobsPer(BaseModel): + """ + V0043QosLimitsMaxJobsActiveJobsPer + """ # noqa: E501 + account: Optional[V0043Uint32NoValStruct] = None + user: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxJobsActiveJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxJobsActiveJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0043Uint32NoValStruct.from_dict(obj["account"]) if obj.get("account") is not None else None, + "user": V0043Uint32NoValStruct.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_tres.py b/slurmrest_python/models/v0043_qos_limits_max_tres.py new file mode 100644 index 0000000..b83632e --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes import V0043QosLimitsMaxTresMinutes +from slurmrest_python.models.v0043_qos_limits_max_tres_per import V0043QosLimitsMaxTresPer +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxTres(BaseModel): + """ + V0043QosLimitsMaxTres + """ # noqa: E501 + total: Optional[List[V0043Tres]] = None + minutes: Optional[V0043QosLimitsMaxTresMinutes] = None + per: Optional[V0043QosLimitsMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0043Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "minutes": V0043QosLimitsMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0043QosLimitsMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_tres_minutes.py b/slurmrest_python/models/v0043_qos_limits_max_tres_minutes.py new file mode 100644 index 0000000..7b09394 --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_tres_minutes.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes_per import V0043QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxTresMinutes(BaseModel): + """ + V0043QosLimitsMaxTresMinutes + """ # noqa: E501 + total: Optional[List[V0043Tres]] = None + per: Optional[V0043QosLimitsMaxTresMinutesPer] = None + __properties: ClassVar[List[str]] = ["total", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0043Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "per": V0043QosLimitsMaxTresMinutesPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_tres_minutes_per.py b/slurmrest_python/models/v0043_qos_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..ae0e53c --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_tres_minutes_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxTresMinutesPer(BaseModel): + """ + V0043QosLimitsMaxTresMinutesPer + """ # noqa: E501 + qos: Optional[List[V0043Tres]] = None + job: Optional[List[V0043Tres]] = None + account: Optional[List[V0043Tres]] = None + user: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["qos", "job", "account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTresMinutesPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTresMinutesPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0043Tres.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "job": [V0043Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "account": [V0043Tres.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "user": [V0043Tres.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_tres_per.py b/slurmrest_python/models/v0043_qos_limits_max_tres_per.py new file mode 100644 index 0000000..51d452d --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_tres_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxTresPer(BaseModel): + """ + V0043QosLimitsMaxTresPer + """ # noqa: E501 + account: Optional[List[V0043Tres]] = None + job: Optional[List[V0043Tres]] = None + node: Optional[List[V0043Tres]] = None + user: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["account", "job", "node", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": [V0043Tres.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "job": [V0043Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0043Tres.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None, + "user": [V0043Tres.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_wall_clock.py b/slurmrest_python/models/v0043_qos_limits_max_wall_clock.py new file mode 100644 index 0000000..44c3771 --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_wall_clock.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_max_wall_clock_per import V0043QosLimitsMaxWallClockPer +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxWallClock(BaseModel): + """ + V0043QosLimitsMaxWallClock + """ # noqa: E501 + per: Optional[V0043QosLimitsMaxWallClockPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxWallClock from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxWallClock from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0043QosLimitsMaxWallClockPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_max_wall_clock_per.py b/slurmrest_python/models/v0043_qos_limits_max_wall_clock_per.py new file mode 100644 index 0000000..7299453 --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_max_wall_clock_per.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMaxWallClockPer(BaseModel): + """ + V0043QosLimitsMaxWallClockPer + """ # noqa: E501 + qos: Optional[V0043Uint32NoValStruct] = None + job: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["qos", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxWallClockPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMaxWallClockPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": V0043Uint32NoValStruct.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "job": V0043Uint32NoValStruct.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_min.py b/slurmrest_python/models/v0043_qos_limits_min.py new file mode 100644 index 0000000..a1ef2eb --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_min.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_min_tres import V0043QosLimitsMinTres +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMin(BaseModel): + """ + V0043QosLimitsMin + """ # noqa: E501 + priority_threshold: Optional[V0043Uint32NoValStruct] = None + tres: Optional[V0043QosLimitsMinTres] = None + __properties: ClassVar[List[str]] = ["priority_threshold", "tres"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0043Uint32NoValStruct.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None, + "tres": V0043QosLimitsMinTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_min_tres.py b/slurmrest_python/models/v0043_qos_limits_min_tres.py new file mode 100644 index 0000000..846ffba --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_min_tres.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_qos_limits_min_tres_per import V0043QosLimitsMinTresPer +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMinTres(BaseModel): + """ + V0043QosLimitsMinTres + """ # noqa: E501 + per: Optional[V0043QosLimitsMinTresPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMinTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMinTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0043QosLimitsMinTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_limits_min_tres_per.py b/slurmrest_python/models/v0043_qos_limits_min_tres_per.py new file mode 100644 index 0000000..e836a0f --- /dev/null +++ b/slurmrest_python/models/v0043_qos_limits_min_tres_per.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosLimitsMinTresPer(BaseModel): + """ + V0043QosLimitsMinTresPer + """ # noqa: E501 + job: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosLimitsMinTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosLimitsMinTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0043Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_qos_preempt.py b/slurmrest_python/models/v0043_qos_preempt.py new file mode 100644 index 0000000..86a76fb --- /dev/null +++ b/slurmrest_python/models/v0043_qos_preempt.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043QosPreempt(BaseModel): + """ + V0043QosPreempt + """ # noqa: E501 + list: Optional[List[StrictStr]] = None + mode: Optional[List[StrictStr]] = Field(default=None, description="PreemptMode - Mechanism used to preempt jobs or enable gang scheduling") + exempt_time: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["list", "mode", "exempt_time"] + + @field_validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG']): + raise ValueError("each list item must be one of ('DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043QosPreempt from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of exempt_time + if self.exempt_time: + _dict['exempt_time'] = self.exempt_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043QosPreempt from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "list": obj.get("list"), + "mode": obj.get("mode"), + "exempt_time": V0043Uint32NoValStruct.from_dict(obj["exempt_time"]) if obj.get("exempt_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_reservation_core_spec.py b/slurmrest_python/models/v0043_reservation_core_spec.py new file mode 100644 index 0000000..8813cff --- /dev/null +++ b/slurmrest_python/models/v0043_reservation_core_spec.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043ReservationCoreSpec(BaseModel): + """ + V0043ReservationCoreSpec + """ # noqa: E501 + node: Optional[StrictStr] = Field(default=None, description="Name of reserved node") + core: Optional[StrictStr] = Field(default=None, description="IDs of reserved cores") + __properties: ClassVar[List[str]] = ["node", "core"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ReservationCoreSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ReservationCoreSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "node": obj.get("node"), + "core": obj.get("core") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_reservation_desc_msg.py b/slurmrest_python/models/v0043_reservation_desc_msg.py new file mode 100644 index 0000000..ef9522f --- /dev/null +++ b/slurmrest_python/models/v0043_reservation_desc_msg.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_reservation_info_purge_completed import V0043ReservationInfoPurgeCompleted +from slurmrest_python.models.v0043_tres import V0043Tres +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043ReservationDescMsg(BaseModel): + """ + V0043ReservationDescMsg + """ # noqa: E501 + accounts: Optional[List[StrictStr]] = None + burst_buffer: Optional[StrictStr] = Field(default=None, description="BurstBuffer") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary string") + core_count: Optional[V0043Uint32NoValStruct] = None + duration: Optional[V0043Uint32NoValStruct] = None + end_time: Optional[V0043Uint64NoValStruct] = None + features: Optional[StrictStr] = Field(default=None, description="Requested node features. Multiple values may be \"&\" separated if all features are required (AND operation) or separated by \"|\" if any of the specified features are required (OR operation). Parenthesis are also supported for features to be ANDed together with counts of nodes having the specified features.") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this reservation. Note, to remove flags use \"NO_\" prefixed flag excluding NO_HOLD_JOBS_AFTER_END") + groups: Optional[List[StrictStr]] = None + licenses: Optional[List[StrictStr]] = None + max_start_delay: Optional[V0043Uint32NoValStruct] = None + name: Optional[StrictStr] = Field(default=None, description="ReservationName") + node_count: Optional[V0043Uint32NoValStruct] = None + node_list: Optional[List[StrictStr]] = None + partition: Optional[StrictStr] = Field(default=None, description="Partition used to reserve nodes from. This will attempt to allocate all nodes in the specified partition unless you request fewer resources than are available with core_cnt, node_cnt or tres.") + purge_completed: Optional[V0043ReservationInfoPurgeCompleted] = None + start_time: Optional[V0043Uint64NoValStruct] = None + tres: Optional[List[V0043Tres]] = None + users: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "burst_buffer", "comment", "core_count", "duration", "end_time", "features", "flags", "groups", "licenses", "max_start_delay", "name", "node_count", "node_list", "partition", "purge_completed", "start_time", "tres", "users"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING']): + raise ValueError("each list item must be one of ('MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ReservationDescMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of core_count + if self.core_count: + _dict['core_count'] = self.core_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_start_delay + if self.max_start_delay: + _dict['max_start_delay'] = self.max_start_delay.to_dict() + # override the default output from pydantic by calling `to_dict()` of node_count + if self.node_count: + _dict['node_count'] = self.node_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of purge_completed + if self.purge_completed: + _dict['purge_completed'] = self.purge_completed.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ReservationDescMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "burst_buffer": obj.get("burst_buffer"), + "comment": obj.get("comment"), + "core_count": V0043Uint32NoValStruct.from_dict(obj["core_count"]) if obj.get("core_count") is not None else None, + "duration": V0043Uint32NoValStruct.from_dict(obj["duration"]) if obj.get("duration") is not None else None, + "end_time": V0043Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "features": obj.get("features"), + "flags": obj.get("flags"), + "groups": obj.get("groups"), + "licenses": obj.get("licenses"), + "max_start_delay": V0043Uint32NoValStruct.from_dict(obj["max_start_delay"]) if obj.get("max_start_delay") is not None else None, + "name": obj.get("name"), + "node_count": V0043Uint32NoValStruct.from_dict(obj["node_count"]) if obj.get("node_count") is not None else None, + "node_list": obj.get("node_list"), + "partition": obj.get("partition"), + "purge_completed": V0043ReservationInfoPurgeCompleted.from_dict(obj["purge_completed"]) if obj.get("purge_completed") is not None else None, + "start_time": V0043Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "tres": [V0043Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None, + "users": obj.get("users") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_reservation_info.py b/slurmrest_python/models/v0043_reservation_info.py new file mode 100644 index 0000000..c918ed6 --- /dev/null +++ b/slurmrest_python/models/v0043_reservation_info.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_reservation_core_spec import V0043ReservationCoreSpec +from slurmrest_python.models.v0043_reservation_info_purge_completed import V0043ReservationInfoPurgeCompleted +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043ReservationInfo(BaseModel): + """ + V0043ReservationInfo + """ # noqa: E501 + accounts: Optional[StrictStr] = Field(default=None, description="Comma-separated list of permitted accounts") + burst_buffer: Optional[StrictStr] = Field(default=None, description="BurstBuffer - Burst buffer resources reserved") + core_count: Optional[StrictInt] = Field(default=None, description="CoreCnt - Number of cores reserved") + core_specializations: Optional[List[V0043ReservationCoreSpec]] = None + end_time: Optional[V0043Uint64NoValStruct] = None + features: Optional[StrictStr] = Field(default=None, description="Features - Expression describing the reservation's required node features") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this reservation") + groups: Optional[StrictStr] = Field(default=None, description="Groups - Comma-separated list of permitted groups") + licenses: Optional[StrictStr] = Field(default=None, description="Licenses - Comma-separated list of licenses reserved") + max_start_delay: Optional[StrictInt] = Field(default=None, description="MaxStartDelay - Maximum time an eligible job not requesting this reservation can delay a job requesting it in seconds") + name: Optional[StrictStr] = Field(default=None, description="ReservationName - Name of the reservation") + node_count: Optional[StrictInt] = Field(default=None, description="NodeCnt - Number of nodes reserved") + node_list: Optional[StrictStr] = Field(default=None, description="Nodes - Comma-separated list of node names and/or node ranges reserved") + partition: Optional[StrictStr] = Field(default=None, description="PartitionName - Partition used to reserve nodes from") + purge_completed: Optional[V0043ReservationInfoPurgeCompleted] = None + start_time: Optional[V0043Uint64NoValStruct] = None + watts: Optional[V0043Uint32NoValStruct] = None + tres: Optional[StrictStr] = Field(default=None, description="Comma-separated list of required TRES") + users: Optional[StrictStr] = Field(default=None, description="Comma-separated list of permitted users") + __properties: ClassVar[List[str]] = ["accounts", "burst_buffer", "core_count", "core_specializations", "end_time", "features", "flags", "groups", "licenses", "max_start_delay", "name", "node_count", "node_list", "partition", "purge_completed", "start_time", "watts", "tres", "users"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING']): + raise ValueError("each list item must be one of ('MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'NO_PURGE_COMP', 'MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'NO_USER_DELETE', 'REOCCURRING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ReservationInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in core_specializations (list) + _items = [] + if self.core_specializations: + for _item_core_specializations in self.core_specializations: + if _item_core_specializations: + _items.append(_item_core_specializations.to_dict()) + _dict['core_specializations'] = _items + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of purge_completed + if self.purge_completed: + _dict['purge_completed'] = self.purge_completed.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of watts + if self.watts: + _dict['watts'] = self.watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ReservationInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "burst_buffer": obj.get("burst_buffer"), + "core_count": obj.get("core_count"), + "core_specializations": [V0043ReservationCoreSpec.from_dict(_item) for _item in obj["core_specializations"]] if obj.get("core_specializations") is not None else None, + "end_time": V0043Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "features": obj.get("features"), + "flags": obj.get("flags"), + "groups": obj.get("groups"), + "licenses": obj.get("licenses"), + "max_start_delay": obj.get("max_start_delay"), + "name": obj.get("name"), + "node_count": obj.get("node_count"), + "node_list": obj.get("node_list"), + "partition": obj.get("partition"), + "purge_completed": V0043ReservationInfoPurgeCompleted.from_dict(obj["purge_completed"]) if obj.get("purge_completed") is not None else None, + "start_time": V0043Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "watts": V0043Uint32NoValStruct.from_dict(obj["watts"]) if obj.get("watts") is not None else None, + "tres": obj.get("tres"), + "users": obj.get("users") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_reservation_info_purge_completed.py b/slurmrest_python/models/v0043_reservation_info_purge_completed.py new file mode 100644 index 0000000..cf697c7 --- /dev/null +++ b/slurmrest_python/models/v0043_reservation_info_purge_completed.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043ReservationInfoPurgeCompleted(BaseModel): + """ + V0043ReservationInfoPurgeCompleted + """ # noqa: E501 + time: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ReservationInfoPurgeCompleted from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ReservationInfoPurgeCompleted from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0043Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_reservation_mod_req.py b/slurmrest_python/models/v0043_reservation_mod_req.py new file mode 100644 index 0000000..fb1e5c3 --- /dev/null +++ b/slurmrest_python/models/v0043_reservation_mod_req.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0043ReservationModReq(BaseModel): + """ + V0043ReservationModReq + """ # noqa: E501 + reservations: Optional[List[V0043ReservationDescMsg]] = None + __properties: ClassVar[List[str]] = ["reservations"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ReservationModReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ReservationModReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0043ReservationDescMsg.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_rollup_stats.py b/slurmrest_python/models/v0043_rollup_stats.py new file mode 100644 index 0000000..cf3ef39 --- /dev/null +++ b/slurmrest_python/models/v0043_rollup_stats.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_rollup_stats_daily import V0044RollupStatsDaily +from slurmrest_python.models.v0044_rollup_stats_hourly import V0044RollupStatsHourly +from slurmrest_python.models.v0044_rollup_stats_monthly import V0044RollupStatsMonthly +from typing import Optional, Set +from typing_extensions import Self + +class V0043RollupStats(BaseModel): + """ + V0043RollupStats + """ # noqa: E501 + hourly: Optional[V0044RollupStatsHourly] = None + daily: Optional[V0044RollupStatsDaily] = None + monthly: Optional[V0044RollupStatsMonthly] = None + __properties: ClassVar[List[str]] = ["hourly", "daily", "monthly"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043RollupStats from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of hourly + if self.hourly: + _dict['hourly'] = self.hourly.to_dict() + # override the default output from pydantic by calling `to_dict()` of daily + if self.daily: + _dict['daily'] = self.daily.to_dict() + # override the default output from pydantic by calling `to_dict()` of monthly + if self.monthly: + _dict['monthly'] = self.monthly.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043RollupStats from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hourly": V0044RollupStatsHourly.from_dict(obj["hourly"]) if obj.get("hourly") is not None else None, + "daily": V0044RollupStatsDaily.from_dict(obj["daily"]) if obj.get("daily") is not None else None, + "monthly": V0044RollupStatsMonthly.from_dict(obj["monthly"]) if obj.get("monthly") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_schedule_exit_fields.py b/slurmrest_python/models/v0043_schedule_exit_fields.py new file mode 100644 index 0000000..6ef7cdb --- /dev/null +++ b/slurmrest_python/models/v0043_schedule_exit_fields.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043ScheduleExitFields(BaseModel): + """ + V0043ScheduleExitFields + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + default_queue_depth: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + max_rpc_cnt: Optional[StrictInt] = Field(default=None, description="Reached RPC limit") + max_sched_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + licenses: Optional[StrictInt] = Field(default=None, description="Blocked on licenses") + __properties: ClassVar[List[str]] = ["end_job_queue", "default_queue_depth", "max_job_start", "max_rpc_cnt", "max_sched_time", "licenses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043ScheduleExitFields from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043ScheduleExitFields from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "default_queue_depth": obj.get("default_queue_depth"), + "max_job_start": obj.get("max_job_start"), + "max_rpc_cnt": obj.get("max_rpc_cnt"), + "max_sched_time": obj.get("max_sched_time"), + "licenses": obj.get("licenses") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_shares_float128_tres.py b/slurmrest_python/models/v0043_shares_float128_tres.py new file mode 100644 index 0000000..9aca091 --- /dev/null +++ b/slurmrest_python/models/v0043_shares_float128_tres.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0043SharesFloat128Tres(BaseModel): + """ + V0043SharesFloat128Tres + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="TRES value") + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043SharesFloat128Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043SharesFloat128Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": obj.get("value") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_shares_resp_msg.py b/slurmrest_python/models/v0043_shares_resp_msg.py new file mode 100644 index 0000000..7d95b2a --- /dev/null +++ b/slurmrest_python/models/v0043_shares_resp_msg.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_shares_obj_wrap import V0043AssocSharesObjWrap +from typing import Optional, Set +from typing_extensions import Self + +class V0043SharesRespMsg(BaseModel): + """ + V0043SharesRespMsg + """ # noqa: E501 + shares: Optional[List[V0043AssocSharesObjWrap]] = None + total_shares: Optional[StrictInt] = Field(default=None, description="Total number of shares") + __properties: ClassVar[List[str]] = ["shares", "total_shares"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043SharesRespMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in shares (list) + _items = [] + if self.shares: + for _item_shares in self.shares: + if _item_shares: + _items.append(_item_shares.to_dict()) + _dict['shares'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043SharesRespMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": [V0043AssocSharesObjWrap.from_dict(_item) for _item in obj["shares"]] if obj.get("shares") is not None else None, + "total_shares": obj.get("total_shares") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_shares_uint64_tres.py b/slurmrest_python/models/v0043_shares_uint64_tres.py new file mode 100644 index 0000000..0d02ab1 --- /dev/null +++ b/slurmrest_python/models/v0043_shares_uint64_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043SharesUint64Tres(BaseModel): + """ + V0043SharesUint64Tres + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[V0043Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043SharesUint64Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict['value'] = self.value.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043SharesUint64Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": V0043Uint64NoValStruct.from_dict(obj["value"]) if obj.get("value") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_slurmdbd_ping.py b/slurmrest_python/models/v0043_slurmdbd_ping.py new file mode 100644 index 0000000..575df2e --- /dev/null +++ b/slurmrest_python/models/v0043_slurmdbd_ping.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0043SlurmdbdPing(BaseModel): + """ + V0043SlurmdbdPing + """ # noqa: E501 + hostname: StrictStr = Field(description="Target for ping") + responding: StrictBool = Field(description="If ping RPC responded with pong from slurmdbd") + latency: StrictInt = Field(description="Number of microseconds it took to successfully ping or timeout") + primary: StrictBool = Field(description="Is responding slurmdbd the primary controller (Is responding slurmctld the primary controller)") + __properties: ClassVar[List[str]] = ["hostname", "responding", "latency", "primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043SlurmdbdPing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043SlurmdbdPing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "responding": obj.get("responding"), + "latency": obj.get("latency"), + "primary": obj.get("primary") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_msg.py b/slurmrest_python/models/v0043_stats_msg.py new file mode 100644 index 0000000..3c0f617 --- /dev/null +++ b/slurmrest_python/models/v0043_stats_msg.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_bf_exit_fields import V0043BfExitFields +from slurmrest_python.models.v0043_schedule_exit_fields import V0043ScheduleExitFields +from slurmrest_python.models.v0043_stats_msg_rpc_dump import V0043StatsMsgRpcDump +from slurmrest_python.models.v0043_stats_msg_rpc_queue import V0043StatsMsgRpcQueue +from slurmrest_python.models.v0043_stats_msg_rpc_type import V0043StatsMsgRpcType +from slurmrest_python.models.v0043_stats_msg_rpc_user import V0043StatsMsgRpcUser +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsMsg(BaseModel): + """ + V0043StatsMsg + """ # noqa: E501 + parts_packed: Optional[StrictInt] = Field(default=None, description="Zero if only RPC statistic included") + req_time: Optional[V0043Uint64NoValStruct] = None + req_time_start: Optional[V0043Uint64NoValStruct] = None + server_thread_count: Optional[StrictInt] = Field(default=None, description="Number of current active slurmctld threads") + agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of enqueued outgoing RPC requests in an internal retry list") + agent_count: Optional[StrictInt] = Field(default=None, description="Number of agent threads") + agent_thread_count: Optional[StrictInt] = Field(default=None, description="Total number of active threads created by all agent threads") + dbd_agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of messages for SlurmDBD that are queued") + gettimeofday_latency: Optional[StrictInt] = Field(default=None, description="Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup") + schedule_cycle_max: Optional[StrictInt] = Field(default=None, description="Max time of any scheduling cycle in microseconds since last reset") + schedule_cycle_last: Optional[StrictInt] = Field(default=None, description="Time in microseconds for last scheduling cycle") + schedule_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total run time in microseconds for all scheduling cycles since last reset") + schedule_cycle_total: Optional[StrictInt] = Field(default=None, description="Number of scheduling cycles since last reset") + schedule_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds for all scheduling cycles since last reset") + schedule_cycle_mean_depth: Optional[StrictInt] = Field(default=None, description="Mean of the number of jobs processed in a scheduling cycle") + schedule_cycle_per_minute: Optional[StrictInt] = Field(default=None, description="Number of scheduling executions per minute") + schedule_cycle_depth: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed in scheduling cycles") + schedule_exit: Optional[V0043ScheduleExitFields] = None + schedule_queue_length: Optional[StrictInt] = Field(default=None, description="Number of jobs pending in queue") + jobs_submitted: Optional[StrictInt] = Field(default=None, description="Number of jobs submitted since last reset") + jobs_started: Optional[StrictInt] = Field(default=None, description="Number of jobs started since last reset") + jobs_completed: Optional[StrictInt] = Field(default=None, description="Number of jobs completed since last reset") + jobs_canceled: Optional[StrictInt] = Field(default=None, description="Number of jobs canceled since the last reset") + jobs_failed: Optional[StrictInt] = Field(default=None, description="Number of jobs failed due to slurmd or other internal issues since last reset") + jobs_pending: Optional[StrictInt] = Field(default=None, description="Number of jobs pending at the time of listed in job_state_ts") + jobs_running: Optional[StrictInt] = Field(default=None, description="Number of jobs running at the time of listed in job_state_ts") + job_states_ts: Optional[V0043Uint64NoValStruct] = None + bf_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last slurm start") + bf_last_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last reset") + bf_backfilled_het_jobs: Optional[StrictInt] = Field(default=None, description="Number of heterogeneous job components started through backfilling since last Slurm start") + bf_cycle_counter: Optional[StrictInt] = Field(default=None, description="Number of backfill scheduling cycles since last reset") + bf_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds of backfilling scheduling cycles since last reset") + bf_depth_mean: Optional[StrictInt] = Field(default=None, description="Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_mean_try: Optional[StrictInt] = Field(default=None, description="The subset of Depth Mean that the backfill scheduler attempted to schedule") + bf_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total time in microseconds of backfilling scheduling cycles since last reset") + bf_cycle_last: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of last backfill scheduling cycle") + bf_cycle_max: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of longest backfill scheduling cycle") + bf_exit: Optional[V0043BfExitFields] = None + bf_last_depth: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle") + bf_last_depth_try: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources") + bf_depth_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_try_sum: Optional[StrictInt] = Field(default=None, description="Subset of bf_depth_sum that the backfill scheduler attempted to schedule") + bf_queue_len: Optional[StrictInt] = Field(default=None, description="Number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_mean: Optional[StrictInt] = Field(default=None, description="Mean number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs pending to be processed by backfilling algorithm since last reset") + bf_table_size: Optional[StrictInt] = Field(default=None, description="Number of different time slots tested by the backfill scheduler in its last iteration") + bf_table_size_sum: Optional[StrictInt] = Field(default=None, description="Total number of different time slots tested by the backfill scheduler") + bf_table_size_mean: Optional[StrictInt] = Field(default=None, description="Mean number of different time slots tested by the backfill scheduler") + bf_when_last_cycle: Optional[V0043Uint64NoValStruct] = None + bf_active: Optional[StrictBool] = Field(default=None, description="Backfill scheduler currently running") + rpcs_by_message_type: Optional[List[V0043StatsMsgRpcType]] = Field(default=None, description="RPCs by type") + rpcs_by_user: Optional[List[V0043StatsMsgRpcUser]] = Field(default=None, description="RPCs by user") + pending_rpcs: Optional[List[V0043StatsMsgRpcQueue]] = Field(default=None, description="Pending RPCs") + pending_rpcs_by_hostlist: Optional[List[V0043StatsMsgRpcDump]] = Field(default=None, description="Pending RPCs by hostlist") + __properties: ClassVar[List[str]] = ["parts_packed", "req_time", "req_time_start", "server_thread_count", "agent_queue_size", "agent_count", "agent_thread_count", "dbd_agent_queue_size", "gettimeofday_latency", "schedule_cycle_max", "schedule_cycle_last", "schedule_cycle_sum", "schedule_cycle_total", "schedule_cycle_mean", "schedule_cycle_mean_depth", "schedule_cycle_per_minute", "schedule_cycle_depth", "schedule_exit", "schedule_queue_length", "jobs_submitted", "jobs_started", "jobs_completed", "jobs_canceled", "jobs_failed", "jobs_pending", "jobs_running", "job_states_ts", "bf_backfilled_jobs", "bf_last_backfilled_jobs", "bf_backfilled_het_jobs", "bf_cycle_counter", "bf_cycle_mean", "bf_depth_mean", "bf_depth_mean_try", "bf_cycle_sum", "bf_cycle_last", "bf_cycle_max", "bf_exit", "bf_last_depth", "bf_last_depth_try", "bf_depth_sum", "bf_depth_try_sum", "bf_queue_len", "bf_queue_len_mean", "bf_queue_len_sum", "bf_table_size", "bf_table_size_sum", "bf_table_size_mean", "bf_when_last_cycle", "bf_active", "rpcs_by_message_type", "rpcs_by_user", "pending_rpcs", "pending_rpcs_by_hostlist"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of req_time + if self.req_time: + _dict['req_time'] = self.req_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of req_time_start + if self.req_time_start: + _dict['req_time_start'] = self.req_time_start.to_dict() + # override the default output from pydantic by calling `to_dict()` of schedule_exit + if self.schedule_exit: + _dict['schedule_exit'] = self.schedule_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_states_ts + if self.job_states_ts: + _dict['job_states_ts'] = self.job_states_ts.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_exit + if self.bf_exit: + _dict['bf_exit'] = self.bf_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_when_last_cycle + if self.bf_when_last_cycle: + _dict['bf_when_last_cycle'] = self.bf_when_last_cycle.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_message_type (list) + _items = [] + if self.rpcs_by_message_type: + for _item_rpcs_by_message_type in self.rpcs_by_message_type: + if _item_rpcs_by_message_type: + _items.append(_item_rpcs_by_message_type.to_dict()) + _dict['rpcs_by_message_type'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_user (list) + _items = [] + if self.rpcs_by_user: + for _item_rpcs_by_user in self.rpcs_by_user: + if _item_rpcs_by_user: + _items.append(_item_rpcs_by_user.to_dict()) + _dict['rpcs_by_user'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs (list) + _items = [] + if self.pending_rpcs: + for _item_pending_rpcs in self.pending_rpcs: + if _item_pending_rpcs: + _items.append(_item_pending_rpcs.to_dict()) + _dict['pending_rpcs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs_by_hostlist (list) + _items = [] + if self.pending_rpcs_by_hostlist: + for _item_pending_rpcs_by_hostlist in self.pending_rpcs_by_hostlist: + if _item_pending_rpcs_by_hostlist: + _items.append(_item_pending_rpcs_by_hostlist.to_dict()) + _dict['pending_rpcs_by_hostlist'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parts_packed": obj.get("parts_packed"), + "req_time": V0043Uint64NoValStruct.from_dict(obj["req_time"]) if obj.get("req_time") is not None else None, + "req_time_start": V0043Uint64NoValStruct.from_dict(obj["req_time_start"]) if obj.get("req_time_start") is not None else None, + "server_thread_count": obj.get("server_thread_count"), + "agent_queue_size": obj.get("agent_queue_size"), + "agent_count": obj.get("agent_count"), + "agent_thread_count": obj.get("agent_thread_count"), + "dbd_agent_queue_size": obj.get("dbd_agent_queue_size"), + "gettimeofday_latency": obj.get("gettimeofday_latency"), + "schedule_cycle_max": obj.get("schedule_cycle_max"), + "schedule_cycle_last": obj.get("schedule_cycle_last"), + "schedule_cycle_sum": obj.get("schedule_cycle_sum"), + "schedule_cycle_total": obj.get("schedule_cycle_total"), + "schedule_cycle_mean": obj.get("schedule_cycle_mean"), + "schedule_cycle_mean_depth": obj.get("schedule_cycle_mean_depth"), + "schedule_cycle_per_minute": obj.get("schedule_cycle_per_minute"), + "schedule_cycle_depth": obj.get("schedule_cycle_depth"), + "schedule_exit": V0043ScheduleExitFields.from_dict(obj["schedule_exit"]) if obj.get("schedule_exit") is not None else None, + "schedule_queue_length": obj.get("schedule_queue_length"), + "jobs_submitted": obj.get("jobs_submitted"), + "jobs_started": obj.get("jobs_started"), + "jobs_completed": obj.get("jobs_completed"), + "jobs_canceled": obj.get("jobs_canceled"), + "jobs_failed": obj.get("jobs_failed"), + "jobs_pending": obj.get("jobs_pending"), + "jobs_running": obj.get("jobs_running"), + "job_states_ts": V0043Uint64NoValStruct.from_dict(obj["job_states_ts"]) if obj.get("job_states_ts") is not None else None, + "bf_backfilled_jobs": obj.get("bf_backfilled_jobs"), + "bf_last_backfilled_jobs": obj.get("bf_last_backfilled_jobs"), + "bf_backfilled_het_jobs": obj.get("bf_backfilled_het_jobs"), + "bf_cycle_counter": obj.get("bf_cycle_counter"), + "bf_cycle_mean": obj.get("bf_cycle_mean"), + "bf_depth_mean": obj.get("bf_depth_mean"), + "bf_depth_mean_try": obj.get("bf_depth_mean_try"), + "bf_cycle_sum": obj.get("bf_cycle_sum"), + "bf_cycle_last": obj.get("bf_cycle_last"), + "bf_cycle_max": obj.get("bf_cycle_max"), + "bf_exit": V0043BfExitFields.from_dict(obj["bf_exit"]) if obj.get("bf_exit") is not None else None, + "bf_last_depth": obj.get("bf_last_depth"), + "bf_last_depth_try": obj.get("bf_last_depth_try"), + "bf_depth_sum": obj.get("bf_depth_sum"), + "bf_depth_try_sum": obj.get("bf_depth_try_sum"), + "bf_queue_len": obj.get("bf_queue_len"), + "bf_queue_len_mean": obj.get("bf_queue_len_mean"), + "bf_queue_len_sum": obj.get("bf_queue_len_sum"), + "bf_table_size": obj.get("bf_table_size"), + "bf_table_size_sum": obj.get("bf_table_size_sum"), + "bf_table_size_mean": obj.get("bf_table_size_mean"), + "bf_when_last_cycle": V0043Uint64NoValStruct.from_dict(obj["bf_when_last_cycle"]) if obj.get("bf_when_last_cycle") is not None else None, + "bf_active": obj.get("bf_active"), + "rpcs_by_message_type": [V0043StatsMsgRpcType.from_dict(_item) for _item in obj["rpcs_by_message_type"]] if obj.get("rpcs_by_message_type") is not None else None, + "rpcs_by_user": [V0043StatsMsgRpcUser.from_dict(_item) for _item in obj["rpcs_by_user"]] if obj.get("rpcs_by_user") is not None else None, + "pending_rpcs": [V0043StatsMsgRpcQueue.from_dict(_item) for _item in obj["pending_rpcs"]] if obj.get("pending_rpcs") is not None else None, + "pending_rpcs_by_hostlist": [V0043StatsMsgRpcDump.from_dict(_item) for _item in obj["pending_rpcs_by_hostlist"]] if obj.get("pending_rpcs_by_hostlist") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_msg_rpc_dump.py b/slurmrest_python/models/v0043_stats_msg_rpc_dump.py new file mode 100644 index 0000000..0ebd4eb --- /dev/null +++ b/slurmrest_python/models/v0043_stats_msg_rpc_dump.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsMsgRpcDump(BaseModel): + """ + V0043StatsMsgRpcDump + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string (Slurm RPC message type)") + count: List[StrictStr] + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcDump from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcDump from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_msg_rpc_queue.py b/slurmrest_python/models/v0043_stats_msg_rpc_queue.py new file mode 100644 index 0000000..70e05cf --- /dev/null +++ b/slurmrest_python/models/v0043_stats_msg_rpc_queue.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsMsgRpcQueue(BaseModel): + """ + V0043StatsMsgRpcQueue + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string (Slurm RPC message type)") + count: StrictInt = Field(description="Number of pending RPCs queued") + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcQueue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcQueue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_msg_rpc_type.py b/slurmrest_python/models/v0043_stats_msg_rpc_type.py new file mode 100644 index 0000000..fbd8b9b --- /dev/null +++ b/slurmrest_python/models/v0043_stats_msg_rpc_type.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsMsgRpcType(BaseModel): + """ + V0043StatsMsgRpcType + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string (Slurm RPC message type)") + count: StrictInt = Field(description="Number of RPCs received") + queued: StrictInt = Field(description="Number of RPCs queued") + dropped: StrictInt = Field(description="Number of RPCs dropped") + cycle_last: StrictInt = Field(description="Number of RPCs processed within the last RPC queue cycle") + cycle_max: StrictInt = Field(description="Maximum number of RPCs processed within a RPC queue cycle since start") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0043Uint64NoValStruct + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count", "queued", "dropped", "cycle_last", "cycle_max", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcType from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcType from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count"), + "queued": obj.get("queued"), + "dropped": obj.get("dropped"), + "cycle_last": obj.get("cycle_last"), + "cycle_max": obj.get("cycle_max"), + "total_time": obj.get("total_time"), + "average_time": V0043Uint64NoValStruct.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_msg_rpc_user.py b/slurmrest_python/models/v0043_stats_msg_rpc_user.py new file mode 100644 index 0000000..9f9de5f --- /dev/null +++ b/slurmrest_python/models/v0043_stats_msg_rpc_user.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsMsgRpcUser(BaseModel): + """ + V0043StatsMsgRpcUser + """ # noqa: E501 + user_id: StrictInt = Field(description="User ID (numeric)") + user: StrictStr = Field(description="User name") + count: StrictInt = Field(description="Number of RPCs received") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0043Uint64NoValStruct + __properties: ClassVar[List[str]] = ["user_id", "user", "count", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsMsgRpcUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_id": obj.get("user_id"), + "user": obj.get("user"), + "count": obj.get("count"), + "total_time": obj.get("total_time"), + "average_time": V0043Uint64NoValStruct.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_rec.py b/slurmrest_python/models/v0043_stats_rec.py new file mode 100644 index 0000000..4ede34b --- /dev/null +++ b/slurmrest_python/models/v0043_stats_rec.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_rollup_stats import V0043RollupStats +from slurmrest_python.models.v0043_stats_rpc import V0043StatsRpc +from slurmrest_python.models.v0043_stats_user import V0043StatsUser +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsRec(BaseModel): + """ + V0043StatsRec + """ # noqa: E501 + time_start: Optional[StrictInt] = Field(default=None, description="When data collection started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + rollups: Optional[V0043RollupStats] = None + rpcs: Optional[List[V0043StatsRpc]] = Field(default=None, alias="RPCs") + users: Optional[List[V0043StatsUser]] = None + __properties: ClassVar[List[str]] = ["time_start", "rollups", "RPCs", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsRec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rollups + if self.rollups: + _dict['rollups'] = self.rollups.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs (list) + _items = [] + if self.rpcs: + for _item_rpcs in self.rpcs: + if _item_rpcs: + _items.append(_item_rpcs.to_dict()) + _dict['RPCs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsRec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time_start": obj.get("time_start"), + "rollups": V0043RollupStats.from_dict(obj["rollups"]) if obj.get("rollups") is not None else None, + "RPCs": [V0043StatsRpc.from_dict(_item) for _item in obj["RPCs"]] if obj.get("RPCs") is not None else None, + "users": [V0043StatsUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_rpc.py b/slurmrest_python/models/v0043_stats_rpc.py new file mode 100644 index 0000000..ff2aef4 --- /dev/null +++ b/slurmrest_python/models/v0043_stats_rpc.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsRpc(BaseModel): + """ + V0043StatsRpc + """ # noqa: E501 + rpc: Optional[StrictStr] = Field(default=None, description="RPC type") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["rpc", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsRpc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsRpc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rpc": obj.get("rpc"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_stats_user.py b/slurmrest_python/models/v0043_stats_user.py new file mode 100644 index 0000000..434ab47 --- /dev/null +++ b/slurmrest_python/models/v0043_stats_user.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0043StatsUser(BaseModel): + """ + V0043StatsUser + """ # noqa: E501 + user: Optional[StrictStr] = Field(default=None, description="User ID") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["user", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StatsUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StatsUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": obj.get("user"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step.py b/slurmrest_python/models/v0043_step.py new file mode 100644 index 0000000..030577f --- /dev/null +++ b/slurmrest_python/models/v0043_step.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks +from slurmrest_python.models.v0043_process_exit_code_verbose import V0043ProcessExitCodeVerbose +from slurmrest_python.models.v0043_step_cpu import V0043StepCPU +from slurmrest_python.models.v0043_step_nodes import V0043StepNodes +from slurmrest_python.models.v0043_step_statistics import V0043StepStatistics +from slurmrest_python.models.v0043_step_time import V0043StepTime +from slurmrest_python.models.v0043_step_tres import V0043StepTres +from slurmrest_python.models.v0044_step_step import V0044StepStep +from typing import Optional, Set +from typing_extensions import Self + +class V0043Step(BaseModel): + """ + V0043Step + """ # noqa: E501 + time: Optional[V0043StepTime] = None + exit_code: Optional[V0043ProcessExitCodeVerbose] = None + nodes: Optional[V0043StepNodes] = None + tasks: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks] = None + pid: Optional[StrictStr] = Field(default=None, description="Deprecated; Process ID") + cpu: Optional[V0043StepCPU] = Field(default=None, alias="CPU") + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the step") + state: Optional[List[StrictStr]] = Field(default=None, description="Current state") + statistics: Optional[V0043StepStatistics] = None + step: Optional[V0044StepStep] = None + task: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask] = None + tres: Optional[V0043StepTres] = None + __properties: ClassVar[List[str]] = ["time", "exit_code", "nodes", "tasks", "pid", "CPU", "kill_request_user", "state", "statistics", "step", "task", "tres"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Step from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of step + if self.step: + _dict['step'] = self.step.to_dict() + # override the default output from pydantic by calling `to_dict()` of task + if self.task: + _dict['task'] = self.task.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Step from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0043StepTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0043ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "nodes": V0043StepNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "tasks": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "pid": obj.get("pid"), + "CPU": V0043StepCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "state": obj.get("state"), + "statistics": V0043StepStatistics.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "step": V0044StepStep.from_dict(obj["step"]) if obj.get("step") is not None else None, + "task": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.from_dict(obj["task"]) if obj.get("task") is not None else None, + "tres": V0043StepTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_cpu.py b/slurmrest_python/models/v0043_step_cpu.py new file mode 100644 index 0000000..cef3b5c --- /dev/null +++ b/slurmrest_python/models/v0043_step_cpu.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_step_cpu_requested_frequency import V0043StepCPURequestedFrequency +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepCPU(BaseModel): + """ + V0043StepCPU + """ # noqa: E501 + requested_frequency: Optional[V0043StepCPURequestedFrequency] = None + governor: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency governor in kHz") + __properties: ClassVar[List[str]] = ["requested_frequency", "governor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepCPU from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested_frequency + if self.requested_frequency: + _dict['requested_frequency'] = self.requested_frequency.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepCPU from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested_frequency": V0043StepCPURequestedFrequency.from_dict(obj["requested_frequency"]) if obj.get("requested_frequency") is not None else None, + "governor": obj.get("governor") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_cpu_requested_frequency.py b/slurmrest_python/models/v0043_step_cpu_requested_frequency.py new file mode 100644 index 0000000..71f133e --- /dev/null +++ b/slurmrest_python/models/v0043_step_cpu_requested_frequency.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepCPURequestedFrequency(BaseModel): + """ + V0043StepCPURequestedFrequency + """ # noqa: E501 + min: Optional[V0043Uint32NoValStruct] = None + max: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["min", "max"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepCPURequestedFrequency from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepCPURequestedFrequency from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "min": V0043Uint32NoValStruct.from_dict(obj["min"]) if obj.get("min") is not None else None, + "max": V0043Uint32NoValStruct.from_dict(obj["max"]) if obj.get("max") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_nodes.py b/slurmrest_python/models/v0043_step_nodes.py new file mode 100644 index 0000000..2e08105 --- /dev/null +++ b/slurmrest_python/models/v0043_step_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepNodes(BaseModel): + """ + V0043StepNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of nodes in the job step") + range: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job step") + list: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["count", "range", "list"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "range": obj.get("range"), + "list": obj.get("list") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_statistics.py b/slurmrest_python/models/v0043_step_statistics.py new file mode 100644 index 0000000..90d67d5 --- /dev/null +++ b/slurmrest_python/models/v0043_step_statistics.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU +from slurmrest_python.models.v0043_step_statistics_energy import V0043StepStatisticsEnergy +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepStatistics(BaseModel): + """ + V0043StepStatistics + """ # noqa: E501 + cpu: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU] = Field(default=None, alias="CPU") + energy: Optional[V0043StepStatisticsEnergy] = None + __properties: ClassVar[List[str]] = ["CPU", "energy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepStatistics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepStatistics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPU": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "energy": V0043StepStatisticsEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_statistics_energy.py b/slurmrest_python/models/v0043_step_statistics_energy.py new file mode 100644 index 0000000..0b2f531 --- /dev/null +++ b/slurmrest_python/models/v0043_step_statistics_energy.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepStatisticsEnergy(BaseModel): + """ + V0043StepStatisticsEnergy + """ # noqa: E501 + consumed: Optional[V0043Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["consumed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepStatisticsEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepStatisticsEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumed": V0043Uint64NoValStruct.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_time.py b/slurmrest_python/models/v0043_step_time.py new file mode 100644 index 0000000..db904f9 --- /dev/null +++ b/slurmrest_python/models/v0043_step_time.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepTime(BaseModel): + """ + V0043StepTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + end: Optional[V0043Uint64NoValStruct] = None + start: Optional[V0043Uint64NoValStruct] = None + suspended: Optional[StrictInt] = Field(default=None, description="Total time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem] = None + limit: Optional[V0043Uint32NoValStruct] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "end", "start", "suspended", "system", "limit", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of end + if self.end: + _dict['end'] = self.end.to_dict() + # override the default output from pydantic by calling `to_dict()` of start + if self.start: + _dict['start'] = self.start.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of limit + if self.limit: + _dict['limit'] = self.limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "end": V0043Uint64NoValStruct.from_dict(obj["end"]) if obj.get("end") is not None else None, + "start": V0043Uint64NoValStruct.from_dict(obj["start"]) if obj.get("start") is not None else None, + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "limit": V0043Uint32NoValStruct.from_dict(obj["limit"]) if obj.get("limit") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_tres.py b/slurmrest_python/models/v0043_step_tres.py new file mode 100644 index 0000000..acd907d --- /dev/null +++ b/slurmrest_python/models/v0043_step_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_step_tres_consumed import V0043StepTresConsumed +from slurmrest_python.models.v0043_step_tres_requested import V0043StepTresRequested +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepTres(BaseModel): + """ + V0043StepTres + """ # noqa: E501 + requested: Optional[V0043StepTresRequested] = None + consumed: Optional[V0043StepTresConsumed] = None + allocated: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["requested", "consumed", "allocated"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested + if self.requested: + _dict['requested'] = self.requested.to_dict() + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested": V0043StepTresRequested.from_dict(obj["requested"]) if obj.get("requested") is not None else None, + "consumed": V0043StepTresConsumed.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None, + "allocated": [V0043Tres.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_tres_consumed.py b/slurmrest_python/models/v0043_step_tres_consumed.py new file mode 100644 index 0000000..125b34d --- /dev/null +++ b/slurmrest_python/models/v0043_step_tres_consumed.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepTresConsumed(BaseModel): + """ + V0043StepTresConsumed + """ # noqa: E501 + max: Optional[List[V0043Tres]] = None + min: Optional[List[V0043Tres]] = None + average: Optional[List[V0043Tres]] = None + total: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepTresConsumed from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepTresConsumed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0043Tres.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0043Tres.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0043Tres.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0043Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_step_tres_requested.py b/slurmrest_python/models/v0043_step_tres_requested.py new file mode 100644 index 0000000..b44d3cf --- /dev/null +++ b/slurmrest_python/models/v0043_step_tres_requested.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_tres import V0043Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0043StepTresRequested(BaseModel): + """ + V0043StepTresRequested + """ # noqa: E501 + max: Optional[List[V0043Tres]] = None + min: Optional[List[V0043Tres]] = None + average: Optional[List[V0043Tres]] = None + total: Optional[List[V0043Tres]] = None + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043StepTresRequested from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043StepTresRequested from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0043Tres.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0043Tres.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0043Tres.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0043Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_tres.py b/slurmrest_python/models/v0043_tres.py new file mode 100644 index 0000000..0011319 --- /dev/null +++ b/slurmrest_python/models/v0043_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043Tres(BaseModel): + """ + V0043Tres + """ # noqa: E501 + type: StrictStr = Field(description="TRES type (CPU, MEM, etc)") + name: Optional[StrictStr] = Field(default=None, description="TRES name (if applicable)") + id: Optional[StrictInt] = Field(default=None, description="ID used in the database") + count: Optional[StrictInt] = Field(default=None, description="TRES count (0 if listed generically)") + __properties: ClassVar[List[str]] = ["type", "name", "id", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "id": obj.get("id"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_uint16_no_val_struct.py b/slurmrest_python/models/v0043_uint16_no_val_struct.py new file mode 100644 index 0000000..e6a968f --- /dev/null +++ b/slurmrest_python/models/v0043_uint16_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043Uint16NoValStruct(BaseModel): + """ + V0043Uint16NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Uint16NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Uint16NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_uint32_no_val_struct.py b/slurmrest_python/models/v0043_uint32_no_val_struct.py new file mode 100644 index 0000000..156b9a3 --- /dev/null +++ b/slurmrest_python/models/v0043_uint32_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043Uint32NoValStruct(BaseModel): + """ + V0043Uint32NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Uint32NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Uint32NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_uint64_no_val_struct.py b/slurmrest_python/models/v0043_uint64_no_val_struct.py new file mode 100644 index 0000000..f95669b --- /dev/null +++ b/slurmrest_python/models/v0043_uint64_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043Uint64NoValStruct(BaseModel): + """ + V0043Uint64NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Uint64NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Uint64NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_update_node_msg.py b/slurmrest_python/models/v0043_update_node_msg.py new file mode 100644 index 0000000..c97dbd3 --- /dev/null +++ b/slurmrest_python/models/v0043_update_node_msg.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0043UpdateNodeMsg(BaseModel): + """ + V0043UpdateNodeMsg + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + cpu_bind: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + features: Optional[List[StrictStr]] = None + features_act: Optional[List[StrictStr]] = None + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + address: Optional[List[StrictStr]] = None + hostname: Optional[List[StrictStr]] = None + name: Optional[List[StrictStr]] = None + state: Optional[List[StrictStr]] = Field(default=None, description="New state to assign to the node") + reason: Optional[StrictStr] = Field(default=None, description="Reason for node being DOWN or DRAINING") + reason_uid: Optional[StrictStr] = Field(default=None, description="User ID to associate with the reason (needed if user root is sending message)") + resume_after: Optional[V0043Uint32NoValStruct] = None + topology_str: Optional[StrictStr] = Field(default=None, description="Topology") + weight: Optional[V0043Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["comment", "cpu_bind", "extra", "features", "features_act", "gres", "address", "hostname", "name", "state", "reason", "reason_uid", "resume_after", "topology_str", "weight"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043UpdateNodeMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of weight + if self.weight: + _dict['weight'] = self.weight.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043UpdateNodeMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "cpu_bind": obj.get("cpu_bind"), + "extra": obj.get("extra"), + "features": obj.get("features"), + "features_act": obj.get("features_act"), + "gres": obj.get("gres"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "name": obj.get("name"), + "state": obj.get("state"), + "reason": obj.get("reason"), + "reason_uid": obj.get("reason_uid"), + "resume_after": V0043Uint32NoValStruct.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "topology_str": obj.get("topology_str"), + "weight": V0043Uint32NoValStruct.from_dict(obj["weight"]) if obj.get("weight") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_user.py b/slurmrest_python/models/v0043_user.py new file mode 100644 index 0000000..f27621c --- /dev/null +++ b/slurmrest_python/models/v0043_user.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0042_user_default import V0042UserDefault +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort +from slurmrest_python.models.v0043_coord import V0043Coord +from slurmrest_python.models.v0043_wckey import V0043Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0043User(BaseModel): + """ + V0043User + """ # noqa: E501 + administrator_level: Optional[List[StrictStr]] = Field(default=None, description="AdminLevel granted to the user") + associations: Optional[List[V0043AssocShort]] = None + coordinators: Optional[List[V0043Coord]] = None + default: Optional[V0042UserDefault] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this user") + name: StrictStr = Field(description="User name") + old_name: Optional[StrictStr] = Field(default=None, description="Previous user name") + wckeys: Optional[List[V0043Wckey]] = None + __properties: ClassVar[List[str]] = ["administrator_level", "associations", "coordinators", "default", "flags", "name", "old_name", "wckeys"] + + @field_validator('administrator_level') + def administrator_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'DELETED']): + raise ValueError("each list item must be one of ('NONE', 'DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043User from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043User from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "administrator_level": obj.get("administrator_level"), + "associations": [V0043AssocShort.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0043Coord.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "default": V0042UserDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "old_name": obj.get("old_name"), + "wckeys": [V0043Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_user_short.py b/slurmrest_python/models/v0043_user_short.py new file mode 100644 index 0000000..f27c42d --- /dev/null +++ b/slurmrest_python/models/v0043_user_short.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0043UserShort(BaseModel): + """ + V0043UserShort + """ # noqa: E501 + adminlevel: Optional[List[StrictStr]] = Field(default=None, description="AdminLevel granted to the user") + defaultaccount: Optional[StrictStr] = Field(default=None, description="Default account") + defaultwckey: Optional[StrictStr] = Field(default=None, description="Default WCKey") + __properties: ClassVar[List[str]] = ["adminlevel", "defaultaccount", "defaultwckey"] + + @field_validator('adminlevel') + def adminlevel_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043UserShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043UserShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminlevel": obj.get("adminlevel"), + "defaultaccount": obj.get("defaultaccount"), + "defaultwckey": obj.get("defaultwckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_users_add_cond.py b/slurmrest_python/models/v0043_users_add_cond.py new file mode 100644 index 0000000..46b5719 --- /dev/null +++ b/slurmrest_python/models/v0043_users_add_cond.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_assoc_rec_set import V0043AssocRecSet +from typing import Optional, Set +from typing_extensions import Self + +class V0043UsersAddCond(BaseModel): + """ + V0043UsersAddCond + """ # noqa: E501 + accounts: Optional[List[StrictStr]] = None + association: Optional[V0043AssocRecSet] = None + clusters: Optional[List[StrictStr]] = None + partitions: Optional[List[StrictStr]] = None + users: List[StrictStr] + wckeys: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters", "partitions", "users", "wckeys"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043UsersAddCond from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043UsersAddCond from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0043AssocRecSet.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters"), + "partitions": obj.get("partitions"), + "users": obj.get("users"), + "wckeys": obj.get("wckeys") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_wckey.py b/slurmrest_python/models/v0043_wckey.py new file mode 100644 index 0000000..56fba96 --- /dev/null +++ b/slurmrest_python/models/v0043_wckey.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0043_accounting import V0043Accounting +from typing import Optional, Set +from typing_extensions import Self + +class V0043Wckey(BaseModel): + """ + V0043Wckey + """ # noqa: E501 + accounting: Optional[List[V0043Accounting]] = None + cluster: StrictStr = Field(description="Cluster name") + id: Optional[StrictInt] = Field(default=None, description="Unique ID for this user-cluster-wckey combination") + name: StrictStr = Field(description="WCKey name") + user: StrictStr = Field(description="User name") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this WCKey") + __properties: ClassVar[List[str]] = ["accounting", "cluster", "id", "name", "user", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED']): + raise ValueError("each list item must be one of ('DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043Wckey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043Wckey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0043Accounting.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "cluster": obj.get("cluster"), + "id": obj.get("id"), + "name": obj.get("name"), + "user": obj.get("user"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0043_wckey_tag_struct.py b/slurmrest_python/models/v0043_wckey_tag_struct.py new file mode 100644 index 0000000..d7ab2b7 --- /dev/null +++ b/slurmrest_python/models/v0043_wckey_tag_struct.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0043WckeyTagStruct(BaseModel): + """ + V0043WckeyTagStruct + """ # noqa: E501 + wckey: StrictStr = Field(description="WCKey name") + flags: List[StrictStr] = Field(description="Active flags") + __properties: ClassVar[List[str]] = ["wckey", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['ASSIGNED_DEFAULT']): + raise ValueError("each list item must be one of ('ASSIGNED_DEFAULT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0043WckeyTagStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0043WckeyTagStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckey": obj.get("wckey"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_account.py b/slurmrest_python/models/v0044_account.py new file mode 100644 index 0000000..a6ffe31 --- /dev/null +++ b/slurmrest_python/models/v0044_account.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort +from slurmrest_python.models.v0044_coord import V0044Coord +from typing import Optional, Set +from typing_extensions import Self + +class V0044Account(BaseModel): + """ + V0044Account + """ # noqa: E501 + associations: Optional[List[V0044AssocShort]] = None + coordinators: Optional[List[V0044Coord]] = None + description: StrictStr = Field(description="Arbitrary string describing the account") + name: StrictStr = Field(description="Account name") + organization: StrictStr = Field(description="Organization to which the account belongs") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this account") + __properties: ClassVar[List[str]] = ["associations", "coordinators", "description", "name", "organization", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'WithAssociations', 'WithCoordinators', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Account from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Account from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0044AssocShort.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0044Coord.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "description": obj.get("description"), + "name": obj.get("name"), + "organization": obj.get("organization"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_account_short.py b/slurmrest_python/models/v0044_account_short.py new file mode 100644 index 0000000..aca40a9 --- /dev/null +++ b/slurmrest_python/models/v0044_account_short.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044AccountShort(BaseModel): + """ + V0044AccountShort + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary string describing the account") + organization: Optional[StrictStr] = Field(default=None, description="Organization to which the account belongs") + __properties: ClassVar[List[str]] = ["description", "organization"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AccountShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AccountShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "organization": obj.get("organization") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_accounting.py b/slurmrest_python/models/v0044_accounting.py new file mode 100644 index 0000000..66e8a12 --- /dev/null +++ b/slurmrest_python/models/v0044_accounting.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_accounting_allocated import V0044AccountingAllocated +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044Accounting(BaseModel): + """ + V0044Accounting + """ # noqa: E501 + allocated: Optional[V0044AccountingAllocated] = None + id: Optional[StrictInt] = Field(default=None, description="Association ID or Workload characterization key ID") + id_alt: Optional[StrictInt] = Field(default=None, description="Alternate ID (not currently used)") + start: Optional[StrictInt] = Field(default=None, description="When the record was started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + tres: Optional[V0044Tres] = Field(default=None, alias="TRES") + __properties: ClassVar[List[str]] = ["allocated", "id", "id_alt", "start", "TRES"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Accounting from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of allocated + if self.allocated: + _dict['allocated'] = self.allocated.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['TRES'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Accounting from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": V0044AccountingAllocated.from_dict(obj["allocated"]) if obj.get("allocated") is not None else None, + "id": obj.get("id"), + "id_alt": obj.get("id_alt"), + "start": obj.get("start"), + "TRES": V0044Tres.from_dict(obj["TRES"]) if obj.get("TRES") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_accounting_allocated.py b/slurmrest_python/models/v0044_accounting_allocated.py new file mode 100644 index 0000000..43d1d56 --- /dev/null +++ b/slurmrest_python/models/v0044_accounting_allocated.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044AccountingAllocated(BaseModel): + """ + V0044AccountingAllocated + """ # noqa: E501 + seconds: Optional[StrictInt] = Field(default=None, description="Number of seconds allocated") + __properties: ClassVar[List[str]] = ["seconds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AccountingAllocated from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AccountingAllocated from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "seconds": obj.get("seconds") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_accounts_add_cond.py b/slurmrest_python/models/v0044_accounts_add_cond.py new file mode 100644 index 0000000..e11b91c --- /dev/null +++ b/slurmrest_python/models/v0044_accounts_add_cond.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_rec_set import V0044AssocRecSet +from typing import Optional, Set +from typing_extensions import Self + +class V0044AccountsAddCond(BaseModel): + """ + V0044AccountsAddCond + """ # noqa: E501 + accounts: List[StrictStr] + association: Optional[V0044AssocRecSet] = None + clusters: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AccountsAddCond from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AccountsAddCond from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0044AssocRecSet.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_acct_gather_energy.py b/slurmrest_python/models/v0044_acct_gather_energy.py new file mode 100644 index 0000000..1438849 --- /dev/null +++ b/slurmrest_python/models/v0044_acct_gather_energy.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AcctGatherEnergy(BaseModel): + """ + V0044AcctGatherEnergy + """ # noqa: E501 + average_watts: Optional[StrictInt] = Field(default=None, description="Average power consumption, in watts") + base_consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between when the node was powered on and the last time it was registered by slurmd, in joules") + consumed_energy: Optional[StrictInt] = Field(default=None, description="The energy consumed between the last time the node was registered by the slurmd daemon and the last node energy accounting sample, in joules") + current_watts: Optional[V0044Uint32NoValStruct] = None + previous_consumed_energy: Optional[StrictInt] = Field(default=None, description="Previous value of consumed_energy") + last_collected: Optional[StrictInt] = Field(default=None, description="Time when energy data was last retrieved (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + __properties: ClassVar[List[str]] = ["average_watts", "base_consumed_energy", "consumed_energy", "current_watts", "previous_consumed_energy", "last_collected"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AcctGatherEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of current_watts + if self.current_watts: + _dict['current_watts'] = self.current_watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AcctGatherEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "average_watts": obj.get("average_watts"), + "base_consumed_energy": obj.get("base_consumed_energy"), + "consumed_energy": obj.get("consumed_energy"), + "current_watts": V0044Uint32NoValStruct.from_dict(obj["current_watts"]) if obj.get("current_watts") is not None else None, + "previous_consumed_energy": obj.get("previous_consumed_energy"), + "last_collected": obj.get("last_collected") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc.py b/slurmrest_python/models/v0044_assoc.py new file mode 100644 index 0000000..2cb55a0 --- /dev/null +++ b/slurmrest_python/models/v0044_assoc.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault +from slurmrest_python.models.v0044_accounting import V0044Accounting +from slurmrest_python.models.v0044_assoc_max import V0044AssocMax +from slurmrest_python.models.v0044_assoc_min import V0044AssocMin +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044Assoc(BaseModel): + """ + V0044Assoc + """ # noqa: E501 + accounting: Optional[List[V0044Accounting]] = None + account: Optional[StrictStr] = Field(default=None, description="Account name") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + default: Optional[V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags on the association") + max: Optional[V0044AssocMax] = None + id: Optional[StrictInt] = Field(default=None, description="Unique ID (Association ID)") + is_default: Optional[StrictBool] = Field(default=None, description="Is default association for user") + lineage: Optional[StrictStr] = Field(default=None, description="Complete path up the hierarchy to the root association") + min: Optional[V0044AssocMin] = None + parent_account: Optional[StrictStr] = Field(default=None, description="Name of parent account") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + priority: Optional[V0044Uint32NoValStruct] = None + qos: Optional[List[StrictStr]] = Field(default=None, description="List of QOS names") + shares_raw: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + user: StrictStr = Field(description="User name") + __properties: ClassVar[List[str]] = ["accounting", "account", "cluster", "comment", "default", "flags", "max", "id", "is_default", "lineage", "min", "parent_account", "partition", "priority", "qos", "shares_raw", "user"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords']): + raise ValueError("each list item must be one of ('DELETED', 'NoUpdate', 'Exact', 'NoUsersAreCoords', 'UsersAreCoords')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Assoc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Assoc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0044Accounting.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "comment": obj.get("comment"), + "default": V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "max": V0044AssocMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "id": obj.get("id"), + "is_default": obj.get("is_default"), + "lineage": obj.get("lineage"), + "min": V0044AssocMin.from_dict(obj["min"]) if obj.get("min") is not None else None, + "parent_account": obj.get("parent_account"), + "partition": obj.get("partition"), + "priority": V0044Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "shares_raw": obj.get("shares_raw"), + "user": obj.get("user") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max.py b/slurmrest_python/models/v0044_assoc_max.py new file mode 100644 index 0000000..6be24dd --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_max_jobs import V0044AssocMaxJobs +from slurmrest_python.models.v0044_assoc_max_per import V0044AssocMaxPer +from slurmrest_python.models.v0044_assoc_max_tres import V0044AssocMaxTres +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMax(BaseModel): + """ + V0044AssocMax + """ # noqa: E501 + jobs: Optional[V0044AssocMaxJobs] = None + tres: Optional[V0044AssocMaxTres] = None + per: Optional[V0044AssocMaxPer] = None + __properties: ClassVar[List[str]] = ["jobs", "tres", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": V0044AssocMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "tres": V0044AssocMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "per": V0044AssocMaxPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_jobs.py b/slurmrest_python/models/v0044_assoc_max_jobs.py new file mode 100644 index 0000000..12e95e0 --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_jobs.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_max_jobs_per import V0044AssocMaxJobsPer +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxJobs(BaseModel): + """ + V0044AssocMaxJobs + """ # noqa: E501 + per: Optional[V0044AssocMaxJobsPer] = None + active: Optional[V0044Uint32NoValStruct] = None + accruing: Optional[V0044Uint32NoValStruct] = None + total: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["per", "active", "accruing", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + # override the default output from pydantic by calling `to_dict()` of active + if self.active: + _dict['active'] = self.active.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0044AssocMaxJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None, + "active": V0044Uint32NoValStruct.from_dict(obj["active"]) if obj.get("active") is not None else None, + "accruing": V0044Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "total": V0044Uint32NoValStruct.from_dict(obj["total"]) if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_jobs_per.py b/slurmrest_python/models/v0044_assoc_max_jobs_per.py new file mode 100644 index 0000000..0c3df7d --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_jobs_per.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxJobsPer(BaseModel): + """ + V0044AssocMaxJobsPer + """ # noqa: E501 + count: Optional[V0044Uint32NoValStruct] = None + accruing: Optional[V0044Uint32NoValStruct] = None + submitted: Optional[V0044Uint32NoValStruct] = None + wall_clock: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["count", "accruing", "submitted", "wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of submitted + if self.submitted: + _dict['submitted'] = self.submitted.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": V0044Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None, + "accruing": V0044Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "submitted": V0044Uint32NoValStruct.from_dict(obj["submitted"]) if obj.get("submitted") is not None else None, + "wall_clock": V0044Uint32NoValStruct.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_per.py b/slurmrest_python/models/v0044_assoc_max_per.py new file mode 100644 index 0000000..065d613 --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_per.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_max_per_account import V0044AssocMaxPerAccount +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxPer(BaseModel): + """ + V0044AssocMaxPer + """ # noqa: E501 + account: Optional[V0044AssocMaxPerAccount] = None + __properties: ClassVar[List[str]] = ["account"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0044AssocMaxPerAccount.from_dict(obj["account"]) if obj.get("account") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_per_account.py b/slurmrest_python/models/v0044_assoc_max_per_account.py new file mode 100644 index 0000000..e9a2331 --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_per_account.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxPerAccount(BaseModel): + """ + V0044AssocMaxPerAccount + """ # noqa: E501 + wall_clock: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["wall_clock"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxPerAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxPerAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wall_clock": V0044Uint32NoValStruct.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_tres.py b/slurmrest_python/models/v0044_assoc_max_tres.py new file mode 100644 index 0000000..1d47346 --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_tres.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_max_tres_group import V0044AssocMaxTresGroup +from slurmrest_python.models.v0044_assoc_max_tres_minutes import V0044AssocMaxTresMinutes +from slurmrest_python.models.v0044_assoc_max_tres_per import V0044AssocMaxTresPer +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxTres(BaseModel): + """ + V0044AssocMaxTres + """ # noqa: E501 + total: Optional[List[V0044Tres]] = None + group: Optional[V0044AssocMaxTresGroup] = None + minutes: Optional[V0044AssocMaxTresMinutes] = None + per: Optional[V0044AssocMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "group", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of group + if self.group: + _dict['group'] = self.group.to_dict() + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0044Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "group": V0044AssocMaxTresGroup.from_dict(obj["group"]) if obj.get("group") is not None else None, + "minutes": V0044AssocMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0044AssocMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_tres_group.py b/slurmrest_python/models/v0044_assoc_max_tres_group.py new file mode 100644 index 0000000..93dbdde --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_tres_group.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxTresGroup(BaseModel): + """ + V0044AssocMaxTresGroup + """ # noqa: E501 + minutes: Optional[List[V0044Tres]] = None + active: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["minutes", "active"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxTresGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in minutes (list) + _items = [] + if self.minutes: + for _item_minutes in self.minutes: + if _item_minutes: + _items.append(_item_minutes.to_dict()) + _dict['minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in active (list) + _items = [] + if self.active: + for _item_active in self.active: + if _item_active: + _items.append(_item_active.to_dict()) + _dict['active'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxTresGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minutes": [V0044Tres.from_dict(_item) for _item in obj["minutes"]] if obj.get("minutes") is not None else None, + "active": [V0044Tres.from_dict(_item) for _item in obj["active"]] if obj.get("active") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_tres_minutes.py b/slurmrest_python/models/v0044_assoc_max_tres_minutes.py new file mode 100644 index 0000000..8c46691 --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_tres_minutes.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_min_tres_per import V0044QosLimitsMinTresPer +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxTresMinutes(BaseModel): + """ + V0044AssocMaxTresMinutes + """ # noqa: E501 + total: Optional[List[V0044Tres]] = None + per: Optional[V0044QosLimitsMinTresPer] = None + __properties: ClassVar[List[str]] = ["total", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0044Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "per": V0044QosLimitsMinTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_max_tres_per.py b/slurmrest_python/models/v0044_assoc_max_tres_per.py new file mode 100644 index 0000000..bb6ff7f --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_max_tres_per.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMaxTresPer(BaseModel): + """ + V0044AssocMaxTresPer + """ # noqa: E501 + job: Optional[List[V0044Tres]] = None + node: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["job", "node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0044Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0044Tres.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_min.py b/slurmrest_python/models/v0044_assoc_min.py new file mode 100644 index 0000000..c3ecdf7 --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_min.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocMin(BaseModel): + """ + V0044AssocMin + """ # noqa: E501 + priority_threshold: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["priority_threshold"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0044Uint32NoValStruct.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_rec_set.py b/slurmrest_python/models/v0044_assoc_rec_set.py new file mode 100644 index 0000000..e5b928d --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_rec_set.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocRecSet(BaseModel): + """ + V0044AssocRecSet + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + defaultqos: Optional[StrictStr] = Field(default=None, description="Default QOS") + grpjobs: Optional[V0044Uint32NoValStruct] = None + grpjobsaccrue: Optional[V0044Uint32NoValStruct] = None + grpsubmitjobs: Optional[V0044Uint32NoValStruct] = None + grptres: Optional[List[V0044Tres]] = None + grptresmins: Optional[List[V0044Tres]] = None + grptresrunmins: Optional[List[V0044Tres]] = None + grpwall: Optional[V0044Uint32NoValStruct] = None + maxjobs: Optional[V0044Uint32NoValStruct] = None + maxjobsaccrue: Optional[V0044Uint32NoValStruct] = None + maxsubmitjobs: Optional[V0044Uint32NoValStruct] = None + maxtresminsperjob: Optional[List[V0044Tres]] = None + maxtresrunmins: Optional[List[V0044Tres]] = None + maxtresperjob: Optional[List[V0044Tres]] = None + maxtrespernode: Optional[List[V0044Tres]] = None + maxwalldurationperjob: Optional[V0044Uint32NoValStruct] = None + minpriothresh: Optional[V0044Uint32NoValStruct] = None + parent: Optional[StrictStr] = Field(default=None, description="Name of parent account") + priority: Optional[V0044Uint32NoValStruct] = None + qoslevel: Optional[List[StrictStr]] = Field(default=None, description="List of QOS names") + fairshare: Optional[StrictInt] = Field(default=None, description="Allocated shares used for fairshare calculation") + __properties: ClassVar[List[str]] = ["comment", "defaultqos", "grpjobs", "grpjobsaccrue", "grpsubmitjobs", "grptres", "grptresmins", "grptresrunmins", "grpwall", "maxjobs", "maxjobsaccrue", "maxsubmitjobs", "maxtresminsperjob", "maxtresrunmins", "maxtresperjob", "maxtrespernode", "maxwalldurationperjob", "minpriothresh", "parent", "priority", "qoslevel", "fairshare"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocRecSet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of grpjobs + if self.grpjobs: + _dict['grpjobs'] = self.grpjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpjobsaccrue + if self.grpjobsaccrue: + _dict['grpjobsaccrue'] = self.grpjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of grpsubmitjobs + if self.grpsubmitjobs: + _dict['grpsubmitjobs'] = self.grpsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in grptres (list) + _items = [] + if self.grptres: + for _item_grptres in self.grptres: + if _item_grptres: + _items.append(_item_grptres.to_dict()) + _dict['grptres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresmins (list) + _items = [] + if self.grptresmins: + for _item_grptresmins in self.grptresmins: + if _item_grptresmins: + _items.append(_item_grptresmins.to_dict()) + _dict['grptresmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in grptresrunmins (list) + _items = [] + if self.grptresrunmins: + for _item_grptresrunmins in self.grptresrunmins: + if _item_grptresrunmins: + _items.append(_item_grptresrunmins.to_dict()) + _dict['grptresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of grpwall + if self.grpwall: + _dict['grpwall'] = self.grpwall.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobs + if self.maxjobs: + _dict['maxjobs'] = self.maxjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxjobsaccrue + if self.maxjobsaccrue: + _dict['maxjobsaccrue'] = self.maxjobsaccrue.to_dict() + # override the default output from pydantic by calling `to_dict()` of maxsubmitjobs + if self.maxsubmitjobs: + _dict['maxsubmitjobs'] = self.maxsubmitjobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in maxtresminsperjob (list) + _items = [] + if self.maxtresminsperjob: + for _item_maxtresminsperjob in self.maxtresminsperjob: + if _item_maxtresminsperjob: + _items.append(_item_maxtresminsperjob.to_dict()) + _dict['maxtresminsperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresrunmins (list) + _items = [] + if self.maxtresrunmins: + for _item_maxtresrunmins in self.maxtresrunmins: + if _item_maxtresrunmins: + _items.append(_item_maxtresrunmins.to_dict()) + _dict['maxtresrunmins'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtresperjob (list) + _items = [] + if self.maxtresperjob: + for _item_maxtresperjob in self.maxtresperjob: + if _item_maxtresperjob: + _items.append(_item_maxtresperjob.to_dict()) + _dict['maxtresperjob'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in maxtrespernode (list) + _items = [] + if self.maxtrespernode: + for _item_maxtrespernode in self.maxtrespernode: + if _item_maxtrespernode: + _items.append(_item_maxtrespernode.to_dict()) + _dict['maxtrespernode'] = _items + # override the default output from pydantic by calling `to_dict()` of maxwalldurationperjob + if self.maxwalldurationperjob: + _dict['maxwalldurationperjob'] = self.maxwalldurationperjob.to_dict() + # override the default output from pydantic by calling `to_dict()` of minpriothresh + if self.minpriothresh: + _dict['minpriothresh'] = self.minpriothresh.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocRecSet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "defaultqos": obj.get("defaultqos"), + "grpjobs": V0044Uint32NoValStruct.from_dict(obj["grpjobs"]) if obj.get("grpjobs") is not None else None, + "grpjobsaccrue": V0044Uint32NoValStruct.from_dict(obj["grpjobsaccrue"]) if obj.get("grpjobsaccrue") is not None else None, + "grpsubmitjobs": V0044Uint32NoValStruct.from_dict(obj["grpsubmitjobs"]) if obj.get("grpsubmitjobs") is not None else None, + "grptres": [V0044Tres.from_dict(_item) for _item in obj["grptres"]] if obj.get("grptres") is not None else None, + "grptresmins": [V0044Tres.from_dict(_item) for _item in obj["grptresmins"]] if obj.get("grptresmins") is not None else None, + "grptresrunmins": [V0044Tres.from_dict(_item) for _item in obj["grptresrunmins"]] if obj.get("grptresrunmins") is not None else None, + "grpwall": V0044Uint32NoValStruct.from_dict(obj["grpwall"]) if obj.get("grpwall") is not None else None, + "maxjobs": V0044Uint32NoValStruct.from_dict(obj["maxjobs"]) if obj.get("maxjobs") is not None else None, + "maxjobsaccrue": V0044Uint32NoValStruct.from_dict(obj["maxjobsaccrue"]) if obj.get("maxjobsaccrue") is not None else None, + "maxsubmitjobs": V0044Uint32NoValStruct.from_dict(obj["maxsubmitjobs"]) if obj.get("maxsubmitjobs") is not None else None, + "maxtresminsperjob": [V0044Tres.from_dict(_item) for _item in obj["maxtresminsperjob"]] if obj.get("maxtresminsperjob") is not None else None, + "maxtresrunmins": [V0044Tres.from_dict(_item) for _item in obj["maxtresrunmins"]] if obj.get("maxtresrunmins") is not None else None, + "maxtresperjob": [V0044Tres.from_dict(_item) for _item in obj["maxtresperjob"]] if obj.get("maxtresperjob") is not None else None, + "maxtrespernode": [V0044Tres.from_dict(_item) for _item in obj["maxtrespernode"]] if obj.get("maxtrespernode") is not None else None, + "maxwalldurationperjob": V0044Uint32NoValStruct.from_dict(obj["maxwalldurationperjob"]) if obj.get("maxwalldurationperjob") is not None else None, + "minpriothresh": V0044Uint32NoValStruct.from_dict(obj["minpriothresh"]) if obj.get("minpriothresh") is not None else None, + "parent": obj.get("parent"), + "priority": V0044Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qoslevel": obj.get("qoslevel"), + "fairshare": obj.get("fairshare") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_shares_obj_wrap.py b/slurmrest_python/models/v0044_assoc_shares_obj_wrap.py new file mode 100644 index 0000000..21dd6fd --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_shares_obj_wrap.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_fairshare import V0044AssocSharesObjWrapFairshare +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_tres import V0044AssocSharesObjWrapTres +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocSharesObjWrap(BaseModel): + """ + V0044AssocSharesObjWrap + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Association ID") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + name: Optional[StrictStr] = Field(default=None, description="Share name") + parent: Optional[StrictStr] = Field(default=None, description="Parent name") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + shares_normalized: Optional[V0044Float64NoValStruct] = None + shares: Optional[V0044Uint32NoValStruct] = None + tres: Optional[V0044AssocSharesObjWrapTres] = None + effective_usage: Optional[V0044Float64NoValStruct] = None + usage_normalized: Optional[V0044Float64NoValStruct] = None + usage: Optional[StrictInt] = Field(default=None, description="Measure of tresbillableunits usage") + fairshare: Optional[V0044AssocSharesObjWrapFairshare] = None + type: Optional[List[StrictStr]] = Field(default=None, description="User or account association") + __properties: ClassVar[List[str]] = ["id", "cluster", "name", "parent", "partition", "shares_normalized", "shares", "tres", "effective_usage", "usage_normalized", "usage", "fairshare", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['USER', 'ASSOCIATION']): + raise ValueError("each list item must be one of ('USER', 'ASSOCIATION')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocSharesObjWrap from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares_normalized + if self.shares_normalized: + _dict['shares_normalized'] = self.shares_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of effective_usage + if self.effective_usage: + _dict['effective_usage'] = self.effective_usage.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_normalized + if self.usage_normalized: + _dict['usage_normalized'] = self.usage_normalized.to_dict() + # override the default output from pydantic by calling `to_dict()` of fairshare + if self.fairshare: + _dict['fairshare'] = self.fairshare.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocSharesObjWrap from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "cluster": obj.get("cluster"), + "name": obj.get("name"), + "parent": obj.get("parent"), + "partition": obj.get("partition"), + "shares_normalized": V0044Float64NoValStruct.from_dict(obj["shares_normalized"]) if obj.get("shares_normalized") is not None else None, + "shares": V0044Uint32NoValStruct.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "tres": V0044AssocSharesObjWrapTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "effective_usage": V0044Float64NoValStruct.from_dict(obj["effective_usage"]) if obj.get("effective_usage") is not None else None, + "usage_normalized": V0044Float64NoValStruct.from_dict(obj["usage_normalized"]) if obj.get("usage_normalized") is not None else None, + "usage": obj.get("usage"), + "fairshare": V0044AssocSharesObjWrapFairshare.from_dict(obj["fairshare"]) if obj.get("fairshare") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_shares_obj_wrap_fairshare.py b/slurmrest_python/models/v0044_assoc_shares_obj_wrap_fairshare.py new file mode 100644 index 0000000..839df6c --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_shares_obj_wrap_fairshare.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocSharesObjWrapFairshare(BaseModel): + """ + V0044AssocSharesObjWrapFairshare + """ # noqa: E501 + factor: Optional[V0044Float64NoValStruct] = None + level: Optional[V0044Float64NoValStruct] = None + __properties: ClassVar[List[str]] = ["factor", "level"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocSharesObjWrapFairshare from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of factor + if self.factor: + _dict['factor'] = self.factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of level + if self.level: + _dict['level'] = self.level.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocSharesObjWrapFairshare from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "factor": V0044Float64NoValStruct.from_dict(obj["factor"]) if obj.get("factor") is not None else None, + "level": V0044Float64NoValStruct.from_dict(obj["level"]) if obj.get("level") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_shares_obj_wrap_tres.py b/slurmrest_python/models/v0044_assoc_shares_obj_wrap_tres.py new file mode 100644 index 0000000..ecd5c5b --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_shares_obj_wrap_tres.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_shares_float128_tres import V0044SharesFloat128Tres +from slurmrest_python.models.v0044_shares_uint64_tres import V0044SharesUint64Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocSharesObjWrapTres(BaseModel): + """ + V0044AssocSharesObjWrapTres + """ # noqa: E501 + run_seconds: Optional[List[V0044SharesUint64Tres]] = None + group_minutes: Optional[List[V0044SharesUint64Tres]] = None + usage: Optional[List[V0044SharesFloat128Tres]] = None + __properties: ClassVar[List[str]] = ["run_seconds", "group_minutes", "usage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocSharesObjWrapTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in run_seconds (list) + _items = [] + if self.run_seconds: + for _item_run_seconds in self.run_seconds: + if _item_run_seconds: + _items.append(_item_run_seconds.to_dict()) + _dict['run_seconds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in group_minutes (list) + _items = [] + if self.group_minutes: + for _item_group_minutes in self.group_minutes: + if _item_group_minutes: + _items.append(_item_group_minutes.to_dict()) + _dict['group_minutes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in usage (list) + _items = [] + if self.usage: + for _item_usage in self.usage: + if _item_usage: + _items.append(_item_usage.to_dict()) + _dict['usage'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocSharesObjWrapTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "run_seconds": [V0044SharesUint64Tres.from_dict(_item) for _item in obj["run_seconds"]] if obj.get("run_seconds") is not None else None, + "group_minutes": [V0044SharesUint64Tres.from_dict(_item) for _item in obj["group_minutes"]] if obj.get("group_minutes") is not None else None, + "usage": [V0044SharesFloat128Tres.from_dict(_item) for _item in obj["usage"]] if obj.get("usage") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_assoc_short.py b/slurmrest_python/models/v0044_assoc_short.py new file mode 100644 index 0000000..d540d9a --- /dev/null +++ b/slurmrest_python/models/v0044_assoc_short.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044AssocShort(BaseModel): + """ + V0044AssocShort + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account name") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + user: StrictStr = Field(description="User name") + id: Optional[StrictInt] = Field(default=None, description="Numeric association ID") + __properties: ClassVar[List[str]] = ["account", "cluster", "partition", "user", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044AssocShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044AssocShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "cluster": obj.get("cluster"), + "partition": obj.get("partition"), + "user": obj.get("user"), + "id": obj.get("id") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_bf_exit_fields.py b/slurmrest_python/models/v0044_bf_exit_fields.py new file mode 100644 index 0000000..188b59b --- /dev/null +++ b/slurmrest_python/models/v0044_bf_exit_fields.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044BfExitFields(BaseModel): + """ + V0044BfExitFields + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + bf_max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + bf_max_job_test: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + bf_max_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + bf_node_space_size: Optional[StrictInt] = Field(default=None, description="Reached table size limit") + state_changed: Optional[StrictInt] = Field(default=None, description="System state changed") + __properties: ClassVar[List[str]] = ["end_job_queue", "bf_max_job_start", "bf_max_job_test", "bf_max_time", "bf_node_space_size", "state_changed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044BfExitFields from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044BfExitFields from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "bf_max_job_start": obj.get("bf_max_job_start"), + "bf_max_job_test": obj.get("bf_max_job_test"), + "bf_max_time": obj.get("bf_max_time"), + "bf_node_space_size": obj.get("bf_node_space_size"), + "state_changed": obj.get("state_changed") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_cluster_rec.py b/slurmrest_python/models/v0044_cluster_rec.py new file mode 100644 index 0000000..a1a6fe2 --- /dev/null +++ b/slurmrest_python/models/v0044_cluster_rec.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController +from slurmrest_python.models.v0044_cluster_rec_associations import V0044ClusterRecAssociations +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044ClusterRec(BaseModel): + """ + V0044ClusterRec + """ # noqa: E501 + controller: Optional[V0041OpenapiSlurmdbdConfigRespClustersInnerController] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags") + name: Optional[StrictStr] = Field(default=None, description="ClusterName") + nodes: Optional[StrictStr] = Field(default=None, description="Node names") + select_plugin: Optional[StrictStr] = None + associations: Optional[V0044ClusterRecAssociations] = None + rpc_version: Optional[StrictInt] = Field(default=None, description="RPC version used in the cluster") + tres: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["controller", "flags", "name", "nodes", "select_plugin", "associations", "rpc_version", "tres"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED', 'REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL']): + raise ValueError("each list item must be one of ('DELETED', 'REGISTERING', 'MULTIPLE_SLURMD', 'FEDERATION', 'EXTERNAL')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ClusterRec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # override the default output from pydantic by calling `to_dict()` of associations + if self.associations: + _dict['associations'] = self.associations.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ClusterRec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "controller": V0041OpenapiSlurmdbdConfigRespClustersInnerController.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "nodes": obj.get("nodes"), + "select_plugin": obj.get("select_plugin"), + "associations": V0044ClusterRecAssociations.from_dict(obj["associations"]) if obj.get("associations") is not None else None, + "rpc_version": obj.get("rpc_version"), + "tres": [V0044Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_cluster_rec_associations.py b/slurmrest_python/models/v0044_cluster_rec_associations.py new file mode 100644 index 0000000..673e3c0 --- /dev/null +++ b/slurmrest_python/models/v0044_cluster_rec_associations.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort +from typing import Optional, Set +from typing_extensions import Self + +class V0044ClusterRecAssociations(BaseModel): + """ + V0044ClusterRecAssociations + """ # noqa: E501 + root: Optional[V0044AssocShort] = None + __properties: ClassVar[List[str]] = ["root"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ClusterRecAssociations from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of root + if self.root: + _dict['root'] = self.root.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ClusterRecAssociations from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "root": V0044AssocShort.from_dict(obj["root"]) if obj.get("root") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_controller_ping.py b/slurmrest_python/models/v0044_controller_ping.py new file mode 100644 index 0000000..6751715 --- /dev/null +++ b/slurmrest_python/models/v0044_controller_ping.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044ControllerPing(BaseModel): + """ + V0044ControllerPing + """ # noqa: E501 + hostname: Optional[StrictStr] = Field(default=None, description="Target for ping") + pinged: Optional[StrictStr] = Field(default=None, description="Ping result") + responding: StrictBool = Field(description="If ping RPC responded with pong from controller") + latency: Optional[StrictInt] = Field(default=None, description="Number of microseconds it took to successfully ping or timeout") + mode: Optional[StrictStr] = Field(default=None, description="The operating mode of the responding slurmctld") + primary: StrictBool = Field(description="Is responding slurmctld the primary controller (Is responding slurmctld the primary controller)") + __properties: ClassVar[List[str]] = ["hostname", "pinged", "responding", "latency", "mode", "primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ControllerPing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ControllerPing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "pinged": obj.get("pinged"), + "responding": obj.get("responding"), + "latency": obj.get("latency"), + "mode": obj.get("mode"), + "primary": obj.get("primary") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_coord.py b/slurmrest_python/models/v0044_coord.py new file mode 100644 index 0000000..2f9f8c7 --- /dev/null +++ b/slurmrest_python/models/v0044_coord.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044Coord(BaseModel): + """ + V0044Coord + """ # noqa: E501 + name: StrictStr = Field(description="User name") + direct: Optional[StrictBool] = Field(default=None, description="Indicates whether the coordinator was directly assigned to this account") + __properties: ClassVar[List[str]] = ["name", "direct"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Coord from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Coord from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "direct": obj.get("direct") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_cron_entry.py b/slurmrest_python/models/v0044_cron_entry.py new file mode 100644 index 0000000..05f7427 --- /dev/null +++ b/slurmrest_python/models/v0044_cron_entry.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine +from typing import Optional, Set +from typing_extensions import Self + +class V0044CronEntry(BaseModel): + """ + V0044CronEntry + """ # noqa: E501 + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags") + minute: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible minute values (e.g. 0-10,50)") + hour: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible hour values (e.g. 0-5,23)") + day_of_month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of month values (e.g. 0-10,29)") + month: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible month values (e.g. 0-5,12)") + day_of_week: Optional[StrictStr] = Field(default=None, description="Ranged string specifying eligible day of week values (e.g.0-3,7)") + specification: Optional[StrictStr] = Field(default=None, description="Complete time specification (* means valid for all allowed values) - minute hour day_of_month month day_of_week") + command: Optional[StrictStr] = Field(default=None, description="Command to run") + line: Optional[V0041JobDescMsgCrontabLine] = None + __properties: ClassVar[List[str]] = ["flags", "minute", "hour", "day_of_month", "month", "day_of_week", "specification", "command", "line"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK']): + raise ValueError("each list item must be one of ('WILD_MINUTE', 'WILD_HOUR', 'WILD_DAY_OF_MONTH', 'WILD_MONTH', 'WILD_DAY_OF_WEEK')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044CronEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of line + if self.line: + _dict['line'] = self.line.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044CronEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "flags": obj.get("flags"), + "minute": obj.get("minute"), + "hour": obj.get("hour"), + "day_of_month": obj.get("day_of_month"), + "month": obj.get("month"), + "day_of_week": obj.get("day_of_week"), + "specification": obj.get("specification"), + "command": obj.get("command"), + "line": V0041JobDescMsgCrontabLine.from_dict(obj["line"]) if obj.get("line") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_float64_no_val_struct.py b/slurmrest_python/models/v0044_float64_no_val_struct.py new file mode 100644 index 0000000..320fed7 --- /dev/null +++ b/slurmrest_python/models/v0044_float64_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0044Float64NoValStruct(BaseModel): + """ + V0044Float64NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Float64NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Float64NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_instance.py b/slurmrest_python/models/v0044_instance.py new file mode 100644 index 0000000..28e4c01 --- /dev/null +++ b/slurmrest_python/models/v0044_instance.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_instance_time import V0044InstanceTime +from typing import Optional, Set +from typing_extensions import Self + +class V0044Instance(BaseModel): + """ + V0044Instance + """ # noqa: E501 + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + node_name: Optional[StrictStr] = Field(default=None, description="NodeName") + time: Optional[V0044InstanceTime] = None + __properties: ClassVar[List[str]] = ["cluster", "extra", "instance_id", "instance_type", "node_name", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Instance from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Instance from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cluster": obj.get("cluster"), + "extra": obj.get("extra"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "node_name": obj.get("node_name"), + "time": V0044InstanceTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_instance_time.py b/slurmrest_python/models/v0044_instance_time.py new file mode 100644 index 0000000..273d040 --- /dev/null +++ b/slurmrest_python/models/v0044_instance_time.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044InstanceTime(BaseModel): + """ + V0044InstanceTime + """ # noqa: E501 + time_end: Optional[StrictInt] = Field(default=None, description="When the instance will end (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + time_start: Optional[StrictInt] = Field(default=None, description="When the instance will start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + __properties: ClassVar[List[str]] = ["time_end", "time_start"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044InstanceTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044InstanceTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time_end": obj.get("time_end"), + "time_start": obj.get("time_start") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job.py b/slurmrest_python/models/v0044_job.py new file mode 100644 index 0000000..affa70d --- /dev/null +++ b/slurmrest_python/models/v0044_job.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort +from slurmrest_python.models.v0044_job_array import V0044JobArray +from slurmrest_python.models.v0044_job_het import V0044JobHet +from slurmrest_python.models.v0044_job_required import V0044JobRequired +from slurmrest_python.models.v0044_job_reservation import V0044JobReservation +from slurmrest_python.models.v0044_job_state import V0044JobState +from slurmrest_python.models.v0044_job_time import V0044JobTime +from slurmrest_python.models.v0044_job_tres import V0044JobTres +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose +from slurmrest_python.models.v0044_step import V0044Step +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_wckey_tag_struct import V0044WckeyTagStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044Job(BaseModel): + """ + V0044Job + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account the job ran under") + comment: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerComment] = None + allocation_nodes: Optional[StrictInt] = Field(default=None, description="List of nodes allocated to the job") + array: Optional[V0044JobArray] = None + association: Optional[V0044AssocShort] = None + block: Optional[StrictStr] = Field(default=None, description="The name of the block to be used (used with Blue Gene systems)") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + constraints: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested as a constraint") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + derived_exit_code: Optional[V0044ProcessExitCodeVerbose] = None + time: Optional[V0044JobTime] = None + exit_code: Optional[V0044ProcessExitCodeVerbose] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this job") + group: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + het: Optional[V0044JobHet] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + name: Optional[StrictStr] = Field(default=None, description="Job name") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mcs: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerMcs] = None + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job (Job held)") + priority: Optional[V0044Uint32NoValStruct] = None + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + qosreq: Optional[StrictStr] = Field(default=None, description="Requested QOS") + required: Optional[V0044JobRequired] = None + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the job") + restart_cnt: Optional[StrictInt] = Field(default=None, description="How many times this job has been requeued/restarted") + reservation: Optional[V0044JobReservation] = None + script: Optional[StrictStr] = Field(default=None, description="Job batch script contents; only the first component in a HetJob is populated or honored") + segment_size: Optional[StrictInt] = Field(default=None, description="Requested segment size") + stdin_expanded: Optional[StrictStr] = Field(default=None, description="Job stdin with expanded fields") + stdout_expanded: Optional[StrictStr] = Field(default=None, description="Job stdout with expanded fields") + stderr_expanded: Optional[StrictStr] = Field(default=None, description="Job stderr with expanded fields") + stdout: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + stderr: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + stdin: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + state: Optional[V0044JobState] = None + steps: Optional[List[V0044Step]] = None + submit_line: Optional[StrictStr] = Field(default=None, description="Command used to submit the job") + tres: Optional[V0044JobTres] = None + used_gres: Optional[StrictStr] = Field(default=None, description="Generic resources used by job") + user: Optional[StrictStr] = Field(default=None, description="User that owns the job") + wckey: Optional[V0044WckeyTagStruct] = None + working_directory: Optional[StrictStr] = Field(default=None, description="Path to current working directory") + __properties: ClassVar[List[str]] = ["account", "comment", "allocation_nodes", "array", "association", "block", "cluster", "constraints", "container", "derived_exit_code", "time", "exit_code", "extra", "failed_node", "flags", "group", "het", "job_id", "name", "licenses", "mcs", "nodes", "partition", "hold", "priority", "qos", "qosreq", "required", "kill_request_user", "restart_cnt", "reservation", "script", "segment_size", "stdin_expanded", "stdout_expanded", "stderr_expanded", "stdout", "stderr", "stdin", "state", "steps", "submit_line", "tres", "used_gres", "user", "wckey", "working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED', 'JOB_ALTERED']): + raise ValueError("each list item must be one of ('NONE', 'CLEAR_SCHEDULING', 'NOT_SET', 'STARTED_ON_SUBMIT', 'STARTED_ON_SCHEDULE', 'STARTED_ON_BACKFILL', 'START_RECEIVED', 'JOB_ALTERED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Job from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of comment + if self.comment: + _dict['comment'] = self.comment.to_dict() + # override the default output from pydantic by calling `to_dict()` of array + if self.array: + _dict['array'] = self.array.to_dict() + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het + if self.het: + _dict['het'] = self.het.to_dict() + # override the default output from pydantic by calling `to_dict()` of mcs + if self.mcs: + _dict['mcs'] = self.mcs.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of required + if self.required: + _dict['required'] = self.required.to_dict() + # override the default output from pydantic by calling `to_dict()` of reservation + if self.reservation: + _dict['reservation'] = self.reservation.to_dict() + # override the default output from pydantic by calling `to_dict()` of state + if self.state: + _dict['state'] = self.state.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in steps (list) + _items = [] + if self.steps: + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) + _dict['steps'] = _items + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wckey + if self.wckey: + _dict['wckey'] = self.wckey.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Job from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "comment": V0041OpenapiSlurmdbdJobsRespJobsInnerComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, + "allocation_nodes": obj.get("allocation_nodes"), + "array": V0044JobArray.from_dict(obj["array"]) if obj.get("array") is not None else None, + "association": V0044AssocShort.from_dict(obj["association"]) if obj.get("association") is not None else None, + "block": obj.get("block"), + "cluster": obj.get("cluster"), + "constraints": obj.get("constraints"), + "container": obj.get("container"), + "derived_exit_code": V0044ProcessExitCodeVerbose.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "time": V0044JobTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0044ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "flags": obj.get("flags"), + "group": obj.get("group"), + "het": V0044JobHet.from_dict(obj["het"]) if obj.get("het") is not None else None, + "job_id": obj.get("job_id"), + "name": obj.get("name"), + "licenses": obj.get("licenses"), + "mcs": V0041OpenapiSlurmdbdJobsRespJobsInnerMcs.from_dict(obj["mcs"]) if obj.get("mcs") is not None else None, + "nodes": obj.get("nodes"), + "partition": obj.get("partition"), + "hold": obj.get("hold"), + "priority": V0044Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "qos": obj.get("qos"), + "qosreq": obj.get("qosreq"), + "required": V0044JobRequired.from_dict(obj["required"]) if obj.get("required") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "restart_cnt": obj.get("restart_cnt"), + "reservation": V0044JobReservation.from_dict(obj["reservation"]) if obj.get("reservation") is not None else None, + "script": obj.get("script"), + "segment_size": obj.get("segment_size"), + "stdin_expanded": obj.get("stdin_expanded"), + "stdout_expanded": obj.get("stdout_expanded"), + "stderr_expanded": obj.get("stderr_expanded"), + "stdout": obj.get("stdout"), + "stderr": obj.get("stderr"), + "stdin": obj.get("stdin"), + "state": V0044JobState.from_dict(obj["state"]) if obj.get("state") is not None else None, + "steps": [V0044Step.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, + "submit_line": obj.get("submit_line"), + "tres": V0044JobTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "used_gres": obj.get("used_gres"), + "user": obj.get("user"), + "wckey": V0044WckeyTagStruct.from_dict(obj["wckey"]) if obj.get("wckey") is not None else None, + "working_directory": obj.get("working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_alloc_req.py b/slurmrest_python/models/v0044_job_alloc_req.py new file mode 100644 index 0000000..b6b0635 --- /dev/null +++ b/slurmrest_python/models/v0044_job_alloc_req.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobAllocReq(BaseModel): + """ + V0044JobAllocReq + """ # noqa: E501 + hetjob: Optional[List[V0044JobDescMsg]] = None + job: Optional[V0044JobDescMsg] = None + __properties: ClassVar[List[str]] = ["hetjob", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobAllocReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in hetjob (list) + _items = [] + if self.hetjob: + for _item_hetjob in self.hetjob: + if _item_hetjob: + _items.append(_item_hetjob.to_dict()) + _dict['hetjob'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobAllocReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hetjob": [V0044JobDescMsg.from_dict(_item) for _item in obj["hetjob"]] if obj.get("hetjob") is not None else None, + "job": V0044JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_array.py b/slurmrest_python/models/v0044_job_array.py new file mode 100644 index 0000000..33258bf --- /dev/null +++ b/slurmrest_python/models/v0044_job_array.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobArray(BaseModel): + """ + V0044JobArray + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID of job array, or 0 if N/A") + limits: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits] = None + task_id: Optional[V0044Uint32NoValStruct] = None + task: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + __properties: ClassVar[List[str]] = ["job_id", "limits", "task_id", "task"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobArray from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of task_id + if self.task_id: + _dict['task_id'] = self.task_id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobArray from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "limits": V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "task_id": V0044Uint32NoValStruct.from_dict(obj["task_id"]) if obj.get("task_id") is not None else None, + "task": obj.get("task") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_array_response_msg_entry.py b/slurmrest_python/models/v0044_job_array_response_msg_entry.py new file mode 100644 index 0000000..36376ed --- /dev/null +++ b/slurmrest_python/models/v0044_job_array_response_msg_entry.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobArrayResponseMsgEntry(BaseModel): + """ + V0044JobArrayResponseMsgEntry + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Job ID for updated job") + step_id: Optional[StrictStr] = Field(default=None, description="Step ID for updated job") + error: Optional[StrictStr] = Field(default=None, description="Verbose update status or error") + error_code: Optional[StrictInt] = Field(default=None, description="Verbose update status or error") + why: Optional[StrictStr] = Field(default=None, description="Update response message") + __properties: ClassVar[List[str]] = ["job_id", "step_id", "error", "error_code", "why"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobArrayResponseMsgEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobArrayResponseMsgEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "error": obj.get("error"), + "error_code": obj.get("error_code"), + "why": obj.get("why") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_desc_msg.py b/slurmrest_python/models/v0044_job_desc_msg.py new file mode 100644 index 0000000..0221271 --- /dev/null +++ b/slurmrest_python/models/v0044_job_desc_msg.py @@ -0,0 +1,462 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_cron_entry import V0044CronEntry +from slurmrest_python.models.v0044_job_desc_msg_rlimits import V0044JobDescMsgRlimits +from slurmrest_python.models.v0044_slurm_step_id import V0044SlurmStepId +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobDescMsg(BaseModel): + """ + V0044JobDescMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + account_gather_frequency: Optional[StrictStr] = Field(default=None, description="Job accounting and profiling sampling intervals in seconds") + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocation_node_list: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + allocation_node_port: Optional[StrictInt] = Field(default=None, description="Port to send allocation confirmation to") + argv: Optional[List[StrictStr]] = None + array: Optional[StrictStr] = Field(default=None, description="Job array index value specification") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + begin_time: Optional[V0044Uint64NoValStruct] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Job flags") + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + clusters: Optional[StrictStr] = Field(default=None, description="Clusters that a federated job can run on") + cluster_constraint: Optional[StrictStr] = Field(default=None, description="Required features that a federated cluster must have to have a sibling job submitted to it") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by user") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + core_specification: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_specification: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cpu_binding: Optional[StrictStr] = Field(default=None, description="Method for binding tasks to allocated CPUs") + cpu_binding_flags: Optional[List[StrictStr]] = Field(default=None, description="Flags for CPU binding") + cpu_frequency: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency range [-p2][:p3]") + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + crontab: Optional[V0044CronEntry] = None + deadline: Optional[StrictInt] = Field(default=None, description="Latest time that the job may start (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + delay_boot: Optional[StrictInt] = Field(default=None, description="Number of seconds after job eligible start that nodes will be rebooted to satisfy feature specification") + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + end_time: Optional[StrictInt] = Field(default=None, description="Expected end time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + environment: Optional[List[StrictStr]] = None + rlimits: Optional[V0044JobDescMsgRlimits] = None + excluded_nodes: Optional[List[StrictStr]] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + constraints: Optional[StrictStr] = Field(default=None, description="Comma-separated list of features that are required") + group_id: Optional[StrictStr] = Field(default=None, description="Group ID of the user that owns the job") + hetjob_group: Optional[StrictInt] = Field(default=None, description="Unique sequence number applied to this component of the heterogeneous job") + immediate: Optional[StrictBool] = Field(default=None, description="If true, exit if resources are not available within the time period specified") + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + kill_on_node_fail: Optional[StrictBool] = Field(default=None, description="If true, kill job on node failure") + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + mail_type: Optional[List[StrictStr]] = Field(default=None, description="Mail event type(s)") + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_binding: Optional[StrictStr] = Field(default=None, description="Binding map for map/mask_cpu") + memory_binding_type: Optional[List[StrictStr]] = Field(default=None, description="Method for binding tasks to memory") + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for job step") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks: Optional[StrictInt] = Field(default=None, description="Number of tasks") + oom_kill_step: Optional[StrictInt] = Field(default=None, description="Kill whole step in case of OOM in one of the tasks") + open_mode: Optional[List[StrictStr]] = Field(default=None, description="Open mode used for stdout and stderr files") + reserve_ports: Optional[StrictInt] = Field(default=None, description="Port to send various notification msg to") + overcommit: Optional[StrictBool] = Field(default=None, description="Overcommit resources") + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + distribution_plane_size: Optional[V0044Uint16NoValStruct] = None + power_flags: Optional[List[Any]] = None + prefer: Optional[StrictStr] = Field(default=None, description="Comma-separated list of features that are preferred but not required") + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job (Job held)") + priority: Optional[V0044Uint32NoValStruct] = None + profile: Optional[List[StrictStr]] = Field(default=None, description="Profile used by the acct_gather_profile plugin") + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[List[StrictStr]] = None + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + script: Optional[StrictStr] = Field(default=None, description="Job batch script contents; only the first component in a HetJob is populated or honored") + shared: Optional[List[StrictStr]] = Field(default=None, description="How the job can share resources with other jobs, if at all") + site_factor: Optional[StrictInt] = Field(default=None, description="Site-specific priority factor") + spank_environment: Optional[List[StrictStr]] = None + step_id: Optional[V0044SlurmStepId] = None + distribution: Optional[StrictStr] = Field(default=None, description="Layout") + time_limit: Optional[V0044Uint32NoValStruct] = None + time_minimum: Optional[V0044Uint32NoValStruct] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated for every task") + user_id: Optional[StrictStr] = Field(default=None, description="User ID that owns the job") + wait_all_nodes: Optional[StrictBool] = Field(default=None, description="If true, wait to start until after all nodes have booted") + kill_warning_flags: Optional[List[StrictStr]] = Field(default=None, description="Flags related to job signals") + kill_warning_signal: Optional[StrictStr] = Field(default=None, description="Signal to send when approaching end time (e.g. \"10\" or \"USR1\")") + kill_warning_delay: Optional[V0044Uint16NoValStruct] = None + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + cpus_per_task: Optional[StrictInt] = Field(default=None, description="Number of CPUs required by each task") + minimum_cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required") + maximum_cpus: Optional[StrictInt] = Field(default=None, description="Maximum number of CPUs required") + nodes: Optional[StrictStr] = Field(default=None, description="Node count range specification (e.g. 1-15:4)") + minimum_nodes: Optional[StrictInt] = Field(default=None, description="Minimum node count") + maximum_nodes: Optional[StrictInt] = Field(default=None, description="Maximum node count") + minimum_boards_per_node: Optional[StrictInt] = Field(default=None, description="Boards per node required") + minimum_sockets_per_board: Optional[StrictInt] = Field(default=None, description="Sockets per board required") + sockets_per_node: Optional[StrictInt] = Field(default=None, description="Sockets per node required") + threads_per_core: Optional[StrictInt] = Field(default=None, description="Threads per core required") + tasks_per_node: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each node") + tasks_per_socket: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each socket") + tasks_per_core: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each core") + tasks_per_board: Optional[StrictInt] = Field(default=None, description="Number of tasks to invoke on each board") + ntasks_per_tres: Optional[StrictInt] = Field(default=None, description="Number of tasks that can access each GPU") + minimum_cpus_per_node: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs per node") + memory_per_cpu: Optional[V0044Uint64NoValStruct] = None + memory_per_node: Optional[V0044Uint64NoValStruct] = None + temporary_disk_per_node: Optional[StrictInt] = Field(default=None, description="Minimum tmp disk space required per node") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + required_switches: Optional[V0044Uint32NoValStruct] = None + segment_size: Optional[V0044Uint16NoValStruct] = None + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + wait_for_switch: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + x11: Optional[List[StrictStr]] = Field(default=None, description="X11 forwarding options") + x11_magic_cookie: Optional[StrictStr] = Field(default=None, description="Magic cookie for X11 forwarding") + x11_target_host: Optional[StrictStr] = Field(default=None, description="Hostname or UNIX socket if x11_target_port=0") + x11_target_port: Optional[StrictInt] = Field(default=None, description="TCP port") + __properties: ClassVar[List[str]] = ["account", "account_gather_frequency", "admin_comment", "allocation_node_list", "allocation_node_port", "argv", "array", "batch_features", "begin_time", "flags", "burst_buffer", "clusters", "cluster_constraint", "comment", "contiguous", "container", "container_id", "core_specification", "thread_specification", "cpu_binding", "cpu_binding_flags", "cpu_frequency", "cpus_per_tres", "crontab", "deadline", "delay_boot", "dependency", "end_time", "environment", "rlimits", "excluded_nodes", "extra", "constraints", "group_id", "hetjob_group", "immediate", "job_id", "kill_on_node_fail", "licenses", "mail_type", "mail_user", "mcs_label", "memory_binding", "memory_binding_type", "memory_per_tres", "name", "network", "nice", "tasks", "oom_kill_step", "open_mode", "reserve_ports", "overcommit", "partition", "distribution_plane_size", "power_flags", "prefer", "hold", "priority", "profile", "qos", "reboot", "required_nodes", "requeue", "reservation", "script", "shared", "site_factor", "spank_environment", "step_id", "distribution", "time_limit", "time_minimum", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "user_id", "wait_all_nodes", "kill_warning_flags", "kill_warning_signal", "kill_warning_delay", "current_working_directory", "cpus_per_task", "minimum_cpus", "maximum_cpus", "nodes", "minimum_nodes", "maximum_nodes", "minimum_boards_per_node", "minimum_sockets_per_board", "sockets_per_node", "threads_per_core", "tasks_per_node", "tasks_per_socket", "tasks_per_core", "tasks_per_board", "ntasks_per_tres", "minimum_cpus_per_node", "memory_per_cpu", "memory_per_node", "temporary_disk_per_node", "selinux_context", "required_switches", "segment_size", "standard_error", "standard_input", "standard_output", "wait_for_switch", "wckey", "x11", "x11_magic_cookie", "x11_target_host", "x11_target_port"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED', 'SPREAD_SEGMENTS', 'CONSOLIDATE_SEGMENTS', 'EXPEDITED_REQUEUE']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED', 'SPREAD_SEGMENTS', 'CONSOLIDATE_SEGMENTS', 'EXPEDITED_REQUEUE')") + return value + + @field_validator('cpu_binding_flags') + def cpu_binding_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE']): + raise ValueError("each list item must be one of ('CPU_BIND_TO_THREADS', 'CPU_BIND_TO_CORES', 'CPU_BIND_TO_SOCKETS', 'CPU_BIND_TO_LDOMS', 'CPU_BIND_NONE', 'CPU_BIND_RANK', 'CPU_BIND_MAP', 'CPU_BIND_MASK', 'CPU_BIND_LDRANK', 'CPU_BIND_LDMAP', 'CPU_BIND_LDMASK', 'VERBOSE', 'CPU_BIND_ONE_THREAD_PER_CORE')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('memory_binding_type') + def memory_binding_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'PREFER']): + raise ValueError("each list item must be one of ('NONE', 'RANK', 'MAP', 'MASK', 'LOCAL', 'VERBOSE', 'PREFER')") + return value + + @field_validator('open_mode') + def open_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['APPEND', 'TRUNCATE']): + raise ValueError("each list item must be one of ('APPEND', 'TRUNCATE')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + @field_validator('kill_warning_flags') + def kill_warning_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('x11') + def x11_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE']): + raise ValueError("each list item must be one of ('FORWARD_ALL_NODES', 'BATCH_NODE', 'FIRST_NODE', 'LAST_NODE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobDescMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of begin_time + if self.begin_time: + _dict['begin_time'] = self.begin_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of crontab + if self.crontab: + _dict['crontab'] = self.crontab.to_dict() + # override the default output from pydantic by calling `to_dict()` of rlimits + if self.rlimits: + _dict['rlimits'] = self.rlimits.to_dict() + # override the default output from pydantic by calling `to_dict()` of distribution_plane_size + if self.distribution_plane_size: + _dict['distribution_plane_size'] = self.distribution_plane_size.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of step_id + if self.step_id: + _dict['step_id'] = self.step_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of kill_warning_delay + if self.kill_warning_delay: + _dict['kill_warning_delay'] = self.kill_warning_delay.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of required_switches + if self.required_switches: + _dict['required_switches'] = self.required_switches.to_dict() + # override the default output from pydantic by calling `to_dict()` of segment_size + if self.segment_size: + _dict['segment_size'] = self.segment_size.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobDescMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "account_gather_frequency": obj.get("account_gather_frequency"), + "admin_comment": obj.get("admin_comment"), + "allocation_node_list": obj.get("allocation_node_list"), + "allocation_node_port": obj.get("allocation_node_port"), + "argv": obj.get("argv"), + "array": obj.get("array"), + "batch_features": obj.get("batch_features"), + "begin_time": V0044Uint64NoValStruct.from_dict(obj["begin_time"]) if obj.get("begin_time") is not None else None, + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "clusters": obj.get("clusters"), + "cluster_constraint": obj.get("cluster_constraint"), + "comment": obj.get("comment"), + "contiguous": obj.get("contiguous"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "core_specification": obj.get("core_specification"), + "thread_specification": obj.get("thread_specification"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_binding_flags": obj.get("cpu_binding_flags"), + "cpu_frequency": obj.get("cpu_frequency"), + "cpus_per_tres": obj.get("cpus_per_tres"), + "crontab": V0044CronEntry.from_dict(obj["crontab"]) if obj.get("crontab") is not None else None, + "deadline": obj.get("deadline"), + "delay_boot": obj.get("delay_boot"), + "dependency": obj.get("dependency"), + "end_time": obj.get("end_time"), + "environment": obj.get("environment"), + "rlimits": V0044JobDescMsgRlimits.from_dict(obj["rlimits"]) if obj.get("rlimits") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "extra": obj.get("extra"), + "constraints": obj.get("constraints"), + "group_id": obj.get("group_id"), + "hetjob_group": obj.get("hetjob_group"), + "immediate": obj.get("immediate"), + "job_id": obj.get("job_id"), + "kill_on_node_fail": obj.get("kill_on_node_fail"), + "licenses": obj.get("licenses"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "mcs_label": obj.get("mcs_label"), + "memory_binding": obj.get("memory_binding"), + "memory_binding_type": obj.get("memory_binding_type"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nice": obj.get("nice"), + "tasks": obj.get("tasks"), + "oom_kill_step": obj.get("oom_kill_step"), + "open_mode": obj.get("open_mode"), + "reserve_ports": obj.get("reserve_ports"), + "overcommit": obj.get("overcommit"), + "partition": obj.get("partition"), + "distribution_plane_size": V0044Uint16NoValStruct.from_dict(obj["distribution_plane_size"]) if obj.get("distribution_plane_size") is not None else None, + "power_flags": obj.get("power_flags"), + "prefer": obj.get("prefer"), + "hold": obj.get("hold"), + "priority": V0044Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "requeue": obj.get("requeue"), + "reservation": obj.get("reservation"), + "script": obj.get("script"), + "shared": obj.get("shared"), + "site_factor": obj.get("site_factor"), + "spank_environment": obj.get("spank_environment"), + "step_id": V0044SlurmStepId.from_dict(obj["step_id"]) if obj.get("step_id") is not None else None, + "distribution": obj.get("distribution"), + "time_limit": V0044Uint32NoValStruct.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0044Uint32NoValStruct.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "user_id": obj.get("user_id"), + "wait_all_nodes": obj.get("wait_all_nodes"), + "kill_warning_flags": obj.get("kill_warning_flags"), + "kill_warning_signal": obj.get("kill_warning_signal"), + "kill_warning_delay": V0044Uint16NoValStruct.from_dict(obj["kill_warning_delay"]) if obj.get("kill_warning_delay") is not None else None, + "current_working_directory": obj.get("current_working_directory"), + "cpus_per_task": obj.get("cpus_per_task"), + "minimum_cpus": obj.get("minimum_cpus"), + "maximum_cpus": obj.get("maximum_cpus"), + "nodes": obj.get("nodes"), + "minimum_nodes": obj.get("minimum_nodes"), + "maximum_nodes": obj.get("maximum_nodes"), + "minimum_boards_per_node": obj.get("minimum_boards_per_node"), + "minimum_sockets_per_board": obj.get("minimum_sockets_per_board"), + "sockets_per_node": obj.get("sockets_per_node"), + "threads_per_core": obj.get("threads_per_core"), + "tasks_per_node": obj.get("tasks_per_node"), + "tasks_per_socket": obj.get("tasks_per_socket"), + "tasks_per_core": obj.get("tasks_per_core"), + "tasks_per_board": obj.get("tasks_per_board"), + "ntasks_per_tres": obj.get("ntasks_per_tres"), + "minimum_cpus_per_node": obj.get("minimum_cpus_per_node"), + "memory_per_cpu": V0044Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0044Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "temporary_disk_per_node": obj.get("temporary_disk_per_node"), + "selinux_context": obj.get("selinux_context"), + "required_switches": V0044Uint32NoValStruct.from_dict(obj["required_switches"]) if obj.get("required_switches") is not None else None, + "segment_size": V0044Uint16NoValStruct.from_dict(obj["segment_size"]) if obj.get("segment_size") is not None else None, + "standard_error": obj.get("standard_error"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "wait_for_switch": obj.get("wait_for_switch"), + "wckey": obj.get("wckey"), + "x11": obj.get("x11"), + "x11_magic_cookie": obj.get("x11_magic_cookie"), + "x11_target_host": obj.get("x11_target_host"), + "x11_target_port": obj.get("x11_target_port") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_desc_msg_rlimits.py b/slurmrest_python/models/v0044_job_desc_msg_rlimits.py new file mode 100644 index 0000000..8b7441a --- /dev/null +++ b/slurmrest_python/models/v0044_job_desc_msg_rlimits.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobDescMsgRlimits(BaseModel): + """ + V0044JobDescMsgRlimits + """ # noqa: E501 + cpu: Optional[V0044Uint64NoValStruct] = None + fsize: Optional[V0044Uint64NoValStruct] = None + data: Optional[V0044Uint64NoValStruct] = None + stack: Optional[V0044Uint64NoValStruct] = None + core: Optional[V0044Uint64NoValStruct] = None + rss: Optional[V0044Uint64NoValStruct] = None + nproc: Optional[V0044Uint64NoValStruct] = None + nofile: Optional[V0044Uint64NoValStruct] = None + memlock: Optional[V0044Uint64NoValStruct] = None + var_as: Optional[V0044Uint64NoValStruct] = Field(default=None, alias="as") + __properties: ClassVar[List[str]] = ["cpu", "fsize", "data", "stack", "core", "rss", "nproc", "nofile", "memlock", "as"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobDescMsgRlimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['cpu'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of fsize + if self.fsize: + _dict['fsize'] = self.fsize.to_dict() + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # override the default output from pydantic by calling `to_dict()` of stack + if self.stack: + _dict['stack'] = self.stack.to_dict() + # override the default output from pydantic by calling `to_dict()` of core + if self.core: + _dict['core'] = self.core.to_dict() + # override the default output from pydantic by calling `to_dict()` of rss + if self.rss: + _dict['rss'] = self.rss.to_dict() + # override the default output from pydantic by calling `to_dict()` of nproc + if self.nproc: + _dict['nproc'] = self.nproc.to_dict() + # override the default output from pydantic by calling `to_dict()` of nofile + if self.nofile: + _dict['nofile'] = self.nofile.to_dict() + # override the default output from pydantic by calling `to_dict()` of memlock + if self.memlock: + _dict['memlock'] = self.memlock.to_dict() + # override the default output from pydantic by calling `to_dict()` of var_as + if self.var_as: + _dict['as'] = self.var_as.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobDescMsgRlimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpu": V0044Uint64NoValStruct.from_dict(obj["cpu"]) if obj.get("cpu") is not None else None, + "fsize": V0044Uint64NoValStruct.from_dict(obj["fsize"]) if obj.get("fsize") is not None else None, + "data": V0044Uint64NoValStruct.from_dict(obj["data"]) if obj.get("data") is not None else None, + "stack": V0044Uint64NoValStruct.from_dict(obj["stack"]) if obj.get("stack") is not None else None, + "core": V0044Uint64NoValStruct.from_dict(obj["core"]) if obj.get("core") is not None else None, + "rss": V0044Uint64NoValStruct.from_dict(obj["rss"]) if obj.get("rss") is not None else None, + "nproc": V0044Uint64NoValStruct.from_dict(obj["nproc"]) if obj.get("nproc") is not None else None, + "nofile": V0044Uint64NoValStruct.from_dict(obj["nofile"]) if obj.get("nofile") is not None else None, + "memlock": V0044Uint64NoValStruct.from_dict(obj["memlock"]) if obj.get("memlock") is not None else None, + "as": V0044Uint64NoValStruct.from_dict(obj["as"]) if obj.get("as") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_het.py b/slurmrest_python/models/v0044_job_het.py new file mode 100644 index 0000000..4a3b613 --- /dev/null +++ b/slurmrest_python/models/v0044_job_het.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobHet(BaseModel): + """ + V0044JobHet + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Heterogeneous job ID, if applicable") + job_offset: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["job_id", "job_offset"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobHet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of job_offset + if self.job_offset: + _dict['job_offset'] = self.job_offset.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobHet from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_offset": V0044Uint32NoValStruct.from_dict(obj["job_offset"]) if obj.get("job_offset") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_info.py b/slurmrest_python/models/v0044_job_info.py new file mode 100644 index 0000000..50f54ad --- /dev/null +++ b/slurmrest_python/models/v0044_job_info.py @@ -0,0 +1,571 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct +from slurmrest_python.models.v0044_job_res import V0044JobRes +from slurmrest_python.models.v0044_part_prio import V0044PartPrio +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose +from slurmrest_python.models.v0044_slurm_step_id import V0044SlurmStepId +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobInfo(BaseModel): + """ + V0044JobInfo + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Account associated with the job") + accrue_time: Optional[V0044Uint64NoValStruct] = None + admin_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment made by administrator") + allocating_node: Optional[StrictStr] = Field(default=None, description="Local node making the resource allocation") + array_job_id: Optional[V0044Uint32NoValStruct] = None + array_task_id: Optional[V0044Uint32NoValStruct] = None + array_max_tasks: Optional[V0044Uint32NoValStruct] = None + array_task_string: Optional[StrictStr] = Field(default=None, description="String expression of task IDs in this record") + association_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for the association") + batch_features: Optional[StrictStr] = Field(default=None, description="Features required for batch script's node") + batch_flag: Optional[StrictBool] = Field(default=None, description="True if batch job") + batch_host: Optional[StrictStr] = Field(default=None, description="Name of host running batch script") + flags: Optional[List[StrictStr]] = Field(default=None, description="Job flags") + burst_buffer: Optional[StrictStr] = Field(default=None, description="Burst buffer specifications") + burst_buffer_state: Optional[StrictStr] = Field(default=None, description="Burst buffer state details") + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + cluster_features: Optional[StrictStr] = Field(default=None, description="List of required cluster features") + command: Optional[StrictStr] = Field(default=None, description="Executed command") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + container: Optional[StrictStr] = Field(default=None, description="Absolute path to OCI container bundle") + container_id: Optional[StrictStr] = Field(default=None, description="OCI container ID") + contiguous: Optional[StrictBool] = Field(default=None, description="True if job requires contiguous nodes") + core_spec: Optional[StrictInt] = Field(default=None, description="Specialized core count") + thread_spec: Optional[StrictInt] = Field(default=None, description="Specialized thread count") + cores_per_socket: Optional[V0044Uint16NoValStruct] = None + billable_tres: Optional[V0044Float64NoValStruct] = None + cpus_per_task: Optional[V0044Uint16NoValStruct] = None + cpu_frequency_minimum: Optional[V0044Uint32NoValStruct] = None + cpu_frequency_maximum: Optional[V0044Uint32NoValStruct] = None + cpu_frequency_governor: Optional[V0044Uint32NoValStruct] = None + cpus_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how many CPUs should be allocated for each specified TRES (currently only used for gres/gpu)") + cron: Optional[StrictStr] = Field(default=None, description="Time specification for scrontab job") + deadline: Optional[V0044Uint64NoValStruct] = None + delay_boot: Optional[V0044Uint32NoValStruct] = None + dependency: Optional[StrictStr] = Field(default=None, description="Other jobs that must meet certain criteria before this job can start") + derived_exit_code: Optional[V0044ProcessExitCodeVerbose] = None + eligible_time: Optional[V0044Uint64NoValStruct] = None + end_time: Optional[V0044Uint64NoValStruct] = None + excluded_nodes: Optional[StrictStr] = Field(default=None, description="Comma-separated list of nodes that may not be used") + exit_code: Optional[V0044ProcessExitCodeVerbose] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + failed_node: Optional[StrictStr] = Field(default=None, description="Name of node that caused job failure") + features: Optional[StrictStr] = Field(default=None, description="Comma-separated list of features that are required") + federation_origin: Optional[StrictStr] = Field(default=None, description="Origin cluster's name (when using federation)") + federation_siblings_active: Optional[StrictStr] = Field(default=None, description="Active sibling job names") + federation_siblings_viable: Optional[StrictStr] = Field(default=None, description="Viable sibling job names") + gres_detail: Optional[List[StrictStr]] = None + group_id: Optional[StrictInt] = Field(default=None, description="Group ID of the user that owns the job") + group_name: Optional[StrictStr] = Field(default=None, description="Group name of the user that owns the job") + het_job_id: Optional[V0044Uint32NoValStruct] = None + het_job_id_set: Optional[StrictStr] = Field(default=None, description="Job ID range for all heterogeneous job components") + het_job_offset: Optional[V0044Uint32NoValStruct] = None + job_id: Optional[StrictInt] = Field(default=None, description="Job ID") + job_resources: Optional[V0044JobRes] = None + job_size_str: Optional[List[StrictStr]] = None + job_state: Optional[List[StrictStr]] = Field(default=None, description="Current state") + last_sched_evaluation: Optional[V0044Uint64NoValStruct] = None + licenses: Optional[StrictStr] = Field(default=None, description="License(s) required by the job") + licenses_allocated: Optional[StrictStr] = Field(default=None, description="License(s) allocated to the job") + mail_type: Optional[List[StrictStr]] = Field(default=None, description="Mail event type(s)") + mail_user: Optional[StrictStr] = Field(default=None, description="User to receive email notifications") + max_cpus: Optional[V0044Uint32NoValStruct] = None + max_nodes: Optional[V0044Uint32NoValStruct] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label on the job") + memory_per_tres: Optional[StrictStr] = Field(default=None, description="Semicolon delimited list of TRES=# values indicating how much memory in megabytes should be allocated for each specified TRES (currently only used for gres/gpu)") + name: Optional[StrictStr] = Field(default=None, description="Job name") + network: Optional[StrictStr] = Field(default=None, description="Network specs for the job") + nodes: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + nice: Optional[StrictInt] = Field(default=None, description="Requested job priority change") + tasks_per_core: Optional[V0044Uint16NoValStruct] = None + tasks_per_tres: Optional[V0044Uint16NoValStruct] = None + tasks_per_node: Optional[V0044Uint16NoValStruct] = None + tasks_per_socket: Optional[V0044Uint16NoValStruct] = None + tasks_per_board: Optional[V0044Uint16NoValStruct] = None + cpus: Optional[V0044Uint32NoValStruct] = None + node_count: Optional[V0044Uint32NoValStruct] = None + tasks: Optional[V0044Uint32NoValStruct] = None + partition: Optional[StrictStr] = Field(default=None, description="Partition assigned to the job") + prefer: Optional[StrictStr] = Field(default=None, description="Feature(s) the job requested but that are not required") + memory_per_cpu: Optional[V0044Uint64NoValStruct] = None + memory_per_node: Optional[V0044Uint64NoValStruct] = None + minimum_cpus_per_node: Optional[V0044Uint16NoValStruct] = None + minimum_tmp_disk_per_node: Optional[V0044Uint32NoValStruct] = None + power: Optional[V0041OpenapiJobInfoRespJobsInnerPower] = None + preempt_time: Optional[V0044Uint64NoValStruct] = None + preemptable_time: Optional[V0044Uint64NoValStruct] = None + pre_sus_time: Optional[V0044Uint64NoValStruct] = None + hold: Optional[StrictBool] = Field(default=None, description="Hold (true) or release (false) job (Job held)") + priority: Optional[V0044Uint32NoValStruct] = None + priority_by_partition: Optional[List[V0044PartPrio]] = None + profile: Optional[List[StrictStr]] = Field(default=None, description="Profile used by the acct_gather_profile plugin") + qos: Optional[StrictStr] = Field(default=None, description="Quality of Service assigned to the job, if pending the QOS requested") + reboot: Optional[StrictBool] = Field(default=None, description="Node reboot requested before start") + required_nodes: Optional[StrictStr] = Field(default=None, description="Comma-separated list of required nodes") + required_switches: Optional[StrictInt] = Field(default=None, description="Maximum number of switches") + requeue: Optional[StrictBool] = Field(default=None, description="Determines whether the job may be requeued") + resize_time: Optional[V0044Uint64NoValStruct] = None + restart_cnt: Optional[StrictInt] = Field(default=None, description="Number of job restarts") + resv_name: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + scheduled_nodes: Optional[StrictStr] = Field(default=None, description="List of nodes scheduled to be used for the job") + segment_size: Optional[StrictInt] = Field(default=None, description="Requested segment size") + selinux_context: Optional[StrictStr] = Field(default=None, description="SELinux context") + shared: Optional[List[StrictStr]] = Field(default=None, description="How the job can share resources with other jobs, if at all") + step_id: Optional[V0044SlurmStepId] = None + sockets_per_board: Optional[StrictInt] = Field(default=None, description="Number of sockets per board required") + sockets_per_node: Optional[V0044Uint16NoValStruct] = None + start_time: Optional[V0044Uint64NoValStruct] = None + state_description: Optional[StrictStr] = Field(default=None, description="Optional details for state_reason") + state_reason: Optional[StrictStr] = Field(default=None, description="Reason for current Pending or Failed state") + standard_input: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + standard_output: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + standard_error: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + stdin_expanded: Optional[StrictStr] = Field(default=None, description="Job stdin with expanded fields") + stdout_expanded: Optional[StrictStr] = Field(default=None, description="Job stdout with expanded fields") + stderr_expanded: Optional[StrictStr] = Field(default=None, description="Job stderr with expanded fields") + submit_time: Optional[V0044Uint64NoValStruct] = None + submit_line: Optional[StrictStr] = Field(default=None, description="Job submit line (e.g. 'sbatch -N3 job.sh job_arg'") + suspend_time: Optional[V0044Uint64NoValStruct] = None + system_comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment from slurmctld") + time_limit: Optional[V0044Uint32NoValStruct] = None + time_minimum: Optional[V0044Uint32NoValStruct] = None + threads_per_core: Optional[V0044Uint16NoValStruct] = None + tres_bind: Optional[StrictStr] = Field(default=None, description="Task to TRES binding directives") + tres_freq: Optional[StrictStr] = Field(default=None, description="TRES frequency directives") + tres_per_job: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per job") + tres_per_node: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per node") + tres_per_socket: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per socket") + tres_per_task: Optional[StrictStr] = Field(default=None, description="Comma-separated list of TRES=# values to be allocated per task") + tres_req_str: Optional[StrictStr] = Field(default=None, description="TRES requested by the job") + tres_alloc_str: Optional[StrictStr] = Field(default=None, description="TRES used by the job") + user_id: Optional[StrictInt] = Field(default=None, description="User ID that owns the job") + user_name: Optional[StrictStr] = Field(default=None, description="User name that owns the job") + maximum_switch_wait_time: Optional[StrictInt] = Field(default=None, description="Maximum time to wait for switches in seconds") + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + current_working_directory: Optional[StrictStr] = Field(default=None, description="Working directory to use for the job") + __properties: ClassVar[List[str]] = ["account", "accrue_time", "admin_comment", "allocating_node", "array_job_id", "array_task_id", "array_max_tasks", "array_task_string", "association_id", "batch_features", "batch_flag", "batch_host", "flags", "burst_buffer", "burst_buffer_state", "cluster", "cluster_features", "command", "comment", "container", "container_id", "contiguous", "core_spec", "thread_spec", "cores_per_socket", "billable_tres", "cpus_per_task", "cpu_frequency_minimum", "cpu_frequency_maximum", "cpu_frequency_governor", "cpus_per_tres", "cron", "deadline", "delay_boot", "dependency", "derived_exit_code", "eligible_time", "end_time", "excluded_nodes", "exit_code", "extra", "failed_node", "features", "federation_origin", "federation_siblings_active", "federation_siblings_viable", "gres_detail", "group_id", "group_name", "het_job_id", "het_job_id_set", "het_job_offset", "job_id", "job_resources", "job_size_str", "job_state", "last_sched_evaluation", "licenses", "licenses_allocated", "mail_type", "mail_user", "max_cpus", "max_nodes", "mcs_label", "memory_per_tres", "name", "network", "nodes", "nice", "tasks_per_core", "tasks_per_tres", "tasks_per_node", "tasks_per_socket", "tasks_per_board", "cpus", "node_count", "tasks", "partition", "prefer", "memory_per_cpu", "memory_per_node", "minimum_cpus_per_node", "minimum_tmp_disk_per_node", "power", "preempt_time", "preemptable_time", "pre_sus_time", "hold", "priority", "priority_by_partition", "profile", "qos", "reboot", "required_nodes", "required_switches", "requeue", "resize_time", "restart_cnt", "resv_name", "scheduled_nodes", "segment_size", "selinux_context", "shared", "step_id", "sockets_per_board", "sockets_per_node", "start_time", "state_description", "state_reason", "standard_input", "standard_output", "standard_error", "stdin_expanded", "stdout_expanded", "stderr_expanded", "submit_time", "submit_line", "suspend_time", "system_comment", "time_limit", "time_minimum", "threads_per_core", "tres_bind", "tres_freq", "tres_per_job", "tres_per_node", "tres_per_socket", "tres_per_task", "tres_req_str", "tres_alloc_str", "user_id", "user_name", "maximum_switch_wait_time", "wckey", "current_working_directory"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED', 'SPREAD_SEGMENTS', 'CONSOLIDATE_SEGMENTS', 'EXPEDITED_REQUEUE']): + raise ValueError("each list item must be one of ('KILL_INVALID_DEPENDENCY', 'NO_KILL_INVALID_DEPENDENCY', 'HAS_STATE_DIRECTORY', 'TESTING_BACKFILL', 'GRES_BINDING_ENFORCED', 'TEST_NOW_ONLY', 'SEND_JOB_ENVIRONMENT', 'SPREAD_JOB', 'PREFER_MINIMUM_NODE_COUNT', 'JOB_KILL_HURRY', 'SKIP_TRES_STRING_ACCOUNTING', 'SIBLING_CLUSTER_UPDATE_ONLY', 'HETEROGENEOUS_JOB', 'EXACT_TASK_COUNT_REQUESTED', 'EXACT_CPU_COUNT_REQUESTED', 'TESTING_WHOLE_NODE_BACKFILL', 'TOP_PRIORITY_JOB', 'ACCRUE_COUNT_CLEARED', 'GRES_BINDING_DISABLED', 'JOB_WAS_RUNNING', 'JOB_ACCRUE_TIME_RESET', 'CRON_JOB', 'EXACT_MEMORY_REQUESTED', 'EXTERNAL_JOB', 'USING_DEFAULT_ACCOUNT', 'USING_DEFAULT_PARTITION', 'USING_DEFAULT_QOS', 'USING_DEFAULT_WCKEY', 'DEPENDENT', 'MAGNETIC', 'PARTITION_ASSIGNED', 'BACKFILL_ATTEMPTED', 'SCHEDULING_ATTEMPTED', 'STEPMGR_ENABLED', 'SPREAD_SEGMENTS', 'CONSOLIDATE_SEGMENTS', 'EXPEDITED_REQUEUE')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING')") + return value + + @field_validator('mail_type') + def mail_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY']): + raise ValueError("each list item must be one of ('BEGIN', 'END', 'FAIL', 'REQUEUE', 'TIME=100%', 'TIME=90%', 'TIME=80%', 'TIME=50%', 'STAGE_OUT', 'ARRAY_TASKS', 'INVALID_DEPENDENCY')") + return value + + @field_validator('profile') + def profile_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK']): + raise ValueError("each list item must be one of ('NOT_SET', 'NONE', 'ENERGY', 'LUSTRE', 'NETWORK', 'TASK')") + return value + + @field_validator('shared') + def shared_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['none', 'oversubscribe', 'user', 'mcs', 'topo']): + raise ValueError("each list item must be one of ('none', 'oversubscribe', 'user', 'mcs', 'topo')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accrue_time + if self.accrue_time: + _dict['accrue_time'] = self.accrue_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_job_id + if self.array_job_id: + _dict['array_job_id'] = self.array_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_task_id + if self.array_task_id: + _dict['array_task_id'] = self.array_task_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of array_max_tasks + if self.array_max_tasks: + _dict['array_max_tasks'] = self.array_max_tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cores_per_socket + if self.cores_per_socket: + _dict['cores_per_socket'] = self.cores_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of billable_tres + if self.billable_tres: + _dict['billable_tres'] = self.billable_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_task + if self.cpus_per_task: + _dict['cpus_per_task'] = self.cpus_per_task.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_minimum + if self.cpu_frequency_minimum: + _dict['cpu_frequency_minimum'] = self.cpu_frequency_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_maximum + if self.cpu_frequency_maximum: + _dict['cpu_frequency_maximum'] = self.cpu_frequency_maximum.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu_frequency_governor + if self.cpu_frequency_governor: + _dict['cpu_frequency_governor'] = self.cpu_frequency_governor.to_dict() + # override the default output from pydantic by calling `to_dict()` of deadline + if self.deadline: + _dict['deadline'] = self.deadline.to_dict() + # override the default output from pydantic by calling `to_dict()` of delay_boot + if self.delay_boot: + _dict['delay_boot'] = self.delay_boot.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of eligible_time + if self.eligible_time: + _dict['eligible_time'] = self.eligible_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_id + if self.het_job_id: + _dict['het_job_id'] = self.het_job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of het_job_offset + if self.het_job_offset: + _dict['het_job_offset'] = self.het_job_offset.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_resources + if self.job_resources: + _dict['job_resources'] = self.job_resources.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_sched_evaluation + if self.last_sched_evaluation: + _dict['last_sched_evaluation'] = self.last_sched_evaluation.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_cpus + if self.max_cpus: + _dict['max_cpus'] = self.max_cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_nodes + if self.max_nodes: + _dict['max_nodes'] = self.max_nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_core + if self.tasks_per_core: + _dict['tasks_per_core'] = self.tasks_per_core.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_tres + if self.tasks_per_tres: + _dict['tasks_per_tres'] = self.tasks_per_tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_node + if self.tasks_per_node: + _dict['tasks_per_node'] = self.tasks_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_socket + if self.tasks_per_socket: + _dict['tasks_per_socket'] = self.tasks_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks_per_board + if self.tasks_per_board: + _dict['tasks_per_board'] = self.tasks_per_board.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of node_count + if self.node_count: + _dict['node_count'] = self.node_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_cpus_per_node + if self.minimum_cpus_per_node: + _dict['minimum_cpus_per_node'] = self.minimum_cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimum_tmp_disk_per_node + if self.minimum_tmp_disk_per_node: + _dict['minimum_tmp_disk_per_node'] = self.minimum_tmp_disk_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of power + if self.power: + _dict['power'] = self.power.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt_time + if self.preempt_time: + _dict['preempt_time'] = self.preempt_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of preemptable_time + if self.preemptable_time: + _dict['preemptable_time'] = self.preemptable_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of pre_sus_time + if self.pre_sus_time: + _dict['pre_sus_time'] = self.pre_sus_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in priority_by_partition (list) + _items = [] + if self.priority_by_partition: + for _item_priority_by_partition in self.priority_by_partition: + if _item_priority_by_partition: + _items.append(_item_priority_by_partition.to_dict()) + _dict['priority_by_partition'] = _items + # override the default output from pydantic by calling `to_dict()` of resize_time + if self.resize_time: + _dict['resize_time'] = self.resize_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of step_id + if self.step_id: + _dict['step_id'] = self.step_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of sockets_per_node + if self.sockets_per_node: + _dict['sockets_per_node'] = self.sockets_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of submit_time + if self.submit_time: + _dict['submit_time'] = self.submit_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_limit + if self.time_limit: + _dict['time_limit'] = self.time_limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of time_minimum + if self.time_minimum: + _dict['time_minimum'] = self.time_minimum.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "accrue_time": V0044Uint64NoValStruct.from_dict(obj["accrue_time"]) if obj.get("accrue_time") is not None else None, + "admin_comment": obj.get("admin_comment"), + "allocating_node": obj.get("allocating_node"), + "array_job_id": V0044Uint32NoValStruct.from_dict(obj["array_job_id"]) if obj.get("array_job_id") is not None else None, + "array_task_id": V0044Uint32NoValStruct.from_dict(obj["array_task_id"]) if obj.get("array_task_id") is not None else None, + "array_max_tasks": V0044Uint32NoValStruct.from_dict(obj["array_max_tasks"]) if obj.get("array_max_tasks") is not None else None, + "array_task_string": obj.get("array_task_string"), + "association_id": obj.get("association_id"), + "batch_features": obj.get("batch_features"), + "batch_flag": obj.get("batch_flag"), + "batch_host": obj.get("batch_host"), + "flags": obj.get("flags"), + "burst_buffer": obj.get("burst_buffer"), + "burst_buffer_state": obj.get("burst_buffer_state"), + "cluster": obj.get("cluster"), + "cluster_features": obj.get("cluster_features"), + "command": obj.get("command"), + "comment": obj.get("comment"), + "container": obj.get("container"), + "container_id": obj.get("container_id"), + "contiguous": obj.get("contiguous"), + "core_spec": obj.get("core_spec"), + "thread_spec": obj.get("thread_spec"), + "cores_per_socket": V0044Uint16NoValStruct.from_dict(obj["cores_per_socket"]) if obj.get("cores_per_socket") is not None else None, + "billable_tres": V0044Float64NoValStruct.from_dict(obj["billable_tres"]) if obj.get("billable_tres") is not None else None, + "cpus_per_task": V0044Uint16NoValStruct.from_dict(obj["cpus_per_task"]) if obj.get("cpus_per_task") is not None else None, + "cpu_frequency_minimum": V0044Uint32NoValStruct.from_dict(obj["cpu_frequency_minimum"]) if obj.get("cpu_frequency_minimum") is not None else None, + "cpu_frequency_maximum": V0044Uint32NoValStruct.from_dict(obj["cpu_frequency_maximum"]) if obj.get("cpu_frequency_maximum") is not None else None, + "cpu_frequency_governor": V0044Uint32NoValStruct.from_dict(obj["cpu_frequency_governor"]) if obj.get("cpu_frequency_governor") is not None else None, + "cpus_per_tres": obj.get("cpus_per_tres"), + "cron": obj.get("cron"), + "deadline": V0044Uint64NoValStruct.from_dict(obj["deadline"]) if obj.get("deadline") is not None else None, + "delay_boot": V0044Uint32NoValStruct.from_dict(obj["delay_boot"]) if obj.get("delay_boot") is not None else None, + "dependency": obj.get("dependency"), + "derived_exit_code": V0044ProcessExitCodeVerbose.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "eligible_time": V0044Uint64NoValStruct.from_dict(obj["eligible_time"]) if obj.get("eligible_time") is not None else None, + "end_time": V0044Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "excluded_nodes": obj.get("excluded_nodes"), + "exit_code": V0044ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "extra": obj.get("extra"), + "failed_node": obj.get("failed_node"), + "features": obj.get("features"), + "federation_origin": obj.get("federation_origin"), + "federation_siblings_active": obj.get("federation_siblings_active"), + "federation_siblings_viable": obj.get("federation_siblings_viable"), + "gres_detail": obj.get("gres_detail"), + "group_id": obj.get("group_id"), + "group_name": obj.get("group_name"), + "het_job_id": V0044Uint32NoValStruct.from_dict(obj["het_job_id"]) if obj.get("het_job_id") is not None else None, + "het_job_id_set": obj.get("het_job_id_set"), + "het_job_offset": V0044Uint32NoValStruct.from_dict(obj["het_job_offset"]) if obj.get("het_job_offset") is not None else None, + "job_id": obj.get("job_id"), + "job_resources": V0044JobRes.from_dict(obj["job_resources"]) if obj.get("job_resources") is not None else None, + "job_size_str": obj.get("job_size_str"), + "job_state": obj.get("job_state"), + "last_sched_evaluation": V0044Uint64NoValStruct.from_dict(obj["last_sched_evaluation"]) if obj.get("last_sched_evaluation") is not None else None, + "licenses": obj.get("licenses"), + "licenses_allocated": obj.get("licenses_allocated"), + "mail_type": obj.get("mail_type"), + "mail_user": obj.get("mail_user"), + "max_cpus": V0044Uint32NoValStruct.from_dict(obj["max_cpus"]) if obj.get("max_cpus") is not None else None, + "max_nodes": V0044Uint32NoValStruct.from_dict(obj["max_nodes"]) if obj.get("max_nodes") is not None else None, + "mcs_label": obj.get("mcs_label"), + "memory_per_tres": obj.get("memory_per_tres"), + "name": obj.get("name"), + "network": obj.get("network"), + "nodes": obj.get("nodes"), + "nice": obj.get("nice"), + "tasks_per_core": V0044Uint16NoValStruct.from_dict(obj["tasks_per_core"]) if obj.get("tasks_per_core") is not None else None, + "tasks_per_tres": V0044Uint16NoValStruct.from_dict(obj["tasks_per_tres"]) if obj.get("tasks_per_tres") is not None else None, + "tasks_per_node": V0044Uint16NoValStruct.from_dict(obj["tasks_per_node"]) if obj.get("tasks_per_node") is not None else None, + "tasks_per_socket": V0044Uint16NoValStruct.from_dict(obj["tasks_per_socket"]) if obj.get("tasks_per_socket") is not None else None, + "tasks_per_board": V0044Uint16NoValStruct.from_dict(obj["tasks_per_board"]) if obj.get("tasks_per_board") is not None else None, + "cpus": V0044Uint32NoValStruct.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "node_count": V0044Uint32NoValStruct.from_dict(obj["node_count"]) if obj.get("node_count") is not None else None, + "tasks": V0044Uint32NoValStruct.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "partition": obj.get("partition"), + "prefer": obj.get("prefer"), + "memory_per_cpu": V0044Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0044Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None, + "minimum_cpus_per_node": V0044Uint16NoValStruct.from_dict(obj["minimum_cpus_per_node"]) if obj.get("minimum_cpus_per_node") is not None else None, + "minimum_tmp_disk_per_node": V0044Uint32NoValStruct.from_dict(obj["minimum_tmp_disk_per_node"]) if obj.get("minimum_tmp_disk_per_node") is not None else None, + "power": V0041OpenapiJobInfoRespJobsInnerPower.from_dict(obj["power"]) if obj.get("power") is not None else None, + "preempt_time": V0044Uint64NoValStruct.from_dict(obj["preempt_time"]) if obj.get("preempt_time") is not None else None, + "preemptable_time": V0044Uint64NoValStruct.from_dict(obj["preemptable_time"]) if obj.get("preemptable_time") is not None else None, + "pre_sus_time": V0044Uint64NoValStruct.from_dict(obj["pre_sus_time"]) if obj.get("pre_sus_time") is not None else None, + "hold": obj.get("hold"), + "priority": V0044Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "priority_by_partition": [V0044PartPrio.from_dict(_item) for _item in obj["priority_by_partition"]] if obj.get("priority_by_partition") is not None else None, + "profile": obj.get("profile"), + "qos": obj.get("qos"), + "reboot": obj.get("reboot"), + "required_nodes": obj.get("required_nodes"), + "required_switches": obj.get("required_switches"), + "requeue": obj.get("requeue"), + "resize_time": V0044Uint64NoValStruct.from_dict(obj["resize_time"]) if obj.get("resize_time") is not None else None, + "restart_cnt": obj.get("restart_cnt"), + "resv_name": obj.get("resv_name"), + "scheduled_nodes": obj.get("scheduled_nodes"), + "segment_size": obj.get("segment_size"), + "selinux_context": obj.get("selinux_context"), + "shared": obj.get("shared"), + "step_id": V0044SlurmStepId.from_dict(obj["step_id"]) if obj.get("step_id") is not None else None, + "sockets_per_board": obj.get("sockets_per_board"), + "sockets_per_node": V0044Uint16NoValStruct.from_dict(obj["sockets_per_node"]) if obj.get("sockets_per_node") is not None else None, + "start_time": V0044Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "state_description": obj.get("state_description"), + "state_reason": obj.get("state_reason"), + "standard_input": obj.get("standard_input"), + "standard_output": obj.get("standard_output"), + "standard_error": obj.get("standard_error"), + "stdin_expanded": obj.get("stdin_expanded"), + "stdout_expanded": obj.get("stdout_expanded"), + "stderr_expanded": obj.get("stderr_expanded"), + "submit_time": V0044Uint64NoValStruct.from_dict(obj["submit_time"]) if obj.get("submit_time") is not None else None, + "submit_line": obj.get("submit_line"), + "suspend_time": V0044Uint64NoValStruct.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None, + "system_comment": obj.get("system_comment"), + "time_limit": V0044Uint32NoValStruct.from_dict(obj["time_limit"]) if obj.get("time_limit") is not None else None, + "time_minimum": V0044Uint32NoValStruct.from_dict(obj["time_minimum"]) if obj.get("time_minimum") is not None else None, + "threads_per_core": V0044Uint16NoValStruct.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None, + "tres_bind": obj.get("tres_bind"), + "tres_freq": obj.get("tres_freq"), + "tres_per_job": obj.get("tres_per_job"), + "tres_per_node": obj.get("tres_per_node"), + "tres_per_socket": obj.get("tres_per_socket"), + "tres_per_task": obj.get("tres_per_task"), + "tres_req_str": obj.get("tres_req_str"), + "tres_alloc_str": obj.get("tres_alloc_str"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "maximum_switch_wait_time": obj.get("maximum_switch_wait_time"), + "wckey": obj.get("wckey"), + "current_working_directory": obj.get("current_working_directory") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_modify.py b/slurmrest_python/models/v0044_job_modify.py new file mode 100644 index 0000000..e55e136 --- /dev/null +++ b/slurmrest_python/models/v0044_job_modify.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment +from slurmrest_python.models.v0044_job_modify_tres import V0044JobModifyTres +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobModify(BaseModel): + """ + V0044JobModify + """ # noqa: E501 + comment: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerComment] = None + derived_exit_code: Optional[V0044ProcessExitCodeVerbose] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + tres: Optional[V0044JobModifyTres] = None + wckey: Optional[StrictStr] = Field(default=None, description="Workload characterization key") + __properties: ClassVar[List[str]] = ["comment", "derived_exit_code", "extra", "tres", "wckey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobModify from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of comment + if self.comment: + _dict['comment'] = self.comment.to_dict() + # override the default output from pydantic by calling `to_dict()` of derived_exit_code + if self.derived_exit_code: + _dict['derived_exit_code'] = self.derived_exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobModify from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": V0041OpenapiSlurmdbdJobsRespJobsInnerComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, + "derived_exit_code": V0044ProcessExitCodeVerbose.from_dict(obj["derived_exit_code"]) if obj.get("derived_exit_code") is not None else None, + "extra": obj.get("extra"), + "tres": V0044JobModifyTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "wckey": obj.get("wckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_modify_tres.py b/slurmrest_python/models/v0044_job_modify_tres.py new file mode 100644 index 0000000..8aa1819 --- /dev/null +++ b/slurmrest_python/models/v0044_job_modify_tres.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobModifyTres(BaseModel): + """ + V0044JobModifyTres + """ # noqa: E501 + allocated: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["allocated"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobModifyTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobModifyTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": [V0044Tres.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_required.py b/slurmrest_python/models/v0044_job_required.py new file mode 100644 index 0000000..0915ac8 --- /dev/null +++ b/slurmrest_python/models/v0044_job_required.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobRequired(BaseModel): + """ + V0044JobRequired + """ # noqa: E501 + cpus: Optional[StrictInt] = Field(default=None, description="Minimum number of CPUs required", alias="CPUs") + memory_per_cpu: Optional[V0044Uint64NoValStruct] = None + memory_per_node: Optional[V0044Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["CPUs", "memory_per_cpu", "memory_per_node"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobRequired from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of memory_per_cpu + if self.memory_per_cpu: + _dict['memory_per_cpu'] = self.memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory_per_node + if self.memory_per_node: + _dict['memory_per_node'] = self.memory_per_node.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobRequired from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPUs": obj.get("CPUs"), + "memory_per_cpu": V0044Uint64NoValStruct.from_dict(obj["memory_per_cpu"]) if obj.get("memory_per_cpu") is not None else None, + "memory_per_node": V0044Uint64NoValStruct.from_dict(obj["memory_per_node"]) if obj.get("memory_per_node") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_res.py b/slurmrest_python/models/v0044_job_res.py new file mode 100644 index 0000000..26359f8 --- /dev/null +++ b/slurmrest_python/models/v0044_job_res.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job_res_nodes import V0044JobResNodes +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobRes(BaseModel): + """ + V0044JobRes + """ # noqa: E501 + select_type: List[StrictStr] = Field(description="Scheduler consumable resource selection type") + nodes: Optional[V0044JobResNodes] = None + cpus: StrictInt = Field(description="Number of allocated CPUs") + threads_per_core: V0044Uint16NoValStruct + __properties: ClassVar[List[str]] = ["select_type", "nodes", "cpus", "threads_per_core"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobRes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of threads_per_core + if self.threads_per_core: + _dict['threads_per_core'] = self.threads_per_core.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobRes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "select_type": obj.get("select_type"), + "nodes": V0044JobResNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "cpus": obj.get("cpus"), + "threads_per_core": V0044Uint16NoValStruct.from_dict(obj["threads_per_core"]) if obj.get("threads_per_core") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_res_core.py b/slurmrest_python/models/v0044_job_res_core.py new file mode 100644 index 0000000..6e45342 --- /dev/null +++ b/slurmrest_python/models/v0044_job_res_core.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobResCore(BaseModel): + """ + V0044JobResCore + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + status: List[StrictStr] = Field(description="Core status") + __properties: ClassVar[List[str]] = ["index", "status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE']): + raise ValueError("each list item must be one of ('INVALID', 'UNALLOCATED', 'ALLOCATED', 'IN_USE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobResCore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobResCore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "status": obj.get("status") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_res_node.py b/slurmrest_python/models/v0044_job_res_node.py new file mode 100644 index 0000000..55f2ed1 --- /dev/null +++ b/slurmrest_python/models/v0044_job_res_node.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory +from slurmrest_python.models.v0044_job_res_socket import V0044JobResSocket +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobResNode(BaseModel): + """ + V0044JobResNode + """ # noqa: E501 + index: StrictInt = Field(description="Node index") + name: StrictStr = Field(description="Node name") + cpus: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus] = None + memory: Optional[V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory] = None + sockets: List[V0044JobResSocket] + __properties: ClassVar[List[str]] = ["index", "name", "cpus", "memory", "sockets"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobResNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of memory + if self.memory: + _dict['memory'] = self.memory.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in sockets (list) + _items = [] + if self.sockets: + for _item_sockets in self.sockets: + if _item_sockets: + _items.append(_item_sockets.to_dict()) + _dict['sockets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobResNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "name": obj.get("name"), + "cpus": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "memory": V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory.from_dict(obj["memory"]) if obj.get("memory") is not None else None, + "sockets": [V0044JobResSocket.from_dict(_item) for _item in obj["sockets"]] if obj.get("sockets") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_res_nodes.py b/slurmrest_python/models/v0044_job_res_nodes.py new file mode 100644 index 0000000..724b8b6 --- /dev/null +++ b/slurmrest_python/models/v0044_job_res_nodes.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job_res_node import V0044JobResNode +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobResNodes(BaseModel): + """ + V0044JobResNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of allocated nodes") + select_type: Optional[List[StrictStr]] = Field(default=None, description="Node scheduling selection method") + list: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job") + whole: Optional[StrictBool] = Field(default=None, description="Whether whole nodes were allocated") + allocation: Optional[List[V0044JobResNode]] = Field(default=None, description="Job resources for a node") + __properties: ClassVar[List[str]] = ["count", "select_type", "list", "whole", "allocation"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['AVAILABLE', 'ONE_ROW', 'RESERVED']): + raise ValueError("each list item must be one of ('AVAILABLE', 'ONE_ROW', 'RESERVED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobResNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocation (list) + _items = [] + if self.allocation: + for _item_allocation in self.allocation: + if _item_allocation: + _items.append(_item_allocation.to_dict()) + _dict['allocation'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobResNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "select_type": obj.get("select_type"), + "list": obj.get("list"), + "whole": obj.get("whole"), + "allocation": [V0044JobResNode.from_dict(_item) for _item in obj["allocation"]] if obj.get("allocation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_res_socket.py b/slurmrest_python/models/v0044_job_res_socket.py new file mode 100644 index 0000000..2db8c48 --- /dev/null +++ b/slurmrest_python/models/v0044_job_res_socket.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0044_job_res_core import V0044JobResCore +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobResSocket(BaseModel): + """ + V0044JobResSocket + """ # noqa: E501 + index: StrictInt = Field(description="Core index") + cores: List[V0044JobResCore] + __properties: ClassVar[List[str]] = ["index", "cores"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobResSocket from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in cores (list) + _items = [] + if self.cores: + for _item_cores in self.cores: + if _item_cores: + _items.append(_item_cores.to_dict()) + _dict['cores'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobResSocket from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "cores": [V0044JobResCore.from_dict(_item) for _item in obj["cores"]] if obj.get("cores") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_reservation.py b/slurmrest_python/models/v0044_job_reservation.py new file mode 100644 index 0000000..295cd4f --- /dev/null +++ b/slurmrest_python/models/v0044_job_reservation.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobReservation(BaseModel): + """ + V0044JobReservation + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Unique identifier of requested reservation") + name: Optional[StrictStr] = Field(default=None, description="Name of reservation to use") + requested: Optional[StrictStr] = Field(default=None, description="Comma-separated list of requested reservation names") + __properties: ClassVar[List[str]] = ["id", "name", "requested"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobReservation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobReservation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "requested": obj.get("requested") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_state.py b/slurmrest_python/models/v0044_job_state.py new file mode 100644 index 0000000..100a7fc --- /dev/null +++ b/slurmrest_python/models/v0044_job_state.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobState(BaseModel): + """ + V0044JobState + """ # noqa: E501 + current: Optional[List[StrictStr]] = Field(default=None, description="Current state") + reason: Optional[StrictStr] = Field(default=None, description="Reason for previous Pending or Failed state") + __properties: ClassVar[List[str]] = ["current", "reason"] + + @field_validator('current') + def current_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobState from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobState from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "current": obj.get("current"), + "reason": obj.get("reason") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_submit_req.py b/slurmrest_python/models/v0044_job_submit_req.py new file mode 100644 index 0000000..45a381c --- /dev/null +++ b/slurmrest_python/models/v0044_job_submit_req.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobSubmitReq(BaseModel): + """ + V0044JobSubmitReq + """ # noqa: E501 + script: Optional[StrictStr] = Field(default=None, description="Job batch script contents; Same as the script field in jobs[0] or job.") + jobs: Optional[List[V0044JobDescMsg]] = None + job: Optional[V0044JobDescMsg] = None + __properties: ClassVar[List[str]] = ["script", "jobs", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobSubmitReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobSubmitReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "script": obj.get("script"), + "jobs": [V0044JobDescMsg.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "job": V0044JobDescMsg.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_time.py b/slurmrest_python/models/v0044_job_time.py new file mode 100644 index 0000000..089d9ac --- /dev/null +++ b/slurmrest_python/models/v0044_job_time.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobTime(BaseModel): + """ + V0044JobTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + eligible: Optional[StrictInt] = Field(default=None, description="Time when the job became eligible to run (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + end: Optional[StrictInt] = Field(default=None, description="End time (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + planned: Optional[V0044Uint64NoValStruct] = None + start: Optional[StrictInt] = Field(default=None, description="Time execution began (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + submission: Optional[StrictInt] = Field(default=None, description="Time when the job was submitted (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + suspended: Optional[StrictInt] = Field(default=None, description="Total time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem] = None + limit: Optional[V0044Uint32NoValStruct] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "eligible", "end", "planned", "start", "submission", "suspended", "system", "limit", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of planned + if self.planned: + _dict['planned'] = self.planned.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of limit + if self.limit: + _dict['limit'] = self.limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "eligible": obj.get("eligible"), + "end": obj.get("end"), + "planned": V0044Uint64NoValStruct.from_dict(obj["planned"]) if obj.get("planned") is not None else None, + "start": obj.get("start"), + "submission": obj.get("submission"), + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "limit": V0044Uint32NoValStruct.from_dict(obj["limit"]) if obj.get("limit") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_job_tres.py b/slurmrest_python/models/v0044_job_tres.py new file mode 100644 index 0000000..2790013 --- /dev/null +++ b/slurmrest_python/models/v0044_job_tres.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044JobTres(BaseModel): + """ + V0044JobTres + """ # noqa: E501 + allocated: Optional[List[V0044Tres]] = None + requested: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["allocated", "requested"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044JobTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in requested (list) + _items = [] + if self.requested: + for _item_requested in self.requested: + if _item_requested: + _items.append(_item_requested.to_dict()) + _dict['requested'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044JobTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allocated": [V0044Tres.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None, + "requested": [V0044Tres.from_dict(_item) for _item in obj["requested"]] if obj.get("requested") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_kill_jobs_msg.py b/slurmrest_python/models/v0044_kill_jobs_msg.py new file mode 100644 index 0000000..2f62e27 --- /dev/null +++ b/slurmrest_python/models/v0044_kill_jobs_msg.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044KillJobsMsg(BaseModel): + """ + V0044KillJobsMsg + """ # noqa: E501 + account: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific account") + flags: Optional[List[StrictStr]] = Field(default=None, description="Filter jobs according to flags") + job_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific name") + jobs: Optional[List[StrictStr]] = None + partition: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific partition") + qos: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific QOS") + reservation: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific reservation") + signal: Optional[StrictStr] = Field(default=None, description="Signal to send to jobs") + job_state: Optional[List[StrictStr]] = Field(default=None, description="Filter jobs to a specific state") + user_id: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific numeric user id") + user_name: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific user name") + wckey: Optional[StrictStr] = Field(default=None, description="Filter jobs to a specific wckey") + nodes: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["account", "flags", "job_name", "jobs", "partition", "qos", "reservation", "signal", "job_state", "user_id", "user_name", "wckey", "nodes"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT']): + raise ValueError("each list item must be one of ('BATCH_JOB', 'ARRAY_TASK', 'FULL_STEPS_ONLY', 'FULL_JOB', 'FEDERATION_REQUEUE', 'HURRY', 'OUT_OF_MEMORY', 'NO_SIBLING_JOBS', 'RESERVATION_JOB', 'VERBOSE', 'CRON_JOBS', 'WARNING_SENT')") + return value + + @field_validator('job_state') + def job_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044KillJobsMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044KillJobsMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "flags": obj.get("flags"), + "job_name": obj.get("job_name"), + "jobs": obj.get("jobs"), + "partition": obj.get("partition"), + "qos": obj.get("qos"), + "reservation": obj.get("reservation"), + "signal": obj.get("signal"), + "job_state": obj.get("job_state"), + "user_id": obj.get("user_id"), + "user_name": obj.get("user_name"), + "wckey": obj.get("wckey"), + "nodes": obj.get("nodes") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_kill_jobs_resp_job.py b/slurmrest_python/models/v0044_kill_jobs_resp_job.py new file mode 100644 index 0000000..c64b22a --- /dev/null +++ b/slurmrest_python/models/v0044_kill_jobs_resp_job.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044KillJobsRespJob(BaseModel): + """ + V0044KillJobsRespJob + """ # noqa: E501 + error: Optional[V0041OpenapiKillJobsRespStatusInnerError] = None + step_id: StrictStr = Field(description="Job or Step ID that signaling failed") + job_id: V0044Uint32NoValStruct + federation: Optional[V0041OpenapiKillJobsRespStatusInnerFederation] = None + __properties: ClassVar[List[str]] = ["error", "step_id", "job_id", "federation"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044KillJobsRespJob from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of error + if self.error: + _dict['error'] = self.error.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_id + if self.job_id: + _dict['job_id'] = self.job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of federation + if self.federation: + _dict['federation'] = self.federation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044KillJobsRespJob from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": V0041OpenapiKillJobsRespStatusInnerError.from_dict(obj["error"]) if obj.get("error") is not None else None, + "step_id": obj.get("step_id"), + "job_id": V0044Uint32NoValStruct.from_dict(obj["job_id"]) if obj.get("job_id") is not None else None, + "federation": V0041OpenapiKillJobsRespStatusInnerFederation.from_dict(obj["federation"]) if obj.get("federation") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_license.py b/slurmrest_python/models/v0044_license.py new file mode 100644 index 0000000..f7096c7 --- /dev/null +++ b/slurmrest_python/models/v0044_license.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044License(BaseModel): + """ + V0044License + """ # noqa: E501 + license_name: Optional[StrictStr] = Field(default=None, description="Name of the license", alias="LicenseName") + total: Optional[StrictInt] = Field(default=None, description="Total number of licenses present", alias="Total") + used: Optional[StrictInt] = Field(default=None, description="Number of licenses in use", alias="Used") + free: Optional[StrictInt] = Field(default=None, description="Number of licenses currently available", alias="Free") + remote: Optional[StrictBool] = Field(default=None, description="Indicates whether licenses are served by the database", alias="Remote") + reserved: Optional[StrictInt] = Field(default=None, description="Number of licenses reserved", alias="Reserved") + last_consumed: Optional[StrictInt] = Field(default=None, description="Last known number of licenses that were consumed in the license manager (Remote Only)", alias="LastConsumed") + last_deficit: Optional[StrictInt] = Field(default=None, description="Number of \"missing licenses\" from the cluster's perspective", alias="LastDeficit") + last_update: Optional[StrictInt] = Field(default=None, description="When the license information was last updated (UNIX Timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))", alias="LastUpdate") + nodes: Optional[StrictStr] = Field(default=None, description="HRes nodes", alias="Nodes") + __properties: ClassVar[List[str]] = ["LicenseName", "Total", "Used", "Free", "Remote", "Reserved", "LastConsumed", "LastDeficit", "LastUpdate", "Nodes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044License from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044License from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "LicenseName": obj.get("LicenseName"), + "Total": obj.get("Total"), + "Used": obj.get("Used"), + "Free": obj.get("Free"), + "Remote": obj.get("Remote"), + "Reserved": obj.get("Reserved"), + "LastConsumed": obj.get("LastConsumed"), + "LastDeficit": obj.get("LastDeficit"), + "LastUpdate": obj.get("LastUpdate"), + "Nodes": obj.get("Nodes") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_node.py b/slurmrest_python/models/v0044_node.py new file mode 100644 index 0000000..ee39b01 --- /dev/null +++ b/slurmrest_python/models/v0044_node.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from slurmrest_python.models.v0044_acct_gather_energy import V0044AcctGatherEnergy +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044Node(BaseModel): + """ + V0044Node + """ # noqa: E501 + architecture: Optional[StrictStr] = Field(default=None, description="Computer architecture") + burstbuffer_network_address: Optional[StrictStr] = Field(default=None, description="Alternate network path to be used for sbcast network traffic") + boards: Optional[StrictInt] = Field(default=None, description="Number of Baseboards in nodes with a baseboard controller") + boot_time: Optional[V0044Uint64NoValStruct] = None + tls_cert_last_renewal: Optional[V0044Uint64NoValStruct] = None + cert_flags: Optional[List[StrictStr]] = Field(default=None, description="Certmgr status flags") + cluster_name: Optional[StrictStr] = Field(default=None, description="Cluster name (only set in federated environments)") + cores: Optional[StrictInt] = Field(default=None, description="Number of cores in a single physical processor socket") + specialized_cores: Optional[StrictInt] = Field(default=None, description="Number of cores reserved for system use") + cpu_binding: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + cpu_load: Optional[StrictInt] = Field(default=None, description="CPU load as reported by the OS") + free_mem: Optional[V0044Uint64NoValStruct] = None + cpus: Optional[StrictInt] = Field(default=None, description="Total CPUs, including cores and threads") + effective_cpus: Optional[StrictInt] = Field(default=None, description="Number of effective CPUs (excluding specialized CPUs)") + specialized_cpus: Optional[StrictStr] = Field(default=None, description="Abstract CPU IDs on this node reserved for exclusive use by slurmd and slurmstepd") + energy: Optional[V0044AcctGatherEnergy] = None + external_sensors: Optional[Dict[str, Any]] = None + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + power: Optional[Dict[str, Any]] = None + features: Optional[List[StrictStr]] = None + active_features: Optional[List[StrictStr]] = None + gpu_spec: Optional[StrictStr] = Field(default=None, description="CPU cores reserved for jobs that also use a GPU") + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + gres_drained: Optional[StrictStr] = Field(default=None, description="Drained generic resources") + gres_used: Optional[StrictStr] = Field(default=None, description="Generic resources currently in use") + instance_id: Optional[StrictStr] = Field(default=None, description="Cloud instance ID") + instance_type: Optional[StrictStr] = Field(default=None, description="Cloud instance type") + last_busy: Optional[V0044Uint64NoValStruct] = None + mcs_label: Optional[StrictStr] = Field(default=None, description="Multi-Category Security label") + specialized_memory: Optional[StrictInt] = Field(default=None, description="Combined memory limit, in MB, for Slurm compute node daemons") + name: Optional[StrictStr] = Field(default=None, description="NodeName") + next_state_after_reboot: Optional[List[StrictStr]] = Field(default=None, description="The state the node will be assigned after rebooting") + address: Optional[StrictStr] = Field(default=None, description="NodeAddr, used to establish a communication path") + hostname: Optional[StrictStr] = Field(default=None, description="NodeHostname") + state: Optional[List[StrictStr]] = Field(default=None, description="Node state(s) applicable to this node") + operating_system: Optional[StrictStr] = Field(default=None, description="Operating system reported by the node") + owner: Optional[StrictStr] = Field(default=None, description="User allowed to run jobs on this node (unset if no restriction)") + partitions: Optional[List[StrictStr]] = None + port: Optional[StrictInt] = Field(default=None, description="TCP port number of the slurmd") + real_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB on the node") + res_cores_per_gpu: Optional[StrictInt] = Field(default=None, description="Number of CPU cores per GPU restricted to GPU jobs") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + reason: Optional[StrictStr] = Field(default=None, description="Describes why the node is in a \"DOWN\", \"DRAINED\", \"DRAINING\", \"FAILING\" or \"FAIL\" state") + reason_changed_at: Optional[V0044Uint64NoValStruct] = None + reason_set_by_user: Optional[StrictStr] = Field(default=None, description="User who set the reason") + resume_after: Optional[V0044Uint64NoValStruct] = None + reservation: Optional[StrictStr] = Field(default=None, description="Name of reservation containing this node") + alloc_memory: Optional[StrictInt] = Field(default=None, description="Total memory in MB currently allocated for jobs") + alloc_cpus: Optional[StrictInt] = Field(default=None, description="Total number of CPUs currently allocated for jobs") + alloc_idle_cpus: Optional[StrictInt] = Field(default=None, description="Total number of idle CPUs") + tres_used: Optional[StrictStr] = Field(default=None, description="Trackable resources currently allocated for jobs") + tres_weighted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Ignored. Was weighted number of billable trackable resources allocated") + slurmd_start_time: Optional[V0044Uint64NoValStruct] = None + sockets: Optional[StrictInt] = Field(default=None, description="Number of physical processor sockets/chips on the node") + threads: Optional[StrictInt] = Field(default=None, description="Number of logical threads in a single physical core") + temporary_disk: Optional[StrictInt] = Field(default=None, description="Total size in MB of temporary disk storage in TmpFS") + weight: Optional[StrictInt] = Field(default=None, description="Weight of the node for scheduling purposes") + topology: Optional[StrictStr] = Field(default=None, description="Topology") + tres: Optional[StrictStr] = Field(default=None, description="Configured trackable resources") + version: Optional[StrictStr] = Field(default=None, description="Slurmd version") + __properties: ClassVar[List[str]] = ["architecture", "burstbuffer_network_address", "boards", "boot_time", "tls_cert_last_renewal", "cert_flags", "cluster_name", "cores", "specialized_cores", "cpu_binding", "cpu_load", "free_mem", "cpus", "effective_cpus", "specialized_cpus", "energy", "external_sensors", "extra", "power", "features", "active_features", "gpu_spec", "gres", "gres_drained", "gres_used", "instance_id", "instance_type", "last_busy", "mcs_label", "specialized_memory", "name", "next_state_after_reboot", "address", "hostname", "state", "operating_system", "owner", "partitions", "port", "real_memory", "res_cores_per_gpu", "comment", "reason", "reason_changed_at", "reason_set_by_user", "resume_after", "reservation", "alloc_memory", "alloc_cpus", "alloc_idle_cpus", "tres_used", "tres_weighted", "slurmd_start_time", "sockets", "threads", "temporary_disk", "weight", "topology", "tres", "version"] + + @field_validator('cert_flags') + def cert_flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['TOKEN_SET']): + raise ValueError("each list item must be one of ('TOKEN_SET')") + return value + + @field_validator('next_state_after_reboot') + def next_state_after_reboot_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'EXTERNAL', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM', 'BLOCKED']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'EXTERNAL', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM', 'BLOCKED')") + return value + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'EXTERNAL', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM', 'BLOCKED']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'EXTERNAL', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM', 'BLOCKED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Node from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of boot_time + if self.boot_time: + _dict['boot_time'] = self.boot_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of tls_cert_last_renewal + if self.tls_cert_last_renewal: + _dict['tls_cert_last_renewal'] = self.tls_cert_last_renewal.to_dict() + # override the default output from pydantic by calling `to_dict()` of free_mem + if self.free_mem: + _dict['free_mem'] = self.free_mem.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_busy + if self.last_busy: + _dict['last_busy'] = self.last_busy.to_dict() + # override the default output from pydantic by calling `to_dict()` of reason_changed_at + if self.reason_changed_at: + _dict['reason_changed_at'] = self.reason_changed_at.to_dict() + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurmd_start_time + if self.slurmd_start_time: + _dict['slurmd_start_time'] = self.slurmd_start_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Node from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "architecture": obj.get("architecture"), + "burstbuffer_network_address": obj.get("burstbuffer_network_address"), + "boards": obj.get("boards"), + "boot_time": V0044Uint64NoValStruct.from_dict(obj["boot_time"]) if obj.get("boot_time") is not None else None, + "tls_cert_last_renewal": V0044Uint64NoValStruct.from_dict(obj["tls_cert_last_renewal"]) if obj.get("tls_cert_last_renewal") is not None else None, + "cert_flags": obj.get("cert_flags"), + "cluster_name": obj.get("cluster_name"), + "cores": obj.get("cores"), + "specialized_cores": obj.get("specialized_cores"), + "cpu_binding": obj.get("cpu_binding"), + "cpu_load": obj.get("cpu_load"), + "free_mem": V0044Uint64NoValStruct.from_dict(obj["free_mem"]) if obj.get("free_mem") is not None else None, + "cpus": obj.get("cpus"), + "effective_cpus": obj.get("effective_cpus"), + "specialized_cpus": obj.get("specialized_cpus"), + "energy": V0044AcctGatherEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None, + "external_sensors": obj.get("external_sensors"), + "extra": obj.get("extra"), + "power": obj.get("power"), + "features": obj.get("features"), + "active_features": obj.get("active_features"), + "gpu_spec": obj.get("gpu_spec"), + "gres": obj.get("gres"), + "gres_drained": obj.get("gres_drained"), + "gres_used": obj.get("gres_used"), + "instance_id": obj.get("instance_id"), + "instance_type": obj.get("instance_type"), + "last_busy": V0044Uint64NoValStruct.from_dict(obj["last_busy"]) if obj.get("last_busy") is not None else None, + "mcs_label": obj.get("mcs_label"), + "specialized_memory": obj.get("specialized_memory"), + "name": obj.get("name"), + "next_state_after_reboot": obj.get("next_state_after_reboot"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "state": obj.get("state"), + "operating_system": obj.get("operating_system"), + "owner": obj.get("owner"), + "partitions": obj.get("partitions"), + "port": obj.get("port"), + "real_memory": obj.get("real_memory"), + "res_cores_per_gpu": obj.get("res_cores_per_gpu"), + "comment": obj.get("comment"), + "reason": obj.get("reason"), + "reason_changed_at": V0044Uint64NoValStruct.from_dict(obj["reason_changed_at"]) if obj.get("reason_changed_at") is not None else None, + "reason_set_by_user": obj.get("reason_set_by_user"), + "resume_after": V0044Uint64NoValStruct.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "reservation": obj.get("reservation"), + "alloc_memory": obj.get("alloc_memory"), + "alloc_cpus": obj.get("alloc_cpus"), + "alloc_idle_cpus": obj.get("alloc_idle_cpus"), + "tres_used": obj.get("tres_used"), + "tres_weighted": obj.get("tres_weighted"), + "slurmd_start_time": V0044Uint64NoValStruct.from_dict(obj["slurmd_start_time"]) if obj.get("slurmd_start_time") is not None else None, + "sockets": obj.get("sockets"), + "threads": obj.get("threads"), + "temporary_disk": obj.get("temporary_disk"), + "weight": obj.get("weight"), + "topology": obj.get("topology"), + "tres": obj.get("tres"), + "version": obj.get("version") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_node_gres_layout.py b/slurmrest_python/models/v0044_node_gres_layout.py new file mode 100644 index 0000000..54df5af --- /dev/null +++ b/slurmrest_python/models/v0044_node_gres_layout.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044NodeGresLayout(BaseModel): + """ + V0044NodeGresLayout + """ # noqa: E501 + name: StrictStr = Field(description="GRES name") + type: Optional[StrictStr] = Field(default=None, description="GRES type (optional)") + count: Optional[StrictInt] = Field(default=None, description="Count") + index: Optional[StrictStr] = Field(default=None, description="Index") + __properties: ClassVar[List[str]] = ["name", "type", "count", "index"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044NodeGresLayout from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044NodeGresLayout from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "count": obj.get("count"), + "index": obj.get("index") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_node_resource_layout.py b/slurmrest_python/models/v0044_node_resource_layout.py new file mode 100644 index 0000000..dd9a5c6 --- /dev/null +++ b/slurmrest_python/models/v0044_node_resource_layout.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_node_gres_layout import V0044NodeGresLayout +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044NodeResourceLayout(BaseModel): + """ + V0044NodeResourceLayout + """ # noqa: E501 + node: StrictStr = Field(description="Node name") + sockets_per_node: Optional[StrictInt] = Field(default=None, description="Sockets per node") + cores_per_socket: Optional[StrictInt] = Field(default=None, description="Cores per socket") + mem_alloc: Optional[StrictInt] = Field(default=None, description="Allocated memory") + core_bitmap: Optional[StrictStr] = Field(default=None, description="Abstract core bitmap") + channel: Optional[V0044Uint32NoValStruct] = None + gres: Optional[List[V0044NodeGresLayout]] = None + __properties: ClassVar[List[str]] = ["node", "sockets_per_node", "cores_per_socket", "mem_alloc", "core_bitmap", "channel", "gres"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044NodeResourceLayout from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of channel + if self.channel: + _dict['channel'] = self.channel.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in gres (list) + _items = [] + if self.gres: + for _item_gres in self.gres: + if _item_gres: + _items.append(_item_gres.to_dict()) + _dict['gres'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044NodeResourceLayout from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "node": obj.get("node"), + "sockets_per_node": obj.get("sockets_per_node"), + "cores_per_socket": obj.get("cores_per_socket"), + "mem_alloc": obj.get("mem_alloc"), + "core_bitmap": obj.get("core_bitmap"), + "channel": V0044Uint32NoValStruct.from_dict(obj["channel"]) if obj.get("channel") is not None else None, + "gres": [V0044NodeGresLayout.from_dict(_item) for _item in obj["gres"]] if obj.get("gres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_accounts_add_cond_resp.py b/slurmrest_python/models/v0044_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..3edc93e --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_accounts_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_account_short import V0044AccountShort +from slurmrest_python.models.v0044_accounts_add_cond import V0044AccountsAddCond +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiAccountsAddCondResp(BaseModel): + """ + V0044OpenapiAccountsAddCondResp + """ # noqa: E501 + association_condition: V0044AccountsAddCond + account: Optional[V0044AccountShort] = None + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["association_condition", "account", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0044AccountsAddCond.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "account": V0044AccountShort.from_dict(obj["account"]) if obj.get("account") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_accounts_add_cond_resp_str.py b/slurmrest_python/models/v0044_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..773a571 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiAccountsAddCondRespStr(BaseModel): + """ + V0044OpenapiAccountsAddCondRespStr + """ # noqa: E501 + added_accounts: StrictStr = Field(description="added_accounts") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["added_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_accounts": obj.get("added_accounts"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_accounts_removed_resp.py b/slurmrest_python/models/v0044_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..5b19d6d --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_accounts_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiAccountsRemovedResp(BaseModel): + """ + V0044OpenapiAccountsRemovedResp + """ # noqa: E501 + removed_accounts: List[StrictStr] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_accounts": obj.get("removed_accounts"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_accounts_resp.py b/slurmrest_python/models/v0044_openapi_accounts_resp.py new file mode 100644 index 0000000..f912142 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_accounts_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_account import V0044Account +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiAccountsResp(BaseModel): + """ + V0044OpenapiAccountsResp + """ # noqa: E501 + accounts: List[V0044Account] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["accounts", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiAccountsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": [V0044Account.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_assocs_removed_resp.py b/slurmrest_python/models/v0044_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..78f9bc3 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_assocs_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiAssocsRemovedResp(BaseModel): + """ + V0044OpenapiAssocsRemovedResp + """ # noqa: E501 + removed_associations: List[StrictStr] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiAssocsRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiAssocsRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_associations": obj.get("removed_associations"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_assocs_resp.py b/slurmrest_python/models/v0044_openapi_assocs_resp.py new file mode 100644 index 0000000..dcee742 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_assocs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc import V0044Assoc +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiAssocsResp(BaseModel): + """ + V0044OpenapiAssocsResp + """ # noqa: E501 + associations: List[V0044Assoc] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["associations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiAssocsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiAssocsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "associations": [V0044Assoc.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_clusters_removed_resp.py b/slurmrest_python/models/v0044_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..7ed8397 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_clusters_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiClustersRemovedResp(BaseModel): + """ + V0044OpenapiClustersRemovedResp + """ # noqa: E501 + deleted_clusters: List[StrictStr] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["deleted_clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiClustersRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiClustersRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_clusters": obj.get("deleted_clusters"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_clusters_resp.py b/slurmrest_python/models/v0044_openapi_clusters_resp.py new file mode 100644 index 0000000..2f5f3a1 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_clusters_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_cluster_rec import V0044ClusterRec +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiClustersResp(BaseModel): + """ + V0044OpenapiClustersResp + """ # noqa: E501 + clusters: List[V0044ClusterRec] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["clusters", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiClustersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiClustersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0044ClusterRec.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_create_node_req.py b/slurmrest_python/models/v0044_openapi_create_node_req.py new file mode 100644 index 0000000..e0a3269 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_create_node_req.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiCreateNodeReq(BaseModel): + """ + V0044OpenapiCreateNodeReq + """ # noqa: E501 + node_conf: StrictStr = Field(description="Node configuration line") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["node_conf", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiCreateNodeReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiCreateNodeReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "node_conf": obj.get("node_conf"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_diag_resp.py b/slurmrest_python/models/v0044_openapi_diag_resp.py new file mode 100644 index 0000000..2166ec4 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_diag_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_stats_msg import V0044StatsMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiDiagResp(BaseModel): + """ + V0044OpenapiDiagResp + """ # noqa: E501 + statistics: V0044StatsMsg + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiDiagResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiDiagResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0044StatsMsg.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_error.py b/slurmrest_python/models/v0044_openapi_error.py new file mode 100644 index 0000000..c8b3e8a --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_error.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiError(BaseModel): + """ + V0044OpenapiError + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form error description") + error_number: Optional[StrictInt] = Field(default=None, description="Slurm numeric error identifier") + error: Optional[StrictStr] = Field(default=None, description="Short form error description") + source: Optional[StrictStr] = Field(default=None, description="Source of error or where error was first detected") + __properties: ClassVar[List[str]] = ["description", "error_number", "error", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "error_number": obj.get("error_number"), + "error": obj.get("error"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_hostlist_req_resp.py b/slurmrest_python/models/v0044_openapi_hostlist_req_resp.py new file mode 100644 index 0000000..b0497a1 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_hostlist_req_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiHostlistReqResp(BaseModel): + """ + V0044OpenapiHostlistReqResp + """ # noqa: E501 + hostlist: StrictStr = Field(description="Hostlist expression string (Hostlist expression string)") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["hostlist", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiHostlistReqResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiHostlistReqResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostlist": obj.get("hostlist"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_hostnames_req_resp.py b/slurmrest_python/models/v0044_openapi_hostnames_req_resp.py new file mode 100644 index 0000000..d57088d --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_hostnames_req_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiHostnamesReqResp(BaseModel): + """ + V0044OpenapiHostnamesReqResp + """ # noqa: E501 + hostnames: List[StrictStr] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["hostnames", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiHostnamesReqResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiHostnamesReqResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostnames": obj.get("hostnames"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_instances_resp.py b/slurmrest_python/models/v0044_openapi_instances_resp.py new file mode 100644 index 0000000..08b7ee2 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_instances_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_instance import V0044Instance +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiInstancesResp(BaseModel): + """ + V0044OpenapiInstancesResp + """ # noqa: E501 + instances: List[V0044Instance] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiInstancesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiInstancesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "instances": [V0044Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_job_alloc_resp.py b/slurmrest_python/models/v0044_openapi_job_alloc_resp.py new file mode 100644 index 0000000..49bfb20 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_job_alloc_resp.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiJobAllocResp(BaseModel): + """ + V0044OpenapiJobAllocResp + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="Submitted Job ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["job_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiJobAllocResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiJobAllocResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_job_info_resp.py b/slurmrest_python/models/v0044_openapi_job_info_resp.py new file mode 100644 index 0000000..3e8391e --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_job_info_resp.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job_info import V0044JobInfo +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiJobInfoResp(BaseModel): + """ + V0044OpenapiJobInfoResp + """ # noqa: E501 + jobs: List[V0044JobInfo] + last_backfill: V0044Uint64NoValStruct + last_update: V0044Uint64NoValStruct + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["jobs", "last_backfill", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiJobInfoResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of last_backfill + if self.last_backfill: + _dict['last_backfill'] = self.last_backfill.to_dict() + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiJobInfoResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0044JobInfo.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "last_backfill": V0044Uint64NoValStruct.from_dict(obj["last_backfill"]) if obj.get("last_backfill") is not None else None, + "last_update": V0044Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_job_modify_req.py b/slurmrest_python/models/v0044_openapi_job_modify_req.py new file mode 100644 index 0000000..900ed86 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_job_modify_req.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job_modify import V0044JobModify +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiJobModifyReq(BaseModel): + """ + V0044OpenapiJobModifyReq + """ # noqa: E501 + job_id_list: Optional[List[StrictStr]] = None + job_rec: Optional[V0044JobModify] = None + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["job_id_list", "job_rec", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiJobModifyReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of job_rec + if self.job_rec: + _dict['job_rec'] = self.job_rec.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiJobModifyReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id_list": obj.get("job_id_list"), + "job_rec": V0044JobModify.from_dict(obj["job_rec"]) if obj.get("job_rec") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_job_modify_resp.py b/slurmrest_python/models/v0044_openapi_job_modify_resp.py new file mode 100644 index 0000000..161c53e --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_job_modify_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiJobModifyResp(BaseModel): + """ + V0044OpenapiJobModifyResp + """ # noqa: E501 + results: List[StrictStr] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["results", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiJobModifyResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiJobModifyResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "results": obj.get("results"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_job_post_response.py b/slurmrest_python/models/v0044_openapi_job_post_response.py new file mode 100644 index 0000000..047a7e5 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_job_post_response.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job_array_response_msg_entry import V0044JobArrayResponseMsgEntry +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiJobPostResponse(BaseModel): + """ + V0044OpenapiJobPostResponse + """ # noqa: E501 + results: Optional[List[V0044JobArrayResponseMsgEntry]] = None + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["results", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiJobPostResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiJobPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "results": [V0044JobArrayResponseMsgEntry.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_job_submit_response.py b/slurmrest_python/models/v0044_openapi_job_submit_response.py new file mode 100644 index 0000000..0272626 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_job_submit_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiJobSubmitResponse(BaseModel): + """ + V0044OpenapiJobSubmitResponse + """ # noqa: E501 + job_id: Optional[StrictInt] = Field(default=None, description="submitted Job ID") + step_id: Optional[StrictStr] = Field(default=None, description="submitted Step ID") + job_submit_user_msg: Optional[StrictStr] = Field(default=None, description="Job submission user message") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["job_id", "step_id", "job_submit_user_msg", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiJobSubmitResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiJobSubmitResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_id": obj.get("job_id"), + "step_id": obj.get("step_id"), + "job_submit_user_msg": obj.get("job_submit_user_msg"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_kill_job_resp.py b/slurmrest_python/models/v0044_openapi_kill_job_resp.py new file mode 100644 index 0000000..ed8eb27 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_kill_job_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_kill_jobs_resp_job import V0044KillJobsRespJob +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiKillJobResp(BaseModel): + """ + V0044OpenapiKillJobResp + """ # noqa: E501 + status: List[V0044KillJobsRespJob] = Field(description="List of jobs signal responses") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["status", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiKillJobResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in status (list) + _items = [] + if self.status: + for _item_status in self.status: + if _item_status: + _items.append(_item_status.to_dict()) + _dict['status'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiKillJobResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": [V0044KillJobsRespJob.from_dict(_item) for _item in obj["status"]] if obj.get("status") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_kill_jobs_resp.py b/slurmrest_python/models/v0044_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..e7e6bbb --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_kill_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_kill_jobs_resp_job import V0044KillJobsRespJob +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiKillJobsResp(BaseModel): + """ + V0044OpenapiKillJobsResp + """ # noqa: E501 + status: List[V0044KillJobsRespJob] = Field(description="List of jobs signal responses") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["status", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiKillJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in status (list) + _items = [] + if self.status: + for _item_status in self.status: + if _item_status: + _items.append(_item_status.to_dict()) + _dict['status'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiKillJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": [V0044KillJobsRespJob.from_dict(_item) for _item in obj["status"]] if obj.get("status") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_licenses_resp.py b/slurmrest_python/models/v0044_openapi_licenses_resp.py new file mode 100644 index 0000000..0aa2242 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_licenses_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_license import V0044License +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiLicensesResp(BaseModel): + """ + V0044OpenapiLicensesResp + """ # noqa: E501 + licenses: List[V0044License] + last_update: V0044Uint64NoValStruct + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["licenses", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiLicensesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in licenses (list) + _items = [] + if self.licenses: + for _item_licenses in self.licenses: + if _item_licenses: + _items.append(_item_licenses.to_dict()) + _dict['licenses'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiLicensesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "licenses": [V0044License.from_dict(_item) for _item in obj["licenses"]] if obj.get("licenses") is not None else None, + "last_update": V0044Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_meta.py b/slurmrest_python/models/v0044_openapi_meta.py new file mode 100644 index 0000000..591ac6c --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_meta.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiMeta(BaseModel): + """ + V0044OpenapiMeta + """ # noqa: E501 + plugin: Optional[V0041OpenapiSharesRespMetaPlugin] = None + client: Optional[V0041OpenapiSharesRespMetaClient] = None + command: Optional[List[StrictStr]] = None + slurm: Optional[V0041OpenapiSharesRespMetaSlurm] = None + __properties: ClassVar[List[str]] = ["plugin", "client", "command", "slurm"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of plugin + if self.plugin: + _dict['plugin'] = self.plugin.to_dict() + # override the default output from pydantic by calling `to_dict()` of client + if self.client: + _dict['client'] = self.client.to_dict() + # override the default output from pydantic by calling `to_dict()` of slurm + if self.slurm: + _dict['slurm'] = self.slurm.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plugin": V0041OpenapiSharesRespMetaPlugin.from_dict(obj["plugin"]) if obj.get("plugin") is not None else None, + "client": V0041OpenapiSharesRespMetaClient.from_dict(obj["client"]) if obj.get("client") is not None else None, + "command": obj.get("command"), + "slurm": V0041OpenapiSharesRespMetaSlurm.from_dict(obj["slurm"]) if obj.get("slurm") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_nodes_resp.py b/slurmrest_python/models/v0044_openapi_nodes_resp.py new file mode 100644 index 0000000..35a3ba8 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_nodes_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_node import V0044Node +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiNodesResp(BaseModel): + """ + V0044OpenapiNodesResp + """ # noqa: E501 + nodes: List[V0044Node] + last_update: V0044Uint64NoValStruct + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["nodes", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiNodesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in nodes (list) + _items = [] + if self.nodes: + for _item_nodes in self.nodes: + if _item_nodes: + _items.append(_item_nodes.to_dict()) + _dict['nodes'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiNodesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": [V0044Node.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None, + "last_update": V0044Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_partition_resp.py b/slurmrest_python/models/v0044_openapi_partition_resp.py new file mode 100644 index 0000000..9fac605 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_partition_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_partition_info import V0044PartitionInfo +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiPartitionResp(BaseModel): + """ + V0044OpenapiPartitionResp + """ # noqa: E501 + partitions: List[V0044PartitionInfo] + last_update: V0044Uint64NoValStruct + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["partitions", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiPartitionResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in partitions (list) + _items = [] + if self.partitions: + for _item_partitions in self.partitions: + if _item_partitions: + _items.append(_item_partitions.to_dict()) + _dict['partitions'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiPartitionResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partitions": [V0044PartitionInfo.from_dict(_item) for _item in obj["partitions"]] if obj.get("partitions") is not None else None, + "last_update": V0044Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_ping_array_resp.py b/slurmrest_python/models/v0044_openapi_ping_array_resp.py new file mode 100644 index 0000000..7455c11 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_ping_array_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_controller_ping import V0044ControllerPing +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiPingArrayResp(BaseModel): + """ + V0044OpenapiPingArrayResp + """ # noqa: E501 + pings: List[V0044ControllerPing] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["pings", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiPingArrayResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pings (list) + _items = [] + if self.pings: + for _item_pings in self.pings: + if _item_pings: + _items.append(_item_pings.to_dict()) + _dict['pings'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiPingArrayResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pings": [V0044ControllerPing.from_dict(_item) for _item in obj["pings"]] if obj.get("pings") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_reservation_mod_resp.py b/slurmrest_python/models/v0044_openapi_reservation_mod_resp.py new file mode 100644 index 0000000..4a17bfd --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_reservation_mod_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiReservationModResp(BaseModel): + """ + V0044OpenapiReservationModResp + """ # noqa: E501 + reservations: List[V0044ReservationDescMsg] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["reservations", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiReservationModResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiReservationModResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0044ReservationDescMsg.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_reservation_resp.py b/slurmrest_python/models/v0044_openapi_reservation_resp.py new file mode 100644 index 0000000..7695909 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_reservation_resp.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_reservation_info import V0044ReservationInfo +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiReservationResp(BaseModel): + """ + V0044OpenapiReservationResp + """ # noqa: E501 + reservations: List[V0044ReservationInfo] + last_update: V0044Uint64NoValStruct + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["reservations", "last_update", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiReservationResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + # override the default output from pydantic by calling `to_dict()` of last_update + if self.last_update: + _dict['last_update'] = self.last_update.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiReservationResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0044ReservationInfo.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None, + "last_update": V0044Uint64NoValStruct.from_dict(obj["last_update"]) if obj.get("last_update") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_resource_layout_resp.py b/slurmrest_python/models/v0044_openapi_resource_layout_resp.py new file mode 100644 index 0000000..464bf53 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_resource_layout_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_node_resource_layout import V0044NodeResourceLayout +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiResourceLayoutResp(BaseModel): + """ + V0044OpenapiResourceLayoutResp + """ # noqa: E501 + nodes: List[V0044NodeResourceLayout] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["nodes", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiResourceLayoutResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in nodes (list) + _items = [] + if self.nodes: + for _item_nodes in self.nodes: + if _item_nodes: + _items.append(_item_nodes.to_dict()) + _dict['nodes'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiResourceLayoutResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": [V0044NodeResourceLayout.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_resp.py b/slurmrest_python/models/v0044_openapi_resp.py new file mode 100644 index 0000000..02dd5c7 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_resp.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiResp(BaseModel): + """ + V0044OpenapiResp + """ # noqa: E501 + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_shares_resp.py b/slurmrest_python/models/v0044_openapi_shares_resp.py new file mode 100644 index 0000000..5f50f17 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_shares_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_shares_resp_msg import V0044SharesRespMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiSharesResp(BaseModel): + """ + V0044OpenapiSharesResp + """ # noqa: E501 + shares: V0044SharesRespMsg + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["shares", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiSharesResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of shares + if self.shares: + _dict['shares'] = self.shares.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiSharesResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": V0044SharesRespMsg.from_dict(obj["shares"]) if obj.get("shares") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_slurmdbd_config_resp.py b/slurmrest_python/models/v0044_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..d203d64 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_slurmdbd_config_resp.py @@ -0,0 +1,192 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_account import V0044Account +from slurmrest_python.models.v0044_assoc import V0044Assoc +from slurmrest_python.models.v0044_cluster_rec import V0044ClusterRec +from slurmrest_python.models.v0044_instance import V0044Instance +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_qos import V0044Qos +from slurmrest_python.models.v0044_tres import V0044Tres +from slurmrest_python.models.v0044_user import V0044User +from slurmrest_python.models.v0044_wckey import V0044Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiSlurmdbdConfigResp(BaseModel): + """ + V0044OpenapiSlurmdbdConfigResp + """ # noqa: E501 + clusters: Optional[List[V0044ClusterRec]] = None + tres: Optional[List[V0044Tres]] = None + accounts: Optional[List[V0044Account]] = None + users: Optional[List[V0044User]] = None + qos: Optional[List[V0044Qos]] = None + wckeys: Optional[List[V0044Wckey]] = None + associations: Optional[List[V0044Assoc]] = None + instances: Optional[List[V0044Instance]] = None + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["clusters", "tres", "accounts", "users", "qos", "wckeys", "associations", "instances", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdConfigResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in clusters (list) + _items = [] + if self.clusters: + for _item_clusters in self.clusters: + if _item_clusters: + _items.append(_item_clusters.to_dict()) + _dict['clusters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in accounts (list) + _items = [] + if self.accounts: + for _item_accounts in self.accounts: + if _item_accounts: + _items.append(_item_accounts.to_dict()) + _dict['accounts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in instances (list) + _items = [] + if self.instances: + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) + _dict['instances'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdConfigResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clusters": [V0044ClusterRec.from_dict(_item) for _item in obj["clusters"]] if obj.get("clusters") is not None else None, + "tres": [V0044Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None, + "accounts": [V0044Account.from_dict(_item) for _item in obj["accounts"]] if obj.get("accounts") is not None else None, + "users": [V0044User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "qos": [V0044Qos.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "wckeys": [V0044Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "associations": [V0044Assoc.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "instances": [V0044Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_slurmdbd_jobs_resp.py b/slurmrest_python/models/v0044_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..29a19bd --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_job import V0044Job +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiSlurmdbdJobsResp(BaseModel): + """ + V0044OpenapiSlurmdbdJobsResp + """ # noqa: E501 + jobs: List[V0044Job] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["jobs", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdJobsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in jobs (list) + _items = [] + if self.jobs: + for _item_jobs in self.jobs: + if _item_jobs: + _items.append(_item_jobs.to_dict()) + _dict['jobs'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdJobsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobs": [V0044Job.from_dict(_item) for _item in obj["jobs"]] if obj.get("jobs") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_slurmdbd_ping_resp.py b/slurmrest_python/models/v0044_openapi_slurmdbd_ping_resp.py new file mode 100644 index 0000000..9e1942a --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_slurmdbd_ping_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_slurmdbd_ping import V0044SlurmdbdPing +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiSlurmdbdPingResp(BaseModel): + """ + V0044OpenapiSlurmdbdPingResp + """ # noqa: E501 + pings: List[V0044SlurmdbdPing] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["pings", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdPingResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pings (list) + _items = [] + if self.pings: + for _item_pings in self.pings: + if _item_pings: + _items.append(_item_pings.to_dict()) + _dict['pings'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdPingResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pings": [V0044SlurmdbdPing.from_dict(_item) for _item in obj["pings"]] if obj.get("pings") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_slurmdbd_qos_removed_resp.py b/slurmrest_python/models/v0044_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..9b751f6 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiSlurmdbdQosRemovedResp(BaseModel): + """ + V0044OpenapiSlurmdbdQosRemovedResp + """ # noqa: E501 + removed_qos: List[StrictStr] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["removed_qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdQosRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdQosRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "removed_qos": obj.get("removed_qos"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_slurmdbd_qos_resp.py b/slurmrest_python/models/v0044_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..2f91789 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_qos import V0044Qos +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiSlurmdbdQosResp(BaseModel): + """ + V0044OpenapiSlurmdbdQosResp + """ # noqa: E501 + qos: List[V0044Qos] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["qos", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdQosResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdQosResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0044Qos.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_slurmdbd_stats_resp.py b/slurmrest_python/models/v0044_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..ca108f8 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_stats_rec import V0044StatsRec +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiSlurmdbdStatsResp(BaseModel): + """ + V0044OpenapiSlurmdbdStatsResp + """ # noqa: E501 + statistics: V0044StatsRec + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["statistics", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdStatsResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiSlurmdbdStatsResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "statistics": V0044StatsRec.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_tres_resp.py b/slurmrest_python/models/v0044_openapi_tres_resp.py new file mode 100644 index 0000000..b874313 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_tres_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiTresResp(BaseModel): + """ + V0044OpenapiTresResp + """ # noqa: E501 + tres: List[V0044Tres] = Field(alias="TRES") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["TRES", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiTresResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['TRES'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiTresResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "TRES": [V0044Tres.from_dict(_item) for _item in obj["TRES"]] if obj.get("TRES") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_users_add_cond_resp.py b/slurmrest_python/models/v0044_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..a2ea426 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_users_add_cond_resp.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_user_short import V0044UserShort +from slurmrest_python.models.v0044_users_add_cond import V0044UsersAddCond +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiUsersAddCondResp(BaseModel): + """ + V0044OpenapiUsersAddCondResp + """ # noqa: E501 + association_condition: V0044UsersAddCond + user: V0044UserShort + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["association_condition", "user", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiUsersAddCondResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association_condition + if self.association_condition: + _dict['association_condition'] = self.association_condition.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiUsersAddCondResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "association_condition": V0044UsersAddCond.from_dict(obj["association_condition"]) if obj.get("association_condition") is not None else None, + "user": V0044UserShort.from_dict(obj["user"]) if obj.get("user") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_users_add_cond_resp_str.py b/slurmrest_python/models/v0044_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..c544f00 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_users_add_cond_resp_str.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiUsersAddCondRespStr(BaseModel): + """ + V0044OpenapiUsersAddCondRespStr + """ # noqa: E501 + added_users: StrictStr = Field(description="added_users") + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["added_users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiUsersAddCondRespStr from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiUsersAddCondRespStr from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "added_users": obj.get("added_users"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_users_resp.py b/slurmrest_python/models/v0044_openapi_users_resp.py new file mode 100644 index 0000000..1e1d40d --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_users_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_user import V0044User +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiUsersResp(BaseModel): + """ + V0044OpenapiUsersResp + """ # noqa: E501 + users: List[V0044User] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["users", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiUsersResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiUsersResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V0044User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_warning.py b/slurmrest_python/models/v0044_openapi_warning.py new file mode 100644 index 0000000..3fc4780 --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_warning.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiWarning(BaseModel): + """ + V0044OpenapiWarning + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Long form warning description") + source: Optional[StrictStr] = Field(default=None, description="Source of warning or where warning was first detected") + __properties: ClassVar[List[str]] = ["description", "source"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiWarning from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiWarning from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "source": obj.get("source") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_wckey_removed_resp.py b/slurmrest_python/models/v0044_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..e4ad4ea --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_wckey_removed_resp.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiWckeyRemovedResp(BaseModel): + """ + V0044OpenapiWckeyRemovedResp + """ # noqa: E501 + deleted_wckeys: List[StrictStr] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["deleted_wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiWckeyRemovedResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiWckeyRemovedResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deleted_wckeys": obj.get("deleted_wckeys"), + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_openapi_wckey_resp.py b/slurmrest_python/models/v0044_openapi_wckey_resp.py new file mode 100644 index 0000000..2703d1b --- /dev/null +++ b/slurmrest_python/models/v0044_openapi_wckey_resp.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning +from slurmrest_python.models.v0044_wckey import V0044Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0044OpenapiWckeyResp(BaseModel): + """ + V0044OpenapiWckeyResp + """ # noqa: E501 + wckeys: List[V0044Wckey] + meta: Optional[V0044OpenapiMeta] = None + errors: Optional[List[V0044OpenapiError]] = None + warnings: Optional[List[V0044OpenapiWarning]] = None + __properties: ClassVar[List[str]] = ["wckeys", "meta", "errors", "warnings"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044OpenapiWckeyResp from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + # override the default output from pydantic by calling `to_dict()` of meta + if self.meta: + _dict['meta'] = self.meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) + _items = [] + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044OpenapiWckeyResp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckeys": [V0044Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None, + "meta": V0044OpenapiMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None, + "errors": [V0044OpenapiError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "warnings": [V0044OpenapiWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_part_prio.py b/slurmrest_python/models/v0044_part_prio.py new file mode 100644 index 0000000..89686dd --- /dev/null +++ b/slurmrest_python/models/v0044_part_prio.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartPrio(BaseModel): + """ + V0044PartPrio + """ # noqa: E501 + partition: Optional[StrictStr] = Field(default=None, description="Partition name") + priority: Optional[StrictInt] = Field(default=None, description="Prospective job priority if it runs in this partition") + __properties: ClassVar[List[str]] = ["partition", "priority"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartPrio from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartPrio from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partition": obj.get("partition"), + "priority": obj.get("priority") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info.py b/slurmrest_python/models/v0044_partition_info.py new file mode 100644 index 0000000..f3e13b8 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_partition import V0041OpenapiPartitionRespPartitionsInnerPartition +from slurmrest_python.models.v0044_partition_info_accounts import V0044PartitionInfoAccounts +from slurmrest_python.models.v0044_partition_info_cpus import V0044PartitionInfoCpus +from slurmrest_python.models.v0044_partition_info_defaults import V0044PartitionInfoDefaults +from slurmrest_python.models.v0044_partition_info_groups import V0044PartitionInfoGroups +from slurmrest_python.models.v0044_partition_info_maximums import V0044PartitionInfoMaximums +from slurmrest_python.models.v0044_partition_info_minimums import V0044PartitionInfoMinimums +from slurmrest_python.models.v0044_partition_info_nodes import V0044PartitionInfoNodes +from slurmrest_python.models.v0044_partition_info_priority import V0044PartitionInfoPriority +from slurmrest_python.models.v0044_partition_info_qos import V0044PartitionInfoQos +from slurmrest_python.models.v0044_partition_info_timeouts import V0044PartitionInfoTimeouts +from slurmrest_python.models.v0044_partition_info_tres import V0044PartitionInfoTres +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfo(BaseModel): + """ + V0044PartitionInfo + """ # noqa: E501 + nodes: Optional[V0044PartitionInfoNodes] = None + accounts: Optional[V0044PartitionInfoAccounts] = None + groups: Optional[V0044PartitionInfoGroups] = None + qos: Optional[V0044PartitionInfoQos] = None + alternate: Optional[StrictStr] = Field(default=None, description="Alternate - Partition name of alternate partition to be used if the state of this partition is DRAIN or INACTIVE") + tres: Optional[V0044PartitionInfoTres] = None + cluster: Optional[StrictStr] = Field(default=None, description="Cluster name") + select_type: Optional[List[StrictStr]] = Field(default=None, description="Scheduler consumable resource selection type") + cpus: Optional[V0044PartitionInfoCpus] = None + defaults: Optional[V0044PartitionInfoDefaults] = None + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime - Grace time in seconds to be extended to a job which has been selected for preemption") + maximums: Optional[V0044PartitionInfoMaximums] = None + minimums: Optional[V0044PartitionInfoMinimums] = None + name: Optional[StrictStr] = Field(default=None, description="PartitionName - Name by which the partition may be referenced") + node_sets: Optional[StrictStr] = Field(default=None, description="NodeSets - Comma-separated list of nodesets which are associated with this partition") + priority: Optional[V0044PartitionInfoPriority] = None + timeouts: Optional[V0044PartitionInfoTimeouts] = None + topology: Optional[StrictStr] = Field(default=None, description="Topology - Name of the topology, defined in topology.yaml, used by jobs in this partition") + partition: Optional[V0041OpenapiPartitionRespPartitionsInnerPartition] = None + suspend_time: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["nodes", "accounts", "groups", "qos", "alternate", "tres", "cluster", "select_type", "cpus", "defaults", "grace_time", "maximums", "minimums", "name", "node_sets", "priority", "timeouts", "topology", "partition", "suspend_time"] + + @field_validator('select_type') + def select_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR']): + raise ValueError("each list item must be one of ('CPU', 'SOCKET', 'CORE', 'BOARD', 'MEMORY', 'ONE_TASK_PER_CORE', 'PACK_NODES', 'CORE_DEFAULT_DIST_BLOCK', 'LLN', 'LINEAR')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of accounts + if self.accounts: + _dict['accounts'] = self.accounts.to_dict() + # override the default output from pydantic by calling `to_dict()` of groups + if self.groups: + _dict['groups'] = self.groups.to_dict() + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus + if self.cpus: + _dict['cpus'] = self.cpus.to_dict() + # override the default output from pydantic by calling `to_dict()` of defaults + if self.defaults: + _dict['defaults'] = self.defaults.to_dict() + # override the default output from pydantic by calling `to_dict()` of maximums + if self.maximums: + _dict['maximums'] = self.maximums.to_dict() + # override the default output from pydantic by calling `to_dict()` of minimums + if self.minimums: + _dict['minimums'] = self.minimums.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of timeouts + if self.timeouts: + _dict['timeouts'] = self.timeouts.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition + if self.partition: + _dict['partition'] = self.partition.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend_time + if self.suspend_time: + _dict['suspend_time'] = self.suspend_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": V0044PartitionInfoNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "accounts": V0044PartitionInfoAccounts.from_dict(obj["accounts"]) if obj.get("accounts") is not None else None, + "groups": V0044PartitionInfoGroups.from_dict(obj["groups"]) if obj.get("groups") is not None else None, + "qos": V0044PartitionInfoQos.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "alternate": obj.get("alternate"), + "tres": V0044PartitionInfoTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "cluster": obj.get("cluster"), + "select_type": obj.get("select_type"), + "cpus": V0044PartitionInfoCpus.from_dict(obj["cpus"]) if obj.get("cpus") is not None else None, + "defaults": V0044PartitionInfoDefaults.from_dict(obj["defaults"]) if obj.get("defaults") is not None else None, + "grace_time": obj.get("grace_time"), + "maximums": V0044PartitionInfoMaximums.from_dict(obj["maximums"]) if obj.get("maximums") is not None else None, + "minimums": V0044PartitionInfoMinimums.from_dict(obj["minimums"]) if obj.get("minimums") is not None else None, + "name": obj.get("name"), + "node_sets": obj.get("node_sets"), + "priority": V0044PartitionInfoPriority.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "timeouts": V0044PartitionInfoTimeouts.from_dict(obj["timeouts"]) if obj.get("timeouts") is not None else None, + "topology": obj.get("topology"), + "partition": V0041OpenapiPartitionRespPartitionsInnerPartition.from_dict(obj["partition"]) if obj.get("partition") is not None else None, + "suspend_time": V0044Uint32NoValStruct.from_dict(obj["suspend_time"]) if obj.get("suspend_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_accounts.py b/slurmrest_python/models/v0044_partition_info_accounts.py new file mode 100644 index 0000000..bfae357 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_accounts.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoAccounts(BaseModel): + """ + V0044PartitionInfoAccounts + """ # noqa: E501 + allowed: Optional[StrictStr] = Field(default=None, description="AllowAccounts - Comma-separated list of accounts which may execute jobs in the partition") + deny: Optional[StrictStr] = Field(default=None, description="DenyAccounts - Comma-separated list of accounts which may not execute jobs in the partition") + __properties: ClassVar[List[str]] = ["allowed", "deny"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoAccounts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoAccounts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed": obj.get("allowed"), + "deny": obj.get("deny") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_cpus.py b/slurmrest_python/models/v0044_partition_info_cpus.py new file mode 100644 index 0000000..4c660ba --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_cpus.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoCpus(BaseModel): + """ + V0044PartitionInfoCpus + """ # noqa: E501 + task_binding: Optional[StrictInt] = Field(default=None, description="CpuBind - Default method controlling how tasks are bound to allocated resources") + total: Optional[StrictInt] = Field(default=None, description="TotalCPUs - Number of CPUs available in this partition") + __properties: ClassVar[List[str]] = ["task_binding", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoCpus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoCpus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "task_binding": obj.get("task_binding"), + "total": obj.get("total") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_defaults.py b/slurmrest_python/models/v0044_partition_info_defaults.py new file mode 100644 index 0000000..3eb88be --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_defaults.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoDefaults(BaseModel): + """ + V0044PartitionInfoDefaults + """ # noqa: E501 + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="Raw value for DefMemPerCPU or DefMemPerNode") + partition_memory_per_cpu: Optional[V0044Uint64NoValStruct] = None + partition_memory_per_node: Optional[V0044Uint64NoValStruct] = None + time: Optional[V0044Uint32NoValStruct] = None + job: Optional[StrictStr] = Field(default=None, description="JobDefaults - Comma-separated list of job default values (this field is only used to set new defaults)") + __properties: ClassVar[List[str]] = ["memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "time", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoDefaults from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoDefaults from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0044Uint64NoValStruct.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0044Uint64NoValStruct.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "time": V0044Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None, + "job": obj.get("job") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_groups.py b/slurmrest_python/models/v0044_partition_info_groups.py new file mode 100644 index 0000000..e4f9257 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_groups.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoGroups(BaseModel): + """ + V0044PartitionInfoGroups + """ # noqa: E501 + allowed: Optional[StrictStr] = Field(default=None, description="AllowGroups - Comma-separated list of group names which may execute jobs in this partition") + __properties: ClassVar[List[str]] = ["allowed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoGroups from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoGroups from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed": obj.get("allowed") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_maximums.py b/slurmrest_python/models/v0044_partition_info_maximums.py new file mode 100644 index 0000000..979cb9a --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_maximums.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe import V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoMaximums(BaseModel): + """ + V0044PartitionInfoMaximums + """ # noqa: E501 + cpus_per_node: Optional[V0044Uint32NoValStruct] = None + cpus_per_socket: Optional[V0044Uint32NoValStruct] = None + memory_per_cpu: Optional[StrictInt] = Field(default=None, description="Raw value for MaxMemPerCPU or MaxMemPerNode") + partition_memory_per_cpu: Optional[V0044Uint64NoValStruct] = None + partition_memory_per_node: Optional[V0044Uint64NoValStruct] = None + nodes: Optional[V0044Uint32NoValStruct] = None + shares: Optional[StrictInt] = Field(default=None, description="OverSubscribe - Controls the ability of the partition to execute more than one job at a time on each resource") + oversubscribe: Optional[V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe] = None + time: Optional[V0044Uint32NoValStruct] = None + over_time_limit: Optional[V0044Uint16NoValStruct] = None + __properties: ClassVar[List[str]] = ["cpus_per_node", "cpus_per_socket", "memory_per_cpu", "partition_memory_per_cpu", "partition_memory_per_node", "nodes", "shares", "oversubscribe", "time", "over_time_limit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoMaximums from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpus_per_node + if self.cpus_per_node: + _dict['cpus_per_node'] = self.cpus_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpus_per_socket + if self.cpus_per_socket: + _dict['cpus_per_socket'] = self.cpus_per_socket.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_cpu + if self.partition_memory_per_cpu: + _dict['partition_memory_per_cpu'] = self.partition_memory_per_cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of partition_memory_per_node + if self.partition_memory_per_node: + _dict['partition_memory_per_node'] = self.partition_memory_per_node.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of oversubscribe + if self.oversubscribe: + _dict['oversubscribe'] = self.oversubscribe.to_dict() + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of over_time_limit + if self.over_time_limit: + _dict['over_time_limit'] = self.over_time_limit.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoMaximums from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cpus_per_node": V0044Uint32NoValStruct.from_dict(obj["cpus_per_node"]) if obj.get("cpus_per_node") is not None else None, + "cpus_per_socket": V0044Uint32NoValStruct.from_dict(obj["cpus_per_socket"]) if obj.get("cpus_per_socket") is not None else None, + "memory_per_cpu": obj.get("memory_per_cpu"), + "partition_memory_per_cpu": V0044Uint64NoValStruct.from_dict(obj["partition_memory_per_cpu"]) if obj.get("partition_memory_per_cpu") is not None else None, + "partition_memory_per_node": V0044Uint64NoValStruct.from_dict(obj["partition_memory_per_node"]) if obj.get("partition_memory_per_node") is not None else None, + "nodes": V0044Uint32NoValStruct.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "shares": obj.get("shares"), + "oversubscribe": V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe.from_dict(obj["oversubscribe"]) if obj.get("oversubscribe") is not None else None, + "time": V0044Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None, + "over_time_limit": V0044Uint16NoValStruct.from_dict(obj["over_time_limit"]) if obj.get("over_time_limit") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_minimums.py b/slurmrest_python/models/v0044_partition_info_minimums.py new file mode 100644 index 0000000..35dfe49 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_minimums.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoMinimums(BaseModel): + """ + V0044PartitionInfoMinimums + """ # noqa: E501 + nodes: Optional[StrictInt] = Field(default=None, description="MinNodes - Minimum count of nodes which may be allocated to any single job") + __properties: ClassVar[List[str]] = ["nodes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoMinimums from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoMinimums from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nodes": obj.get("nodes") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_nodes.py b/slurmrest_python/models/v0044_partition_info_nodes.py new file mode 100644 index 0000000..60b7fe9 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoNodes(BaseModel): + """ + V0044PartitionInfoNodes + """ # noqa: E501 + allowed_allocation: Optional[StrictStr] = Field(default=None, description="AllocNodes - Comma-separated list of nodes from which users can submit jobs in the partition") + configured: Optional[StrictStr] = Field(default=None, description="Nodes - Comma-separated list of nodes which are associated with this partition") + total: Optional[StrictInt] = Field(default=None, description="TotalNodes - Number of nodes available in this partition") + __properties: ClassVar[List[str]] = ["allowed_allocation", "configured", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed_allocation": obj.get("allowed_allocation"), + "configured": obj.get("configured"), + "total": obj.get("total") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_priority.py b/slurmrest_python/models/v0044_partition_info_priority.py new file mode 100644 index 0000000..d235209 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_priority.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoPriority(BaseModel): + """ + V0044PartitionInfoPriority + """ # noqa: E501 + job_factor: Optional[StrictInt] = Field(default=None, description="PriorityJobFactor - Partition factor used by priority/multifactor plugin in calculating job priority") + tier: Optional[StrictInt] = Field(default=None, description="PriorityTier - Controls the order in which the scheduler evaluates jobs from different partitions") + __properties: ClassVar[List[str]] = ["job_factor", "tier"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoPriority from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoPriority from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job_factor": obj.get("job_factor"), + "tier": obj.get("tier") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_qos.py b/slurmrest_python/models/v0044_partition_info_qos.py new file mode 100644 index 0000000..f102e7b --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_qos.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoQos(BaseModel): + """ + V0044PartitionInfoQos + """ # noqa: E501 + allowed: Optional[StrictStr] = Field(default=None, description="AllowQOS - Comma-separated list of Qos which may execute jobs in the partition") + deny: Optional[StrictStr] = Field(default=None, description="DenyQOS - Comma-separated list of Qos which may not execute jobs in the partition") + assigned: Optional[StrictStr] = Field(default=None, description="QOS - QOS name containing limits that will apply to all jobs in this partition") + __properties: ClassVar[List[str]] = ["allowed", "deny", "assigned"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoQos from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoQos from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed": obj.get("allowed"), + "deny": obj.get("deny"), + "assigned": obj.get("assigned") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_timeouts.py b/slurmrest_python/models/v0044_partition_info_timeouts.py new file mode 100644 index 0000000..d3ced16 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_timeouts.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoTimeouts(BaseModel): + """ + V0044PartitionInfoTimeouts + """ # noqa: E501 + resume: Optional[V0044Uint16NoValStruct] = None + suspend: Optional[V0044Uint16NoValStruct] = None + __properties: ClassVar[List[str]] = ["resume", "suspend"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoTimeouts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume + if self.resume: + _dict['resume'] = self.resume.to_dict() + # override the default output from pydantic by calling `to_dict()` of suspend + if self.suspend: + _dict['suspend'] = self.suspend.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoTimeouts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resume": V0044Uint16NoValStruct.from_dict(obj["resume"]) if obj.get("resume") is not None else None, + "suspend": V0044Uint16NoValStruct.from_dict(obj["suspend"]) if obj.get("suspend") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_partition_info_tres.py b/slurmrest_python/models/v0044_partition_info_tres.py new file mode 100644 index 0000000..c04cbd6 --- /dev/null +++ b/slurmrest_python/models/v0044_partition_info_tres.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044PartitionInfoTres(BaseModel): + """ + V0044PartitionInfoTres + """ # noqa: E501 + billing_weights: Optional[StrictStr] = Field(default=None, description="TRESBillingWeights - Billing weights of each tracked TRES type that will be used in calculating the usage of a job") + configured: Optional[StrictStr] = Field(default=None, description="TRES - Number of each applicable TRES type available in this partition") + __properties: ClassVar[List[str]] = ["billing_weights", "configured"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044PartitionInfoTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044PartitionInfoTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "billing_weights": obj.get("billing_weights"), + "configured": obj.get("configured") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_process_exit_code_verbose.py b/slurmrest_python/models/v0044_process_exit_code_verbose.py new file mode 100644 index 0000000..139248d --- /dev/null +++ b/slurmrest_python/models/v0044_process_exit_code_verbose.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_process_exit_code_verbose_signal import V0044ProcessExitCodeVerboseSignal +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044ProcessExitCodeVerbose(BaseModel): + """ + V0044ProcessExitCodeVerbose + """ # noqa: E501 + status: Optional[List[StrictStr]] = Field(default=None, description="Status given by return code") + return_code: Optional[V0044Uint32NoValStruct] = None + signal: Optional[V0044ProcessExitCodeVerboseSignal] = None + __properties: ClassVar[List[str]] = ["status", "return_code", "signal"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED']): + raise ValueError("each list item must be one of ('INVALID', 'PENDING', 'SUCCESS', 'ERROR', 'SIGNALED', 'CORE_DUMPED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ProcessExitCodeVerbose from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of return_code + if self.return_code: + _dict['return_code'] = self.return_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of signal + if self.signal: + _dict['signal'] = self.signal.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ProcessExitCodeVerbose from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "return_code": V0044Uint32NoValStruct.from_dict(obj["return_code"]) if obj.get("return_code") is not None else None, + "signal": V0044ProcessExitCodeVerboseSignal.from_dict(obj["signal"]) if obj.get("signal") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_process_exit_code_verbose_signal.py b/slurmrest_python/models/v0044_process_exit_code_verbose_signal.py new file mode 100644 index 0000000..7c07693 --- /dev/null +++ b/slurmrest_python/models/v0044_process_exit_code_verbose_signal.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044ProcessExitCodeVerboseSignal(BaseModel): + """ + V0044ProcessExitCodeVerboseSignal + """ # noqa: E501 + id: Optional[V0044Uint16NoValStruct] = None + name: Optional[StrictStr] = Field(default=None, description="Signal sent to process (name)") + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ProcessExitCodeVerboseSignal from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of id + if self.id: + _dict['id'] = self.id.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ProcessExitCodeVerboseSignal from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": V0044Uint16NoValStruct.from_dict(obj["id"]) if obj.get("id") is not None else None, + "name": obj.get("name") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos.py b/slurmrest_python/models/v0044_qos.py new file mode 100644 index 0000000..374531d --- /dev/null +++ b/slurmrest_python/models/v0044_qos.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct +from slurmrest_python.models.v0044_qos_limits import V0044QosLimits +from slurmrest_python.models.v0044_qos_preempt import V0044QosPreempt +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044Qos(BaseModel): + """ + V0044Qos + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Arbitrary description") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags, to avoid modifying current values specify NOT_SET") + id: Optional[StrictInt] = Field(default=None, description="Unique ID") + limits: Optional[V0044QosLimits] = None + name: Optional[StrictStr] = Field(default=None, description="Name") + preempt: Optional[V0044QosPreempt] = None + priority: Optional[V0044Uint32NoValStruct] = None + usage_factor: Optional[V0044Float64NoValStruct] = None + usage_threshold: Optional[V0044Float64NoValStruct] = None + __properties: ClassVar[List[str]] = ["description", "flags", "id", "limits", "name", "preempt", "priority", "usage_factor", "usage_threshold"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NOT_SET', 'ADD', 'REMOVE', 'DELETED', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE']): + raise ValueError("each list item must be one of ('NOT_SET', 'ADD', 'REMOVE', 'DELETED', 'PARTITION_MINIMUM_NODE', 'PARTITION_MAXIMUM_NODE', 'PARTITION_TIME_LIMIT', 'ENFORCE_USAGE_THRESHOLD', 'NO_RESERVE', 'REQUIRED_RESERVATION', 'DENY_LIMIT', 'OVERRIDE_PARTITION_QOS', 'PARTITION_QOS', 'NO_DECAY', 'USAGE_FACTOR_SAFE', 'RELATIVE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Qos from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # override the default output from pydantic by calling `to_dict()` of preempt + if self.preempt: + _dict['preempt'] = self.preempt.to_dict() + # override the default output from pydantic by calling `to_dict()` of priority + if self.priority: + _dict['priority'] = self.priority.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_factor + if self.usage_factor: + _dict['usage_factor'] = self.usage_factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of usage_threshold + if self.usage_threshold: + _dict['usage_threshold'] = self.usage_threshold.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Qos from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "flags": obj.get("flags"), + "id": obj.get("id"), + "limits": V0044QosLimits.from_dict(obj["limits"]) if obj.get("limits") is not None else None, + "name": obj.get("name"), + "preempt": V0044QosPreempt.from_dict(obj["preempt"]) if obj.get("preempt") is not None else None, + "priority": V0044Uint32NoValStruct.from_dict(obj["priority"]) if obj.get("priority") is not None else None, + "usage_factor": V0044Float64NoValStruct.from_dict(obj["usage_factor"]) if obj.get("usage_factor") is not None else None, + "usage_threshold": V0044Float64NoValStruct.from_dict(obj["usage_threshold"]) if obj.get("usage_threshold") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits.py b/slurmrest_python/models/v0044_qos_limits.py new file mode 100644 index 0000000..0d8b1e8 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct +from slurmrest_python.models.v0044_qos_limits_max import V0044QosLimitsMax +from slurmrest_python.models.v0044_qos_limits_min import V0044QosLimitsMin +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimits(BaseModel): + """ + V0044QosLimits + """ # noqa: E501 + grace_time: Optional[StrictInt] = Field(default=None, description="GraceTime - Preemption grace time in seconds to be extended to a job which has been selected for preemption") + max: Optional[V0044QosLimitsMax] = None + factor: Optional[V0044Float64NoValStruct] = None + min: Optional[V0044QosLimitsMin] = None + __properties: ClassVar[List[str]] = ["grace_time", "max", "factor", "min"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimits from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + # override the default output from pydantic by calling `to_dict()` of factor + if self.factor: + _dict['factor'] = self.factor.to_dict() + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimits from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "grace_time": obj.get("grace_time"), + "max": V0044QosLimitsMax.from_dict(obj["max"]) if obj.get("max") is not None else None, + "factor": V0044Float64NoValStruct.from_dict(obj["factor"]) if obj.get("factor") is not None else None, + "min": V0044QosLimitsMin.from_dict(obj["min"]) if obj.get("min") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max.py b/slurmrest_python/models/v0044_qos_limits_max.py new file mode 100644 index 0000000..8be97e4 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_max_active_jobs import V0044QosLimitsMaxActiveJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs import V0044QosLimitsMaxJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs import V0044QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0044_qos_limits_max_tres import V0044QosLimitsMaxTres +from slurmrest_python.models.v0044_qos_limits_max_wall_clock import V0044QosLimitsMaxWallClock +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMax(BaseModel): + """ + V0044QosLimitsMax + """ # noqa: E501 + active_jobs: Optional[V0044QosLimitsMaxActiveJobs] = None + jobs: Optional[V0044QosLimitsMaxJobs] = None + tres: Optional[V0044QosLimitsMaxTres] = None + wall_clock: Optional[V0044QosLimitsMaxWallClock] = None + accruing: Optional[V0044QosLimitsMaxJobsActiveJobs] = None + __properties: ClassVar[List[str]] = ["active_jobs", "jobs", "tres", "wall_clock", "accruing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMax from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of jobs + if self.jobs: + _dict['jobs'] = self.jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + # override the default output from pydantic by calling `to_dict()` of wall_clock + if self.wall_clock: + _dict['wall_clock'] = self.wall_clock.to_dict() + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMax from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "active_jobs": V0044QosLimitsMaxActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "jobs": V0044QosLimitsMaxJobs.from_dict(obj["jobs"]) if obj.get("jobs") is not None else None, + "tres": V0044QosLimitsMaxTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None, + "wall_clock": V0044QosLimitsMaxWallClock.from_dict(obj["wall_clock"]) if obj.get("wall_clock") is not None else None, + "accruing": V0044QosLimitsMaxJobsActiveJobs.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_active_jobs.py b/slurmrest_python/models/v0044_qos_limits_max_active_jobs.py new file mode 100644 index 0000000..887cb91 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_active_jobs.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxActiveJobs(BaseModel): + """ + V0044QosLimitsMaxActiveJobs + """ # noqa: E501 + accruing: Optional[V0044Uint32NoValStruct] = None + count: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["accruing", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of accruing + if self.accruing: + _dict['accruing'] = self.accruing.to_dict() + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accruing": V0044Uint32NoValStruct.from_dict(obj["accruing"]) if obj.get("accruing") is not None else None, + "count": V0044Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_jobs.py b/slurmrest_python/models/v0044_qos_limits_max_jobs.py new file mode 100644 index 0000000..8c318f1 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_jobs.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs import V0044QosLimitsMaxJobsActiveJobs +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs_per import V0044QosLimitsMaxJobsActiveJobsPer +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxJobs(BaseModel): + """ + V0044QosLimitsMaxJobs + """ # noqa: E501 + count: Optional[V0044Uint32NoValStruct] = None + active_jobs: Optional[V0044QosLimitsMaxJobsActiveJobs] = None + per: Optional[V0044QosLimitsMaxJobsActiveJobsPer] = None + __properties: ClassVar[List[str]] = ["count", "active_jobs", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of count + if self.count: + _dict['count'] = self.count.to_dict() + # override the default output from pydantic by calling `to_dict()` of active_jobs + if self.active_jobs: + _dict['active_jobs'] = self.active_jobs.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": V0044Uint32NoValStruct.from_dict(obj["count"]) if obj.get("count") is not None else None, + "active_jobs": V0044QosLimitsMaxJobsActiveJobs.from_dict(obj["active_jobs"]) if obj.get("active_jobs") is not None else None, + "per": V0044QosLimitsMaxJobsActiveJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs.py b/slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..b3a73e4 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs_per import V0044QosLimitsMaxJobsActiveJobsPer +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxJobsActiveJobs(BaseModel): + """ + V0044QosLimitsMaxJobsActiveJobs + """ # noqa: E501 + per: Optional[V0044QosLimitsMaxJobsActiveJobsPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxJobsActiveJobs from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxJobsActiveJobs from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0044QosLimitsMaxJobsActiveJobsPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs_per.py b/slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..81d67c6 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxJobsActiveJobsPer(BaseModel): + """ + V0044QosLimitsMaxJobsActiveJobsPer + """ # noqa: E501 + account: Optional[V0044Uint32NoValStruct] = None + user: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxJobsActiveJobsPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxJobsActiveJobsPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": V0044Uint32NoValStruct.from_dict(obj["account"]) if obj.get("account") is not None else None, + "user": V0044Uint32NoValStruct.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_tres.py b/slurmrest_python/models/v0044_qos_limits_max_tres.py new file mode 100644 index 0000000..867921b --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes import V0044QosLimitsMaxTresMinutes +from slurmrest_python.models.v0044_qos_limits_max_tres_per import V0044QosLimitsMaxTresPer +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxTres(BaseModel): + """ + V0044QosLimitsMaxTres + """ # noqa: E501 + total: Optional[List[V0044Tres]] = None + minutes: Optional[V0044QosLimitsMaxTresMinutes] = None + per: Optional[V0044QosLimitsMaxTresPer] = None + __properties: ClassVar[List[str]] = ["total", "minutes", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of minutes + if self.minutes: + _dict['minutes'] = self.minutes.to_dict() + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0044Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "minutes": V0044QosLimitsMaxTresMinutes.from_dict(obj["minutes"]) if obj.get("minutes") is not None else None, + "per": V0044QosLimitsMaxTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_tres_minutes.py b/slurmrest_python/models/v0044_qos_limits_max_tres_minutes.py new file mode 100644 index 0000000..679fd18 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_tres_minutes.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes_per import V0044QosLimitsMaxTresMinutesPer +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxTresMinutes(BaseModel): + """ + V0044QosLimitsMaxTresMinutes + """ # noqa: E501 + total: Optional[List[V0044Tres]] = None + per: Optional[V0044QosLimitsMaxTresMinutesPer] = None + __properties: ClassVar[List[str]] = ["total", "per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTresMinutes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTresMinutes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [V0044Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "per": V0044QosLimitsMaxTresMinutesPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_tres_minutes_per.py b/slurmrest_python/models/v0044_qos_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..1725ecb --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_tres_minutes_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxTresMinutesPer(BaseModel): + """ + V0044QosLimitsMaxTresMinutesPer + """ # noqa: E501 + qos: Optional[List[V0044Tres]] = None + job: Optional[List[V0044Tres]] = None + account: Optional[List[V0044Tres]] = None + user: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["qos", "job", "account", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTresMinutesPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in qos (list) + _items = [] + if self.qos: + for _item_qos in self.qos: + if _item_qos: + _items.append(_item_qos.to_dict()) + _dict['qos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTresMinutesPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": [V0044Tres.from_dict(_item) for _item in obj["qos"]] if obj.get("qos") is not None else None, + "job": [V0044Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "account": [V0044Tres.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "user": [V0044Tres.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_tres_per.py b/slurmrest_python/models/v0044_qos_limits_max_tres_per.py new file mode 100644 index 0000000..ef69f52 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_tres_per.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxTresPer(BaseModel): + """ + V0044QosLimitsMaxTresPer + """ # noqa: E501 + account: Optional[List[V0044Tres]] = None + job: Optional[List[V0044Tres]] = None + node: Optional[List[V0044Tres]] = None + user: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["account", "job", "node", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in account (list) + _items = [] + if self.account: + for _item_account in self.account: + if _item_account: + _items.append(_item_account.to_dict()) + _dict['account'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in node (list) + _items = [] + if self.node: + for _item_node in self.node: + if _item_node: + _items.append(_item_node.to_dict()) + _dict['node'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in user (list) + _items = [] + if self.user: + for _item_user in self.user: + if _item_user: + _items.append(_item_user.to_dict()) + _dict['user'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": [V0044Tres.from_dict(_item) for _item in obj["account"]] if obj.get("account") is not None else None, + "job": [V0044Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None, + "node": [V0044Tres.from_dict(_item) for _item in obj["node"]] if obj.get("node") is not None else None, + "user": [V0044Tres.from_dict(_item) for _item in obj["user"]] if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_wall_clock.py b/slurmrest_python/models/v0044_qos_limits_max_wall_clock.py new file mode 100644 index 0000000..ac9cf82 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_wall_clock.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_max_wall_clock_per import V0044QosLimitsMaxWallClockPer +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxWallClock(BaseModel): + """ + V0044QosLimitsMaxWallClock + """ # noqa: E501 + per: Optional[V0044QosLimitsMaxWallClockPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxWallClock from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxWallClock from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0044QosLimitsMaxWallClockPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_max_wall_clock_per.py b/slurmrest_python/models/v0044_qos_limits_max_wall_clock_per.py new file mode 100644 index 0000000..0ee8e05 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_max_wall_clock_per.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMaxWallClockPer(BaseModel): + """ + V0044QosLimitsMaxWallClockPer + """ # noqa: E501 + qos: Optional[V0044Uint32NoValStruct] = None + job: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["qos", "job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxWallClockPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of qos + if self.qos: + _dict['qos'] = self.qos.to_dict() + # override the default output from pydantic by calling `to_dict()` of job + if self.job: + _dict['job'] = self.job.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMaxWallClockPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": V0044Uint32NoValStruct.from_dict(obj["qos"]) if obj.get("qos") is not None else None, + "job": V0044Uint32NoValStruct.from_dict(obj["job"]) if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_min.py b/slurmrest_python/models/v0044_qos_limits_min.py new file mode 100644 index 0000000..b95e1ad --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_min.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_min_tres import V0044QosLimitsMinTres +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMin(BaseModel): + """ + V0044QosLimitsMin + """ # noqa: E501 + priority_threshold: Optional[V0044Uint32NoValStruct] = None + tres: Optional[V0044QosLimitsMinTres] = None + __properties: ClassVar[List[str]] = ["priority_threshold", "tres"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of priority_threshold + if self.priority_threshold: + _dict['priority_threshold'] = self.priority_threshold.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "priority_threshold": V0044Uint32NoValStruct.from_dict(obj["priority_threshold"]) if obj.get("priority_threshold") is not None else None, + "tres": V0044QosLimitsMinTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_min_tres.py b/slurmrest_python/models/v0044_qos_limits_min_tres.py new file mode 100644 index 0000000..1fa0bd9 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_min_tres.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_qos_limits_min_tres_per import V0044QosLimitsMinTresPer +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMinTres(BaseModel): + """ + V0044QosLimitsMinTres + """ # noqa: E501 + per: Optional[V0044QosLimitsMinTresPer] = None + __properties: ClassVar[List[str]] = ["per"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMinTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of per + if self.per: + _dict['per'] = self.per.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMinTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "per": V0044QosLimitsMinTresPer.from_dict(obj["per"]) if obj.get("per") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_limits_min_tres_per.py b/slurmrest_python/models/v0044_qos_limits_min_tres_per.py new file mode 100644 index 0000000..32056b8 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_limits_min_tres_per.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosLimitsMinTresPer(BaseModel): + """ + V0044QosLimitsMinTresPer + """ # noqa: E501 + job: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["job"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosLimitsMinTresPer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in job (list) + _items = [] + if self.job: + for _item_job in self.job: + if _item_job: + _items.append(_item_job.to_dict()) + _dict['job'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosLimitsMinTresPer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": [V0044Tres.from_dict(_item) for _item in obj["job"]] if obj.get("job") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_qos_preempt.py b/slurmrest_python/models/v0044_qos_preempt.py new file mode 100644 index 0000000..c207ac1 --- /dev/null +++ b/slurmrest_python/models/v0044_qos_preempt.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044QosPreempt(BaseModel): + """ + V0044QosPreempt + """ # noqa: E501 + list: Optional[List[StrictStr]] = None + mode: Optional[List[StrictStr]] = Field(default=None, description="PreemptMode - Mechanism used to preempt jobs or enable gang scheduling") + exempt_time: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["list", "mode", "exempt_time"] + + @field_validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG']): + raise ValueError("each list item must be one of ('DISABLED', 'SUSPEND', 'REQUEUE', 'CANCEL', 'GANG')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044QosPreempt from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of exempt_time + if self.exempt_time: + _dict['exempt_time'] = self.exempt_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044QosPreempt from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "list": obj.get("list"), + "mode": obj.get("mode"), + "exempt_time": V0044Uint32NoValStruct.from_dict(obj["exempt_time"]) if obj.get("exempt_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_reservation_core_spec.py b/slurmrest_python/models/v0044_reservation_core_spec.py new file mode 100644 index 0000000..b40da46 --- /dev/null +++ b/slurmrest_python/models/v0044_reservation_core_spec.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044ReservationCoreSpec(BaseModel): + """ + V0044ReservationCoreSpec + """ # noqa: E501 + node: Optional[StrictStr] = Field(default=None, description="Name of reserved node") + core: Optional[StrictStr] = Field(default=None, description="IDs of reserved cores") + __properties: ClassVar[List[str]] = ["node", "core"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ReservationCoreSpec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ReservationCoreSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "node": obj.get("node"), + "core": obj.get("core") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_reservation_desc_msg.py b/slurmrest_python/models/v0044_reservation_desc_msg.py new file mode 100644 index 0000000..6dcce07 --- /dev/null +++ b/slurmrest_python/models/v0044_reservation_desc_msg.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_reservation_info_purge_completed import V0044ReservationInfoPurgeCompleted +from slurmrest_python.models.v0044_tres import V0044Tres +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044ReservationDescMsg(BaseModel): + """ + V0044ReservationDescMsg + """ # noqa: E501 + accounts: Optional[List[StrictStr]] = None + burst_buffer: Optional[StrictStr] = Field(default=None, description="BurstBuffer") + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary string") + core_count: Optional[V0044Uint32NoValStruct] = None + duration: Optional[V0044Uint32NoValStruct] = None + end_time: Optional[V0044Uint64NoValStruct] = None + features: Optional[StrictStr] = Field(default=None, description="Requested node features. Multiple values may be \"&\" separated if all features are required (AND operation) or separated by \"|\" if any of the specified features are required (OR operation). Parenthesis are also supported for features to be ANDed together with counts of nodes having the specified features.") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this reservation. Note, to remove flags use \"NO_\" prefixed flag excluding NO_HOLD_JOBS_AFTER_END") + groups: Optional[List[StrictStr]] = None + licenses: Optional[List[StrictStr]] = None + max_start_delay: Optional[V0044Uint32NoValStruct] = None + name: Optional[StrictStr] = Field(default=None, description="ReservationName") + node_count: Optional[V0044Uint32NoValStruct] = None + node_list: Optional[List[StrictStr]] = None + partition: Optional[StrictStr] = Field(default=None, description="Partition used to reserve nodes from. This will attempt to allocate all nodes in the specified partition unless you request fewer resources than are available with core_cnt, node_cnt or tres.") + purge_completed: Optional[V0044ReservationInfoPurgeCompleted] = None + start_time: Optional[V0044Uint64NoValStruct] = None + tres: Optional[List[V0044Tres]] = None + users: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "burst_buffer", "comment", "core_count", "duration", "end_time", "features", "flags", "groups", "licenses", "max_start_delay", "name", "node_count", "node_list", "partition", "purge_completed", "start_time", "tres", "users"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'NO_ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'REPLACE_DOWN', 'NO_PURGE_COMP', 'MAGNETIC', 'NO_MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'FORCE_START', 'NO_USER_DELETE', 'REOCCURRING', 'TRES_PER_NODE']): + raise ValueError("each list item must be one of ('MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'NO_ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'REPLACE_DOWN', 'NO_PURGE_COMP', 'MAGNETIC', 'NO_MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'FORCE_START', 'NO_USER_DELETE', 'REOCCURRING', 'TRES_PER_NODE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ReservationDescMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of core_count + if self.core_count: + _dict['core_count'] = self.core_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_start_delay + if self.max_start_delay: + _dict['max_start_delay'] = self.max_start_delay.to_dict() + # override the default output from pydantic by calling `to_dict()` of node_count + if self.node_count: + _dict['node_count'] = self.node_count.to_dict() + # override the default output from pydantic by calling `to_dict()` of purge_completed + if self.purge_completed: + _dict['purge_completed'] = self.purge_completed.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tres (list) + _items = [] + if self.tres: + for _item_tres in self.tres: + if _item_tres: + _items.append(_item_tres.to_dict()) + _dict['tres'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ReservationDescMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "burst_buffer": obj.get("burst_buffer"), + "comment": obj.get("comment"), + "core_count": V0044Uint32NoValStruct.from_dict(obj["core_count"]) if obj.get("core_count") is not None else None, + "duration": V0044Uint32NoValStruct.from_dict(obj["duration"]) if obj.get("duration") is not None else None, + "end_time": V0044Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "features": obj.get("features"), + "flags": obj.get("flags"), + "groups": obj.get("groups"), + "licenses": obj.get("licenses"), + "max_start_delay": V0044Uint32NoValStruct.from_dict(obj["max_start_delay"]) if obj.get("max_start_delay") is not None else None, + "name": obj.get("name"), + "node_count": V0044Uint32NoValStruct.from_dict(obj["node_count"]) if obj.get("node_count") is not None else None, + "node_list": obj.get("node_list"), + "partition": obj.get("partition"), + "purge_completed": V0044ReservationInfoPurgeCompleted.from_dict(obj["purge_completed"]) if obj.get("purge_completed") is not None else None, + "start_time": V0044Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "tres": [V0044Tres.from_dict(_item) for _item in obj["tres"]] if obj.get("tres") is not None else None, + "users": obj.get("users") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_reservation_info.py b/slurmrest_python/models/v0044_reservation_info.py new file mode 100644 index 0000000..f71e781 --- /dev/null +++ b/slurmrest_python/models/v0044_reservation_info.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_reservation_core_spec import V0044ReservationCoreSpec +from slurmrest_python.models.v0044_reservation_info_purge_completed import V0044ReservationInfoPurgeCompleted +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044ReservationInfo(BaseModel): + """ + V0044ReservationInfo + """ # noqa: E501 + accounts: Optional[StrictStr] = Field(default=None, description="Comma-separated list of permitted accounts") + burst_buffer: Optional[StrictStr] = Field(default=None, description="BurstBuffer - Burst buffer resources reserved") + core_count: Optional[StrictInt] = Field(default=None, description="CoreCnt - Number of cores reserved") + core_specializations: Optional[List[V0044ReservationCoreSpec]] = None + end_time: Optional[V0044Uint64NoValStruct] = None + features: Optional[StrictStr] = Field(default=None, description="Features - Expression describing the reservation's required node features") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this reservation") + groups: Optional[StrictStr] = Field(default=None, description="Groups - Comma-separated list of permitted groups") + licenses: Optional[StrictStr] = Field(default=None, description="Licenses - Comma-separated list of licenses reserved") + max_start_delay: Optional[StrictInt] = Field(default=None, description="MaxStartDelay - Maximum time an eligible job not requesting this reservation can delay a job requesting it in seconds") + name: Optional[StrictStr] = Field(default=None, description="ReservationName - Name of the reservation") + node_count: Optional[StrictInt] = Field(default=None, description="NodeCnt - Number of nodes reserved") + node_list: Optional[StrictStr] = Field(default=None, description="Nodes - Comma-separated list of node names and/or node ranges reserved") + partition: Optional[StrictStr] = Field(default=None, description="PartitionName - Partition used to reserve nodes from") + purge_completed: Optional[V0044ReservationInfoPurgeCompleted] = None + start_time: Optional[V0044Uint64NoValStruct] = None + watts: Optional[V0044Uint32NoValStruct] = None + tres: Optional[StrictStr] = Field(default=None, description="Comma-separated list of required TRES") + users: Optional[StrictStr] = Field(default=None, description="Comma-separated list of permitted users") + __properties: ClassVar[List[str]] = ["accounts", "burst_buffer", "core_count", "core_specializations", "end_time", "features", "flags", "groups", "licenses", "max_start_delay", "name", "node_count", "node_list", "partition", "purge_completed", "start_time", "watts", "tres", "users"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'NO_ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'REPLACE_DOWN', 'NO_PURGE_COMP', 'MAGNETIC', 'NO_MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'FORCE_START', 'NO_USER_DELETE', 'REOCCURRING', 'TRES_PER_NODE']): + raise ValueError("each list item must be one of ('MAINT', 'NO_MAINT', 'DAILY', 'NO_DAILY', 'WEEKLY', 'NO_WEEKLY', 'IGNORE_JOBS', 'NO_IGNORE_JOBS', 'ANY_NODES', 'NO_ANY_NODES', 'STATIC', 'NO_STATIC', 'PART_NODES', 'NO_PART_NODES', 'OVERLAP', 'SPEC_NODES', 'TIME_FLOAT', 'REPLACE', 'ALL_NODES', 'PURGE_COMP', 'WEEKDAY', 'NO_WEEKDAY', 'WEEKEND', 'NO_WEEKEND', 'FLEX', 'NO_FLEX', 'DURATION_PLUS', 'DURATION_MINUS', 'NO_HOLD_JOBS_AFTER_END', 'REPLACE_DOWN', 'NO_PURGE_COMP', 'MAGNETIC', 'NO_MAGNETIC', 'SKIP', 'HOURLY', 'NO_HOURLY', 'USER_DELETE', 'FORCE_START', 'NO_USER_DELETE', 'REOCCURRING', 'TRES_PER_NODE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ReservationInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in core_specializations (list) + _items = [] + if self.core_specializations: + for _item_core_specializations in self.core_specializations: + if _item_core_specializations: + _items.append(_item_core_specializations.to_dict()) + _dict['core_specializations'] = _items + # override the default output from pydantic by calling `to_dict()` of end_time + if self.end_time: + _dict['end_time'] = self.end_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of purge_completed + if self.purge_completed: + _dict['purge_completed'] = self.purge_completed.to_dict() + # override the default output from pydantic by calling `to_dict()` of start_time + if self.start_time: + _dict['start_time'] = self.start_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of watts + if self.watts: + _dict['watts'] = self.watts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ReservationInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "burst_buffer": obj.get("burst_buffer"), + "core_count": obj.get("core_count"), + "core_specializations": [V0044ReservationCoreSpec.from_dict(_item) for _item in obj["core_specializations"]] if obj.get("core_specializations") is not None else None, + "end_time": V0044Uint64NoValStruct.from_dict(obj["end_time"]) if obj.get("end_time") is not None else None, + "features": obj.get("features"), + "flags": obj.get("flags"), + "groups": obj.get("groups"), + "licenses": obj.get("licenses"), + "max_start_delay": obj.get("max_start_delay"), + "name": obj.get("name"), + "node_count": obj.get("node_count"), + "node_list": obj.get("node_list"), + "partition": obj.get("partition"), + "purge_completed": V0044ReservationInfoPurgeCompleted.from_dict(obj["purge_completed"]) if obj.get("purge_completed") is not None else None, + "start_time": V0044Uint64NoValStruct.from_dict(obj["start_time"]) if obj.get("start_time") is not None else None, + "watts": V0044Uint32NoValStruct.from_dict(obj["watts"]) if obj.get("watts") is not None else None, + "tres": obj.get("tres"), + "users": obj.get("users") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_reservation_info_purge_completed.py b/slurmrest_python/models/v0044_reservation_info_purge_completed.py new file mode 100644 index 0000000..4b55531 --- /dev/null +++ b/slurmrest_python/models/v0044_reservation_info_purge_completed.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044ReservationInfoPurgeCompleted(BaseModel): + """ + V0044ReservationInfoPurgeCompleted + """ # noqa: E501 + time: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ReservationInfoPurgeCompleted from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ReservationInfoPurgeCompleted from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0044Uint32NoValStruct.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_reservation_mod_req.py b/slurmrest_python/models/v0044_reservation_mod_req.py new file mode 100644 index 0000000..f124255 --- /dev/null +++ b/slurmrest_python/models/v0044_reservation_mod_req.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg +from typing import Optional, Set +from typing_extensions import Self + +class V0044ReservationModReq(BaseModel): + """ + V0044ReservationModReq + """ # noqa: E501 + reservations: Optional[List[V0044ReservationDescMsg]] = None + __properties: ClassVar[List[str]] = ["reservations"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ReservationModReq from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in reservations (list) + _items = [] + if self.reservations: + for _item_reservations in self.reservations: + if _item_reservations: + _items.append(_item_reservations.to_dict()) + _dict['reservations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ReservationModReq from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservations": [V0044ReservationDescMsg.from_dict(_item) for _item in obj["reservations"]] if obj.get("reservations") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_rollup_stats.py b/slurmrest_python/models/v0044_rollup_stats.py new file mode 100644 index 0000000..7e02a03 --- /dev/null +++ b/slurmrest_python/models/v0044_rollup_stats.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_rollup_stats_daily import V0044RollupStatsDaily +from slurmrest_python.models.v0044_rollup_stats_hourly import V0044RollupStatsHourly +from slurmrest_python.models.v0044_rollup_stats_monthly import V0044RollupStatsMonthly +from typing import Optional, Set +from typing_extensions import Self + +class V0044RollupStats(BaseModel): + """ + V0044RollupStats + """ # noqa: E501 + hourly: Optional[V0044RollupStatsHourly] = None + daily: Optional[V0044RollupStatsDaily] = None + monthly: Optional[V0044RollupStatsMonthly] = None + __properties: ClassVar[List[str]] = ["hourly", "daily", "monthly"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044RollupStats from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of hourly + if self.hourly: + _dict['hourly'] = self.hourly.to_dict() + # override the default output from pydantic by calling `to_dict()` of daily + if self.daily: + _dict['daily'] = self.daily.to_dict() + # override the default output from pydantic by calling `to_dict()` of monthly + if self.monthly: + _dict['monthly'] = self.monthly.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044RollupStats from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hourly": V0044RollupStatsHourly.from_dict(obj["hourly"]) if obj.get("hourly") is not None else None, + "daily": V0044RollupStatsDaily.from_dict(obj["daily"]) if obj.get("daily") is not None else None, + "monthly": V0044RollupStatsMonthly.from_dict(obj["monthly"]) if obj.get("monthly") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_rollup_stats_daily.py b/slurmrest_python/models/v0044_rollup_stats_daily.py new file mode 100644 index 0000000..3e85b1d --- /dev/null +++ b/slurmrest_python/models/v0044_rollup_stats_daily.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration +from typing import Optional, Set +from typing_extensions import Self + +class V0044RollupStatsDaily(BaseModel): + """ + V0044RollupStatsDaily + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of daily rollups since last_run") + last_run: Optional[StrictInt] = Field(default=None, description="Last time daily rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + duration: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration] = None + __properties: ClassVar[List[str]] = ["count", "last_run", "duration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044RollupStatsDaily from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044RollupStatsDaily from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "last_run": obj.get("last_run"), + "duration": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration.from_dict(obj["duration"]) if obj.get("duration") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_rollup_stats_hourly.py b/slurmrest_python/models/v0044_rollup_stats_hourly.py new file mode 100644 index 0000000..b4b3115 --- /dev/null +++ b/slurmrest_python/models/v0044_rollup_stats_hourly.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration +from typing import Optional, Set +from typing_extensions import Self + +class V0044RollupStatsHourly(BaseModel): + """ + V0044RollupStatsHourly + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of hourly rollups since last_run") + last_run: Optional[StrictInt] = Field(default=None, description="Last time hourly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + duration: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration] = None + __properties: ClassVar[List[str]] = ["count", "last_run", "duration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044RollupStatsHourly from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044RollupStatsHourly from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "last_run": obj.get("last_run"), + "duration": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration.from_dict(obj["duration"]) if obj.get("duration") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_rollup_stats_monthly.py b/slurmrest_python/models/v0044_rollup_stats_monthly.py new file mode 100644 index 0000000..fbb5491 --- /dev/null +++ b/slurmrest_python/models/v0044_rollup_stats_monthly.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration +from typing import Optional, Set +from typing_extensions import Self + +class V0044RollupStatsMonthly(BaseModel): + """ + V0044RollupStatsMonthly + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of monthly rollups since last_run") + last_run: Optional[StrictInt] = Field(default=None, description="Last time monthly rollup ran (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + duration: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration] = None + __properties: ClassVar[List[str]] = ["count", "last_run", "duration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044RollupStatsMonthly from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of duration + if self.duration: + _dict['duration'] = self.duration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044RollupStatsMonthly from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "last_run": obj.get("last_run"), + "duration": V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration.from_dict(obj["duration"]) if obj.get("duration") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_schedule_exit_fields.py b/slurmrest_python/models/v0044_schedule_exit_fields.py new file mode 100644 index 0000000..5a2d581 --- /dev/null +++ b/slurmrest_python/models/v0044_schedule_exit_fields.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044ScheduleExitFields(BaseModel): + """ + V0044ScheduleExitFields + """ # noqa: E501 + end_job_queue: Optional[StrictInt] = Field(default=None, description="Reached end of queue") + default_queue_depth: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to be tested") + max_job_start: Optional[StrictInt] = Field(default=None, description="Reached number of jobs allowed to start") + max_rpc_cnt: Optional[StrictInt] = Field(default=None, description="Reached RPC limit") + max_sched_time: Optional[StrictInt] = Field(default=None, description="Reached maximum allowed scheduler time") + licenses: Optional[StrictInt] = Field(default=None, description="Blocked on licenses") + __properties: ClassVar[List[str]] = ["end_job_queue", "default_queue_depth", "max_job_start", "max_rpc_cnt", "max_sched_time", "licenses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044ScheduleExitFields from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044ScheduleExitFields from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "end_job_queue": obj.get("end_job_queue"), + "default_queue_depth": obj.get("default_queue_depth"), + "max_job_start": obj.get("max_job_start"), + "max_rpc_cnt": obj.get("max_rpc_cnt"), + "max_sched_time": obj.get("max_sched_time"), + "licenses": obj.get("licenses") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_shares_float128_tres.py b/slurmrest_python/models/v0044_shares_float128_tres.py new file mode 100644 index 0000000..581be44 --- /dev/null +++ b/slurmrest_python/models/v0044_shares_float128_tres.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class V0044SharesFloat128Tres(BaseModel): + """ + V0044SharesFloat128Tres + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="TRES value") + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044SharesFloat128Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044SharesFloat128Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": obj.get("value") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_shares_resp_msg.py b/slurmrest_python/models/v0044_shares_resp_msg.py new file mode 100644 index 0000000..91f6217 --- /dev/null +++ b/slurmrest_python/models/v0044_shares_resp_msg.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_shares_obj_wrap import V0044AssocSharesObjWrap +from typing import Optional, Set +from typing_extensions import Self + +class V0044SharesRespMsg(BaseModel): + """ + V0044SharesRespMsg + """ # noqa: E501 + shares: Optional[List[V0044AssocSharesObjWrap]] = None + total_shares: Optional[StrictInt] = Field(default=None, description="Total number of shares") + __properties: ClassVar[List[str]] = ["shares", "total_shares"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044SharesRespMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in shares (list) + _items = [] + if self.shares: + for _item_shares in self.shares: + if _item_shares: + _items.append(_item_shares.to_dict()) + _dict['shares'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044SharesRespMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shares": [V0044AssocSharesObjWrap.from_dict(_item) for _item in obj["shares"]] if obj.get("shares") is not None else None, + "total_shares": obj.get("total_shares") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_shares_uint64_tres.py b/slurmrest_python/models/v0044_shares_uint64_tres.py new file mode 100644 index 0000000..3b6c1e9 --- /dev/null +++ b/slurmrest_python/models/v0044_shares_uint64_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044SharesUint64Tres(BaseModel): + """ + V0044SharesUint64Tres + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="TRES name") + value: Optional[V0044Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044SharesUint64Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of value + if self.value: + _dict['value'] = self.value.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044SharesUint64Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": V0044Uint64NoValStruct.from_dict(obj["value"]) if obj.get("value") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_slurm_step_id.py b/slurmrest_python/models/v0044_slurm_step_id.py new file mode 100644 index 0000000..6004c34 --- /dev/null +++ b/slurmrest_python/models/v0044_slurm_step_id.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044SlurmStepId(BaseModel): + """ + V0044SlurmStepId + """ # noqa: E501 + sluid: Optional[StrictStr] = Field(default=None, description="SLUID (Slurm Lexicographically-sortable Unique ID)") + job_id: Optional[V0044Uint32NoValStruct] = None + step_het_component: Optional[V0044Uint32NoValStruct] = None + step_id: Optional[StrictStr] = Field(default=None, description="Job step ID") + __properties: ClassVar[List[str]] = ["sluid", "job_id", "step_het_component", "step_id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044SlurmStepId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of job_id + if self.job_id: + _dict['job_id'] = self.job_id.to_dict() + # override the default output from pydantic by calling `to_dict()` of step_het_component + if self.step_het_component: + _dict['step_het_component'] = self.step_het_component.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044SlurmStepId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sluid": obj.get("sluid"), + "job_id": V0044Uint32NoValStruct.from_dict(obj["job_id"]) if obj.get("job_id") is not None else None, + "step_het_component": V0044Uint32NoValStruct.from_dict(obj["step_het_component"]) if obj.get("step_het_component") is not None else None, + "step_id": obj.get("step_id") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_slurmdbd_ping.py b/slurmrest_python/models/v0044_slurmdbd_ping.py new file mode 100644 index 0000000..f74bfed --- /dev/null +++ b/slurmrest_python/models/v0044_slurmdbd_ping.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0044SlurmdbdPing(BaseModel): + """ + V0044SlurmdbdPing + """ # noqa: E501 + hostname: StrictStr = Field(description="Target for ping") + responding: StrictBool = Field(description="If ping RPC responded with pong from slurmdbd") + latency: StrictInt = Field(description="Number of microseconds it took to successfully ping or timeout") + primary: StrictBool = Field(description="Is responding slurmdbd the primary controller (Is responding slurmctld the primary controller)") + __properties: ClassVar[List[str]] = ["hostname", "responding", "latency", "primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044SlurmdbdPing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044SlurmdbdPing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "responding": obj.get("responding"), + "latency": obj.get("latency"), + "primary": obj.get("primary") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_msg.py b/slurmrest_python/models/v0044_stats_msg.py new file mode 100644 index 0000000..4d200ba --- /dev/null +++ b/slurmrest_python/models/v0044_stats_msg.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_bf_exit_fields import V0044BfExitFields +from slurmrest_python.models.v0044_schedule_exit_fields import V0044ScheduleExitFields +from slurmrest_python.models.v0044_stats_msg_rpc_dump import V0044StatsMsgRpcDump +from slurmrest_python.models.v0044_stats_msg_rpc_queue import V0044StatsMsgRpcQueue +from slurmrest_python.models.v0044_stats_msg_rpc_type import V0044StatsMsgRpcType +from slurmrest_python.models.v0044_stats_msg_rpc_user import V0044StatsMsgRpcUser +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsMsg(BaseModel): + """ + V0044StatsMsg + """ # noqa: E501 + parts_packed: Optional[StrictInt] = Field(default=None, description="Zero if only RPC statistic included") + req_time: Optional[V0044Uint64NoValStruct] = None + req_time_start: Optional[V0044Uint64NoValStruct] = None + server_thread_count: Optional[StrictInt] = Field(default=None, description="Number of current active slurmctld threads") + agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of enqueued outgoing RPC requests in an internal retry list") + agent_count: Optional[StrictInt] = Field(default=None, description="Number of agent threads") + agent_thread_count: Optional[StrictInt] = Field(default=None, description="Total number of active threads created by all agent threads") + dbd_agent_queue_size: Optional[StrictInt] = Field(default=None, description="Number of messages for SlurmDBD that are queued") + gettimeofday_latency: Optional[StrictInt] = Field(default=None, description="Latency of 1000 calls to the gettimeofday() syscall in microseconds, as measured at controller startup") + schedule_cycle_max: Optional[StrictInt] = Field(default=None, description="Max time of any scheduling cycle in microseconds since last reset") + schedule_cycle_last: Optional[StrictInt] = Field(default=None, description="Time in microseconds for last scheduling cycle") + schedule_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total run time in microseconds for all scheduling cycles since last reset") + schedule_cycle_total: Optional[StrictInt] = Field(default=None, description="Number of scheduling cycles since last reset") + schedule_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds for all scheduling cycles since last reset") + schedule_cycle_mean_depth: Optional[StrictInt] = Field(default=None, description="Mean of the number of jobs processed in a scheduling cycle") + schedule_cycle_per_minute: Optional[StrictInt] = Field(default=None, description="Number of scheduling executions per minute") + schedule_cycle_depth: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed in scheduling cycles") + schedule_exit: Optional[V0044ScheduleExitFields] = None + schedule_queue_length: Optional[StrictInt] = Field(default=None, description="Number of jobs pending in queue") + jobs_submitted: Optional[StrictInt] = Field(default=None, description="Number of jobs submitted since last reset") + jobs_started: Optional[StrictInt] = Field(default=None, description="Number of jobs started since last reset") + jobs_completed: Optional[StrictInt] = Field(default=None, description="Number of jobs completed since last reset") + jobs_canceled: Optional[StrictInt] = Field(default=None, description="Number of jobs canceled since the last reset") + jobs_failed: Optional[StrictInt] = Field(default=None, description="Number of jobs failed due to slurmd or other internal issues since last reset") + jobs_pending: Optional[StrictInt] = Field(default=None, description="Number of jobs pending at the time of listed in job_state_ts") + jobs_running: Optional[StrictInt] = Field(default=None, description="Number of jobs running at the time of listed in job_state_ts") + job_states_ts: Optional[V0044Uint64NoValStruct] = None + bf_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last slurm start") + bf_last_backfilled_jobs: Optional[StrictInt] = Field(default=None, description="Number of jobs started through backfilling since last reset") + bf_backfilled_het_jobs: Optional[StrictInt] = Field(default=None, description="Number of heterogeneous job components started through backfilling since last Slurm start") + bf_cycle_counter: Optional[StrictInt] = Field(default=None, description="Number of backfill scheduling cycles since last reset") + bf_cycle_mean: Optional[StrictInt] = Field(default=None, description="Mean time in microseconds of backfilling scheduling cycles since last reset") + bf_depth_mean: Optional[StrictInt] = Field(default=None, description="Mean number of eligible to run jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_mean_try: Optional[StrictInt] = Field(default=None, description="The subset of Depth Mean that the backfill scheduler attempted to schedule") + bf_cycle_sum: Optional[StrictInt] = Field(default=None, description="Total time in microseconds of backfilling scheduling cycles since last reset") + bf_cycle_last: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of last backfill scheduling cycle") + bf_cycle_max: Optional[StrictInt] = Field(default=None, description="Execution time in microseconds of longest backfill scheduling cycle") + bf_exit: Optional[V0044BfExitFields] = None + bf_last_depth: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle") + bf_last_depth_try: Optional[StrictInt] = Field(default=None, description="Number of processed jobs during last backfilling scheduling cycle that had a chance to start using available resources") + bf_depth_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs processed during all backfilling scheduling cycles since last reset") + bf_depth_try_sum: Optional[StrictInt] = Field(default=None, description="Subset of bf_depth_sum that the backfill scheduler attempted to schedule") + bf_queue_len: Optional[StrictInt] = Field(default=None, description="Number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_mean: Optional[StrictInt] = Field(default=None, description="Mean number of jobs pending to be processed by backfilling algorithm") + bf_queue_len_sum: Optional[StrictInt] = Field(default=None, description="Total number of jobs pending to be processed by backfilling algorithm since last reset") + bf_table_size: Optional[StrictInt] = Field(default=None, description="Number of different time slots tested by the backfill scheduler in its last iteration") + bf_table_size_sum: Optional[StrictInt] = Field(default=None, description="Total number of different time slots tested by the backfill scheduler") + bf_table_size_mean: Optional[StrictInt] = Field(default=None, description="Mean number of different time slots tested by the backfill scheduler") + bf_when_last_cycle: Optional[V0044Uint64NoValStruct] = None + bf_active: Optional[StrictBool] = Field(default=None, description="Backfill scheduler currently running") + rpcs_by_message_type: Optional[List[V0044StatsMsgRpcType]] = Field(default=None, description="RPCs by type") + rpcs_by_user: Optional[List[V0044StatsMsgRpcUser]] = Field(default=None, description="RPCs by user") + pending_rpcs: Optional[List[V0044StatsMsgRpcQueue]] = Field(default=None, description="Pending RPCs") + pending_rpcs_by_hostlist: Optional[List[V0044StatsMsgRpcDump]] = Field(default=None, description="Pending RPCs by hostlist") + __properties: ClassVar[List[str]] = ["parts_packed", "req_time", "req_time_start", "server_thread_count", "agent_queue_size", "agent_count", "agent_thread_count", "dbd_agent_queue_size", "gettimeofday_latency", "schedule_cycle_max", "schedule_cycle_last", "schedule_cycle_sum", "schedule_cycle_total", "schedule_cycle_mean", "schedule_cycle_mean_depth", "schedule_cycle_per_minute", "schedule_cycle_depth", "schedule_exit", "schedule_queue_length", "jobs_submitted", "jobs_started", "jobs_completed", "jobs_canceled", "jobs_failed", "jobs_pending", "jobs_running", "job_states_ts", "bf_backfilled_jobs", "bf_last_backfilled_jobs", "bf_backfilled_het_jobs", "bf_cycle_counter", "bf_cycle_mean", "bf_depth_mean", "bf_depth_mean_try", "bf_cycle_sum", "bf_cycle_last", "bf_cycle_max", "bf_exit", "bf_last_depth", "bf_last_depth_try", "bf_depth_sum", "bf_depth_try_sum", "bf_queue_len", "bf_queue_len_mean", "bf_queue_len_sum", "bf_table_size", "bf_table_size_sum", "bf_table_size_mean", "bf_when_last_cycle", "bf_active", "rpcs_by_message_type", "rpcs_by_user", "pending_rpcs", "pending_rpcs_by_hostlist"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of req_time + if self.req_time: + _dict['req_time'] = self.req_time.to_dict() + # override the default output from pydantic by calling `to_dict()` of req_time_start + if self.req_time_start: + _dict['req_time_start'] = self.req_time_start.to_dict() + # override the default output from pydantic by calling `to_dict()` of schedule_exit + if self.schedule_exit: + _dict['schedule_exit'] = self.schedule_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_states_ts + if self.job_states_ts: + _dict['job_states_ts'] = self.job_states_ts.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_exit + if self.bf_exit: + _dict['bf_exit'] = self.bf_exit.to_dict() + # override the default output from pydantic by calling `to_dict()` of bf_when_last_cycle + if self.bf_when_last_cycle: + _dict['bf_when_last_cycle'] = self.bf_when_last_cycle.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_message_type (list) + _items = [] + if self.rpcs_by_message_type: + for _item_rpcs_by_message_type in self.rpcs_by_message_type: + if _item_rpcs_by_message_type: + _items.append(_item_rpcs_by_message_type.to_dict()) + _dict['rpcs_by_message_type'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rpcs_by_user (list) + _items = [] + if self.rpcs_by_user: + for _item_rpcs_by_user in self.rpcs_by_user: + if _item_rpcs_by_user: + _items.append(_item_rpcs_by_user.to_dict()) + _dict['rpcs_by_user'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs (list) + _items = [] + if self.pending_rpcs: + for _item_pending_rpcs in self.pending_rpcs: + if _item_pending_rpcs: + _items.append(_item_pending_rpcs.to_dict()) + _dict['pending_rpcs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in pending_rpcs_by_hostlist (list) + _items = [] + if self.pending_rpcs_by_hostlist: + for _item_pending_rpcs_by_hostlist in self.pending_rpcs_by_hostlist: + if _item_pending_rpcs_by_hostlist: + _items.append(_item_pending_rpcs_by_hostlist.to_dict()) + _dict['pending_rpcs_by_hostlist'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "parts_packed": obj.get("parts_packed"), + "req_time": V0044Uint64NoValStruct.from_dict(obj["req_time"]) if obj.get("req_time") is not None else None, + "req_time_start": V0044Uint64NoValStruct.from_dict(obj["req_time_start"]) if obj.get("req_time_start") is not None else None, + "server_thread_count": obj.get("server_thread_count"), + "agent_queue_size": obj.get("agent_queue_size"), + "agent_count": obj.get("agent_count"), + "agent_thread_count": obj.get("agent_thread_count"), + "dbd_agent_queue_size": obj.get("dbd_agent_queue_size"), + "gettimeofday_latency": obj.get("gettimeofday_latency"), + "schedule_cycle_max": obj.get("schedule_cycle_max"), + "schedule_cycle_last": obj.get("schedule_cycle_last"), + "schedule_cycle_sum": obj.get("schedule_cycle_sum"), + "schedule_cycle_total": obj.get("schedule_cycle_total"), + "schedule_cycle_mean": obj.get("schedule_cycle_mean"), + "schedule_cycle_mean_depth": obj.get("schedule_cycle_mean_depth"), + "schedule_cycle_per_minute": obj.get("schedule_cycle_per_minute"), + "schedule_cycle_depth": obj.get("schedule_cycle_depth"), + "schedule_exit": V0044ScheduleExitFields.from_dict(obj["schedule_exit"]) if obj.get("schedule_exit") is not None else None, + "schedule_queue_length": obj.get("schedule_queue_length"), + "jobs_submitted": obj.get("jobs_submitted"), + "jobs_started": obj.get("jobs_started"), + "jobs_completed": obj.get("jobs_completed"), + "jobs_canceled": obj.get("jobs_canceled"), + "jobs_failed": obj.get("jobs_failed"), + "jobs_pending": obj.get("jobs_pending"), + "jobs_running": obj.get("jobs_running"), + "job_states_ts": V0044Uint64NoValStruct.from_dict(obj["job_states_ts"]) if obj.get("job_states_ts") is not None else None, + "bf_backfilled_jobs": obj.get("bf_backfilled_jobs"), + "bf_last_backfilled_jobs": obj.get("bf_last_backfilled_jobs"), + "bf_backfilled_het_jobs": obj.get("bf_backfilled_het_jobs"), + "bf_cycle_counter": obj.get("bf_cycle_counter"), + "bf_cycle_mean": obj.get("bf_cycle_mean"), + "bf_depth_mean": obj.get("bf_depth_mean"), + "bf_depth_mean_try": obj.get("bf_depth_mean_try"), + "bf_cycle_sum": obj.get("bf_cycle_sum"), + "bf_cycle_last": obj.get("bf_cycle_last"), + "bf_cycle_max": obj.get("bf_cycle_max"), + "bf_exit": V0044BfExitFields.from_dict(obj["bf_exit"]) if obj.get("bf_exit") is not None else None, + "bf_last_depth": obj.get("bf_last_depth"), + "bf_last_depth_try": obj.get("bf_last_depth_try"), + "bf_depth_sum": obj.get("bf_depth_sum"), + "bf_depth_try_sum": obj.get("bf_depth_try_sum"), + "bf_queue_len": obj.get("bf_queue_len"), + "bf_queue_len_mean": obj.get("bf_queue_len_mean"), + "bf_queue_len_sum": obj.get("bf_queue_len_sum"), + "bf_table_size": obj.get("bf_table_size"), + "bf_table_size_sum": obj.get("bf_table_size_sum"), + "bf_table_size_mean": obj.get("bf_table_size_mean"), + "bf_when_last_cycle": V0044Uint64NoValStruct.from_dict(obj["bf_when_last_cycle"]) if obj.get("bf_when_last_cycle") is not None else None, + "bf_active": obj.get("bf_active"), + "rpcs_by_message_type": [V0044StatsMsgRpcType.from_dict(_item) for _item in obj["rpcs_by_message_type"]] if obj.get("rpcs_by_message_type") is not None else None, + "rpcs_by_user": [V0044StatsMsgRpcUser.from_dict(_item) for _item in obj["rpcs_by_user"]] if obj.get("rpcs_by_user") is not None else None, + "pending_rpcs": [V0044StatsMsgRpcQueue.from_dict(_item) for _item in obj["pending_rpcs"]] if obj.get("pending_rpcs") is not None else None, + "pending_rpcs_by_hostlist": [V0044StatsMsgRpcDump.from_dict(_item) for _item in obj["pending_rpcs_by_hostlist"]] if obj.get("pending_rpcs_by_hostlist") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_msg_rpc_dump.py b/slurmrest_python/models/v0044_stats_msg_rpc_dump.py new file mode 100644 index 0000000..4a5b642 --- /dev/null +++ b/slurmrest_python/models/v0044_stats_msg_rpc_dump.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsMsgRpcDump(BaseModel): + """ + V0044StatsMsgRpcDump + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string (Slurm RPC message type)") + count: List[StrictStr] + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcDump from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcDump from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_msg_rpc_queue.py b/slurmrest_python/models/v0044_stats_msg_rpc_queue.py new file mode 100644 index 0000000..326bb67 --- /dev/null +++ b/slurmrest_python/models/v0044_stats_msg_rpc_queue.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsMsgRpcQueue(BaseModel): + """ + V0044StatsMsgRpcQueue + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string (Slurm RPC message type)") + count: StrictInt = Field(description="Number of pending RPCs queued") + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcQueue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcQueue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_msg_rpc_type.py b/slurmrest_python/models/v0044_stats_msg_rpc_type.py new file mode 100644 index 0000000..fbda5c7 --- /dev/null +++ b/slurmrest_python/models/v0044_stats_msg_rpc_type.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsMsgRpcType(BaseModel): + """ + V0044StatsMsgRpcType + """ # noqa: E501 + type_id: StrictInt = Field(description="Message type as integer") + message_type: StrictStr = Field(description="Message type as string (Slurm RPC message type)") + count: StrictInt = Field(description="Number of RPCs received") + queued: StrictInt = Field(description="Number of RPCs queued") + dropped: StrictInt = Field(description="Number of RPCs dropped") + cycle_last: StrictInt = Field(description="Number of RPCs processed within the last RPC queue cycle") + cycle_max: StrictInt = Field(description="Maximum number of RPCs processed within a RPC queue cycle since start") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0044Uint64NoValStruct + __properties: ClassVar[List[str]] = ["type_id", "message_type", "count", "queued", "dropped", "cycle_last", "cycle_max", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcType from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcType from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type_id": obj.get("type_id"), + "message_type": obj.get("message_type"), + "count": obj.get("count"), + "queued": obj.get("queued"), + "dropped": obj.get("dropped"), + "cycle_last": obj.get("cycle_last"), + "cycle_max": obj.get("cycle_max"), + "total_time": obj.get("total_time"), + "average_time": V0044Uint64NoValStruct.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_msg_rpc_user.py b/slurmrest_python/models/v0044_stats_msg_rpc_user.py new file mode 100644 index 0000000..c62c25e --- /dev/null +++ b/slurmrest_python/models/v0044_stats_msg_rpc_user.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsMsgRpcUser(BaseModel): + """ + V0044StatsMsgRpcUser + """ # noqa: E501 + user_id: StrictInt = Field(description="User ID (numeric)") + user: StrictStr = Field(description="User name") + count: StrictInt = Field(description="Number of RPCs received") + total_time: StrictInt = Field(description="Total time spent processing RPC in seconds") + average_time: V0044Uint64NoValStruct + __properties: ClassVar[List[str]] = ["user_id", "user", "count", "total_time", "average_time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of average_time + if self.average_time: + _dict['average_time'] = self.average_time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsMsgRpcUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_id": obj.get("user_id"), + "user": obj.get("user"), + "count": obj.get("count"), + "total_time": obj.get("total_time"), + "average_time": V0044Uint64NoValStruct.from_dict(obj["average_time"]) if obj.get("average_time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_rec.py b/slurmrest_python/models/v0044_stats_rec.py new file mode 100644 index 0000000..83c54a8 --- /dev/null +++ b/slurmrest_python/models/v0044_stats_rec.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_rollup_stats import V0044RollupStats +from slurmrest_python.models.v0044_stats_rpc import V0044StatsRpc +from slurmrest_python.models.v0044_stats_user import V0044StatsUser +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsRec(BaseModel): + """ + V0044StatsRec + """ # noqa: E501 + time_start: Optional[StrictInt] = Field(default=None, description="When data collection started (UNIX timestamp) (UNIX timestamp or time string recognized by Slurm (e.g., '[MM/DD[/YY]-]HH:MM[:SS]'))") + rollups: Optional[V0044RollupStats] = None + rpcs: Optional[List[V0044StatsRpc]] = Field(default=None, alias="RPCs") + users: Optional[List[V0044StatsUser]] = None + __properties: ClassVar[List[str]] = ["time_start", "rollups", "RPCs", "users"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsRec from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rollups + if self.rollups: + _dict['rollups'] = self.rollups.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in rpcs (list) + _items = [] + if self.rpcs: + for _item_rpcs in self.rpcs: + if _item_rpcs: + _items.append(_item_rpcs.to_dict()) + _dict['RPCs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsRec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time_start": obj.get("time_start"), + "rollups": V0044RollupStats.from_dict(obj["rollups"]) if obj.get("rollups") is not None else None, + "RPCs": [V0044StatsRpc.from_dict(_item) for _item in obj["RPCs"]] if obj.get("RPCs") is not None else None, + "users": [V0044StatsUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_rpc.py b/slurmrest_python/models/v0044_stats_rpc.py new file mode 100644 index 0000000..2230b6b --- /dev/null +++ b/slurmrest_python/models/v0044_stats_rpc.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsRpc(BaseModel): + """ + V0044StatsRpc + """ # noqa: E501 + rpc: Optional[StrictStr] = Field(default=None, description="RPC type") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["rpc", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsRpc from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsRpc from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rpc": obj.get("rpc"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_stats_user.py b/slurmrest_python/models/v0044_stats_user.py new file mode 100644 index 0000000..04ce938 --- /dev/null +++ b/slurmrest_python/models/v0044_stats_user.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime +from typing import Optional, Set +from typing_extensions import Self + +class V0044StatsUser(BaseModel): + """ + V0044StatsUser + """ # noqa: E501 + user: Optional[StrictStr] = Field(default=None, description="User ID") + count: Optional[StrictInt] = Field(default=None, description="Number of RPCs processed") + time: Optional[V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime] = None + __properties: ClassVar[List[str]] = ["user", "count", "time"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StatsUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StatsUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": obj.get("user"), + "count": obj.get("count"), + "time": V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime.from_dict(obj["time"]) if obj.get("time") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step.py b/slurmrest_python/models/v0044_step.py new file mode 100644 index 0000000..b1be34c --- /dev/null +++ b/slurmrest_python/models/v0044_step.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose +from slurmrest_python.models.v0044_step_cpu import V0044StepCPU +from slurmrest_python.models.v0044_step_nodes import V0044StepNodes +from slurmrest_python.models.v0044_step_statistics import V0044StepStatistics +from slurmrest_python.models.v0044_step_step import V0044StepStep +from slurmrest_python.models.v0044_step_time import V0044StepTime +from slurmrest_python.models.v0044_step_tres import V0044StepTres +from typing import Optional, Set +from typing_extensions import Self + +class V0044Step(BaseModel): + """ + V0044Step + """ # noqa: E501 + time: Optional[V0044StepTime] = None + exit_code: Optional[V0044ProcessExitCodeVerbose] = None + nodes: Optional[V0044StepNodes] = None + tasks: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks] = None + pid: Optional[StrictStr] = Field(default=None, description="Deprecated; Process ID") + cpu: Optional[V0044StepCPU] = Field(default=None, alias="CPU") + kill_request_user: Optional[StrictStr] = Field(default=None, description="User ID that requested termination of the step") + state: Optional[List[StrictStr]] = Field(default=None, description="Current state") + statistics: Optional[V0044StepStatistics] = None + step: Optional[V0044StepStep] = None + task: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask] = None + tres: Optional[V0044StepTres] = None + __properties: ClassVar[List[str]] = ["time", "exit_code", "nodes", "tasks", "pid", "CPU", "kill_request_user", "state", "statistics", "step", "task", "tres"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING']): + raise ValueError("each list item must be one of ('PENDING', 'RUNNING', 'SUSPENDED', 'COMPLETED', 'CANCELLED', 'FAILED', 'TIMEOUT', 'NODE_FAIL', 'PREEMPTED', 'BOOT_FAIL', 'DEADLINE', 'OUT_OF_MEMORY', 'LAUNCH_FAILED', 'REQUEUED', 'REQUEUE_HOLD', 'SPECIAL_EXIT', 'RESIZING', 'CONFIGURING', 'COMPLETING', 'STOPPED', 'RECONFIG_FAIL', 'POWER_UP_NODE', 'REVOKED', 'REQUEUE_FED', 'RESV_DEL_HOLD', 'SIGNALING', 'STAGE_OUT', 'EXPEDITING')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Step from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of time + if self.time: + _dict['time'] = self.time.to_dict() + # override the default output from pydantic by calling `to_dict()` of exit_code + if self.exit_code: + _dict['exit_code'] = self.exit_code.to_dict() + # override the default output from pydantic by calling `to_dict()` of nodes + if self.nodes: + _dict['nodes'] = self.nodes.to_dict() + # override the default output from pydantic by calling `to_dict()` of tasks + if self.tasks: + _dict['tasks'] = self.tasks.to_dict() + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of statistics + if self.statistics: + _dict['statistics'] = self.statistics.to_dict() + # override the default output from pydantic by calling `to_dict()` of step + if self.step: + _dict['step'] = self.step.to_dict() + # override the default output from pydantic by calling `to_dict()` of task + if self.task: + _dict['task'] = self.task.to_dict() + # override the default output from pydantic by calling `to_dict()` of tres + if self.tres: + _dict['tres'] = self.tres.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Step from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": V0044StepTime.from_dict(obj["time"]) if obj.get("time") is not None else None, + "exit_code": V0044ProcessExitCodeVerbose.from_dict(obj["exit_code"]) if obj.get("exit_code") is not None else None, + "nodes": V0044StepNodes.from_dict(obj["nodes"]) if obj.get("nodes") is not None else None, + "tasks": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks.from_dict(obj["tasks"]) if obj.get("tasks") is not None else None, + "pid": obj.get("pid"), + "CPU": V0044StepCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "kill_request_user": obj.get("kill_request_user"), + "state": obj.get("state"), + "statistics": V0044StepStatistics.from_dict(obj["statistics"]) if obj.get("statistics") is not None else None, + "step": V0044StepStep.from_dict(obj["step"]) if obj.get("step") is not None else None, + "task": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask.from_dict(obj["task"]) if obj.get("task") is not None else None, + "tres": V0044StepTres.from_dict(obj["tres"]) if obj.get("tres") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_cpu.py b/slurmrest_python/models/v0044_step_cpu.py new file mode 100644 index 0000000..f9af1d2 --- /dev/null +++ b/slurmrest_python/models/v0044_step_cpu.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_step_cpu_requested_frequency import V0044StepCPURequestedFrequency +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepCPU(BaseModel): + """ + V0044StepCPU + """ # noqa: E501 + requested_frequency: Optional[V0044StepCPURequestedFrequency] = None + governor: Optional[StrictStr] = Field(default=None, description="Requested CPU frequency governor in kHz") + __properties: ClassVar[List[str]] = ["requested_frequency", "governor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepCPU from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested_frequency + if self.requested_frequency: + _dict['requested_frequency'] = self.requested_frequency.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepCPU from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested_frequency": V0044StepCPURequestedFrequency.from_dict(obj["requested_frequency"]) if obj.get("requested_frequency") is not None else None, + "governor": obj.get("governor") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_cpu_requested_frequency.py b/slurmrest_python/models/v0044_step_cpu_requested_frequency.py new file mode 100644 index 0000000..dcf2ebb --- /dev/null +++ b/slurmrest_python/models/v0044_step_cpu_requested_frequency.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepCPURequestedFrequency(BaseModel): + """ + V0044StepCPURequestedFrequency + """ # noqa: E501 + min: Optional[V0044Uint32NoValStruct] = None + max: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["min", "max"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepCPURequestedFrequency from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of min + if self.min: + _dict['min'] = self.min.to_dict() + # override the default output from pydantic by calling `to_dict()` of max + if self.max: + _dict['max'] = self.max.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepCPURequestedFrequency from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "min": V0044Uint32NoValStruct.from_dict(obj["min"]) if obj.get("min") is not None else None, + "max": V0044Uint32NoValStruct.from_dict(obj["max"]) if obj.get("max") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_nodes.py b/slurmrest_python/models/v0044_step_nodes.py new file mode 100644 index 0000000..8efccef --- /dev/null +++ b/slurmrest_python/models/v0044_step_nodes.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepNodes(BaseModel): + """ + V0044StepNodes + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Number of nodes in the job step") + range: Optional[StrictStr] = Field(default=None, description="Node(s) allocated to the job step") + list: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["count", "range", "list"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepNodes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepNodes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "range": obj.get("range"), + "list": obj.get("list") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_statistics.py b/slurmrest_python/models/v0044_step_statistics.py new file mode 100644 index 0000000..b55330d --- /dev/null +++ b/slurmrest_python/models/v0044_step_statistics.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU +from slurmrest_python.models.v0044_step_statistics_energy import V0044StepStatisticsEnergy +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepStatistics(BaseModel): + """ + V0044StepStatistics + """ # noqa: E501 + cpu: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU] = Field(default=None, alias="CPU") + energy: Optional[V0044StepStatisticsEnergy] = None + __properties: ClassVar[List[str]] = ["CPU", "energy"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepStatistics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cpu + if self.cpu: + _dict['CPU'] = self.cpu.to_dict() + # override the default output from pydantic by calling `to_dict()` of energy + if self.energy: + _dict['energy'] = self.energy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepStatistics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "CPU": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU.from_dict(obj["CPU"]) if obj.get("CPU") is not None else None, + "energy": V0044StepStatisticsEnergy.from_dict(obj["energy"]) if obj.get("energy") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_statistics_energy.py b/slurmrest_python/models/v0044_step_statistics_energy.py new file mode 100644 index 0000000..398da3b --- /dev/null +++ b/slurmrest_python/models/v0044_step_statistics_energy.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepStatisticsEnergy(BaseModel): + """ + V0044StepStatisticsEnergy + """ # noqa: E501 + consumed: Optional[V0044Uint64NoValStruct] = None + __properties: ClassVar[List[str]] = ["consumed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepStatisticsEnergy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepStatisticsEnergy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumed": V0044Uint64NoValStruct.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_step.py b/slurmrest_python/models/v0044_step_step.py new file mode 100644 index 0000000..b0967a3 --- /dev/null +++ b/slurmrest_python/models/v0044_step_step.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepStep(BaseModel): + """ + V0044StepStep + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Step ID (Slurm job step ID)") + name: Optional[StrictStr] = Field(default=None, description="Step name") + stderr: Optional[StrictStr] = Field(default=None, description="Path to stderr file") + stdin: Optional[StrictStr] = Field(default=None, description="Path to stdin file") + stdout: Optional[StrictStr] = Field(default=None, description="Path to stdout file") + stderr_expanded: Optional[StrictStr] = Field(default=None, description="Step stderr with expanded fields") + stdin_expanded: Optional[StrictStr] = Field(default=None, description="Step stdin with expanded fields") + stdout_expanded: Optional[StrictStr] = Field(default=None, description="Step stdout with expanded fields") + __properties: ClassVar[List[str]] = ["id", "name", "stderr", "stdin", "stdout", "stderr_expanded", "stdin_expanded", "stdout_expanded"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepStep from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepStep from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "stderr": obj.get("stderr"), + "stdin": obj.get("stdin"), + "stdout": obj.get("stdout"), + "stderr_expanded": obj.get("stderr_expanded"), + "stdin_expanded": obj.get("stdin_expanded"), + "stdout_expanded": obj.get("stdout_expanded") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_time.py b/slurmrest_python/models/v0044_step_time.py new file mode 100644 index 0000000..426ab53 --- /dev/null +++ b/slurmrest_python/models/v0044_step_time.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepTime(BaseModel): + """ + V0044StepTime + """ # noqa: E501 + elapsed: Optional[StrictInt] = Field(default=None, description="Elapsed time in seconds") + end: Optional[V0044Uint64NoValStruct] = None + start: Optional[V0044Uint64NoValStruct] = None + suspended: Optional[StrictInt] = Field(default=None, description="Total time in suspended state in seconds") + system: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem] = None + limit: Optional[V0044Uint32NoValStruct] = None + total: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal] = None + user: Optional[V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser] = None + __properties: ClassVar[List[str]] = ["elapsed", "end", "start", "suspended", "system", "limit", "total", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepTime from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of end + if self.end: + _dict['end'] = self.end.to_dict() + # override the default output from pydantic by calling `to_dict()` of start + if self.start: + _dict['start'] = self.start.to_dict() + # override the default output from pydantic by calling `to_dict()` of system + if self.system: + _dict['system'] = self.system.to_dict() + # override the default output from pydantic by calling `to_dict()` of limit + if self.limit: + _dict['limit'] = self.limit.to_dict() + # override the default output from pydantic by calling `to_dict()` of total + if self.total: + _dict['total'] = self.total.to_dict() + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepTime from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "elapsed": obj.get("elapsed"), + "end": V0044Uint64NoValStruct.from_dict(obj["end"]) if obj.get("end") is not None else None, + "start": V0044Uint64NoValStruct.from_dict(obj["start"]) if obj.get("start") is not None else None, + "suspended": obj.get("suspended"), + "system": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem.from_dict(obj["system"]) if obj.get("system") is not None else None, + "limit": V0044Uint32NoValStruct.from_dict(obj["limit"]) if obj.get("limit") is not None else None, + "total": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal.from_dict(obj["total"]) if obj.get("total") is not None else None, + "user": V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser.from_dict(obj["user"]) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_tres.py b/slurmrest_python/models/v0044_step_tres.py new file mode 100644 index 0000000..d24f3fd --- /dev/null +++ b/slurmrest_python/models/v0044_step_tres.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_step_tres_consumed import V0044StepTresConsumed +from slurmrest_python.models.v0044_step_tres_requested import V0044StepTresRequested +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepTres(BaseModel): + """ + V0044StepTres + """ # noqa: E501 + requested: Optional[V0044StepTresRequested] = None + consumed: Optional[V0044StepTresConsumed] = None + allocated: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["requested", "consumed", "allocated"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepTres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requested + if self.requested: + _dict['requested'] = self.requested.to_dict() + # override the default output from pydantic by calling `to_dict()` of consumed + if self.consumed: + _dict['consumed'] = self.consumed.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in allocated (list) + _items = [] + if self.allocated: + for _item_allocated in self.allocated: + if _item_allocated: + _items.append(_item_allocated.to_dict()) + _dict['allocated'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepTres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requested": V0044StepTresRequested.from_dict(obj["requested"]) if obj.get("requested") is not None else None, + "consumed": V0044StepTresConsumed.from_dict(obj["consumed"]) if obj.get("consumed") is not None else None, + "allocated": [V0044Tres.from_dict(_item) for _item in obj["allocated"]] if obj.get("allocated") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_tres_consumed.py b/slurmrest_python/models/v0044_step_tres_consumed.py new file mode 100644 index 0000000..889dbf9 --- /dev/null +++ b/slurmrest_python/models/v0044_step_tres_consumed.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepTresConsumed(BaseModel): + """ + V0044StepTresConsumed + """ # noqa: E501 + max: Optional[List[V0044Tres]] = None + min: Optional[List[V0044Tres]] = None + average: Optional[List[V0044Tres]] = None + total: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepTresConsumed from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepTresConsumed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0044Tres.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0044Tres.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0044Tres.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0044Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_step_tres_requested.py b/slurmrest_python/models/v0044_step_tres_requested.py new file mode 100644 index 0000000..6a83a83 --- /dev/null +++ b/slurmrest_python/models/v0044_step_tres_requested.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_tres import V0044Tres +from typing import Optional, Set +from typing_extensions import Self + +class V0044StepTresRequested(BaseModel): + """ + V0044StepTresRequested + """ # noqa: E501 + max: Optional[List[V0044Tres]] = None + min: Optional[List[V0044Tres]] = None + average: Optional[List[V0044Tres]] = None + total: Optional[List[V0044Tres]] = None + __properties: ClassVar[List[str]] = ["max", "min", "average", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044StepTresRequested from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in max (list) + _items = [] + if self.max: + for _item_max in self.max: + if _item_max: + _items.append(_item_max.to_dict()) + _dict['max'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in min (list) + _items = [] + if self.min: + for _item_min in self.min: + if _item_min: + _items.append(_item_min.to_dict()) + _dict['min'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in average (list) + _items = [] + if self.average: + for _item_average in self.average: + if _item_average: + _items.append(_item_average.to_dict()) + _dict['average'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044StepTresRequested from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "max": [V0044Tres.from_dict(_item) for _item in obj["max"]] if obj.get("max") is not None else None, + "min": [V0044Tres.from_dict(_item) for _item in obj["min"]] if obj.get("min") is not None else None, + "average": [V0044Tres.from_dict(_item) for _item in obj["average"]] if obj.get("average") is not None else None, + "total": [V0044Tres.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_tres.py b/slurmrest_python/models/v0044_tres.py new file mode 100644 index 0000000..17bf66e --- /dev/null +++ b/slurmrest_python/models/v0044_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044Tres(BaseModel): + """ + V0044Tres + """ # noqa: E501 + type: StrictStr = Field(description="TRES type (CPU, MEM, etc)") + name: Optional[StrictStr] = Field(default=None, description="TRES name (if applicable)") + id: Optional[StrictInt] = Field(default=None, description="ID used in the database") + count: Optional[StrictInt] = Field(default=None, description="TRES count (0 if listed generically)") + __properties: ClassVar[List[str]] = ["type", "name", "id", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Tres from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Tres from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "id": obj.get("id"), + "count": obj.get("count") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_uint16_no_val_struct.py b/slurmrest_python/models/v0044_uint16_no_val_struct.py new file mode 100644 index 0000000..2d8ae0e --- /dev/null +++ b/slurmrest_python/models/v0044_uint16_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044Uint16NoValStruct(BaseModel): + """ + V0044Uint16NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Uint16NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Uint16NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_uint32_no_val_struct.py b/slurmrest_python/models/v0044_uint32_no_val_struct.py new file mode 100644 index 0000000..b4ed228 --- /dev/null +++ b/slurmrest_python/models/v0044_uint32_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044Uint32NoValStruct(BaseModel): + """ + V0044Uint32NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Uint32NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Uint32NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_uint64_no_val_struct.py b/slurmrest_python/models/v0044_uint64_no_val_struct.py new file mode 100644 index 0000000..a382bac --- /dev/null +++ b/slurmrest_python/models/v0044_uint64_no_val_struct.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044Uint64NoValStruct(BaseModel): + """ + V0044Uint64NoValStruct + """ # noqa: E501 + set: Optional[StrictBool] = Field(default=None, description="True if number has been set; False if number is unset") + infinite: Optional[StrictBool] = Field(default=None, description="True if number has been set to infinite; \"set\" and \"number\" will be ignored") + number: Optional[StrictInt] = Field(default=None, description="If \"set\" is True the number will be set with value; otherwise ignore number contents") + __properties: ClassVar[List[str]] = ["set", "infinite", "number"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Uint64NoValStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Uint64NoValStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "set": obj.get("set"), + "infinite": obj.get("infinite"), + "number": obj.get("number") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_update_node_msg.py b/slurmrest_python/models/v0044_update_node_msg.py new file mode 100644 index 0000000..c93d99f --- /dev/null +++ b/slurmrest_python/models/v0044_update_node_msg.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct +from typing import Optional, Set +from typing_extensions import Self + +class V0044UpdateNodeMsg(BaseModel): + """ + V0044UpdateNodeMsg + """ # noqa: E501 + comment: Optional[StrictStr] = Field(default=None, description="Arbitrary comment") + cpu_bind: Optional[StrictInt] = Field(default=None, description="Default method for binding tasks to allocated CPUs") + extra: Optional[StrictStr] = Field(default=None, description="Arbitrary string used for node filtering if extra constraints are enabled") + features: Optional[List[StrictStr]] = None + features_act: Optional[List[StrictStr]] = None + gres: Optional[StrictStr] = Field(default=None, description="Generic resources") + address: Optional[List[StrictStr]] = None + hostname: Optional[List[StrictStr]] = None + name: Optional[List[StrictStr]] = None + state: Optional[List[StrictStr]] = Field(default=None, description="New state to assign to the node") + reason: Optional[StrictStr] = Field(default=None, description="Reason for node being DOWN or DRAINING") + reason_uid: Optional[StrictStr] = Field(default=None, description="User ID to associate with the reason (needed if user root is sending message)") + resume_after: Optional[V0044Uint32NoValStruct] = None + topology_str: Optional[StrictStr] = Field(default=None, description="Topology") + weight: Optional[V0044Uint32NoValStruct] = None + __properties: ClassVar[List[str]] = ["comment", "cpu_bind", "extra", "features", "features_act", "gres", "address", "hostname", "name", "state", "reason", "reason_uid", "resume_after", "topology_str", "weight"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'EXTERNAL', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM', 'BLOCKED']): + raise ValueError("each list item must be one of ('INVALID', 'UNKNOWN', 'DOWN', 'IDLE', 'ALLOCATED', 'ERROR', 'MIXED', 'FUTURE', 'EXTERNAL', 'RESERVED', 'UNDRAIN', 'CLOUD', 'RESUME', 'DRAIN', 'COMPLETING', 'NOT_RESPONDING', 'POWERED_DOWN', 'FAIL', 'POWERING_UP', 'MAINTENANCE', 'REBOOT_REQUESTED', 'REBOOT_CANCELED', 'POWERING_DOWN', 'DYNAMIC_FUTURE', 'REBOOT_ISSUED', 'PLANNED', 'INVALID_REG', 'POWER_DOWN', 'POWER_UP', 'POWER_DRAIN', 'DYNAMIC_NORM', 'BLOCKED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044UpdateNodeMsg from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resume_after + if self.resume_after: + _dict['resume_after'] = self.resume_after.to_dict() + # override the default output from pydantic by calling `to_dict()` of weight + if self.weight: + _dict['weight'] = self.weight.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044UpdateNodeMsg from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "cpu_bind": obj.get("cpu_bind"), + "extra": obj.get("extra"), + "features": obj.get("features"), + "features_act": obj.get("features_act"), + "gres": obj.get("gres"), + "address": obj.get("address"), + "hostname": obj.get("hostname"), + "name": obj.get("name"), + "state": obj.get("state"), + "reason": obj.get("reason"), + "reason_uid": obj.get("reason_uid"), + "resume_after": V0044Uint32NoValStruct.from_dict(obj["resume_after"]) if obj.get("resume_after") is not None else None, + "topology_str": obj.get("topology_str"), + "weight": V0044Uint32NoValStruct.from_dict(obj["weight"]) if obj.get("weight") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_user.py b/slurmrest_python/models/v0044_user.py new file mode 100644 index 0000000..3f89d2f --- /dev/null +++ b/slurmrest_python/models/v0044_user.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort +from slurmrest_python.models.v0044_coord import V0044Coord +from slurmrest_python.models.v0044_user_default import V0044UserDefault +from slurmrest_python.models.v0044_wckey import V0044Wckey +from typing import Optional, Set +from typing_extensions import Self + +class V0044User(BaseModel): + """ + V0044User + """ # noqa: E501 + administrator_level: Optional[List[StrictStr]] = Field(default=None, description="AdminLevel granted to the user") + associations: Optional[List[V0044AssocShort]] = None + coordinators: Optional[List[V0044Coord]] = None + default: Optional[V0044UserDefault] = None + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this user") + name: StrictStr = Field(description="User name") + old_name: Optional[StrictStr] = Field(default=None, description="Previous user name") + wckeys: Optional[List[V0044Wckey]] = None + __properties: ClassVar[List[str]] = ["administrator_level", "associations", "coordinators", "default", "flags", "name", "old_name", "wckeys"] + + @field_validator('administrator_level') + def administrator_level_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['NONE', 'DELETED']): + raise ValueError("each list item must be one of ('NONE', 'DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044User from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in associations (list) + _items = [] + if self.associations: + for _item_associations in self.associations: + if _item_associations: + _items.append(_item_associations.to_dict()) + _dict['associations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in coordinators (list) + _items = [] + if self.coordinators: + for _item_coordinators in self.coordinators: + if _item_coordinators: + _items.append(_item_coordinators.to_dict()) + _dict['coordinators'] = _items + # override the default output from pydantic by calling `to_dict()` of default + if self.default: + _dict['default'] = self.default.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in wckeys (list) + _items = [] + if self.wckeys: + for _item_wckeys in self.wckeys: + if _item_wckeys: + _items.append(_item_wckeys.to_dict()) + _dict['wckeys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044User from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "administrator_level": obj.get("administrator_level"), + "associations": [V0044AssocShort.from_dict(_item) for _item in obj["associations"]] if obj.get("associations") is not None else None, + "coordinators": [V0044Coord.from_dict(_item) for _item in obj["coordinators"]] if obj.get("coordinators") is not None else None, + "default": V0044UserDefault.from_dict(obj["default"]) if obj.get("default") is not None else None, + "flags": obj.get("flags"), + "name": obj.get("name"), + "old_name": obj.get("old_name"), + "wckeys": [V0044Wckey.from_dict(_item) for _item in obj["wckeys"]] if obj.get("wckeys") is not None else None + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_user_default.py b/slurmrest_python/models/v0044_user_default.py new file mode 100644 index 0000000..ab57a1e --- /dev/null +++ b/slurmrest_python/models/v0044_user_default.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044UserDefault(BaseModel): + """ + V0044UserDefault + """ # noqa: E501 + qos: Optional[StrictInt] = Field(default=None, description="Default QOS") + account: Optional[StrictStr] = Field(default=None, description="Default account") + wckey: Optional[StrictStr] = Field(default=None, description="Default WCKey") + __properties: ClassVar[List[str]] = ["qos", "account", "wckey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044UserDefault from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044UserDefault from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "qos": obj.get("qos"), + "account": obj.get("account"), + "wckey": obj.get("wckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_user_short.py b/slurmrest_python/models/v0044_user_short.py new file mode 100644 index 0000000..82b9850 --- /dev/null +++ b/slurmrest_python/models/v0044_user_short.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V0044UserShort(BaseModel): + """ + V0044UserShort + """ # noqa: E501 + adminlevel: Optional[List[StrictStr]] = Field(default=None, description="AdminLevel granted to the user") + defaultqos: Optional[StrictInt] = Field(default=None, description="Default QOS") + defaultaccount: Optional[StrictStr] = Field(default=None, description="Default account") + defaultwckey: Optional[StrictStr] = Field(default=None, description="Default WCKey") + __properties: ClassVar[List[str]] = ["adminlevel", "defaultqos", "defaultaccount", "defaultwckey"] + + @field_validator('adminlevel') + def adminlevel_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['Not Set', 'None', 'Operator', 'Administrator']): + raise ValueError("each list item must be one of ('Not Set', 'None', 'Operator', 'Administrator')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044UserShort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044UserShort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminlevel": obj.get("adminlevel"), + "defaultqos": obj.get("defaultqos"), + "defaultaccount": obj.get("defaultaccount"), + "defaultwckey": obj.get("defaultwckey") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_users_add_cond.py b/slurmrest_python/models/v0044_users_add_cond.py new file mode 100644 index 0000000..beaf291 --- /dev/null +++ b/slurmrest_python/models/v0044_users_add_cond.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_assoc_rec_set import V0044AssocRecSet +from typing import Optional, Set +from typing_extensions import Self + +class V0044UsersAddCond(BaseModel): + """ + V0044UsersAddCond + """ # noqa: E501 + accounts: Optional[List[StrictStr]] = None + association: Optional[V0044AssocRecSet] = None + clusters: Optional[List[StrictStr]] = None + partitions: Optional[List[StrictStr]] = None + users: List[StrictStr] + wckeys: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["accounts", "association", "clusters", "partitions", "users", "wckeys"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044UsersAddCond from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of association + if self.association: + _dict['association'] = self.association.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044UsersAddCond from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounts": obj.get("accounts"), + "association": V0044AssocRecSet.from_dict(obj["association"]) if obj.get("association") is not None else None, + "clusters": obj.get("clusters"), + "partitions": obj.get("partitions"), + "users": obj.get("users"), + "wckeys": obj.get("wckeys") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_wckey.py b/slurmrest_python/models/v0044_wckey.py new file mode 100644 index 0000000..0509bdb --- /dev/null +++ b/slurmrest_python/models/v0044_wckey.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from slurmrest_python.models.v0044_accounting import V0044Accounting +from typing import Optional, Set +from typing_extensions import Self + +class V0044Wckey(BaseModel): + """ + V0044Wckey + """ # noqa: E501 + accounting: Optional[List[V0044Accounting]] = None + cluster: StrictStr = Field(description="Cluster name") + id: Optional[StrictInt] = Field(default=None, description="Unique ID for this user-cluster-wckey combination") + name: StrictStr = Field(description="WCKey name") + user: StrictStr = Field(description="User name") + flags: Optional[List[StrictStr]] = Field(default=None, description="Flags associated with this WCKey") + __properties: ClassVar[List[str]] = ["accounting", "cluster", "id", "name", "user", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['DELETED']): + raise ValueError("each list item must be one of ('DELETED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044Wckey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in accounting (list) + _items = [] + if self.accounting: + for _item_accounting in self.accounting: + if _item_accounting: + _items.append(_item_accounting.to_dict()) + _dict['accounting'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044Wckey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accounting": [V0044Accounting.from_dict(_item) for _item in obj["accounting"]] if obj.get("accounting") is not None else None, + "cluster": obj.get("cluster"), + "id": obj.get("id"), + "name": obj.get("name"), + "user": obj.get("user"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/models/v0044_wckey_tag_struct.py b/slurmrest_python/models/v0044_wckey_tag_struct.py new file mode 100644 index 0000000..61df1e0 --- /dev/null +++ b/slurmrest_python/models/v0044_wckey_tag_struct.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V0044WckeyTagStruct(BaseModel): + """ + V0044WckeyTagStruct + """ # noqa: E501 + wckey: StrictStr = Field(description="WCKey name") + flags: List[StrictStr] = Field(description="Active flags") + __properties: ClassVar[List[str]] = ["wckey", "flags"] + + @field_validator('flags') + def flags_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['ASSIGNED_DEFAULT']): + raise ValueError("each list item must be one of ('ASSIGNED_DEFAULT')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V0044WckeyTagStruct from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V0044WckeyTagStruct from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "wckey": obj.get("wckey"), + "flags": obj.get("flags") + }) + return _obj + + diff --git a/slurmrest_python/py.typed b/slurmrest_python/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/slurmrest_python/rest.py b/slurmrest_python/rest.py new file mode 100644 index 0000000..4f7365d --- /dev/null +++ b/slurmrest_python/rest.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import json +import re +import ssl + +import urllib3 + +from slurmrest_python.exceptions import ApiException, ApiValueError + +SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} +RESTResponseType = urllib3.HTTPResponse + + +def is_socks_proxy_url(url): + if url is None: + return False + split_section = url.split("://") + if len(split_section) < 2: + return False + else: + return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES + + +class RESTResponse(io.IOBase): + + def __init__(self, resp) -> None: + self.response = resp + self.status = resp.status + self.reason = resp.reason + self.data = None + + def read(self): + if self.data is None: + self.data = self.response.data + return self.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.response.headers + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.response.headers.get(name, default) + + +class RESTClientObject: + + def __init__(self, configuration) -> None: + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + pool_args = { + "cert_reqs": cert_reqs, + "ca_certs": configuration.ssl_ca_cert, + "cert_file": configuration.cert_file, + "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, + } + if configuration.assert_hostname is not None: + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) + + if configuration.retries is not None: + pool_args['retries'] = configuration.retries + + if configuration.tls_server_name: + pool_args['server_hostname'] = configuration.tls_server_name + + + if configuration.socket_options is not None: + pool_args['socket_options'] = configuration.socket_options + + if configuration.connection_pool_maxsize is not None: + pool_args['maxsize'] = configuration.connection_pool_maxsize + + # https pool manager + self.pool_manager: urllib3.PoolManager + + if configuration.proxy: + if is_socks_proxy_url(configuration.proxy): + from urllib3.contrib.socks import SOCKSProxyManager + pool_args["proxy_url"] = configuration.proxy + pool_args["headers"] = configuration.proxy_headers + self.pool_manager = SOCKSProxyManager(**pool_args) + else: + pool_args["proxy_url"] = configuration.proxy + pool_args["proxy_headers"] = configuration.proxy_headers + self.pool_manager = urllib3.ProxyManager(**pool_args) + else: + self.pool_manager = urllib3.PoolManager(**pool_args) + + def request( + self, + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): + """Perform requests. + + :param method: http request method + :param url: http request url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): + timeout = urllib3.Timeout(total=_request_timeout) + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): + timeout = urllib3.Timeout( + connect=_request_timeout[0], + read=_request_timeout[1] + ) + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + + # no content type provided or payload is json + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, + url, + body=request_body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'application/x-www-form-urlencoded': + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=False, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + # Ensures that dict objects are serialized + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=True, + timeout=timeout, + headers=headers, + preload_content=False + ) + # Pass a `string` parameter directly in the body to support + # other content types than JSON when `body` argument is + # provided in serialized form. + elif isinstance(body, str) or isinstance(body, bytes): + r = self.pool_manager.request( + method, + url, + body=body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): + request_body = "true" if body else "false" + r = self.pool_manager.request( + method, + url, + body=request_body, + preload_content=False, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request( + method, + url, + fields={}, + timeout=timeout, + headers=headers, + preload_content=False + ) + except urllib3.exceptions.SSLError as e: + msg = "\n".join([type(e).__name__, str(e)]) + raise ApiException(status=0, reason=msg) + + return RESTResponse(r) diff --git a/src/coldfront_plugin_slurmrest/__init__.py b/src/coldfront_plugin_slurmrest/__init__.py deleted file mode 100644 index e9dcec9..0000000 --- a/src/coldfront_plugin_slurmrest/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# SPDX-FileCopyrightText: (C) ColdFront Authors -# -# SPDX-License-Identifier: AGPL-3.0-or-later - -default_app_config = "coldfront.plugins.slurm.apps.SlurmConfig" diff --git a/src/coldfront_plugin_slurmrest/apps.py b/src/coldfront_plugin_slurmrest/apps.py deleted file mode 100644 index 89dc949..0000000 --- a/src/coldfront_plugin_slurmrest/apps.py +++ /dev/null @@ -1,9 +0,0 @@ -# SPDX-FileCopyrightText: (C) ColdFront Authors -# -# SPDX-License-Identifier: AGPL-3.0-or-later - -from django.apps import AppConfig - - -class SlurmRestConfig(AppConfig): - name = "coldfront.plugins.slurmrest" diff --git a/src/coldfront_plugin_slurmrest/config.py b/src/coldfront_plugin_slurmrest/config.py deleted file mode 100644 index a9e5c1e..0000000 --- a/src/coldfront_plugin_slurmrest/config.py +++ /dev/null @@ -1,45 +0,0 @@ -from coldfront.config.base import INSTALLED_APPS -from coldfront.config.env import ENV # noqa: F401 -from coldfront.config.logging import LOGGING - - -if "coldfront_plugin_slurmrest" not in INSTALLED_APPS: - INSTALLED_APPS += [ - "coldfront_plugin_slurmrest", - ] - -SLURMREST_CLUSTER_ATTRIBUTE_NAME = ENV.str("SLURM_CLUSTER_ATTRIBUTE_NAME", default="slurm_cluster") -SLURMREST_ACCOUNT_ATTRIBUTE_NAME = ENV.str( - "SLURM_ACCOUNT_ATTRIBUTE_NAME", default="slurm_account_name") -SLURMREST_SPECS_ATTRIBUTE_NAME = ENV.str( - "SLURM_SPECS_ATTRIBUTE_NAME", default="slurm_specs") -SLURMREST_USER_SPECS_ATTRIBUTE_NAME = ENV.str( - "SLURM_USER_SPECS_ATTRIBUTE_NAME", default="slurm_user_specs") - -SLURMREST_NOOP = ENV.bool('SLURM_NOOP', default=False) -SLURMREST_IGNORE_USERS = ENV.list('SLURM_IGNORE_USERS', default=['root']) -SLURMREST_IGNORE_ACCOUNTS = ENV.list('SLURM_IGNORE_ACCOUNTS', default=[]) - -SLURMREST_CLUSTERS = {} -for cluster in ENV.str('SLURMREST_CLUSTERS', '').split(','): - cluster_name = f"SLURM_{cluster.upper()}" - cluster_type = ENV.str(f"{cluster_name}_TYPE") - SLURMREST_CLUSTERS[cluster] = { - 'name': cluster, - 'base_url': ENV.str(f"{cluster_name}_ENDPOINT"), - 'token': ENV.str(f"{cluster_name}_TOKEN"), - } - - -LOGGING['handlers']['slurmrest'] = { - 'class': 'logging.handlers.TimedRotatingFileHandler', - 'filename': 'logs/slurmrest.log', - 'when': 'D', - 'backupCount': 10, # how many backup files to keep - 'formatter': 'default', - 'level': 'DEBUG', - } - -LOGGING['loggers']['coldfront.plugins.slurmrest'] = { - 'handlers': ['slurmrest'], - } diff --git a/src/coldfront_plugin_slurmrest/management/__init__.py b/src/coldfront_plugin_slurmrest/management/__init__.py deleted file mode 100644 index 2f61f96..0000000 --- a/src/coldfront_plugin_slurmrest/management/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# SPDX-FileCopyrightText: (C) ColdFront Authors -# -# SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/src/coldfront_plugin_slurmrest/management/commands/__init__.py b/src/coldfront_plugin_slurmrest/management/commands/__init__.py deleted file mode 100644 index 2f61f96..0000000 --- a/src/coldfront_plugin_slurmrest/management/commands/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# SPDX-FileCopyrightText: (C) ColdFront Authors -# -# SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/src/coldfront_plugin_slurmrest/management/commands/slurm_check.py b/src/coldfront_plugin_slurmrest/management/commands/slurm_check.py deleted file mode 100644 index 38650c1..0000000 --- a/src/coldfront_plugin_slurmrest/management/commands/slurm_check.py +++ /dev/null @@ -1,164 +0,0 @@ -# SPDX-FileCopyrightText: (C) ColdFront Authors -# -# SPDX-License-Identifier: AGPL-3.0-or-later - -import logging -import sys - -from django.core.management.base import BaseCommand - -from coldfront.core.resource.models import ResourceAttribute -from coldfront.core.utils.common import import_from_settings - -from coldfront_plugin_slurmrest.config import SLURM_CLUSTER_ATTRIBUTE_NAME -from coldfront_plugin_slurmrest.utils import SlurmError, SlurmApiConnection - -SLURM_IGNORE_USERS = import_from_settings("SLURM_IGNORE_USERS", []) -SLURM_IGNORE_ACCOUNTS = import_from_settings("SLURM_IGNORE_ACCOUNTS", []) -SLURM_IGNORE_CLUSTERS = import_from_settings("SLURM_IGNORE_CLUSTERS", []) -SLURM_NOOP = import_from_settings("SLURM_NOOP", False) - -logger = logging.getLogger(__name__) - - -class Command(BaseCommand): - help = "Check consistency between Slurm associations and ColdFront allocations. Optionally remove associations in Slurm that no longer exist in ColdFront." - - def add_arguments(self, parser): - parser.add_argument( - "-s", "--sync", help="Remove associations in Slurm that no longer exist in ColdFront", action="store_true" - ) - parser.add_argument("-n", "--noop", help="Print commands only. Do not run any commands.", action="store_true") - parser.add_argument("-c", "--cluster", help="Check specific cluster", default=None) - parser.add_argument("-a", "--account", help="Check specific account") - parser.add_argument("-u", "--username", help="Check specific username") - - def _skip_user(self, user, account): - if user in SLURM_IGNORE_USERS: - logger.debug("Ignoring user %s", user) - return True - - if account in SLURM_IGNORE_ACCOUNTS: - logger.debug("Ignoring account %s", account) - return True - - if self.filter_account and account != self.filter_account: - return True - - if self.filter_user and user != self.filter_user: - return True - - return False - - def _skip_account(self, account): - if account in SLURM_IGNORE_ACCOUNTS: - logger.debug("Ignoring account %s", account) - return True - - if self.filter_user: - return True - - if self.filter_account and account != self.filter_account: - return True - - return False - - - def check_consistency(self, slurm_cluster, coldfront_resource): - """Check for accounts in Slurm NOT in ColdFront""" - cluster_account_response = slurm_cluster.get_accounts() - cluster_accounts = cluster_account_response.get("accounts", {}) - resource_allocations = coldfront_resource.allocation_set.filter(status__name='Active') - allocation_dict = { - allocation.project.title: allocation for allocation in resource_allocations - } - - for account in cluster_accounts: - account_name = account['name'] - if account_name == "root" or self._skip_account(account): - logger.debug("Ignoring account %s", account["name"]) - continue - if account_name in allocation_dict: - logger.debug("Slurm account %s found in ColdFront", account_name) - allocation_users = allocation_dict[account_name].allocationuser_set.filter( - status__name='Active') - for association in account.get("associations", []): - username = association['name'] - if username == "root" or self._skip_user(username, account_name): - logger.debug("Ignoring user %s in account %s", username, account_name) - continue - if username in [au.user.username for au in allocation_users]: - logger.debug( - "Slurm user %s in account %s found in ColdFront", username, account_name - ) - # TODO: check qos - - else: - logger.warning( - "Slurm user %s has no association with account %s in ColdFront, removing association", - account_name, username, - ) - slurm_cluster.remove_assoc(assoc_id=association['id'], noop=self.noop) - else: - for association in account.get("associations", []): - username = association['name'] - if username == "root" or self._skip_user(username, account_name): - logger.debug("Ignoring user %s in account %s", username, account_name) - continue - - logger.warning( - "Slurm account %s with user %s not found in ColdFront. Removing association.", - account_name, username, - ) - slurm_cluster.remove_assoc(assoc_id=association['id'], noop=self.noop) - slurm_cluster.remove_account(account_name, noop=self.noop) - - - - def handle(self, *args, **options): - - self.sync = False - if options["sync"]: - self.sync = True - logger.warning("Syncing Slurm with ColdFront") - - self.noop = SLURM_NOOP - if options["noop"]: - self.noop = True - logger.warning("NOOP enabled") - - # clusters - clusters = import_from_settings("SLURMREST_CLUSTERS", default={}) - if options["cluster"]: - if options["cluster"] in clusters: - clusters = {options["cluster"]: clusters[options["cluster"]]} - else: - logger.error("Cluster %s not found in SLURMREST_CLUSTERS", options["cluster"]) - sys.exit(1) - - self.filter_user = options["username"] - self.filter_account = options["account"] - - for cluster_name in clusters.keys(): - logger.info("Checking Slurm cluster %s", cluster_name) - - slurm_cluster = SlurmApiConnection(cluster_name) - - if cluster_name in SLURM_IGNORE_CLUSTERS: - logger.warning("Ignoring cluster %s. Nothing to do.", cluster_name) - sys.exit(0) - - try: - coldfront_resource = ResourceAttribute.objects.get( - resource_attribute_type__name=SLURM_CLUSTER_ATTRIBUTE_NAME, - value=cluster_name - ).resource - except ResourceAttribute.DoesNotExist: - logger.error( - "No Slurm '%s' cluster resource found in ColdFront using '%s' attribute", - cluster_name, - SLURM_CLUSTER_ATTRIBUTE_NAME, - ) - continue - - self.check_consistency(slurm_cluster, coldfront_resource) diff --git a/src/coldfront_plugin_slurmrest/tests/integration.py b/src/coldfront_plugin_slurmrest/tests/integration.py deleted file mode 100644 index 1ac496d..0000000 --- a/src/coldfront_plugin_slurmrest/tests/integration.py +++ /dev/null @@ -1,9 +0,0 @@ -'''integration tests for the coldfront_plugin_slurmrest plugin''' - -import pytest -from coldfront_plugin_slurmrest.utils import SlurmApiConnection - -# test to confirm that the command "slurm_check" appears in the CLI -def test_slurm_check_command(): - from coldfront_plugin_slurmrest.management.commands.slurm_check import Command - assert hasattr(Command, 'handle'), "Command 'slurm_check' should have a 'handle' method" diff --git a/src/coldfront_plugin_slurmrest/utils.py b/src/coldfront_plugin_slurmrest/utils.py deleted file mode 100644 index 27b88d3..0000000 --- a/src/coldfront_plugin_slurmrest/utils.py +++ /dev/null @@ -1,222 +0,0 @@ -# SPDX-FileCopyrightText: (C) ColdFront Authors -# -# SPDX-License-Identifier: AGPL-3.0-or-later - -import logging -from slurmrest_python_0_0_41 import SlurmApi, SlurmdbApi, ApiClient, Configuration -from coldfront.core.utils.common import import_from_settings - - -SLURMREST_CLUSTERS = import_from_settings('SLURMREST_CLUSTERS', default={}) -SLURMREST_NOOP = import_from_settings('SLURMREST_NOOP', default=False) - -logger = logging.getLogger(__name__) - - -class SlurmError(Exception): - pass - - -class SlurmApiConnection(): - - def __init__(self, cluster_name): - self.active_cluster = SLURMREST_CLUSTERS.get(cluster_name, None) - assert self.active_cluster is not None, f"Unable to load cluster specs for {cluster_name} -- {SLURMREST_CLUSTERS}" - self.configuration = self._return_configuration() - self.slurm_api = self._return_apiconn(SlurmApi) - self.slurmdb_api = self._return_apiconn(SlurmdbApi) - - def _return_configuration(self): - configuration = Configuration(host=self.active_cluster.get('base_url')) - configuration.api_key['token'] = self.active_cluster.get('user_token') - return configuration - - def _return_apiconn(self, api): - with ApiClient(self.configuration) as api_client: - api_instance = api(api_client) - return api_instance - - def _call_api(self, api_func, *, noop=False, **api_kwargs): - """ - Helper that either calls `api_func`(**api_kwargs) or simulates it - when noop is True. It also handles error / warning logging. - """ - if noop: - api_kwargs['noop'] = True - return api_kwargs - - try: - response = api_func(api_kwargs) - except Exception as exc: - logger.exception("Exception when calling %s: %s", api_func.__name__, exc) - raise - - if 'errors' in response: - logger.exception("Errors from %s: %s", api_func.__name__, response['errors']) - elif 'warnings' in response: - logger.warning("Warnings from %s: %s", api_func.__name__, response['warnings']) - - return response - - def get_partitions(self, update_time=None, flags=None): - partitions = self.slurm_api.slurm_v0041_get_partitions(update_time=update_time, flags=flags) - return partitions - - def get_assoc(self, *, user_name=None, account_name=None, assoc_id=None): - if assoc_id: - if user_name or account_name: - raise ValueError("Either assoc_id OR user/account pair, not both.") - args = {'id': assoc_id} - else: - if not (user_name and account_name): - raise ValueError("Must supply assoc_id OR user_name/account_name.") - args = {'user': user_name, 'account': account_name} - return self.slurmdb_api.slurmdb_v0041_get_association(**args) - - - def add_assoc(self, account_name, user_name, noop=SLURMREST_NOOP): - association_dict = { - 'v0041_openapi_assocs_resp': { - 'associations': {'account': account_name, 'user': user_name} - } - } - response = self._call_api( - self.slurmdb_api.slurmdb_v0041_post_associations, - noop=noop, - **association_dict - ) - logger.info('added associations: %s', response) - return response - - # def check_assoc(self, user, cluster, account): - - def remove_assoc(self, *, user_name=None, account_name=None, assoc_id=None, noop=SLURMREST_NOOP): - """Remove association between a user and an account. - Kwargs: - user_name: name of user to be removed - account_name: name of account from which to remove user - assoc_id: id of the association to be deleted. Can be used instead of - the user_name/account_name lookup. - noop (default False): if True, don't actually execute the action - """ - if assoc_id: - if user_name or account_name: - raise ValueError("Either assoc_id OR user/account pair, not both.") - args = {'id': assoc_id} - else: - if not (user_name and account_name): - raise ValueError("Must supply assoc_id OR user_name/account_name.") - args = {'user': user_name, 'account': account_name} - - response = self._call_api( - self.slurmdb_api.slurmdb_v0041_delete_association, - noop=noop, - **args - ) - logger.info("deleted associations: %s", response['removed_associations']) - return response - - def get_shares(self, accounts=None, users=None): - """Return share information. - accounts (list, default None): accounts for which to get shares - users (list, default None): users for which to get shares - """ - shares = self.slurm_api.slurm_v0041_get_shares(accounts=accounts, users=users) - if shares.errors: - raise Exception('error/s found in get_shares output: %s', shares.errors) - return shares.to_dict() - - def get_users(self): - users = self.slurmdb_api.slurmdb_v0041_get_users() - if users.errors: - raise Exception('error/s found in get_users output: %s', users.errors) - return users.to_dict() - - def get_accounts(self, with_associations='true', with_coordinators='true'): - accounts = self.slurmdb_api.slurmdb_v0041_get_accounts( - with_associations=with_associations, - with_coordinators=with_coordinators, - ) - if accounts.errors: - raise Exception('error/s found in get_accounts output: %s', accounts.errors) - return accounts.to_dict() - - def add_account(self, account_name, specs=None, noop=SLURMREST_NOOP): - """Add a new account. - account_name (str): name of the account to be added - specs (list, default None): list of specifications for the account - noop (bool, default False): if True, don't actually execute the action - """ - if specs is None: - specs = [] - account_dict = { - 'v0041_openapi_accounts_resp': { - 'accounts': {'name': account_name, 'specs': specs} - } - } - response = self._call_api( - self.slurmdb_api.slurmdb_v0041_post_accounts, - noop=noop, - **account_dict - ) - logger.info('added accounts: %s', response) - return response - - def remove_account(self, account_name, noop=SLURMREST_NOOP): - """Remove an account. - account_name (str): name of the account to be removed - noop (bool, default False): if True, don't actually execute the action - """ - response = self._call_api( - self.slurmdb_api.slurmdb_v0041_delete_account, - noop=noop, - **{'account_name': account_name} - ) - logger.info('removed account: %s', response) - return response - - # def block_account(self, account_name, noop=False): - - def get_qos_list(self): - """Get the list of QoS (Quality of Service) entries.""" - qos_list = self.slurmdb_api.slurmdb_v0041_get_qos() - if qos_list.errors: - raise Exception('error/s found in get_qos_list output: %s', qos_list.errors) - return qos_list.to_dict() - - def get_qos(self, qos_name): - """Get QoS entry by name.""" - qos = self.slurmdb_api.slurmdb_v0041_get_single_qos(qos_name=qos_name) - if qos.errors: - raise Exception('error/s found in get_qos output: %s', qos.errors) - return qos.to_dict() - - def add_or_update_qos(self, qos_name, specs=None, noop=SLURMREST_NOOP): - """Add or update a QoS entry. - qos_name (str): name of the QoS to be added or updated - specs (list, default None): list of specifications for the QoS - noop (bool, default False): if True, don't actually execute the action - """ - if specs is None: - specs = [] - qos_dict = { - 'v0041_openapi_qos_resp': { - 'qos': {'name': qos_name, 'specs': specs} - } - } - response = self._call_api( - self.slurmdb_api.slurmdb_v0041_post_qos, - noop=noop, - **qos_dict - ) - logger.info('added qos: %s', response) - return response - - def remove_qos(self, qos_name, noop=SLURMREST_NOOP): - response = self._call_api( - self.slurmdb_api.slurmdb_v0041_delete_single_qos, - noop=noop, - **{'qos': qos_name} - ) - logger.info('removed qos: %s', response) - return response diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..e98555c --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,6 @@ +pytest >= 7.2.1 +pytest-cov >= 2.8.1 +tox >= 3.9.0 +flake8 >= 4.0.0 +types-python-dateutil >= 2.8.19.14 +mypy >= 1.5 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_slurm_api.py b/test/test_slurm_api.py new file mode 100644 index 0000000..e2a6869 --- /dev/null +++ b/test/test_slurm_api.py @@ -0,0 +1,718 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.api.slurm_api import SlurmApi + + +class TestSlurmApi(unittest.TestCase): + """SlurmApi unit test stubs""" + + def setUp(self) -> None: + self.api = SlurmApi() + + def tearDown(self) -> None: + pass + + def test_slurm_v0041_delete_job(self) -> None: + """Test case for slurm_v0041_delete_job + + cancel or signal job + """ + pass + + def test_slurm_v0041_delete_jobs(self) -> None: + """Test case for slurm_v0041_delete_jobs + + send signal to list of jobs + """ + pass + + def test_slurm_v0041_delete_node(self) -> None: + """Test case for slurm_v0041_delete_node + + delete node + """ + pass + + def test_slurm_v0041_delete_reservation(self) -> None: + """Test case for slurm_v0041_delete_reservation + + delete a reservation + """ + pass + + def test_slurm_v0041_get_diag(self) -> None: + """Test case for slurm_v0041_get_diag + + get diagnostics + """ + pass + + def test_slurm_v0041_get_job(self) -> None: + """Test case for slurm_v0041_get_job + + get job info + """ + pass + + def test_slurm_v0041_get_jobs(self) -> None: + """Test case for slurm_v0041_get_jobs + + get list of jobs + """ + pass + + def test_slurm_v0041_get_jobs_state(self) -> None: + """Test case for slurm_v0041_get_jobs_state + + get list of job states + """ + pass + + def test_slurm_v0041_get_licenses(self) -> None: + """Test case for slurm_v0041_get_licenses + + get all Slurm tracked license info + """ + pass + + def test_slurm_v0041_get_node(self) -> None: + """Test case for slurm_v0041_get_node + + get node info + """ + pass + + def test_slurm_v0041_get_nodes(self) -> None: + """Test case for slurm_v0041_get_nodes + + get node(s) info + """ + pass + + def test_slurm_v0041_get_partition(self) -> None: + """Test case for slurm_v0041_get_partition + + get partition info + """ + pass + + def test_slurm_v0041_get_partitions(self) -> None: + """Test case for slurm_v0041_get_partitions + + get all partition info + """ + pass + + def test_slurm_v0041_get_ping(self) -> None: + """Test case for slurm_v0041_get_ping + + ping test + """ + pass + + def test_slurm_v0041_get_reconfigure(self) -> None: + """Test case for slurm_v0041_get_reconfigure + + request slurmctld reconfigure + """ + pass + + def test_slurm_v0041_get_reservation(self) -> None: + """Test case for slurm_v0041_get_reservation + + get reservation info + """ + pass + + def test_slurm_v0041_get_reservations(self) -> None: + """Test case for slurm_v0041_get_reservations + + get all reservation info + """ + pass + + def test_slurm_v0041_get_shares(self) -> None: + """Test case for slurm_v0041_get_shares + + get fairshare info + """ + pass + + def test_slurm_v0041_post_job(self) -> None: + """Test case for slurm_v0041_post_job + + update job + """ + pass + + def test_slurm_v0041_post_job_allocate(self) -> None: + """Test case for slurm_v0041_post_job_allocate + + submit new job allocation without any steps that must be signaled to stop + """ + pass + + def test_slurm_v0041_post_job_submit(self) -> None: + """Test case for slurm_v0041_post_job_submit + + submit new job + """ + pass + + def test_slurm_v0041_post_node(self) -> None: + """Test case for slurm_v0041_post_node + + update node properties + """ + pass + + def test_slurm_v0041_post_nodes(self) -> None: + """Test case for slurm_v0041_post_nodes + + batch update node(s) + """ + pass + + def test_slurm_v0042_delete_job(self) -> None: + """Test case for slurm_v0042_delete_job + + cancel or signal job + """ + pass + + def test_slurm_v0042_delete_jobs(self) -> None: + """Test case for slurm_v0042_delete_jobs + + send signal to list of jobs + """ + pass + + def test_slurm_v0042_delete_node(self) -> None: + """Test case for slurm_v0042_delete_node + + delete node + """ + pass + + def test_slurm_v0042_delete_reservation(self) -> None: + """Test case for slurm_v0042_delete_reservation + + delete a reservation + """ + pass + + def test_slurm_v0042_get_diag(self) -> None: + """Test case for slurm_v0042_get_diag + + get diagnostics + """ + pass + + def test_slurm_v0042_get_job(self) -> None: + """Test case for slurm_v0042_get_job + + get job info + """ + pass + + def test_slurm_v0042_get_jobs(self) -> None: + """Test case for slurm_v0042_get_jobs + + get list of jobs + """ + pass + + def test_slurm_v0042_get_jobs_state(self) -> None: + """Test case for slurm_v0042_get_jobs_state + + get list of job states + """ + pass + + def test_slurm_v0042_get_licenses(self) -> None: + """Test case for slurm_v0042_get_licenses + + get all Slurm tracked license info + """ + pass + + def test_slurm_v0042_get_node(self) -> None: + """Test case for slurm_v0042_get_node + + get node info + """ + pass + + def test_slurm_v0042_get_nodes(self) -> None: + """Test case for slurm_v0042_get_nodes + + get node(s) info + """ + pass + + def test_slurm_v0042_get_partition(self) -> None: + """Test case for slurm_v0042_get_partition + + get partition info + """ + pass + + def test_slurm_v0042_get_partitions(self) -> None: + """Test case for slurm_v0042_get_partitions + + get all partition info + """ + pass + + def test_slurm_v0042_get_ping(self) -> None: + """Test case for slurm_v0042_get_ping + + ping test + """ + pass + + def test_slurm_v0042_get_reconfigure(self) -> None: + """Test case for slurm_v0042_get_reconfigure + + request slurmctld reconfigure + """ + pass + + def test_slurm_v0042_get_reservation(self) -> None: + """Test case for slurm_v0042_get_reservation + + get reservation info + """ + pass + + def test_slurm_v0042_get_reservations(self) -> None: + """Test case for slurm_v0042_get_reservations + + get all reservation info + """ + pass + + def test_slurm_v0042_get_shares(self) -> None: + """Test case for slurm_v0042_get_shares + + get fairshare info + """ + pass + + def test_slurm_v0042_post_job(self) -> None: + """Test case for slurm_v0042_post_job + + update job + """ + pass + + def test_slurm_v0042_post_job_allocate(self) -> None: + """Test case for slurm_v0042_post_job_allocate + + submit new job allocation without any steps that must be signaled to stop + """ + pass + + def test_slurm_v0042_post_job_submit(self) -> None: + """Test case for slurm_v0042_post_job_submit + + submit new job + """ + pass + + def test_slurm_v0042_post_node(self) -> None: + """Test case for slurm_v0042_post_node + + update node properties + """ + pass + + def test_slurm_v0042_post_nodes(self) -> None: + """Test case for slurm_v0042_post_nodes + + batch update node(s) + """ + pass + + def test_slurm_v0043_delete_job(self) -> None: + """Test case for slurm_v0043_delete_job + + cancel or signal job + """ + pass + + def test_slurm_v0043_delete_jobs(self) -> None: + """Test case for slurm_v0043_delete_jobs + + send signal to list of jobs + """ + pass + + def test_slurm_v0043_delete_node(self) -> None: + """Test case for slurm_v0043_delete_node + + delete node + """ + pass + + def test_slurm_v0043_delete_reservation(self) -> None: + """Test case for slurm_v0043_delete_reservation + + delete a reservation + """ + pass + + def test_slurm_v0043_get_diag(self) -> None: + """Test case for slurm_v0043_get_diag + + get diagnostics + """ + pass + + def test_slurm_v0043_get_job(self) -> None: + """Test case for slurm_v0043_get_job + + get job info + """ + pass + + def test_slurm_v0043_get_jobs(self) -> None: + """Test case for slurm_v0043_get_jobs + + get list of jobs + """ + pass + + def test_slurm_v0043_get_jobs_state(self) -> None: + """Test case for slurm_v0043_get_jobs_state + + get list of job states + """ + pass + + def test_slurm_v0043_get_licenses(self) -> None: + """Test case for slurm_v0043_get_licenses + + get all Slurm tracked license info + """ + pass + + def test_slurm_v0043_get_node(self) -> None: + """Test case for slurm_v0043_get_node + + get node info + """ + pass + + def test_slurm_v0043_get_nodes(self) -> None: + """Test case for slurm_v0043_get_nodes + + get node(s) info + """ + pass + + def test_slurm_v0043_get_partition(self) -> None: + """Test case for slurm_v0043_get_partition + + get partition info + """ + pass + + def test_slurm_v0043_get_partitions(self) -> None: + """Test case for slurm_v0043_get_partitions + + get all partition info + """ + pass + + def test_slurm_v0043_get_ping(self) -> None: + """Test case for slurm_v0043_get_ping + + ping test + """ + pass + + def test_slurm_v0043_get_reconfigure(self) -> None: + """Test case for slurm_v0043_get_reconfigure + + request slurmctld reconfigure + """ + pass + + def test_slurm_v0043_get_reservation(self) -> None: + """Test case for slurm_v0043_get_reservation + + get reservation info + """ + pass + + def test_slurm_v0043_get_reservations(self) -> None: + """Test case for slurm_v0043_get_reservations + + get all reservation info + """ + pass + + def test_slurm_v0043_get_shares(self) -> None: + """Test case for slurm_v0043_get_shares + + get fairshare info + """ + pass + + def test_slurm_v0043_post_job(self) -> None: + """Test case for slurm_v0043_post_job + + update job + """ + pass + + def test_slurm_v0043_post_job_allocate(self) -> None: + """Test case for slurm_v0043_post_job_allocate + + submit new job allocation without any steps that must be signaled to stop + """ + pass + + def test_slurm_v0043_post_job_submit(self) -> None: + """Test case for slurm_v0043_post_job_submit + + submit new job + """ + pass + + def test_slurm_v0043_post_node(self) -> None: + """Test case for slurm_v0043_post_node + + update node properties + """ + pass + + def test_slurm_v0043_post_nodes(self) -> None: + """Test case for slurm_v0043_post_nodes + + batch update node(s) + """ + pass + + def test_slurm_v0043_post_reservation(self) -> None: + """Test case for slurm_v0043_post_reservation + + create or update a reservation + """ + pass + + def test_slurm_v0043_post_reservations(self) -> None: + """Test case for slurm_v0043_post_reservations + + create or update reservations + """ + pass + + def test_slurm_v0044_delete_job(self) -> None: + """Test case for slurm_v0044_delete_job + + cancel or signal job + """ + pass + + def test_slurm_v0044_delete_jobs(self) -> None: + """Test case for slurm_v0044_delete_jobs + + send signal to list of jobs + """ + pass + + def test_slurm_v0044_delete_node(self) -> None: + """Test case for slurm_v0044_delete_node + + delete node + """ + pass + + def test_slurm_v0044_delete_reservation(self) -> None: + """Test case for slurm_v0044_delete_reservation + + delete a reservation + """ + pass + + def test_slurm_v0044_get_diag(self) -> None: + """Test case for slurm_v0044_get_diag + + get diagnostics + """ + pass + + def test_slurm_v0044_get_job(self) -> None: + """Test case for slurm_v0044_get_job + + get job info + """ + pass + + def test_slurm_v0044_get_jobs(self) -> None: + """Test case for slurm_v0044_get_jobs + + get list of jobs + """ + pass + + def test_slurm_v0044_get_jobs_state(self) -> None: + """Test case for slurm_v0044_get_jobs_state + + get list of job states + """ + pass + + def test_slurm_v0044_get_licenses(self) -> None: + """Test case for slurm_v0044_get_licenses + + get all Slurm tracked license info + """ + pass + + def test_slurm_v0044_get_node(self) -> None: + """Test case for slurm_v0044_get_node + + get node info + """ + pass + + def test_slurm_v0044_get_nodes(self) -> None: + """Test case for slurm_v0044_get_nodes + + get node(s) info + """ + pass + + def test_slurm_v0044_get_partition(self) -> None: + """Test case for slurm_v0044_get_partition + + get partition info + """ + pass + + def test_slurm_v0044_get_partitions(self) -> None: + """Test case for slurm_v0044_get_partitions + + get all partition info + """ + pass + + def test_slurm_v0044_get_ping(self) -> None: + """Test case for slurm_v0044_get_ping + + ping test + """ + pass + + def test_slurm_v0044_get_reconfigure(self) -> None: + """Test case for slurm_v0044_get_reconfigure + + request slurmctld reconfigure + """ + pass + + def test_slurm_v0044_get_reservation(self) -> None: + """Test case for slurm_v0044_get_reservation + + get reservation info + """ + pass + + def test_slurm_v0044_get_reservations(self) -> None: + """Test case for slurm_v0044_get_reservations + + get all reservation info + """ + pass + + def test_slurm_v0044_get_resources(self) -> None: + """Test case for slurm_v0044_get_resources + + get resource layout info + """ + pass + + def test_slurm_v0044_get_shares(self) -> None: + """Test case for slurm_v0044_get_shares + + get fairshare info + """ + pass + + def test_slurm_v0044_post_job(self) -> None: + """Test case for slurm_v0044_post_job + + update job + """ + pass + + def test_slurm_v0044_post_job_allocate(self) -> None: + """Test case for slurm_v0044_post_job_allocate + + submit new job allocation without any steps that must be signaled to stop + """ + pass + + def test_slurm_v0044_post_job_submit(self) -> None: + """Test case for slurm_v0044_post_job_submit + + submit new job + """ + pass + + def test_slurm_v0044_post_new_node(self) -> None: + """Test case for slurm_v0044_post_new_node + + create node + """ + pass + + def test_slurm_v0044_post_node(self) -> None: + """Test case for slurm_v0044_post_node + + update node properties + """ + pass + + def test_slurm_v0044_post_nodes(self) -> None: + """Test case for slurm_v0044_post_nodes + + batch update node(s) + """ + pass + + def test_slurm_v0044_post_reservation(self) -> None: + """Test case for slurm_v0044_post_reservation + + create or update a reservation + """ + pass + + def test_slurm_v0044_post_reservations(self) -> None: + """Test case for slurm_v0044_post_reservations + + create or update reservations + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_slurmdb_api.py b/test/test_slurmdb_api.py new file mode 100644 index 0000000..8a668f0 --- /dev/null +++ b/test/test_slurmdb_api.py @@ -0,0 +1,1075 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.api.slurmdb_api import SlurmdbApi + + +class TestSlurmdbApi(unittest.TestCase): + """SlurmdbApi unit test stubs""" + + def setUp(self) -> None: + self.api = SlurmdbApi() + + def tearDown(self) -> None: + pass + + def test_slurmdb_v0041_delete_account(self) -> None: + """Test case for slurmdb_v0041_delete_account + + Delete account + """ + pass + + def test_slurmdb_v0041_delete_association(self) -> None: + """Test case for slurmdb_v0041_delete_association + + Delete association + """ + pass + + def test_slurmdb_v0041_delete_associations(self) -> None: + """Test case for slurmdb_v0041_delete_associations + + Delete associations + """ + pass + + def test_slurmdb_v0041_delete_cluster(self) -> None: + """Test case for slurmdb_v0041_delete_cluster + + Delete cluster + """ + pass + + def test_slurmdb_v0041_delete_single_qos(self) -> None: + """Test case for slurmdb_v0041_delete_single_qos + + Delete QOS + """ + pass + + def test_slurmdb_v0041_delete_user(self) -> None: + """Test case for slurmdb_v0041_delete_user + + Delete user + """ + pass + + def test_slurmdb_v0041_delete_wckey(self) -> None: + """Test case for slurmdb_v0041_delete_wckey + + Delete wckey + """ + pass + + def test_slurmdb_v0041_get_account(self) -> None: + """Test case for slurmdb_v0041_get_account + + Get account info + """ + pass + + def test_slurmdb_v0041_get_accounts(self) -> None: + """Test case for slurmdb_v0041_get_accounts + + Get account list + """ + pass + + def test_slurmdb_v0041_get_association(self) -> None: + """Test case for slurmdb_v0041_get_association + + Get association info + """ + pass + + def test_slurmdb_v0041_get_associations(self) -> None: + """Test case for slurmdb_v0041_get_associations + + Get association list + """ + pass + + def test_slurmdb_v0041_get_cluster(self) -> None: + """Test case for slurmdb_v0041_get_cluster + + Get cluster info + """ + pass + + def test_slurmdb_v0041_get_clusters(self) -> None: + """Test case for slurmdb_v0041_get_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0041_get_config(self) -> None: + """Test case for slurmdb_v0041_get_config + + Dump all configuration information + """ + pass + + def test_slurmdb_v0041_get_diag(self) -> None: + """Test case for slurmdb_v0041_get_diag + + Get slurmdb diagnostics + """ + pass + + def test_slurmdb_v0041_get_instance(self) -> None: + """Test case for slurmdb_v0041_get_instance + + Get instance info + """ + pass + + def test_slurmdb_v0041_get_instances(self) -> None: + """Test case for slurmdb_v0041_get_instances + + Get instance list + """ + pass + + def test_slurmdb_v0041_get_job(self) -> None: + """Test case for slurmdb_v0041_get_job + + Get job info + """ + pass + + def test_slurmdb_v0041_get_jobs(self) -> None: + """Test case for slurmdb_v0041_get_jobs + + Get job list + """ + pass + + def test_slurmdb_v0041_get_qos(self) -> None: + """Test case for slurmdb_v0041_get_qos + + Get QOS list + """ + pass + + def test_slurmdb_v0041_get_single_qos(self) -> None: + """Test case for slurmdb_v0041_get_single_qos + + Get QOS info + """ + pass + + def test_slurmdb_v0041_get_tres(self) -> None: + """Test case for slurmdb_v0041_get_tres + + Get TRES info + """ + pass + + def test_slurmdb_v0041_get_user(self) -> None: + """Test case for slurmdb_v0041_get_user + + Get user info + """ + pass + + def test_slurmdb_v0041_get_users(self) -> None: + """Test case for slurmdb_v0041_get_users + + Get user list + """ + pass + + def test_slurmdb_v0041_get_wckey(self) -> None: + """Test case for slurmdb_v0041_get_wckey + + Get wckey info + """ + pass + + def test_slurmdb_v0041_get_wckeys(self) -> None: + """Test case for slurmdb_v0041_get_wckeys + + Get wckey list + """ + pass + + def test_slurmdb_v0041_post_accounts(self) -> None: + """Test case for slurmdb_v0041_post_accounts + + Add/update list of accounts + """ + pass + + def test_slurmdb_v0041_post_accounts_association(self) -> None: + """Test case for slurmdb_v0041_post_accounts_association + + Add accounts with conditional association + """ + pass + + def test_slurmdb_v0041_post_associations(self) -> None: + """Test case for slurmdb_v0041_post_associations + + Set associations info + """ + pass + + def test_slurmdb_v0041_post_clusters(self) -> None: + """Test case for slurmdb_v0041_post_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0041_post_config(self) -> None: + """Test case for slurmdb_v0041_post_config + + Load all configuration information + """ + pass + + def test_slurmdb_v0041_post_qos(self) -> None: + """Test case for slurmdb_v0041_post_qos + + Add or update QOSs + """ + pass + + def test_slurmdb_v0041_post_tres(self) -> None: + """Test case for slurmdb_v0041_post_tres + + Add TRES + """ + pass + + def test_slurmdb_v0041_post_users(self) -> None: + """Test case for slurmdb_v0041_post_users + + Update users + """ + pass + + def test_slurmdb_v0041_post_users_association(self) -> None: + """Test case for slurmdb_v0041_post_users_association + + Add users with conditional association + """ + pass + + def test_slurmdb_v0041_post_wckeys(self) -> None: + """Test case for slurmdb_v0041_post_wckeys + + Add or update wckeys + """ + pass + + def test_slurmdb_v0042_delete_account(self) -> None: + """Test case for slurmdb_v0042_delete_account + + Delete account + """ + pass + + def test_slurmdb_v0042_delete_association(self) -> None: + """Test case for slurmdb_v0042_delete_association + + Delete association + """ + pass + + def test_slurmdb_v0042_delete_associations(self) -> None: + """Test case for slurmdb_v0042_delete_associations + + Delete associations + """ + pass + + def test_slurmdb_v0042_delete_cluster(self) -> None: + """Test case for slurmdb_v0042_delete_cluster + + Delete cluster + """ + pass + + def test_slurmdb_v0042_delete_single_qos(self) -> None: + """Test case for slurmdb_v0042_delete_single_qos + + Delete QOS + """ + pass + + def test_slurmdb_v0042_delete_user(self) -> None: + """Test case for slurmdb_v0042_delete_user + + Delete user + """ + pass + + def test_slurmdb_v0042_delete_wckey(self) -> None: + """Test case for slurmdb_v0042_delete_wckey + + Delete wckey + """ + pass + + def test_slurmdb_v0042_get_account(self) -> None: + """Test case for slurmdb_v0042_get_account + + Get account info + """ + pass + + def test_slurmdb_v0042_get_accounts(self) -> None: + """Test case for slurmdb_v0042_get_accounts + + Get account list + """ + pass + + def test_slurmdb_v0042_get_association(self) -> None: + """Test case for slurmdb_v0042_get_association + + Get association info + """ + pass + + def test_slurmdb_v0042_get_associations(self) -> None: + """Test case for slurmdb_v0042_get_associations + + Get association list + """ + pass + + def test_slurmdb_v0042_get_cluster(self) -> None: + """Test case for slurmdb_v0042_get_cluster + + Get cluster info + """ + pass + + def test_slurmdb_v0042_get_clusters(self) -> None: + """Test case for slurmdb_v0042_get_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0042_get_config(self) -> None: + """Test case for slurmdb_v0042_get_config + + Dump all configuration information + """ + pass + + def test_slurmdb_v0042_get_diag(self) -> None: + """Test case for slurmdb_v0042_get_diag + + Get slurmdb diagnostics + """ + pass + + def test_slurmdb_v0042_get_instance(self) -> None: + """Test case for slurmdb_v0042_get_instance + + Get instance info + """ + pass + + def test_slurmdb_v0042_get_instances(self) -> None: + """Test case for slurmdb_v0042_get_instances + + Get instance list + """ + pass + + def test_slurmdb_v0042_get_job(self) -> None: + """Test case for slurmdb_v0042_get_job + + Get job info + """ + pass + + def test_slurmdb_v0042_get_jobs(self) -> None: + """Test case for slurmdb_v0042_get_jobs + + Get job list + """ + pass + + def test_slurmdb_v0042_get_ping(self) -> None: + """Test case for slurmdb_v0042_get_ping + + ping test + """ + pass + + def test_slurmdb_v0042_get_qos(self) -> None: + """Test case for slurmdb_v0042_get_qos + + Get QOS list + """ + pass + + def test_slurmdb_v0042_get_single_qos(self) -> None: + """Test case for slurmdb_v0042_get_single_qos + + Get QOS info + """ + pass + + def test_slurmdb_v0042_get_tres(self) -> None: + """Test case for slurmdb_v0042_get_tres + + Get TRES info + """ + pass + + def test_slurmdb_v0042_get_user(self) -> None: + """Test case for slurmdb_v0042_get_user + + Get user info + """ + pass + + def test_slurmdb_v0042_get_users(self) -> None: + """Test case for slurmdb_v0042_get_users + + Get user list + """ + pass + + def test_slurmdb_v0042_get_wckey(self) -> None: + """Test case for slurmdb_v0042_get_wckey + + Get wckey info + """ + pass + + def test_slurmdb_v0042_get_wckeys(self) -> None: + """Test case for slurmdb_v0042_get_wckeys + + Get wckey list + """ + pass + + def test_slurmdb_v0042_post_accounts(self) -> None: + """Test case for slurmdb_v0042_post_accounts + + Add/update list of accounts + """ + pass + + def test_slurmdb_v0042_post_accounts_association(self) -> None: + """Test case for slurmdb_v0042_post_accounts_association + + Add accounts with conditional association + """ + pass + + def test_slurmdb_v0042_post_associations(self) -> None: + """Test case for slurmdb_v0042_post_associations + + Set associations info + """ + pass + + def test_slurmdb_v0042_post_clusters(self) -> None: + """Test case for slurmdb_v0042_post_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0042_post_config(self) -> None: + """Test case for slurmdb_v0042_post_config + + Load all configuration information + """ + pass + + def test_slurmdb_v0042_post_qos(self) -> None: + """Test case for slurmdb_v0042_post_qos + + Add or update QOSs + """ + pass + + def test_slurmdb_v0042_post_tres(self) -> None: + """Test case for slurmdb_v0042_post_tres + + Add TRES + """ + pass + + def test_slurmdb_v0042_post_users(self) -> None: + """Test case for slurmdb_v0042_post_users + + Update users + """ + pass + + def test_slurmdb_v0042_post_users_association(self) -> None: + """Test case for slurmdb_v0042_post_users_association + + Add users with conditional association + """ + pass + + def test_slurmdb_v0042_post_wckeys(self) -> None: + """Test case for slurmdb_v0042_post_wckeys + + Add or update wckeys + """ + pass + + def test_slurmdb_v0043_delete_account(self) -> None: + """Test case for slurmdb_v0043_delete_account + + Delete account + """ + pass + + def test_slurmdb_v0043_delete_association(self) -> None: + """Test case for slurmdb_v0043_delete_association + + Delete association + """ + pass + + def test_slurmdb_v0043_delete_associations(self) -> None: + """Test case for slurmdb_v0043_delete_associations + + Delete associations + """ + pass + + def test_slurmdb_v0043_delete_cluster(self) -> None: + """Test case for slurmdb_v0043_delete_cluster + + Delete cluster + """ + pass + + def test_slurmdb_v0043_delete_single_qos(self) -> None: + """Test case for slurmdb_v0043_delete_single_qos + + Delete QOS + """ + pass + + def test_slurmdb_v0043_delete_user(self) -> None: + """Test case for slurmdb_v0043_delete_user + + Delete user + """ + pass + + def test_slurmdb_v0043_delete_wckey(self) -> None: + """Test case for slurmdb_v0043_delete_wckey + + Delete wckey + """ + pass + + def test_slurmdb_v0043_get_account(self) -> None: + """Test case for slurmdb_v0043_get_account + + Get account info + """ + pass + + def test_slurmdb_v0043_get_accounts(self) -> None: + """Test case for slurmdb_v0043_get_accounts + + Get account list + """ + pass + + def test_slurmdb_v0043_get_association(self) -> None: + """Test case for slurmdb_v0043_get_association + + Get association info + """ + pass + + def test_slurmdb_v0043_get_associations(self) -> None: + """Test case for slurmdb_v0043_get_associations + + Get association list + """ + pass + + def test_slurmdb_v0043_get_cluster(self) -> None: + """Test case for slurmdb_v0043_get_cluster + + Get cluster info + """ + pass + + def test_slurmdb_v0043_get_clusters(self) -> None: + """Test case for slurmdb_v0043_get_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0043_get_config(self) -> None: + """Test case for slurmdb_v0043_get_config + + Dump all configuration information + """ + pass + + def test_slurmdb_v0043_get_diag(self) -> None: + """Test case for slurmdb_v0043_get_diag + + Get slurmdb diagnostics + """ + pass + + def test_slurmdb_v0043_get_instance(self) -> None: + """Test case for slurmdb_v0043_get_instance + + Get instance info + """ + pass + + def test_slurmdb_v0043_get_instances(self) -> None: + """Test case for slurmdb_v0043_get_instances + + Get instance list + """ + pass + + def test_slurmdb_v0043_get_job(self) -> None: + """Test case for slurmdb_v0043_get_job + + Get job info + """ + pass + + def test_slurmdb_v0043_get_jobs(self) -> None: + """Test case for slurmdb_v0043_get_jobs + + Get job list + """ + pass + + def test_slurmdb_v0043_get_ping(self) -> None: + """Test case for slurmdb_v0043_get_ping + + ping test + """ + pass + + def test_slurmdb_v0043_get_qos(self) -> None: + """Test case for slurmdb_v0043_get_qos + + Get QOS list + """ + pass + + def test_slurmdb_v0043_get_single_qos(self) -> None: + """Test case for slurmdb_v0043_get_single_qos + + Get QOS info + """ + pass + + def test_slurmdb_v0043_get_tres(self) -> None: + """Test case for slurmdb_v0043_get_tres + + Get TRES info + """ + pass + + def test_slurmdb_v0043_get_user(self) -> None: + """Test case for slurmdb_v0043_get_user + + Get user info + """ + pass + + def test_slurmdb_v0043_get_users(self) -> None: + """Test case for slurmdb_v0043_get_users + + Get user list + """ + pass + + def test_slurmdb_v0043_get_wckey(self) -> None: + """Test case for slurmdb_v0043_get_wckey + + Get wckey info + """ + pass + + def test_slurmdb_v0043_get_wckeys(self) -> None: + """Test case for slurmdb_v0043_get_wckeys + + Get wckey list + """ + pass + + def test_slurmdb_v0043_post_accounts(self) -> None: + """Test case for slurmdb_v0043_post_accounts + + Add/update list of accounts + """ + pass + + def test_slurmdb_v0043_post_accounts_association(self) -> None: + """Test case for slurmdb_v0043_post_accounts_association + + Add accounts with conditional association + """ + pass + + def test_slurmdb_v0043_post_associations(self) -> None: + """Test case for slurmdb_v0043_post_associations + + Set associations info + """ + pass + + def test_slurmdb_v0043_post_clusters(self) -> None: + """Test case for slurmdb_v0043_post_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0043_post_config(self) -> None: + """Test case for slurmdb_v0043_post_config + + Load all configuration information + """ + pass + + def test_slurmdb_v0043_post_qos(self) -> None: + """Test case for slurmdb_v0043_post_qos + + Add or update QOSs + """ + pass + + def test_slurmdb_v0043_post_tres(self) -> None: + """Test case for slurmdb_v0043_post_tres + + Add TRES + """ + pass + + def test_slurmdb_v0043_post_users(self) -> None: + """Test case for slurmdb_v0043_post_users + + Update users + """ + pass + + def test_slurmdb_v0043_post_users_association(self) -> None: + """Test case for slurmdb_v0043_post_users_association + + Add users with conditional association + """ + pass + + def test_slurmdb_v0043_post_wckeys(self) -> None: + """Test case for slurmdb_v0043_post_wckeys + + Add or update wckeys + """ + pass + + def test_slurmdb_v0044_delete_account(self) -> None: + """Test case for slurmdb_v0044_delete_account + + Delete account + """ + pass + + def test_slurmdb_v0044_delete_association(self) -> None: + """Test case for slurmdb_v0044_delete_association + + Delete association + """ + pass + + def test_slurmdb_v0044_delete_associations(self) -> None: + """Test case for slurmdb_v0044_delete_associations + + Delete associations + """ + pass + + def test_slurmdb_v0044_delete_cluster(self) -> None: + """Test case for slurmdb_v0044_delete_cluster + + Delete cluster + """ + pass + + def test_slurmdb_v0044_delete_single_qos(self) -> None: + """Test case for slurmdb_v0044_delete_single_qos + + Delete QOS + """ + pass + + def test_slurmdb_v0044_delete_user(self) -> None: + """Test case for slurmdb_v0044_delete_user + + Delete user + """ + pass + + def test_slurmdb_v0044_delete_wckey(self) -> None: + """Test case for slurmdb_v0044_delete_wckey + + Delete wckey + """ + pass + + def test_slurmdb_v0044_get_account(self) -> None: + """Test case for slurmdb_v0044_get_account + + Get account info + """ + pass + + def test_slurmdb_v0044_get_accounts(self) -> None: + """Test case for slurmdb_v0044_get_accounts + + Get account list + """ + pass + + def test_slurmdb_v0044_get_association(self) -> None: + """Test case for slurmdb_v0044_get_association + + Get association info + """ + pass + + def test_slurmdb_v0044_get_associations(self) -> None: + """Test case for slurmdb_v0044_get_associations + + Get association list + """ + pass + + def test_slurmdb_v0044_get_cluster(self) -> None: + """Test case for slurmdb_v0044_get_cluster + + Get cluster info + """ + pass + + def test_slurmdb_v0044_get_clusters(self) -> None: + """Test case for slurmdb_v0044_get_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0044_get_config(self) -> None: + """Test case for slurmdb_v0044_get_config + + Dump all configuration information + """ + pass + + def test_slurmdb_v0044_get_diag(self) -> None: + """Test case for slurmdb_v0044_get_diag + + Get slurmdb diagnostics + """ + pass + + def test_slurmdb_v0044_get_instance(self) -> None: + """Test case for slurmdb_v0044_get_instance + + Get instance info + """ + pass + + def test_slurmdb_v0044_get_instances(self) -> None: + """Test case for slurmdb_v0044_get_instances + + Get instance list + """ + pass + + def test_slurmdb_v0044_get_job(self) -> None: + """Test case for slurmdb_v0044_get_job + + Get job info + """ + pass + + def test_slurmdb_v0044_get_jobs(self) -> None: + """Test case for slurmdb_v0044_get_jobs + + Get job list + """ + pass + + def test_slurmdb_v0044_get_ping(self) -> None: + """Test case for slurmdb_v0044_get_ping + + ping test + """ + pass + + def test_slurmdb_v0044_get_qos(self) -> None: + """Test case for slurmdb_v0044_get_qos + + Get QOS list + """ + pass + + def test_slurmdb_v0044_get_single_qos(self) -> None: + """Test case for slurmdb_v0044_get_single_qos + + Get QOS info + """ + pass + + def test_slurmdb_v0044_get_tres(self) -> None: + """Test case for slurmdb_v0044_get_tres + + Get TRES info + """ + pass + + def test_slurmdb_v0044_get_user(self) -> None: + """Test case for slurmdb_v0044_get_user + + Get user info + """ + pass + + def test_slurmdb_v0044_get_users(self) -> None: + """Test case for slurmdb_v0044_get_users + + Get user list + """ + pass + + def test_slurmdb_v0044_get_wckey(self) -> None: + """Test case for slurmdb_v0044_get_wckey + + Get wckey info + """ + pass + + def test_slurmdb_v0044_get_wckeys(self) -> None: + """Test case for slurmdb_v0044_get_wckeys + + Get wckey list + """ + pass + + def test_slurmdb_v0044_post_accounts(self) -> None: + """Test case for slurmdb_v0044_post_accounts + + Add/update list of accounts + """ + pass + + def test_slurmdb_v0044_post_accounts_association(self) -> None: + """Test case for slurmdb_v0044_post_accounts_association + + Add accounts with conditional association + """ + pass + + def test_slurmdb_v0044_post_associations(self) -> None: + """Test case for slurmdb_v0044_post_associations + + Set associations info + """ + pass + + def test_slurmdb_v0044_post_clusters(self) -> None: + """Test case for slurmdb_v0044_post_clusters + + Get cluster list + """ + pass + + def test_slurmdb_v0044_post_config(self) -> None: + """Test case for slurmdb_v0044_post_config + + Load all configuration information + """ + pass + + def test_slurmdb_v0044_post_job(self) -> None: + """Test case for slurmdb_v0044_post_job + + Update job + """ + pass + + def test_slurmdb_v0044_post_jobs(self) -> None: + """Test case for slurmdb_v0044_post_jobs + + Update jobs + """ + pass + + def test_slurmdb_v0044_post_qos(self) -> None: + """Test case for slurmdb_v0044_post_qos + + Add or update QOSs + """ + pass + + def test_slurmdb_v0044_post_tres(self) -> None: + """Test case for slurmdb_v0044_post_tres + + Add TRES + """ + pass + + def test_slurmdb_v0044_post_users(self) -> None: + """Test case for slurmdb_v0044_post_users + + Update users + """ + pass + + def test_slurmdb_v0044_post_users_association(self) -> None: + """Test case for slurmdb_v0044_post_users_association + + Add users with conditional association + """ + pass + + def test_slurmdb_v0044_post_wckeys(self) -> None: + """Test case for slurmdb_v0044_post_wckeys + + Add or update wckeys + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_util_api.py b/test/test_util_api.py new file mode 100644 index 0000000..8b04607 --- /dev/null +++ b/test/test_util_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.api.util_api import UtilApi + + +class TestUtilApi(unittest.TestCase): + """UtilApi unit test stubs""" + + def setUp(self) -> None: + self.api = UtilApi() + + def tearDown(self) -> None: + pass + + def test_util_v0044_post_hostlist(self) -> None: + """Test case for util_v0044_post_hostlist + + Convert an array of host names into hostlist expression + """ + pass + + def test_util_v0044_post_hostnames(self) -> None: + """Test case for util_v0044_post_hostnames + + Convert a hostlist expression into array of host names + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_alloc_req.py b/test/test_v0041_job_alloc_req.py new file mode 100644 index 0000000..04b2ced --- /dev/null +++ b/test/test_v0041_job_alloc_req.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_alloc_req import V0041JobAllocReq + +class TestV0041JobAllocReq(unittest.TestCase): + """V0041JobAllocReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobAllocReq: + """Test V0041JobAllocReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobAllocReq` + """ + model = V0041JobAllocReq() + if include_optional: + return V0041JobAllocReq( + hetjob = [ + slurmrest_python.models.v0/0/41_job_desc_msg.v0.0.41_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0_0_41_job_desc_msg_begin_time.v0_0_41_job_desc_msg_begin_time( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0_0_41_job_desc_msg_crontab.v0_0_41_job_desc_msg_crontab( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits.v0_0_41_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_cpu.v0_0_41_job_desc_msg_rlimits_cpu( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_fsize.v0_0_41_job_desc_msg_rlimits_fsize( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_data.v0_0_41_job_desc_msg_rlimits_data( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_stack.v0_0_41_job_desc_msg_rlimits_stack( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_core.v0_0_41_job_desc_msg_rlimits_core( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_rss.v0_0_41_job_desc_msg_rlimits_rss( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nproc.v0_0_41_job_desc_msg_rlimits_nproc( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nofile.v0_0_41_job_desc_msg_rlimits_nofile( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_memlock.v0_0_41_job_desc_msg_rlimits_memlock( + set = True, + infinite = True, + number = 56, ), + as = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_as.v0_0_41_job_desc_msg_rlimits_as( + set = True, + infinite = True, + number = 56, ), ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0_0_41_job_desc_msg_distribution_plane_size.v0_0_41_job_desc_msg_distribution_plane_size( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + resv_mpi_ports = 56, + script = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + site_factor = 56, + spank_environment = [ + '' + ], + distribution = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0_0_41_job_desc_msg_kill_warning_delay.v0_0_41_job_desc_msg_kill_warning_delay( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0_0_41_job_desc_msg_required_switches.v0_0_41_job_desc_msg_required_switches( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0_0_41_job_desc_msg_segment_size.v0_0_41_job_desc_msg_segment_size( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/41_job_desc_msg.v0.0.41_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0_0_41_job_desc_msg_begin_time.v0_0_41_job_desc_msg_begin_time( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0_0_41_job_desc_msg_crontab.v0_0_41_job_desc_msg_crontab( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits.v0_0_41_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_cpu.v0_0_41_job_desc_msg_rlimits_cpu( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_fsize.v0_0_41_job_desc_msg_rlimits_fsize( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_data.v0_0_41_job_desc_msg_rlimits_data( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_stack.v0_0_41_job_desc_msg_rlimits_stack( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_core.v0_0_41_job_desc_msg_rlimits_core( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_rss.v0_0_41_job_desc_msg_rlimits_rss( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nproc.v0_0_41_job_desc_msg_rlimits_nproc( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nofile.v0_0_41_job_desc_msg_rlimits_nofile( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_memlock.v0_0_41_job_desc_msg_rlimits_memlock( + set = True, + infinite = True, + number = 56, ), + as = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_as.v0_0_41_job_desc_msg_rlimits_as( + set = True, + infinite = True, + number = 56, ), ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0_0_41_job_desc_msg_distribution_plane_size.v0_0_41_job_desc_msg_distribution_plane_size( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + resv_mpi_ports = 56, + script = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + site_factor = 56, + spank_environment = [ + '' + ], + distribution = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0_0_41_job_desc_msg_kill_warning_delay.v0_0_41_job_desc_msg_kill_warning_delay( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0_0_41_job_desc_msg_required_switches.v0_0_41_job_desc_msg_required_switches( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0_0_41_job_desc_msg_segment_size.v0_0_41_job_desc_msg_segment_size( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0041JobAllocReq( + ) + """ + + def testV0041JobAllocReq(self): + """Test V0041JobAllocReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg.py b/test/test_v0041_job_desc_msg.py new file mode 100644 index 0000000..9f9590c --- /dev/null +++ b/test/test_v0041_job_desc_msg.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg import V0041JobDescMsg + +class TestV0041JobDescMsg(unittest.TestCase): + """V0041JobDescMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsg: + """Test V0041JobDescMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsg` + """ + model = V0041JobDescMsg() + if include_optional: + return V0041JobDescMsg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0_0_41_job_desc_msg_begin_time.v0_0_41_job_desc_msg_begin_time( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0_0_41_job_desc_msg_crontab.v0_0_41_job_desc_msg_crontab( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits.v0_0_41_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_cpu.v0_0_41_job_desc_msg_rlimits_cpu( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_fsize.v0_0_41_job_desc_msg_rlimits_fsize( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_data.v0_0_41_job_desc_msg_rlimits_data( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_stack.v0_0_41_job_desc_msg_rlimits_stack( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_core.v0_0_41_job_desc_msg_rlimits_core( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_rss.v0_0_41_job_desc_msg_rlimits_rss( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nproc.v0_0_41_job_desc_msg_rlimits_nproc( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nofile.v0_0_41_job_desc_msg_rlimits_nofile( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_memlock.v0_0_41_job_desc_msg_rlimits_memlock( + set = True, + infinite = True, + number = 56, ), + as = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_as.v0_0_41_job_desc_msg_rlimits_as( + set = True, + infinite = True, + number = 56, ), ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0_0_41_job_desc_msg_distribution_plane_size.v0_0_41_job_desc_msg_distribution_plane_size( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + resv_mpi_ports = 56, + script = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + site_factor = 56, + spank_environment = [ + '' + ], + distribution = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0_0_41_job_desc_msg_kill_warning_delay.v0_0_41_job_desc_msg_kill_warning_delay( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0_0_41_job_desc_msg_required_switches.v0_0_41_job_desc_msg_required_switches( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0_0_41_job_desc_msg_segment_size.v0_0_41_job_desc_msg_segment_size( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56 + ) + else: + return V0041JobDescMsg( + ) + """ + + def testV0041JobDescMsg(self): + """Test V0041JobDescMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_begin_time.py b/test/test_v0041_job_desc_msg_begin_time.py new file mode 100644 index 0000000..a428028 --- /dev/null +++ b/test/test_v0041_job_desc_msg_begin_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_begin_time import V0041JobDescMsgBeginTime + +class TestV0041JobDescMsgBeginTime(unittest.TestCase): + """V0041JobDescMsgBeginTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgBeginTime: + """Test V0041JobDescMsgBeginTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgBeginTime` + """ + model = V0041JobDescMsgBeginTime() + if include_optional: + return V0041JobDescMsgBeginTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgBeginTime( + ) + """ + + def testV0041JobDescMsgBeginTime(self): + """Test V0041JobDescMsgBeginTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_crontab.py b/test/test_v0041_job_desc_msg_crontab.py new file mode 100644 index 0000000..3eb6659 --- /dev/null +++ b/test/test_v0041_job_desc_msg_crontab.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_crontab import V0041JobDescMsgCrontab + +class TestV0041JobDescMsgCrontab(unittest.TestCase): + """V0041JobDescMsgCrontab unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgCrontab: + """Test V0041JobDescMsgCrontab + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgCrontab` + """ + model = V0041JobDescMsgCrontab() + if include_optional: + return V0041JobDescMsgCrontab( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ) + ) + else: + return V0041JobDescMsgCrontab( + ) + """ + + def testV0041JobDescMsgCrontab(self): + """Test V0041JobDescMsgCrontab""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_crontab_line.py b/test/test_v0041_job_desc_msg_crontab_line.py new file mode 100644 index 0000000..444be5b --- /dev/null +++ b/test/test_v0041_job_desc_msg_crontab_line.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_crontab_line import V0041JobDescMsgCrontabLine + +class TestV0041JobDescMsgCrontabLine(unittest.TestCase): + """V0041JobDescMsgCrontabLine unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgCrontabLine: + """Test V0041JobDescMsgCrontabLine + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgCrontabLine` + """ + model = V0041JobDescMsgCrontabLine() + if include_optional: + return V0041JobDescMsgCrontabLine( + start = 56, + end = 56 + ) + else: + return V0041JobDescMsgCrontabLine( + ) + """ + + def testV0041JobDescMsgCrontabLine(self): + """Test V0041JobDescMsgCrontabLine""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_distribution_plane_size.py b/test/test_v0041_job_desc_msg_distribution_plane_size.py new file mode 100644 index 0000000..5a85eaa --- /dev/null +++ b/test/test_v0041_job_desc_msg_distribution_plane_size.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_distribution_plane_size import V0041JobDescMsgDistributionPlaneSize + +class TestV0041JobDescMsgDistributionPlaneSize(unittest.TestCase): + """V0041JobDescMsgDistributionPlaneSize unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgDistributionPlaneSize: + """Test V0041JobDescMsgDistributionPlaneSize + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgDistributionPlaneSize` + """ + model = V0041JobDescMsgDistributionPlaneSize() + if include_optional: + return V0041JobDescMsgDistributionPlaneSize( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgDistributionPlaneSize( + ) + """ + + def testV0041JobDescMsgDistributionPlaneSize(self): + """Test V0041JobDescMsgDistributionPlaneSize""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_kill_warning_delay.py b/test/test_v0041_job_desc_msg_kill_warning_delay.py new file mode 100644 index 0000000..1669dd4 --- /dev/null +++ b/test/test_v0041_job_desc_msg_kill_warning_delay.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_kill_warning_delay import V0041JobDescMsgKillWarningDelay + +class TestV0041JobDescMsgKillWarningDelay(unittest.TestCase): + """V0041JobDescMsgKillWarningDelay unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgKillWarningDelay: + """Test V0041JobDescMsgKillWarningDelay + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgKillWarningDelay` + """ + model = V0041JobDescMsgKillWarningDelay() + if include_optional: + return V0041JobDescMsgKillWarningDelay( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgKillWarningDelay( + ) + """ + + def testV0041JobDescMsgKillWarningDelay(self): + """Test V0041JobDescMsgKillWarningDelay""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_memory_per_cpu.py b/test/test_v0041_job_desc_msg_memory_per_cpu.py new file mode 100644 index 0000000..8759f08 --- /dev/null +++ b/test/test_v0041_job_desc_msg_memory_per_cpu.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_memory_per_cpu import V0041JobDescMsgMemoryPerCpu + +class TestV0041JobDescMsgMemoryPerCpu(unittest.TestCase): + """V0041JobDescMsgMemoryPerCpu unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgMemoryPerCpu: + """Test V0041JobDescMsgMemoryPerCpu + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgMemoryPerCpu` + """ + model = V0041JobDescMsgMemoryPerCpu() + if include_optional: + return V0041JobDescMsgMemoryPerCpu( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgMemoryPerCpu( + ) + """ + + def testV0041JobDescMsgMemoryPerCpu(self): + """Test V0041JobDescMsgMemoryPerCpu""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_priority.py b/test/test_v0041_job_desc_msg_priority.py new file mode 100644 index 0000000..cf744d8 --- /dev/null +++ b/test/test_v0041_job_desc_msg_priority.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_priority import V0041JobDescMsgPriority + +class TestV0041JobDescMsgPriority(unittest.TestCase): + """V0041JobDescMsgPriority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgPriority: + """Test V0041JobDescMsgPriority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgPriority` + """ + model = V0041JobDescMsgPriority() + if include_optional: + return V0041JobDescMsgPriority( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgPriority( + ) + """ + + def testV0041JobDescMsgPriority(self): + """Test V0041JobDescMsgPriority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_required_switches.py b/test/test_v0041_job_desc_msg_required_switches.py new file mode 100644 index 0000000..c05171b --- /dev/null +++ b/test/test_v0041_job_desc_msg_required_switches.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_required_switches import V0041JobDescMsgRequiredSwitches + +class TestV0041JobDescMsgRequiredSwitches(unittest.TestCase): + """V0041JobDescMsgRequiredSwitches unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRequiredSwitches: + """Test V0041JobDescMsgRequiredSwitches + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRequiredSwitches` + """ + model = V0041JobDescMsgRequiredSwitches() + if include_optional: + return V0041JobDescMsgRequiredSwitches( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRequiredSwitches( + ) + """ + + def testV0041JobDescMsgRequiredSwitches(self): + """Test V0041JobDescMsgRequiredSwitches""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits.py b/test/test_v0041_job_desc_msg_rlimits.py new file mode 100644 index 0000000..74f58f9 --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits import V0041JobDescMsgRlimits + +class TestV0041JobDescMsgRlimits(unittest.TestCase): + """V0041JobDescMsgRlimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimits: + """Test V0041JobDescMsgRlimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimits` + """ + model = V0041JobDescMsgRlimits() + if include_optional: + return V0041JobDescMsgRlimits( + cpu = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_cpu.v0_0_41_job_desc_msg_rlimits_cpu( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_fsize.v0_0_41_job_desc_msg_rlimits_fsize( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_data.v0_0_41_job_desc_msg_rlimits_data( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_stack.v0_0_41_job_desc_msg_rlimits_stack( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_core.v0_0_41_job_desc_msg_rlimits_core( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_rss.v0_0_41_job_desc_msg_rlimits_rss( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nproc.v0_0_41_job_desc_msg_rlimits_nproc( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nofile.v0_0_41_job_desc_msg_rlimits_nofile( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_memlock.v0_0_41_job_desc_msg_rlimits_memlock( + set = True, + infinite = True, + number = 56, ), + var_as = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_as.v0_0_41_job_desc_msg_rlimits_as( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041JobDescMsgRlimits( + ) + """ + + def testV0041JobDescMsgRlimits(self): + """Test V0041JobDescMsgRlimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_as.py b/test/test_v0041_job_desc_msg_rlimits_as.py new file mode 100644 index 0000000..6e04b51 --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_as.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_as import V0041JobDescMsgRlimitsAs + +class TestV0041JobDescMsgRlimitsAs(unittest.TestCase): + """V0041JobDescMsgRlimitsAs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsAs: + """Test V0041JobDescMsgRlimitsAs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsAs` + """ + model = V0041JobDescMsgRlimitsAs() + if include_optional: + return V0041JobDescMsgRlimitsAs( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsAs( + ) + """ + + def testV0041JobDescMsgRlimitsAs(self): + """Test V0041JobDescMsgRlimitsAs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_core.py b/test/test_v0041_job_desc_msg_rlimits_core.py new file mode 100644 index 0000000..97517fb --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_core.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_core import V0041JobDescMsgRlimitsCore + +class TestV0041JobDescMsgRlimitsCore(unittest.TestCase): + """V0041JobDescMsgRlimitsCore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsCore: + """Test V0041JobDescMsgRlimitsCore + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsCore` + """ + model = V0041JobDescMsgRlimitsCore() + if include_optional: + return V0041JobDescMsgRlimitsCore( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsCore( + ) + """ + + def testV0041JobDescMsgRlimitsCore(self): + """Test V0041JobDescMsgRlimitsCore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_cpu.py b/test/test_v0041_job_desc_msg_rlimits_cpu.py new file mode 100644 index 0000000..13afe6d --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_cpu.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_cpu import V0041JobDescMsgRlimitsCpu + +class TestV0041JobDescMsgRlimitsCpu(unittest.TestCase): + """V0041JobDescMsgRlimitsCpu unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsCpu: + """Test V0041JobDescMsgRlimitsCpu + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsCpu` + """ + model = V0041JobDescMsgRlimitsCpu() + if include_optional: + return V0041JobDescMsgRlimitsCpu( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsCpu( + ) + """ + + def testV0041JobDescMsgRlimitsCpu(self): + """Test V0041JobDescMsgRlimitsCpu""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_data.py b/test/test_v0041_job_desc_msg_rlimits_data.py new file mode 100644 index 0000000..f438584 --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_data.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_data import V0041JobDescMsgRlimitsData + +class TestV0041JobDescMsgRlimitsData(unittest.TestCase): + """V0041JobDescMsgRlimitsData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsData: + """Test V0041JobDescMsgRlimitsData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsData` + """ + model = V0041JobDescMsgRlimitsData() + if include_optional: + return V0041JobDescMsgRlimitsData( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsData( + ) + """ + + def testV0041JobDescMsgRlimitsData(self): + """Test V0041JobDescMsgRlimitsData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_fsize.py b/test/test_v0041_job_desc_msg_rlimits_fsize.py new file mode 100644 index 0000000..77bd237 --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_fsize.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_fsize import V0041JobDescMsgRlimitsFsize + +class TestV0041JobDescMsgRlimitsFsize(unittest.TestCase): + """V0041JobDescMsgRlimitsFsize unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsFsize: + """Test V0041JobDescMsgRlimitsFsize + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsFsize` + """ + model = V0041JobDescMsgRlimitsFsize() + if include_optional: + return V0041JobDescMsgRlimitsFsize( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsFsize( + ) + """ + + def testV0041JobDescMsgRlimitsFsize(self): + """Test V0041JobDescMsgRlimitsFsize""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_memlock.py b/test/test_v0041_job_desc_msg_rlimits_memlock.py new file mode 100644 index 0000000..a133c2d --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_memlock.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_memlock import V0041JobDescMsgRlimitsMemlock + +class TestV0041JobDescMsgRlimitsMemlock(unittest.TestCase): + """V0041JobDescMsgRlimitsMemlock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsMemlock: + """Test V0041JobDescMsgRlimitsMemlock + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsMemlock` + """ + model = V0041JobDescMsgRlimitsMemlock() + if include_optional: + return V0041JobDescMsgRlimitsMemlock( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsMemlock( + ) + """ + + def testV0041JobDescMsgRlimitsMemlock(self): + """Test V0041JobDescMsgRlimitsMemlock""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_nofile.py b/test/test_v0041_job_desc_msg_rlimits_nofile.py new file mode 100644 index 0000000..e115aa6 --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_nofile.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nofile import V0041JobDescMsgRlimitsNofile + +class TestV0041JobDescMsgRlimitsNofile(unittest.TestCase): + """V0041JobDescMsgRlimitsNofile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsNofile: + """Test V0041JobDescMsgRlimitsNofile + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsNofile` + """ + model = V0041JobDescMsgRlimitsNofile() + if include_optional: + return V0041JobDescMsgRlimitsNofile( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsNofile( + ) + """ + + def testV0041JobDescMsgRlimitsNofile(self): + """Test V0041JobDescMsgRlimitsNofile""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_nproc.py b/test/test_v0041_job_desc_msg_rlimits_nproc.py new file mode 100644 index 0000000..128eb61 --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_nproc.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_nproc import V0041JobDescMsgRlimitsNproc + +class TestV0041JobDescMsgRlimitsNproc(unittest.TestCase): + """V0041JobDescMsgRlimitsNproc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsNproc: + """Test V0041JobDescMsgRlimitsNproc + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsNproc` + """ + model = V0041JobDescMsgRlimitsNproc() + if include_optional: + return V0041JobDescMsgRlimitsNproc( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsNproc( + ) + """ + + def testV0041JobDescMsgRlimitsNproc(self): + """Test V0041JobDescMsgRlimitsNproc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_rss.py b/test/test_v0041_job_desc_msg_rlimits_rss.py new file mode 100644 index 0000000..5251c33 --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_rss.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_rss import V0041JobDescMsgRlimitsRss + +class TestV0041JobDescMsgRlimitsRss(unittest.TestCase): + """V0041JobDescMsgRlimitsRss unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsRss: + """Test V0041JobDescMsgRlimitsRss + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsRss` + """ + model = V0041JobDescMsgRlimitsRss() + if include_optional: + return V0041JobDescMsgRlimitsRss( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsRss( + ) + """ + + def testV0041JobDescMsgRlimitsRss(self): + """Test V0041JobDescMsgRlimitsRss""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_rlimits_stack.py b/test/test_v0041_job_desc_msg_rlimits_stack.py new file mode 100644 index 0000000..93bfd1a --- /dev/null +++ b/test/test_v0041_job_desc_msg_rlimits_stack.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_rlimits_stack import V0041JobDescMsgRlimitsStack + +class TestV0041JobDescMsgRlimitsStack(unittest.TestCase): + """V0041JobDescMsgRlimitsStack unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgRlimitsStack: + """Test V0041JobDescMsgRlimitsStack + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgRlimitsStack` + """ + model = V0041JobDescMsgRlimitsStack() + if include_optional: + return V0041JobDescMsgRlimitsStack( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgRlimitsStack( + ) + """ + + def testV0041JobDescMsgRlimitsStack(self): + """Test V0041JobDescMsgRlimitsStack""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_segment_size.py b/test/test_v0041_job_desc_msg_segment_size.py new file mode 100644 index 0000000..efd09ef --- /dev/null +++ b/test/test_v0041_job_desc_msg_segment_size.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_segment_size import V0041JobDescMsgSegmentSize + +class TestV0041JobDescMsgSegmentSize(unittest.TestCase): + """V0041JobDescMsgSegmentSize unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgSegmentSize: + """Test V0041JobDescMsgSegmentSize + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgSegmentSize` + """ + model = V0041JobDescMsgSegmentSize() + if include_optional: + return V0041JobDescMsgSegmentSize( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgSegmentSize( + ) + """ + + def testV0041JobDescMsgSegmentSize(self): + """Test V0041JobDescMsgSegmentSize""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_time_limit.py b/test/test_v0041_job_desc_msg_time_limit.py new file mode 100644 index 0000000..fa62316 --- /dev/null +++ b/test/test_v0041_job_desc_msg_time_limit.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_time_limit import V0041JobDescMsgTimeLimit + +class TestV0041JobDescMsgTimeLimit(unittest.TestCase): + """V0041JobDescMsgTimeLimit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgTimeLimit: + """Test V0041JobDescMsgTimeLimit + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgTimeLimit` + """ + model = V0041JobDescMsgTimeLimit() + if include_optional: + return V0041JobDescMsgTimeLimit( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgTimeLimit( + ) + """ + + def testV0041JobDescMsgTimeLimit(self): + """Test V0041JobDescMsgTimeLimit""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_desc_msg_time_minimum.py b/test/test_v0041_job_desc_msg_time_minimum.py new file mode 100644 index 0000000..5985dea --- /dev/null +++ b/test/test_v0041_job_desc_msg_time_minimum.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_desc_msg_time_minimum import V0041JobDescMsgTimeMinimum + +class TestV0041JobDescMsgTimeMinimum(unittest.TestCase): + """V0041JobDescMsgTimeMinimum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobDescMsgTimeMinimum: + """Test V0041JobDescMsgTimeMinimum + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobDescMsgTimeMinimum` + """ + model = V0041JobDescMsgTimeMinimum() + if include_optional: + return V0041JobDescMsgTimeMinimum( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041JobDescMsgTimeMinimum( + ) + """ + + def testV0041JobDescMsgTimeMinimum(self): + """Test V0041JobDescMsgTimeMinimum""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_job_submit_req.py b/test/test_v0041_job_submit_req.py new file mode 100644 index 0000000..aab250c --- /dev/null +++ b/test/test_v0041_job_submit_req.py @@ -0,0 +1,514 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_job_submit_req import V0041JobSubmitReq + +class TestV0041JobSubmitReq(unittest.TestCase): + """V0041JobSubmitReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041JobSubmitReq: + """Test V0041JobSubmitReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041JobSubmitReq` + """ + model = V0041JobSubmitReq() + if include_optional: + return V0041JobSubmitReq( + script = '', + jobs = [ + slurmrest_python.models.v0/0/41_job_desc_msg.v0.0.41_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0_0_41_job_desc_msg_begin_time.v0_0_41_job_desc_msg_begin_time( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0_0_41_job_desc_msg_crontab.v0_0_41_job_desc_msg_crontab( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits.v0_0_41_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_cpu.v0_0_41_job_desc_msg_rlimits_cpu( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_fsize.v0_0_41_job_desc_msg_rlimits_fsize( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_data.v0_0_41_job_desc_msg_rlimits_data( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_stack.v0_0_41_job_desc_msg_rlimits_stack( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_core.v0_0_41_job_desc_msg_rlimits_core( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_rss.v0_0_41_job_desc_msg_rlimits_rss( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nproc.v0_0_41_job_desc_msg_rlimits_nproc( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nofile.v0_0_41_job_desc_msg_rlimits_nofile( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_memlock.v0_0_41_job_desc_msg_rlimits_memlock( + set = True, + infinite = True, + number = 56, ), + as = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_as.v0_0_41_job_desc_msg_rlimits_as( + set = True, + infinite = True, + number = 56, ), ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0_0_41_job_desc_msg_distribution_plane_size.v0_0_41_job_desc_msg_distribution_plane_size( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + resv_mpi_ports = 56, + script = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + site_factor = 56, + spank_environment = [ + '' + ], + distribution = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0_0_41_job_desc_msg_kill_warning_delay.v0_0_41_job_desc_msg_kill_warning_delay( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0_0_41_job_desc_msg_required_switches.v0_0_41_job_desc_msg_required_switches( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0_0_41_job_desc_msg_segment_size.v0_0_41_job_desc_msg_segment_size( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/41_job_desc_msg.v0.0.41_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0_0_41_job_desc_msg_begin_time.v0_0_41_job_desc_msg_begin_time( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0_0_41_job_desc_msg_crontab.v0_0_41_job_desc_msg_crontab( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits.v0_0_41_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_cpu.v0_0_41_job_desc_msg_rlimits_cpu( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_fsize.v0_0_41_job_desc_msg_rlimits_fsize( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_data.v0_0_41_job_desc_msg_rlimits_data( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_stack.v0_0_41_job_desc_msg_rlimits_stack( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_core.v0_0_41_job_desc_msg_rlimits_core( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_rss.v0_0_41_job_desc_msg_rlimits_rss( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nproc.v0_0_41_job_desc_msg_rlimits_nproc( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_nofile.v0_0_41_job_desc_msg_rlimits_nofile( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_memlock.v0_0_41_job_desc_msg_rlimits_memlock( + set = True, + infinite = True, + number = 56, ), + as = slurmrest_python.models.v0_0_41_job_desc_msg_rlimits_as.v0_0_41_job_desc_msg_rlimits_as( + set = True, + infinite = True, + number = 56, ), ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0_0_41_job_desc_msg_distribution_plane_size.v0_0_41_job_desc_msg_distribution_plane_size( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + resv_mpi_ports = 56, + script = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + site_factor = 56, + spank_environment = [ + '' + ], + distribution = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0_0_41_job_desc_msg_kill_warning_delay.v0_0_41_job_desc_msg_kill_warning_delay( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0_0_41_job_desc_msg_required_switches.v0_0_41_job_desc_msg_required_switches( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0_0_41_job_desc_msg_segment_size.v0_0_41_job_desc_msg_segment_size( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0041JobSubmitReq( + ) + """ + + def testV0041JobSubmitReq(self): + """Test V0041JobSubmitReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_kill_jobs_msg.py b/test/test_v0041_kill_jobs_msg.py new file mode 100644 index 0000000..ad6549c --- /dev/null +++ b/test/test_v0041_kill_jobs_msg.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_kill_jobs_msg import V0041KillJobsMsg + +class TestV0041KillJobsMsg(unittest.TestCase): + """V0041KillJobsMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041KillJobsMsg: + """Test V0041KillJobsMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041KillJobsMsg` + """ + model = V0041KillJobsMsg() + if include_optional: + return V0041KillJobsMsg( + account = '', + flags = [ + 'BATCH_JOB' + ], + job_name = '', + jobs = [ + '' + ], + partition = '', + qos = '', + reservation = '', + signal = '', + job_state = [ + 'PENDING' + ], + user_id = '', + user_name = '', + wckey = '', + nodes = [ + '' + ] + ) + else: + return V0041KillJobsMsg( + ) + """ + + def testV0041KillJobsMsg(self): + """Test V0041KillJobsMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_accounts_add_cond_resp.py b/test/test_v0041_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..e657ed4 --- /dev/null +++ b/test/test_v0041_openapi_accounts_add_cond_resp.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp import V0041OpenapiAccountsAddCondResp + +class TestV0041OpenapiAccountsAddCondResp(unittest.TestCase): + """V0041OpenapiAccountsAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAccountsAddCondResp: + """Test V0041OpenapiAccountsAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAccountsAddCondResp` + """ + model = V0041OpenapiAccountsAddCondResp() + if include_optional: + return V0041OpenapiAccountsAddCondResp( + association_condition = slurmrest_python.models.v0_0_41_openapi_accounts_add_cond_resp_association_condition.v0_0_41_openapi_accounts_add_cond_resp_association_condition( + accounts = [ + '' + ], + association = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association.v0_0_41_openapi_users_add_cond_resp_association_condition_association( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + + ], + grpwall = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + + ], + maxtresrunmins = [ + + ], + maxtresperjob = [ + + ], + maxtrespernode = [ + + ], + maxwalldurationperjob = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], ), + account = slurmrest_python.models.v0_0_41_openapi_accounts_add_cond_resp_account.v0_0_41_openapi_accounts_add_cond_resp_account( + description = '', + organization = '', ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiAccountsAddCondResp( + ) + """ + + def testV0041OpenapiAccountsAddCondResp(self): + """Test V0041OpenapiAccountsAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_accounts_add_cond_resp_account.py b/test/test_v0041_openapi_accounts_add_cond_resp_account.py new file mode 100644 index 0000000..8aa202b --- /dev/null +++ b/test/test_v0041_openapi_accounts_add_cond_resp_account.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_account import V0041OpenapiAccountsAddCondRespAccount + +class TestV0041OpenapiAccountsAddCondRespAccount(unittest.TestCase): + """V0041OpenapiAccountsAddCondRespAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAccountsAddCondRespAccount: + """Test V0041OpenapiAccountsAddCondRespAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAccountsAddCondRespAccount` + """ + model = V0041OpenapiAccountsAddCondRespAccount() + if include_optional: + return V0041OpenapiAccountsAddCondRespAccount( + description = '', + organization = '' + ) + else: + return V0041OpenapiAccountsAddCondRespAccount( + ) + """ + + def testV0041OpenapiAccountsAddCondRespAccount(self): + """Test V0041OpenapiAccountsAddCondRespAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_accounts_add_cond_resp_association_condition.py b/test/test_v0041_openapi_accounts_add_cond_resp_association_condition.py new file mode 100644 index 0000000..5b5be1b --- /dev/null +++ b/test/test_v0041_openapi_accounts_add_cond_resp_association_condition.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_association_condition import V0041OpenapiAccountsAddCondRespAssociationCondition + +class TestV0041OpenapiAccountsAddCondRespAssociationCondition(unittest.TestCase): + """V0041OpenapiAccountsAddCondRespAssociationCondition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAccountsAddCondRespAssociationCondition: + """Test V0041OpenapiAccountsAddCondRespAssociationCondition + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAccountsAddCondRespAssociationCondition` + """ + model = V0041OpenapiAccountsAddCondRespAssociationCondition() + if include_optional: + return V0041OpenapiAccountsAddCondRespAssociationCondition( + accounts = [ + '' + ], + association = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association.v0_0_41_openapi_users_add_cond_resp_association_condition_association( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + + ], + grpwall = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + + ], + maxtresrunmins = [ + + ], + maxtresperjob = [ + + ], + maxtrespernode = [ + + ], + maxwalldurationperjob = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ] + ) + else: + return V0041OpenapiAccountsAddCondRespAssociationCondition( + accounts = [ + '' + ], + ) + """ + + def testV0041OpenapiAccountsAddCondRespAssociationCondition(self): + """Test V0041OpenapiAccountsAddCondRespAssociationCondition""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_accounts_add_cond_resp_str.py b/test/test_v0041_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..a90c4de --- /dev/null +++ b/test/test_v0041_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_accounts_add_cond_resp_str import V0041OpenapiAccountsAddCondRespStr + +class TestV0041OpenapiAccountsAddCondRespStr(unittest.TestCase): + """V0041OpenapiAccountsAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAccountsAddCondRespStr: + """Test V0041OpenapiAccountsAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAccountsAddCondRespStr` + """ + model = V0041OpenapiAccountsAddCondRespStr() + if include_optional: + return V0041OpenapiAccountsAddCondRespStr( + added_accounts = '', + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiAccountsAddCondRespStr( + added_accounts = '', + ) + """ + + def testV0041OpenapiAccountsAddCondRespStr(self): + """Test V0041OpenapiAccountsAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_accounts_removed_resp.py b/test/test_v0041_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..7b1faa7 --- /dev/null +++ b/test/test_v0041_openapi_accounts_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_accounts_removed_resp import V0041OpenapiAccountsRemovedResp + +class TestV0041OpenapiAccountsRemovedResp(unittest.TestCase): + """V0041OpenapiAccountsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAccountsRemovedResp: + """Test V0041OpenapiAccountsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAccountsRemovedResp` + """ + model = V0041OpenapiAccountsRemovedResp() + if include_optional: + return V0041OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + ) + """ + + def testV0041OpenapiAccountsRemovedResp(self): + """Test V0041OpenapiAccountsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_accounts_resp.py b/test/test_v0041_openapi_accounts_resp.py new file mode 100644 index 0000000..787eb7d --- /dev/null +++ b/test/test_v0041_openapi_accounts_resp.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_accounts_resp import V0041OpenapiAccountsResp + +class TestV0041OpenapiAccountsResp(unittest.TestCase): + """V0041OpenapiAccountsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAccountsResp: + """Test V0041OpenapiAccountsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAccountsResp` + """ + model = V0041OpenapiAccountsResp() + if include_optional: + return V0041OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner( + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner( + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0041OpenapiAccountsResp(self): + """Test V0041OpenapiAccountsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_assocs_removed_resp.py b/test/test_v0041_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..478dd93 --- /dev/null +++ b/test/test_v0041_openapi_assocs_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_assocs_removed_resp import V0041OpenapiAssocsRemovedResp + +class TestV0041OpenapiAssocsRemovedResp(unittest.TestCase): + """V0041OpenapiAssocsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAssocsRemovedResp: + """Test V0041OpenapiAssocsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAssocsRemovedResp` + """ + model = V0041OpenapiAssocsRemovedResp() + if include_optional: + return V0041OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + ) + """ + + def testV0041OpenapiAssocsRemovedResp(self): + """Test V0041OpenapiAssocsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_assocs_resp.py b/test/test_v0041_openapi_assocs_resp.py new file mode 100644 index 0000000..9b53195 --- /dev/null +++ b/test/test_v0041_openapi_assocs_resp.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_assocs_resp import V0041OpenapiAssocsResp + +class TestV0041OpenapiAssocsResp(unittest.TestCase): + """V0041OpenapiAssocsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiAssocsResp: + """Test V0041OpenapiAssocsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiAssocsResp` + """ + model = V0041OpenapiAssocsResp() + if include_optional: + return V0041OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_associations_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max( + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per( + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ), + active = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres( + group = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group( + minutes = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), + parent_account = '', + partition = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_associations_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max( + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per( + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ), + active = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres( + group = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group( + minutes = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), + parent_account = '', + partition = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + ) + """ + + def testV0041OpenapiAssocsResp(self): + """Test V0041OpenapiAssocsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_clusters_removed_resp.py b/test/test_v0041_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..d21d4fa --- /dev/null +++ b/test/test_v0041_openapi_clusters_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_clusters_removed_resp import V0041OpenapiClustersRemovedResp + +class TestV0041OpenapiClustersRemovedResp(unittest.TestCase): + """V0041OpenapiClustersRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiClustersRemovedResp: + """Test V0041OpenapiClustersRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiClustersRemovedResp` + """ + model = V0041OpenapiClustersRemovedResp() + if include_optional: + return V0041OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + ) + """ + + def testV0041OpenapiClustersRemovedResp(self): + """Test V0041OpenapiClustersRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_clusters_resp.py b/test/test_v0041_openapi_clusters_resp.py new file mode 100644 index 0000000..0e3d09a --- /dev/null +++ b/test/test_v0041_openapi_clusters_resp.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_clusters_resp import V0041OpenapiClustersResp + +class TestV0041OpenapiClustersResp(unittest.TestCase): + """V0041OpenapiClustersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiClustersResp: + """Test V0041OpenapiClustersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiClustersResp` + """ + model = V0041OpenapiClustersResp() + if include_optional: + return V0041OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations( + root = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations( + root = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + ) + """ + + def testV0041OpenapiClustersResp(self): + """Test V0041OpenapiClustersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp.py b/test/test_v0041_openapi_diag_resp.py new file mode 100644 index 0000000..ddfe202 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp.py @@ -0,0 +1,313 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp import V0041OpenapiDiagResp + +class TestV0041OpenapiDiagResp(unittest.TestCase): + """V0041OpenapiDiagResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagResp: + """Test V0041OpenapiDiagResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagResp` + """ + model = V0041OpenapiDiagResp() + if include_optional: + return V0041OpenapiDiagResp( + statistics = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics.v0_0_41_openapi_diag_resp_statistics( + parts_packed = 56, + req_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_req_time.v0_0_41_openapi_diag_resp_statistics_req_time( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_req_time_start.v0_0_41_openapi_diag_resp_statistics_req_time_start( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_schedule_exit.v0_0_41_openapi_diag_resp_statistics_schedule_exit( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_job_states_ts.v0_0_41_openapi_diag_resp_statistics_job_states_ts( + set = True, + infinite = True, + number = 56, ), + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_bf_exit.v0_0_41_openapi_diag_resp_statistics_bf_exit( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_bf_when_last_cycle.v0_0_41_openapi_diag_resp_statistics_bf_when_last_cycle( + set = True, + infinite = True, + number = 56, ), + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_user_inner.v0_0_41_openapi_diag_resp_statistics_rpcs_by_user_inner( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), ) + ], + pending_rpcs = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_inner.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_inner( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiDiagResp( + statistics = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics.v0_0_41_openapi_diag_resp_statistics( + parts_packed = 56, + req_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_req_time.v0_0_41_openapi_diag_resp_statistics_req_time( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_req_time_start.v0_0_41_openapi_diag_resp_statistics_req_time_start( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_schedule_exit.v0_0_41_openapi_diag_resp_statistics_schedule_exit( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_job_states_ts.v0_0_41_openapi_diag_resp_statistics_job_states_ts( + set = True, + infinite = True, + number = 56, ), + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_bf_exit.v0_0_41_openapi_diag_resp_statistics_bf_exit( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_bf_when_last_cycle.v0_0_41_openapi_diag_resp_statistics_bf_when_last_cycle( + set = True, + infinite = True, + number = 56, ), + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_user_inner.v0_0_41_openapi_diag_resp_statistics_rpcs_by_user_inner( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), ) + ], + pending_rpcs = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_inner.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_inner( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + ) + """ + + def testV0041OpenapiDiagResp(self): + """Test V0041OpenapiDiagResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics.py b/test/test_v0041_openapi_diag_resp_statistics.py new file mode 100644 index 0000000..55adc52 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics import V0041OpenapiDiagRespStatistics + +class TestV0041OpenapiDiagRespStatistics(unittest.TestCase): + """V0041OpenapiDiagRespStatistics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatistics: + """Test V0041OpenapiDiagRespStatistics + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatistics` + """ + model = V0041OpenapiDiagRespStatistics() + if include_optional: + return V0041OpenapiDiagRespStatistics( + parts_packed = 56, + req_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_req_time.v0_0_41_openapi_diag_resp_statistics_req_time( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_req_time_start.v0_0_41_openapi_diag_resp_statistics_req_time_start( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_schedule_exit.v0_0_41_openapi_diag_resp_statistics_schedule_exit( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_job_states_ts.v0_0_41_openapi_diag_resp_statistics_job_states_ts( + set = True, + infinite = True, + number = 56, ), + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_bf_exit.v0_0_41_openapi_diag_resp_statistics_bf_exit( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_bf_when_last_cycle.v0_0_41_openapi_diag_resp_statistics_bf_when_last_cycle( + set = True, + infinite = True, + number = 56, ), + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_user_inner.v0_0_41_openapi_diag_resp_statistics_rpcs_by_user_inner( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), ) + ], + pending_rpcs = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_inner.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_inner( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.v0_0_41_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ] + ) + else: + return V0041OpenapiDiagRespStatistics( + ) + """ + + def testV0041OpenapiDiagRespStatistics(self): + """Test V0041OpenapiDiagRespStatistics""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_bf_exit.py b/test/test_v0041_openapi_diag_resp_statistics_bf_exit.py new file mode 100644 index 0000000..1f38f2e --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_bf_exit.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_exit import V0041OpenapiDiagRespStatisticsBfExit + +class TestV0041OpenapiDiagRespStatisticsBfExit(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsBfExit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsBfExit: + """Test V0041OpenapiDiagRespStatisticsBfExit + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsBfExit` + """ + model = V0041OpenapiDiagRespStatisticsBfExit() + if include_optional: + return V0041OpenapiDiagRespStatisticsBfExit( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsBfExit( + ) + """ + + def testV0041OpenapiDiagRespStatisticsBfExit(self): + """Test V0041OpenapiDiagRespStatisticsBfExit""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py b/test/test_v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py new file mode 100644 index 0000000..8a85374 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_bf_when_last_cycle.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_bf_when_last_cycle import V0041OpenapiDiagRespStatisticsBfWhenLastCycle + +class TestV0041OpenapiDiagRespStatisticsBfWhenLastCycle(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsBfWhenLastCycle unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsBfWhenLastCycle: + """Test V0041OpenapiDiagRespStatisticsBfWhenLastCycle + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsBfWhenLastCycle` + """ + model = V0041OpenapiDiagRespStatisticsBfWhenLastCycle() + if include_optional: + return V0041OpenapiDiagRespStatisticsBfWhenLastCycle( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsBfWhenLastCycle( + ) + """ + + def testV0041OpenapiDiagRespStatisticsBfWhenLastCycle(self): + """Test V0041OpenapiDiagRespStatisticsBfWhenLastCycle""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_job_states_ts.py b/test/test_v0041_openapi_diag_resp_statistics_job_states_ts.py new file mode 100644 index 0000000..9c7cd71 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_job_states_ts.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_job_states_ts import V0041OpenapiDiagRespStatisticsJobStatesTs + +class TestV0041OpenapiDiagRespStatisticsJobStatesTs(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsJobStatesTs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsJobStatesTs: + """Test V0041OpenapiDiagRespStatisticsJobStatesTs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsJobStatesTs` + """ + model = V0041OpenapiDiagRespStatisticsJobStatesTs() + if include_optional: + return V0041OpenapiDiagRespStatisticsJobStatesTs( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsJobStatesTs( + ) + """ + + def testV0041OpenapiDiagRespStatisticsJobStatesTs(self): + """Test V0041OpenapiDiagRespStatisticsJobStatesTs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py b/test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py new file mode 100644 index 0000000..2456a60 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_by_hostlist_inner import V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner + +class TestV0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner: + """Test V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner` + """ + model = V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner() + if include_optional: + return V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner( + type_id = 56, + message_type = '', + count = [ + '' + ] + ) + else: + return V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner( + type_id = 56, + message_type = '', + count = [ + '' + ], + ) + """ + + def testV0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner(self): + """Test V0041OpenapiDiagRespStatisticsPendingRpcsByHostlistInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py b/test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py new file mode 100644 index 0000000..346d775 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_pending_rpcs_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_pending_rpcs_inner import V0041OpenapiDiagRespStatisticsPendingRpcsInner + +class TestV0041OpenapiDiagRespStatisticsPendingRpcsInner(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsPendingRpcsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsPendingRpcsInner: + """Test V0041OpenapiDiagRespStatisticsPendingRpcsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsPendingRpcsInner` + """ + model = V0041OpenapiDiagRespStatisticsPendingRpcsInner() + if include_optional: + return V0041OpenapiDiagRespStatisticsPendingRpcsInner( + type_id = 56, + message_type = '', + count = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsPendingRpcsInner( + type_id = 56, + message_type = '', + count = 56, + ) + """ + + def testV0041OpenapiDiagRespStatisticsPendingRpcsInner(self): + """Test V0041OpenapiDiagRespStatisticsPendingRpcsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_req_time.py b/test/test_v0041_openapi_diag_resp_statistics_req_time.py new file mode 100644 index 0000000..de6d4a9 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_req_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time import V0041OpenapiDiagRespStatisticsReqTime + +class TestV0041OpenapiDiagRespStatisticsReqTime(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsReqTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsReqTime: + """Test V0041OpenapiDiagRespStatisticsReqTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsReqTime` + """ + model = V0041OpenapiDiagRespStatisticsReqTime() + if include_optional: + return V0041OpenapiDiagRespStatisticsReqTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsReqTime( + ) + """ + + def testV0041OpenapiDiagRespStatisticsReqTime(self): + """Test V0041OpenapiDiagRespStatisticsReqTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_req_time_start.py b/test/test_v0041_openapi_diag_resp_statistics_req_time_start.py new file mode 100644 index 0000000..deb0bda --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_req_time_start.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_req_time_start import V0041OpenapiDiagRespStatisticsReqTimeStart + +class TestV0041OpenapiDiagRespStatisticsReqTimeStart(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsReqTimeStart unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsReqTimeStart: + """Test V0041OpenapiDiagRespStatisticsReqTimeStart + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsReqTimeStart` + """ + model = V0041OpenapiDiagRespStatisticsReqTimeStart() + if include_optional: + return V0041OpenapiDiagRespStatisticsReqTimeStart( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsReqTimeStart( + ) + """ + + def testV0041OpenapiDiagRespStatisticsReqTimeStart(self): + """Test V0041OpenapiDiagRespStatisticsReqTimeStart""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py b/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py new file mode 100644 index 0000000..51849d9 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner + +class TestV0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner: + """Test V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner` + """ + model = V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner() + if include_optional: + return V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner(self): + """Test V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py b/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py new file mode 100644 index 0000000..c23c320 --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time import V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime + +class TestV0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime: + """Test V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime` + """ + model = V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime() + if include_optional: + return V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime( + ) + """ + + def testV0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime(self): + """Test V0041OpenapiDiagRespStatisticsRpcsByMessageTypeInnerAverageTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py b/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py new file mode 100644 index 0000000..a2b2ade --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_rpcs_by_user_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_rpcs_by_user_inner import V0041OpenapiDiagRespStatisticsRpcsByUserInner + +class TestV0041OpenapiDiagRespStatisticsRpcsByUserInner(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsRpcsByUserInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsRpcsByUserInner: + """Test V0041OpenapiDiagRespStatisticsRpcsByUserInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsRpcsByUserInner` + """ + model = V0041OpenapiDiagRespStatisticsRpcsByUserInner() + if include_optional: + return V0041OpenapiDiagRespStatisticsRpcsByUserInner( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiDiagRespStatisticsRpcsByUserInner( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time.v0_0_41_openapi_diag_resp_statistics_rpcs_by_message_type_inner_average_time( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiDiagRespStatisticsRpcsByUserInner(self): + """Test V0041OpenapiDiagRespStatisticsRpcsByUserInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_diag_resp_statistics_schedule_exit.py b/test/test_v0041_openapi_diag_resp_statistics_schedule_exit.py new file mode 100644 index 0000000..367476d --- /dev/null +++ b/test/test_v0041_openapi_diag_resp_statistics_schedule_exit.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_diag_resp_statistics_schedule_exit import V0041OpenapiDiagRespStatisticsScheduleExit + +class TestV0041OpenapiDiagRespStatisticsScheduleExit(unittest.TestCase): + """V0041OpenapiDiagRespStatisticsScheduleExit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiDiagRespStatisticsScheduleExit: + """Test V0041OpenapiDiagRespStatisticsScheduleExit + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiDiagRespStatisticsScheduleExit` + """ + model = V0041OpenapiDiagRespStatisticsScheduleExit() + if include_optional: + return V0041OpenapiDiagRespStatisticsScheduleExit( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56 + ) + else: + return V0041OpenapiDiagRespStatisticsScheduleExit( + ) + """ + + def testV0041OpenapiDiagRespStatisticsScheduleExit(self): + """Test V0041OpenapiDiagRespStatisticsScheduleExit""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_instances_resp.py b/test/test_v0041_openapi_instances_resp.py new file mode 100644 index 0000000..c0fab75 --- /dev/null +++ b/test/test_v0041_openapi_instances_resp.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_instances_resp import V0041OpenapiInstancesResp + +class TestV0041OpenapiInstancesResp(unittest.TestCase): + """V0041OpenapiInstancesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiInstancesResp: + """Test V0041OpenapiInstancesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiInstancesResp` + """ + model = V0041OpenapiInstancesResp() + if include_optional: + return V0041OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner.v0_0_41_openapi_slurmdbd_config_resp_instances_inner( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner.v0_0_41_openapi_slurmdbd_config_resp_instances_inner( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ), ) + ], + ) + """ + + def testV0041OpenapiInstancesResp(self): + """Test V0041OpenapiInstancesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_alloc_resp.py b/test/test_v0041_openapi_job_alloc_resp.py new file mode 100644 index 0000000..c845a16 --- /dev/null +++ b/test/test_v0041_openapi_job_alloc_resp.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_alloc_resp import V0041OpenapiJobAllocResp + +class TestV0041OpenapiJobAllocResp(unittest.TestCase): + """V0041OpenapiJobAllocResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobAllocResp: + """Test V0041OpenapiJobAllocResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobAllocResp` + """ + model = V0041OpenapiJobAllocResp() + if include_optional: + return V0041OpenapiJobAllocResp( + job_id = 56, + job_submit_user_msg = '', + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiJobAllocResp( + ) + """ + + def testV0041OpenapiJobAllocResp(self): + """Test V0041OpenapiJobAllocResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp.py b/test/test_v0041_openapi_job_info_resp.py new file mode 100644 index 0000000..a724ea0 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp.py @@ -0,0 +1,753 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp import V0041OpenapiJobInfoResp + +class TestV0041OpenapiJobInfoResp(unittest.TestCase): + """V0041OpenapiJobInfoResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoResp: + """Test V0041OpenapiJobInfoResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoResp` + """ + model = V0041OpenapiJobInfoResp() + if include_optional: + return V0041OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner.v0_0_41_openapi_job_info_resp_jobs_inner( + account = '', + accrue_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_accrue_time.v0_0_41_openapi_job_info_resp_jobs_inner_accrue_time( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_job_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_job_id( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_max_tasks.v0_0_41_openapi_job_info_resp_jobs_inner_array_max_tasks( + set = True, + infinite = True, + number = 56, ), + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cores_per_socket.v0_0_41_openapi_job_info_resp_jobs_inner_cores_per_socket( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_billable_tres.v0_0_41_openapi_job_info_resp_jobs_inner_billable_tres( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpus_per_task.v0_0_41_openapi_job_info_resp_jobs_inner_cpus_per_task( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_maximum = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_governor = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_governor( + set = True, + infinite = True, + number = 56, ), + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_deadline.v0_0_41_openapi_job_info_resp_jobs_inner_deadline( + set = True, + infinite = True, + number = 56, ), + delay_boot = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_delay_boot.v0_0_41_openapi_job_info_resp_jobs_inner_delay_boot( + set = True, + infinite = True, + number = 56, ), + dependency = '', + derived_exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + eligible_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_eligible_time.v0_0_41_openapi_job_info_resp_jobs_inner_eligible_time( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_end_time.v0_0_41_openapi_job_info_resp_jobs_inner_end_time( + set = True, + infinite = True, + number = 56, ), + excluded_nodes = '', + exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_exit_code(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_id.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_id( + set = True, + infinite = True, + number = 56, ), + het_job_id_set = '', + het_job_offset = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset( + set = True, + infinite = True, + number = 56, ), + job_id = 56, + job_resources = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core( + set = True, + infinite = True, + number = 56, ), ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_last_sched_evaluation.v0_0_41_openapi_job_info_resp_jobs_inner_last_sched_evaluation( + set = True, + infinite = True, + number = 56, ), + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_max_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_max_cpus( + set = True, + infinite = True, + number = 56, ), + max_nodes = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_max_nodes.v0_0_41_openapi_job_info_resp_jobs_inner_max_nodes( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_core( + set = True, + infinite = True, + number = 56, ), + tasks_per_tres = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_tres.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_tres( + set = True, + infinite = True, + number = 56, ), + tasks_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_node( + set = True, + infinite = True, + number = 56, ), + tasks_per_socket = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_socket.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_socket( + set = True, + infinite = True, + number = 56, ), + tasks_per_board = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_board.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_board( + set = True, + infinite = True, + number = 56, ), + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_cpus( + set = True, + infinite = True, + number = 56, ), + node_count = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_node_count.v0_0_41_openapi_job_info_resp_jobs_inner_node_count( + set = True, + infinite = True, + number = 56, ), + tasks = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks.v0_0_41_openapi_job_info_resp_jobs_inner_tasks( + set = True, + infinite = True, + number = 56, ), + partition = '', + prefer = '', + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node( + set = True, + infinite = True, + number = 56, ), + minimum_cpus_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node( + set = True, + infinite = True, + number = 56, ), + minimum_tmp_disk_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node( + set = True, + infinite = True, + number = 56, ), + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_preempt_time.v0_0_41_openapi_job_info_resp_jobs_inner_preempt_time( + set = True, + infinite = True, + number = 56, ), + preemptable_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_preemptable_time.v0_0_41_openapi_job_info_resp_jobs_inner_preemptable_time( + set = True, + infinite = True, + number = 56, ), + pre_sus_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_pre_sus_time.v0_0_41_openapi_job_info_resp_jobs_inner_pre_sus_time( + set = True, + infinite = True, + number = 56, ), + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + minimum_switches = 56, + requeue = True, + resize_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_resize_time.v0_0_41_openapi_job_info_resp_jobs_inner_resize_time( + set = True, + infinite = True, + number = 56, ), + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + selinux_context = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + show_flags = [ + 'ALL' + ], + sockets_per_board = 56, + sockets_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_sockets_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_sockets_per_node( + set = True, + infinite = True, + number = 56, ), + start_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_start_time.v0_0_41_openapi_job_info_resp_jobs_inner_start_time( + set = True, + infinite = True, + number = 56, ), + state_description = '', + state_reason = '', + standard_error = '', + standard_input = '', + standard_output = '', + submit_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_submit_time.v0_0_41_openapi_job_info_resp_jobs_inner_submit_time( + set = True, + infinite = True, + number = 56, ), + suspend_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_suspend_time.v0_0_41_openapi_job_info_resp_jobs_inner_suspend_time( + set = True, + infinite = True, + number = 56, ), + system_comment = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_threads_per_core( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0_0_41_openapi_job_info_resp_last_backfill.v0_0_41_openapi_job_info_resp_last_backfill( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0_0_41_openapi_job_info_resp_last_update.v0_0_41_openapi_job_info_resp_last_update( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner.v0_0_41_openapi_job_info_resp_jobs_inner( + account = '', + accrue_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_accrue_time.v0_0_41_openapi_job_info_resp_jobs_inner_accrue_time( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_job_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_job_id( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_max_tasks.v0_0_41_openapi_job_info_resp_jobs_inner_array_max_tasks( + set = True, + infinite = True, + number = 56, ), + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cores_per_socket.v0_0_41_openapi_job_info_resp_jobs_inner_cores_per_socket( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_billable_tres.v0_0_41_openapi_job_info_resp_jobs_inner_billable_tres( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpus_per_task.v0_0_41_openapi_job_info_resp_jobs_inner_cpus_per_task( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_maximum = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_governor = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_governor( + set = True, + infinite = True, + number = 56, ), + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_deadline.v0_0_41_openapi_job_info_resp_jobs_inner_deadline( + set = True, + infinite = True, + number = 56, ), + delay_boot = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_delay_boot.v0_0_41_openapi_job_info_resp_jobs_inner_delay_boot( + set = True, + infinite = True, + number = 56, ), + dependency = '', + derived_exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + eligible_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_eligible_time.v0_0_41_openapi_job_info_resp_jobs_inner_eligible_time( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_end_time.v0_0_41_openapi_job_info_resp_jobs_inner_end_time( + set = True, + infinite = True, + number = 56, ), + excluded_nodes = '', + exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_exit_code(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_id.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_id( + set = True, + infinite = True, + number = 56, ), + het_job_id_set = '', + het_job_offset = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset( + set = True, + infinite = True, + number = 56, ), + job_id = 56, + job_resources = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core( + set = True, + infinite = True, + number = 56, ), ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_last_sched_evaluation.v0_0_41_openapi_job_info_resp_jobs_inner_last_sched_evaluation( + set = True, + infinite = True, + number = 56, ), + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_max_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_max_cpus( + set = True, + infinite = True, + number = 56, ), + max_nodes = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_max_nodes.v0_0_41_openapi_job_info_resp_jobs_inner_max_nodes( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_core( + set = True, + infinite = True, + number = 56, ), + tasks_per_tres = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_tres.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_tres( + set = True, + infinite = True, + number = 56, ), + tasks_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_node( + set = True, + infinite = True, + number = 56, ), + tasks_per_socket = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_socket.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_socket( + set = True, + infinite = True, + number = 56, ), + tasks_per_board = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_board.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_board( + set = True, + infinite = True, + number = 56, ), + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_cpus( + set = True, + infinite = True, + number = 56, ), + node_count = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_node_count.v0_0_41_openapi_job_info_resp_jobs_inner_node_count( + set = True, + infinite = True, + number = 56, ), + tasks = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks.v0_0_41_openapi_job_info_resp_jobs_inner_tasks( + set = True, + infinite = True, + number = 56, ), + partition = '', + prefer = '', + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node( + set = True, + infinite = True, + number = 56, ), + minimum_cpus_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node( + set = True, + infinite = True, + number = 56, ), + minimum_tmp_disk_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node( + set = True, + infinite = True, + number = 56, ), + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_preempt_time.v0_0_41_openapi_job_info_resp_jobs_inner_preempt_time( + set = True, + infinite = True, + number = 56, ), + preemptable_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_preemptable_time.v0_0_41_openapi_job_info_resp_jobs_inner_preemptable_time( + set = True, + infinite = True, + number = 56, ), + pre_sus_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_pre_sus_time.v0_0_41_openapi_job_info_resp_jobs_inner_pre_sus_time( + set = True, + infinite = True, + number = 56, ), + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + minimum_switches = 56, + requeue = True, + resize_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_resize_time.v0_0_41_openapi_job_info_resp_jobs_inner_resize_time( + set = True, + infinite = True, + number = 56, ), + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + selinux_context = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + show_flags = [ + 'ALL' + ], + sockets_per_board = 56, + sockets_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_sockets_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_sockets_per_node( + set = True, + infinite = True, + number = 56, ), + start_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_start_time.v0_0_41_openapi_job_info_resp_jobs_inner_start_time( + set = True, + infinite = True, + number = 56, ), + state_description = '', + state_reason = '', + standard_error = '', + standard_input = '', + standard_output = '', + submit_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_submit_time.v0_0_41_openapi_job_info_resp_jobs_inner_submit_time( + set = True, + infinite = True, + number = 56, ), + suspend_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_suspend_time.v0_0_41_openapi_job_info_resp_jobs_inner_suspend_time( + set = True, + infinite = True, + number = 56, ), + system_comment = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_threads_per_core( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0_0_41_openapi_job_info_resp_last_backfill.v0_0_41_openapi_job_info_resp_last_backfill( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0_0_41_openapi_job_info_resp_last_update.v0_0_41_openapi_job_info_resp_last_update( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiJobInfoResp(self): + """Test V0041OpenapiJobInfoResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner.py b/test/test_v0041_openapi_job_info_resp_jobs_inner.py new file mode 100644 index 0000000..3169807 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner.py @@ -0,0 +1,391 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner import V0041OpenapiJobInfoRespJobsInner + +class TestV0041OpenapiJobInfoRespJobsInner(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInner: + """Test V0041OpenapiJobInfoRespJobsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInner` + """ + model = V0041OpenapiJobInfoRespJobsInner() + if include_optional: + return V0041OpenapiJobInfoRespJobsInner( + account = '', + accrue_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_accrue_time.v0_0_41_openapi_job_info_resp_jobs_inner_accrue_time( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_job_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_job_id( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_max_tasks.v0_0_41_openapi_job_info_resp_jobs_inner_array_max_tasks( + set = True, + infinite = True, + number = 56, ), + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cores_per_socket.v0_0_41_openapi_job_info_resp_jobs_inner_cores_per_socket( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_billable_tres.v0_0_41_openapi_job_info_resp_jobs_inner_billable_tres( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpus_per_task.v0_0_41_openapi_job_info_resp_jobs_inner_cpus_per_task( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_maximum = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_governor = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.v0_0_41_openapi_job_info_resp_jobs_inner_cpu_frequency_governor( + set = True, + infinite = True, + number = 56, ), + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_deadline.v0_0_41_openapi_job_info_resp_jobs_inner_deadline( + set = True, + infinite = True, + number = 56, ), + delay_boot = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_delay_boot.v0_0_41_openapi_job_info_resp_jobs_inner_delay_boot( + set = True, + infinite = True, + number = 56, ), + dependency = '', + derived_exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + eligible_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_eligible_time.v0_0_41_openapi_job_info_resp_jobs_inner_eligible_time( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_end_time.v0_0_41_openapi_job_info_resp_jobs_inner_end_time( + set = True, + infinite = True, + number = 56, ), + excluded_nodes = '', + exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_id.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_id( + set = True, + infinite = True, + number = 56, ), + het_job_id_set = '', + het_job_offset = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset( + set = True, + infinite = True, + number = 56, ), + job_id = 56, + job_resources = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core( + set = True, + infinite = True, + number = 56, ), ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_last_sched_evaluation.v0_0_41_openapi_job_info_resp_jobs_inner_last_sched_evaluation( + set = True, + infinite = True, + number = 56, ), + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_max_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_max_cpus( + set = True, + infinite = True, + number = 56, ), + max_nodes = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_max_nodes.v0_0_41_openapi_job_info_resp_jobs_inner_max_nodes( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_core( + set = True, + infinite = True, + number = 56, ), + tasks_per_tres = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_tres.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_tres( + set = True, + infinite = True, + number = 56, ), + tasks_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_node( + set = True, + infinite = True, + number = 56, ), + tasks_per_socket = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_socket.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_socket( + set = True, + infinite = True, + number = 56, ), + tasks_per_board = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_board.v0_0_41_openapi_job_info_resp_jobs_inner_tasks_per_board( + set = True, + infinite = True, + number = 56, ), + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_cpus( + set = True, + infinite = True, + number = 56, ), + node_count = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_node_count.v0_0_41_openapi_job_info_resp_jobs_inner_node_count( + set = True, + infinite = True, + number = 56, ), + tasks = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_tasks.v0_0_41_openapi_job_info_resp_jobs_inner_tasks( + set = True, + infinite = True, + number = 56, ), + partition = '', + prefer = '', + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node( + set = True, + infinite = True, + number = 56, ), + minimum_cpus_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node( + set = True, + infinite = True, + number = 56, ), + minimum_tmp_disk_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node( + set = True, + infinite = True, + number = 56, ), + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power( + flags = [ + null + ], ), + preempt_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_preempt_time.v0_0_41_openapi_job_info_resp_jobs_inner_preempt_time( + set = True, + infinite = True, + number = 56, ), + preemptable_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_preemptable_time.v0_0_41_openapi_job_info_resp_jobs_inner_preemptable_time( + set = True, + infinite = True, + number = 56, ), + pre_sus_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_pre_sus_time.v0_0_41_openapi_job_info_resp_jobs_inner_pre_sus_time( + set = True, + infinite = True, + number = 56, ), + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + minimum_switches = 56, + requeue = True, + resize_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_resize_time.v0_0_41_openapi_job_info_resp_jobs_inner_resize_time( + set = True, + infinite = True, + number = 56, ), + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + selinux_context = '', + shared = [ + 'none' + ], + exclusive = [ + 'true' + ], + oversubscribe = True, + show_flags = [ + 'ALL' + ], + sockets_per_board = 56, + sockets_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_sockets_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_sockets_per_node( + set = True, + infinite = True, + number = 56, ), + start_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_start_time.v0_0_41_openapi_job_info_resp_jobs_inner_start_time( + set = True, + infinite = True, + number = 56, ), + state_description = '', + state_reason = '', + standard_error = '', + standard_input = '', + standard_output = '', + submit_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_submit_time.v0_0_41_openapi_job_info_resp_jobs_inner_submit_time( + set = True, + infinite = True, + number = 56, ), + suspend_time = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_suspend_time.v0_0_41_openapi_job_info_resp_jobs_inner_suspend_time( + set = True, + infinite = True, + number = 56, ), + system_comment = '', + time_limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0_0_41_job_desc_msg_time_minimum.v0_0_41_job_desc_msg_time_minimum( + set = True, + infinite = True, + number = 56, ), + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_threads_per_core( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '' + ) + else: + return V0041OpenapiJobInfoRespJobsInner( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInner(self): + """Test V0041OpenapiJobInfoRespJobsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_accrue_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_accrue_time.py new file mode 100644 index 0000000..87b96b3 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_accrue_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_accrue_time import V0041OpenapiJobInfoRespJobsInnerAccrueTime + +class TestV0041OpenapiJobInfoRespJobsInnerAccrueTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerAccrueTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerAccrueTime: + """Test V0041OpenapiJobInfoRespJobsInnerAccrueTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerAccrueTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerAccrueTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerAccrueTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerAccrueTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerAccrueTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerAccrueTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_array_job_id.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_array_job_id.py new file mode 100644 index 0000000..6183abc --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_array_job_id.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_job_id import V0041OpenapiJobInfoRespJobsInnerArrayJobId + +class TestV0041OpenapiJobInfoRespJobsInnerArrayJobId(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerArrayJobId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerArrayJobId: + """Test V0041OpenapiJobInfoRespJobsInnerArrayJobId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerArrayJobId` + """ + model = V0041OpenapiJobInfoRespJobsInnerArrayJobId() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerArrayJobId( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerArrayJobId( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerArrayJobId(self): + """Test V0041OpenapiJobInfoRespJobsInnerArrayJobId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py new file mode 100644 index 0000000..cd45819 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_array_max_tasks.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_max_tasks import V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks + +class TestV0041OpenapiJobInfoRespJobsInnerArrayMaxTasks(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks: + """Test V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks` + """ + model = V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerArrayMaxTasks(self): + """Test V0041OpenapiJobInfoRespJobsInnerArrayMaxTasks""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_array_task_id.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_array_task_id.py new file mode 100644 index 0000000..5600564 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_array_task_id.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_array_task_id import V0041OpenapiJobInfoRespJobsInnerArrayTaskId + +class TestV0041OpenapiJobInfoRespJobsInnerArrayTaskId(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerArrayTaskId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerArrayTaskId: + """Test V0041OpenapiJobInfoRespJobsInnerArrayTaskId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerArrayTaskId` + """ + model = V0041OpenapiJobInfoRespJobsInnerArrayTaskId() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerArrayTaskId( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerArrayTaskId( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerArrayTaskId(self): + """Test V0041OpenapiJobInfoRespJobsInnerArrayTaskId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_billable_tres.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_billable_tres.py new file mode 100644 index 0000000..1ec2cbf --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_billable_tres.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_billable_tres import V0041OpenapiJobInfoRespJobsInnerBillableTres + +class TestV0041OpenapiJobInfoRespJobsInnerBillableTres(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerBillableTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerBillableTres: + """Test V0041OpenapiJobInfoRespJobsInnerBillableTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerBillableTres` + """ + model = V0041OpenapiJobInfoRespJobsInnerBillableTres() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerBillableTres( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerBillableTres( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerBillableTres(self): + """Test V0041OpenapiJobInfoRespJobsInnerBillableTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py new file mode 100644 index 0000000..ce08c5b --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_cores_per_socket.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cores_per_socket import V0041OpenapiJobInfoRespJobsInnerCoresPerSocket + +class TestV0041OpenapiJobInfoRespJobsInnerCoresPerSocket(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerCoresPerSocket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerCoresPerSocket: + """Test V0041OpenapiJobInfoRespJobsInnerCoresPerSocket + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerCoresPerSocket` + """ + model = V0041OpenapiJobInfoRespJobsInnerCoresPerSocket() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerCoresPerSocket( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerCoresPerSocket( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerCoresPerSocket(self): + """Test V0041OpenapiJobInfoRespJobsInnerCoresPerSocket""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py new file mode 100644 index 0000000..fa5dbd9 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_governor import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor + +class TestV0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor: + """Test V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor` + """ + model = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor(self): + """Test V0041OpenapiJobInfoRespJobsInnerCpuFrequencyGovernor""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py new file mode 100644 index 0000000..00311e7 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_maximum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum + +class TestV0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum: + """Test V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum` + """ + model = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum(self): + """Test V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMaximum""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py new file mode 100644 index 0000000..7d1f8f8 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpu_frequency_minimum import V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum + +class TestV0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum: + """Test V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum` + """ + model = V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum(self): + """Test V0041OpenapiJobInfoRespJobsInnerCpuFrequencyMinimum""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_cpus.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpus.py new file mode 100644 index 0000000..c020b00 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpus.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus import V0041OpenapiJobInfoRespJobsInnerCpus + +class TestV0041OpenapiJobInfoRespJobsInnerCpus(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerCpus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerCpus: + """Test V0041OpenapiJobInfoRespJobsInnerCpus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerCpus` + """ + model = V0041OpenapiJobInfoRespJobsInnerCpus() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerCpus( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerCpus( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerCpus(self): + """Test V0041OpenapiJobInfoRespJobsInnerCpus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py new file mode 100644 index 0000000..c7dba16 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_cpus_per_task.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_cpus_per_task import V0041OpenapiJobInfoRespJobsInnerCpusPerTask + +class TestV0041OpenapiJobInfoRespJobsInnerCpusPerTask(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerCpusPerTask unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerCpusPerTask: + """Test V0041OpenapiJobInfoRespJobsInnerCpusPerTask + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerCpusPerTask` + """ + model = V0041OpenapiJobInfoRespJobsInnerCpusPerTask() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerCpusPerTask( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerCpusPerTask( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerCpusPerTask(self): + """Test V0041OpenapiJobInfoRespJobsInnerCpusPerTask""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_deadline.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_deadline.py new file mode 100644 index 0000000..6371a9a --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_deadline.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_deadline import V0041OpenapiJobInfoRespJobsInnerDeadline + +class TestV0041OpenapiJobInfoRespJobsInnerDeadline(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerDeadline unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerDeadline: + """Test V0041OpenapiJobInfoRespJobsInnerDeadline + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerDeadline` + """ + model = V0041OpenapiJobInfoRespJobsInnerDeadline() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerDeadline( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerDeadline( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerDeadline(self): + """Test V0041OpenapiJobInfoRespJobsInnerDeadline""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_delay_boot.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_delay_boot.py new file mode 100644 index 0000000..a12bd1a --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_delay_boot.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_delay_boot import V0041OpenapiJobInfoRespJobsInnerDelayBoot + +class TestV0041OpenapiJobInfoRespJobsInnerDelayBoot(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerDelayBoot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerDelayBoot: + """Test V0041OpenapiJobInfoRespJobsInnerDelayBoot + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerDelayBoot` + """ + model = V0041OpenapiJobInfoRespJobsInnerDelayBoot() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerDelayBoot( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerDelayBoot( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerDelayBoot(self): + """Test V0041OpenapiJobInfoRespJobsInnerDelayBoot""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py new file mode 100644 index 0000000..80d099d --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCode + +class TestV0041OpenapiJobInfoRespJobsInnerDerivedExitCode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerDerivedExitCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerDerivedExitCode: + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerDerivedExitCode` + """ + model = V0041OpenapiJobInfoRespJobsInnerDerivedExitCode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCode( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ) + ) + else: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerDerivedExitCode(self): + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py new file mode 100644 index 0000000..046e599 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode + +class TestV0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode: + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode` + """ + model = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode(self): + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeReturnCode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py new file mode 100644 index 0000000..efc6985 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal + +class TestV0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal: + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal` + """ + model = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '' + ) + else: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal(self): + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py new file mode 100644 index 0000000..dfaf61e --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id import V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId + +class TestV0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId: + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId` + """ + model = V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId(self): + """Test V0041OpenapiJobInfoRespJobsInnerDerivedExitCodeSignalId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_eligible_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_eligible_time.py new file mode 100644 index 0000000..61959a6 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_eligible_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_eligible_time import V0041OpenapiJobInfoRespJobsInnerEligibleTime + +class TestV0041OpenapiJobInfoRespJobsInnerEligibleTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerEligibleTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerEligibleTime: + """Test V0041OpenapiJobInfoRespJobsInnerEligibleTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerEligibleTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerEligibleTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerEligibleTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerEligibleTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerEligibleTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerEligibleTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_end_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_end_time.py new file mode 100644 index 0000000..64aa62d --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_end_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_end_time import V0041OpenapiJobInfoRespJobsInnerEndTime + +class TestV0041OpenapiJobInfoRespJobsInnerEndTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerEndTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerEndTime: + """Test V0041OpenapiJobInfoRespJobsInnerEndTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerEndTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerEndTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerEndTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerEndTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerEndTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerEndTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_exit_code.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_exit_code.py new file mode 100644 index 0000000..bd6a197 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_exit_code.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_exit_code import V0041OpenapiJobInfoRespJobsInnerExitCode + +class TestV0041OpenapiJobInfoRespJobsInnerExitCode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerExitCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerExitCode: + """Test V0041OpenapiJobInfoRespJobsInnerExitCode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerExitCode` + """ + model = V0041OpenapiJobInfoRespJobsInnerExitCode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerExitCode( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ) + ) + else: + return V0041OpenapiJobInfoRespJobsInnerExitCode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerExitCode(self): + """Test V0041OpenapiJobInfoRespJobsInnerExitCode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_id.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_id.py new file mode 100644 index 0000000..9f92863 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_id.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_id import V0041OpenapiJobInfoRespJobsInnerHetJobId + +class TestV0041OpenapiJobInfoRespJobsInnerHetJobId(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerHetJobId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerHetJobId: + """Test V0041OpenapiJobInfoRespJobsInnerHetJobId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerHetJobId` + """ + model = V0041OpenapiJobInfoRespJobsInnerHetJobId() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerHetJobId( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerHetJobId( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerHetJobId(self): + """Test V0041OpenapiJobInfoRespJobsInnerHetJobId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py new file mode 100644 index 0000000..ea854a7 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_het_job_offset.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_het_job_offset import V0041OpenapiJobInfoRespJobsInnerHetJobOffset + +class TestV0041OpenapiJobInfoRespJobsInnerHetJobOffset(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerHetJobOffset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerHetJobOffset: + """Test V0041OpenapiJobInfoRespJobsInnerHetJobOffset + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerHetJobOffset` + """ + model = V0041OpenapiJobInfoRespJobsInnerHetJobOffset() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerHetJobOffset( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerHetJobOffset( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerHetJobOffset(self): + """Test V0041OpenapiJobInfoRespJobsInnerHetJobOffset""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources.py new file mode 100644 index 0000000..6b5893f --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources import V0041OpenapiJobInfoRespJobsInnerJobResources + +class TestV0041OpenapiJobInfoRespJobsInnerJobResources(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResources unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResources: + """Test V0041OpenapiJobInfoRespJobsInnerJobResources + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResources` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResources() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResources( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResources( + select_type = [ + 'CPU' + ], + cpus = 56, + threads_per_core = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResources(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResources""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py new file mode 100644 index 0000000..e3ff58b --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes + +class TestV0041OpenapiJobInfoRespJobsInnerJobResourcesNodes(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes: + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ] + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResourcesNodes(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py new file mode 100644 index 0000000..a8e67a9 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner + +class TestV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner: + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ] + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner( + index = 56, + name = '', + sockets = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py new file mode 100644 index 0000000..6f7dd67 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus + +class TestV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus: + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus( + count = 56, + used = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerCpus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py new file mode 100644 index 0000000..683ed6f --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory + +class TestV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory: + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory( + used = 56, + allocated = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerMemory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py new file mode 100644 index 0000000..33d3151 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner + +class TestV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner: + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ] + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner( + index = 56, + cores = [ + slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner( + index = 56, + status = [ + 'INVALID' + ], ) + ], + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py new file mode 100644 index 0000000..aa0caa8 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_sockets_inner_cores_inner import V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner + +class TestV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner: + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner( + index = 56, + status = [ + 'INVALID' + ] + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner( + index = 56, + status = [ + 'INVALID' + ], + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesNodesAllocationInnerSocketsInnerCoresInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py new file mode 100644 index 0000000..6329a68 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_job_resources_threads_per_core import V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore + +class TestV0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore: + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore` + """ + model = V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore(self): + """Test V0041OpenapiJobInfoRespJobsInnerJobResourcesThreadsPerCore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py new file mode 100644 index 0000000..aae32e4 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_last_sched_evaluation import V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation + +class TestV0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation: + """Test V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation` + """ + model = V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation(self): + """Test V0041OpenapiJobInfoRespJobsInnerLastSchedEvaluation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_max_cpus.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_max_cpus.py new file mode 100644 index 0000000..b21c566 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_max_cpus.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_cpus import V0041OpenapiJobInfoRespJobsInnerMaxCpus + +class TestV0041OpenapiJobInfoRespJobsInnerMaxCpus(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerMaxCpus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerMaxCpus: + """Test V0041OpenapiJobInfoRespJobsInnerMaxCpus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerMaxCpus` + """ + model = V0041OpenapiJobInfoRespJobsInnerMaxCpus() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerMaxCpus( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerMaxCpus( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerMaxCpus(self): + """Test V0041OpenapiJobInfoRespJobsInnerMaxCpus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_max_nodes.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_max_nodes.py new file mode 100644 index 0000000..4282c50 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_max_nodes.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_max_nodes import V0041OpenapiJobInfoRespJobsInnerMaxNodes + +class TestV0041OpenapiJobInfoRespJobsInnerMaxNodes(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerMaxNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerMaxNodes: + """Test V0041OpenapiJobInfoRespJobsInnerMaxNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerMaxNodes` + """ + model = V0041OpenapiJobInfoRespJobsInnerMaxNodes() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerMaxNodes( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerMaxNodes( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerMaxNodes(self): + """Test V0041OpenapiJobInfoRespJobsInnerMaxNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py new file mode 100644 index 0000000..59ad438 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_memory_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_memory_per_node import V0041OpenapiJobInfoRespJobsInnerMemoryPerNode + +class TestV0041OpenapiJobInfoRespJobsInnerMemoryPerNode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerMemoryPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerMemoryPerNode: + """Test V0041OpenapiJobInfoRespJobsInnerMemoryPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerMemoryPerNode` + """ + model = V0041OpenapiJobInfoRespJobsInnerMemoryPerNode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerMemoryPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerMemoryPerNode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerMemoryPerNode(self): + """Test V0041OpenapiJobInfoRespJobsInnerMemoryPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py new file mode 100644 index 0000000..252a868 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_cpus_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode + +class TestV0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode: + """Test V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode` + """ + model = V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode(self): + """Test V0041OpenapiJobInfoRespJobsInnerMinimumCpusPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py new file mode 100644 index 0000000..41f8484 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_minimum_tmp_disk_per_node import V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode + +class TestV0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode: + """Test V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode` + """ + model = V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode(self): + """Test V0041OpenapiJobInfoRespJobsInnerMinimumTmpDiskPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_node_count.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_node_count.py new file mode 100644 index 0000000..7eeac24 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_node_count.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_node_count import V0041OpenapiJobInfoRespJobsInnerNodeCount + +class TestV0041OpenapiJobInfoRespJobsInnerNodeCount(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerNodeCount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerNodeCount: + """Test V0041OpenapiJobInfoRespJobsInnerNodeCount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerNodeCount` + """ + model = V0041OpenapiJobInfoRespJobsInnerNodeCount() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerNodeCount( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerNodeCount( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerNodeCount(self): + """Test V0041OpenapiJobInfoRespJobsInnerNodeCount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_power.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_power.py new file mode 100644 index 0000000..b529cf0 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_power.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_power import V0041OpenapiJobInfoRespJobsInnerPower + +class TestV0041OpenapiJobInfoRespJobsInnerPower(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerPower unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerPower: + """Test V0041OpenapiJobInfoRespJobsInnerPower + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerPower` + """ + model = V0041OpenapiJobInfoRespJobsInnerPower() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerPower( + flags = [ + null + ] + ) + else: + return V0041OpenapiJobInfoRespJobsInnerPower( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerPower(self): + """Test V0041OpenapiJobInfoRespJobsInnerPower""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py new file mode 100644 index 0000000..d66cb3d --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_pre_sus_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_pre_sus_time import V0041OpenapiJobInfoRespJobsInnerPreSusTime + +class TestV0041OpenapiJobInfoRespJobsInnerPreSusTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerPreSusTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerPreSusTime: + """Test V0041OpenapiJobInfoRespJobsInnerPreSusTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerPreSusTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerPreSusTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerPreSusTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerPreSusTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerPreSusTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerPreSusTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_preempt_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_preempt_time.py new file mode 100644 index 0000000..e2332f4 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_preempt_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preempt_time import V0041OpenapiJobInfoRespJobsInnerPreemptTime + +class TestV0041OpenapiJobInfoRespJobsInnerPreemptTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerPreemptTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerPreemptTime: + """Test V0041OpenapiJobInfoRespJobsInnerPreemptTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerPreemptTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerPreemptTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerPreemptTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerPreemptTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerPreemptTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerPreemptTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py new file mode 100644 index 0000000..5f7e84f --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_preemptable_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_preemptable_time import V0041OpenapiJobInfoRespJobsInnerPreemptableTime + +class TestV0041OpenapiJobInfoRespJobsInnerPreemptableTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerPreemptableTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerPreemptableTime: + """Test V0041OpenapiJobInfoRespJobsInnerPreemptableTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerPreemptableTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerPreemptableTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerPreemptableTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerPreemptableTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerPreemptableTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerPreemptableTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_resize_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_resize_time.py new file mode 100644 index 0000000..798c329 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_resize_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_resize_time import V0041OpenapiJobInfoRespJobsInnerResizeTime + +class TestV0041OpenapiJobInfoRespJobsInnerResizeTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerResizeTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerResizeTime: + """Test V0041OpenapiJobInfoRespJobsInnerResizeTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerResizeTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerResizeTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerResizeTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerResizeTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerResizeTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerResizeTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py new file mode 100644 index 0000000..9c0d823 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_sockets_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_sockets_per_node import V0041OpenapiJobInfoRespJobsInnerSocketsPerNode + +class TestV0041OpenapiJobInfoRespJobsInnerSocketsPerNode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerSocketsPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerSocketsPerNode: + """Test V0041OpenapiJobInfoRespJobsInnerSocketsPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerSocketsPerNode` + """ + model = V0041OpenapiJobInfoRespJobsInnerSocketsPerNode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerSocketsPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerSocketsPerNode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerSocketsPerNode(self): + """Test V0041OpenapiJobInfoRespJobsInnerSocketsPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_start_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_start_time.py new file mode 100644 index 0000000..faf4af6 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_start_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_start_time import V0041OpenapiJobInfoRespJobsInnerStartTime + +class TestV0041OpenapiJobInfoRespJobsInnerStartTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerStartTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerStartTime: + """Test V0041OpenapiJobInfoRespJobsInnerStartTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerStartTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerStartTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerStartTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerStartTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerStartTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerStartTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_submit_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_submit_time.py new file mode 100644 index 0000000..a393f15 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_submit_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_submit_time import V0041OpenapiJobInfoRespJobsInnerSubmitTime + +class TestV0041OpenapiJobInfoRespJobsInnerSubmitTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerSubmitTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerSubmitTime: + """Test V0041OpenapiJobInfoRespJobsInnerSubmitTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerSubmitTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerSubmitTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerSubmitTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerSubmitTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerSubmitTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerSubmitTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_suspend_time.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_suspend_time.py new file mode 100644 index 0000000..8288af7 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_suspend_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_suspend_time import V0041OpenapiJobInfoRespJobsInnerSuspendTime + +class TestV0041OpenapiJobInfoRespJobsInnerSuspendTime(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerSuspendTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerSuspendTime: + """Test V0041OpenapiJobInfoRespJobsInnerSuspendTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerSuspendTime` + """ + model = V0041OpenapiJobInfoRespJobsInnerSuspendTime() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerSuspendTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerSuspendTime( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerSuspendTime(self): + """Test V0041OpenapiJobInfoRespJobsInnerSuspendTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks.py new file mode 100644 index 0000000..3924d47 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks import V0041OpenapiJobInfoRespJobsInnerTasks + +class TestV0041OpenapiJobInfoRespJobsInnerTasks(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerTasks unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerTasks: + """Test V0041OpenapiJobInfoRespJobsInnerTasks + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerTasks` + """ + model = V0041OpenapiJobInfoRespJobsInnerTasks() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerTasks( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerTasks( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerTasks(self): + """Test V0041OpenapiJobInfoRespJobsInnerTasks""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py new file mode 100644 index 0000000..2062dbf --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_board.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_board import V0041OpenapiJobInfoRespJobsInnerTasksPerBoard + +class TestV0041OpenapiJobInfoRespJobsInnerTasksPerBoard(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerTasksPerBoard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerTasksPerBoard: + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerBoard + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerTasksPerBoard` + """ + model = V0041OpenapiJobInfoRespJobsInnerTasksPerBoard() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerTasksPerBoard( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerTasksPerBoard( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerTasksPerBoard(self): + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerBoard""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py new file mode 100644 index 0000000..4f1adcf --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_core.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_core import V0041OpenapiJobInfoRespJobsInnerTasksPerCore + +class TestV0041OpenapiJobInfoRespJobsInnerTasksPerCore(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerTasksPerCore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerTasksPerCore: + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerCore + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerTasksPerCore` + """ + model = V0041OpenapiJobInfoRespJobsInnerTasksPerCore() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerTasksPerCore( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerTasksPerCore( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerTasksPerCore(self): + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerCore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py new file mode 100644 index 0000000..e02fa3c --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_node import V0041OpenapiJobInfoRespJobsInnerTasksPerNode + +class TestV0041OpenapiJobInfoRespJobsInnerTasksPerNode(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerTasksPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerTasksPerNode: + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerTasksPerNode` + """ + model = V0041OpenapiJobInfoRespJobsInnerTasksPerNode() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerTasksPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerTasksPerNode( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerTasksPerNode(self): + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py new file mode 100644 index 0000000..0fe92a2 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_socket import V0041OpenapiJobInfoRespJobsInnerTasksPerSocket + +class TestV0041OpenapiJobInfoRespJobsInnerTasksPerSocket(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerTasksPerSocket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerTasksPerSocket: + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerSocket + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerTasksPerSocket` + """ + model = V0041OpenapiJobInfoRespJobsInnerTasksPerSocket() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerTasksPerSocket( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerTasksPerSocket( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerTasksPerSocket(self): + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerSocket""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py new file mode 100644 index 0000000..3515c0e --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_tasks_per_tres import V0041OpenapiJobInfoRespJobsInnerTasksPerTres + +class TestV0041OpenapiJobInfoRespJobsInnerTasksPerTres(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerTasksPerTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerTasksPerTres: + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerTasksPerTres` + """ + model = V0041OpenapiJobInfoRespJobsInnerTasksPerTres() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerTasksPerTres( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerTasksPerTres( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerTasksPerTres(self): + """Test V0041OpenapiJobInfoRespJobsInnerTasksPerTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py b/test/test_v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py new file mode 100644 index 0000000..d73e7bb --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_jobs_inner_threads_per_core.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_jobs_inner_threads_per_core import V0041OpenapiJobInfoRespJobsInnerThreadsPerCore + +class TestV0041OpenapiJobInfoRespJobsInnerThreadsPerCore(unittest.TestCase): + """V0041OpenapiJobInfoRespJobsInnerThreadsPerCore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespJobsInnerThreadsPerCore: + """Test V0041OpenapiJobInfoRespJobsInnerThreadsPerCore + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespJobsInnerThreadsPerCore` + """ + model = V0041OpenapiJobInfoRespJobsInnerThreadsPerCore() + if include_optional: + return V0041OpenapiJobInfoRespJobsInnerThreadsPerCore( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespJobsInnerThreadsPerCore( + ) + """ + + def testV0041OpenapiJobInfoRespJobsInnerThreadsPerCore(self): + """Test V0041OpenapiJobInfoRespJobsInnerThreadsPerCore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_last_backfill.py b/test/test_v0041_openapi_job_info_resp_last_backfill.py new file mode 100644 index 0000000..41cbec3 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_last_backfill.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_last_backfill import V0041OpenapiJobInfoRespLastBackfill + +class TestV0041OpenapiJobInfoRespLastBackfill(unittest.TestCase): + """V0041OpenapiJobInfoRespLastBackfill unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespLastBackfill: + """Test V0041OpenapiJobInfoRespLastBackfill + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespLastBackfill` + """ + model = V0041OpenapiJobInfoRespLastBackfill() + if include_optional: + return V0041OpenapiJobInfoRespLastBackfill( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespLastBackfill( + ) + """ + + def testV0041OpenapiJobInfoRespLastBackfill(self): + """Test V0041OpenapiJobInfoRespLastBackfill""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_info_resp_last_update.py b/test/test_v0041_openapi_job_info_resp_last_update.py new file mode 100644 index 0000000..3b509b2 --- /dev/null +++ b/test/test_v0041_openapi_job_info_resp_last_update.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_info_resp_last_update import V0041OpenapiJobInfoRespLastUpdate + +class TestV0041OpenapiJobInfoRespLastUpdate(unittest.TestCase): + """V0041OpenapiJobInfoRespLastUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobInfoRespLastUpdate: + """Test V0041OpenapiJobInfoRespLastUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobInfoRespLastUpdate` + """ + model = V0041OpenapiJobInfoRespLastUpdate() + if include_optional: + return V0041OpenapiJobInfoRespLastUpdate( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiJobInfoRespLastUpdate( + ) + """ + + def testV0041OpenapiJobInfoRespLastUpdate(self): + """Test V0041OpenapiJobInfoRespLastUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_post_response.py b/test/test_v0041_openapi_job_post_response.py new file mode 100644 index 0000000..01d54d5 --- /dev/null +++ b/test/test_v0041_openapi_job_post_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_post_response import V0041OpenapiJobPostResponse + +class TestV0041OpenapiJobPostResponse(unittest.TestCase): + """V0041OpenapiJobPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobPostResponse: + """Test V0041OpenapiJobPostResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobPostResponse` + """ + model = V0041OpenapiJobPostResponse() + if include_optional: + return V0041OpenapiJobPostResponse( + results = [ + slurmrest_python.models.v0_0_41_openapi_job_post_response_results_inner.v0_0_41_openapi_job_post_response_results_inner( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '', ) + ], + job_id = '', + step_id = '', + job_submit_user_msg = '', + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiJobPostResponse( + ) + """ + + def testV0041OpenapiJobPostResponse(self): + """Test V0041OpenapiJobPostResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_post_response_results_inner.py b/test/test_v0041_openapi_job_post_response_results_inner.py new file mode 100644 index 0000000..cf79339 --- /dev/null +++ b/test/test_v0041_openapi_job_post_response_results_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_post_response_results_inner import V0041OpenapiJobPostResponseResultsInner + +class TestV0041OpenapiJobPostResponseResultsInner(unittest.TestCase): + """V0041OpenapiJobPostResponseResultsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobPostResponseResultsInner: + """Test V0041OpenapiJobPostResponseResultsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobPostResponseResultsInner` + """ + model = V0041OpenapiJobPostResponseResultsInner() + if include_optional: + return V0041OpenapiJobPostResponseResultsInner( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '' + ) + else: + return V0041OpenapiJobPostResponseResultsInner( + ) + """ + + def testV0041OpenapiJobPostResponseResultsInner(self): + """Test V0041OpenapiJobPostResponseResultsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_submit_response.py b/test/test_v0041_openapi_job_submit_response.py new file mode 100644 index 0000000..386ef7e --- /dev/null +++ b/test/test_v0041_openapi_job_submit_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_submit_response import V0041OpenapiJobSubmitResponse + +class TestV0041OpenapiJobSubmitResponse(unittest.TestCase): + """V0041OpenapiJobSubmitResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobSubmitResponse: + """Test V0041OpenapiJobSubmitResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobSubmitResponse` + """ + model = V0041OpenapiJobSubmitResponse() + if include_optional: + return V0041OpenapiJobSubmitResponse( + result = slurmrest_python.models.v0_0_41_openapi_job_submit_response_result.v0_0_41_openapi_job_submit_response_result( + job_id = 56, + step_id = '', + error_code = 56, + error = '', + job_submit_user_msg = '', ), + job_id = 56, + step_id = '', + job_submit_user_msg = '', + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiJobSubmitResponse( + ) + """ + + def testV0041OpenapiJobSubmitResponse(self): + """Test V0041OpenapiJobSubmitResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_job_submit_response_result.py b/test/test_v0041_openapi_job_submit_response_result.py new file mode 100644 index 0000000..4e455f2 --- /dev/null +++ b/test/test_v0041_openapi_job_submit_response_result.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_job_submit_response_result import V0041OpenapiJobSubmitResponseResult + +class TestV0041OpenapiJobSubmitResponseResult(unittest.TestCase): + """V0041OpenapiJobSubmitResponseResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiJobSubmitResponseResult: + """Test V0041OpenapiJobSubmitResponseResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiJobSubmitResponseResult` + """ + model = V0041OpenapiJobSubmitResponseResult() + if include_optional: + return V0041OpenapiJobSubmitResponseResult( + job_id = 56, + step_id = '', + error_code = 56, + error = '', + job_submit_user_msg = '' + ) + else: + return V0041OpenapiJobSubmitResponseResult( + ) + """ + + def testV0041OpenapiJobSubmitResponseResult(self): + """Test V0041OpenapiJobSubmitResponseResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_kill_jobs_resp.py b/test/test_v0041_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..7e59f60 --- /dev/null +++ b/test/test_v0041_openapi_kill_jobs_resp.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_kill_jobs_resp import V0041OpenapiKillJobsResp + +class TestV0041OpenapiKillJobsResp(unittest.TestCase): + """V0041OpenapiKillJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiKillJobsResp: + """Test V0041OpenapiKillJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiKillJobsResp` + """ + model = V0041OpenapiKillJobsResp() + if include_optional: + return V0041OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner.v0_0_41_openapi_kill_jobs_resp_status_inner( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner.v0_0_41_openapi_kill_jobs_resp_status_inner( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + ) + """ + + def testV0041OpenapiKillJobsResp(self): + """Test V0041OpenapiKillJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_kill_jobs_resp_status_inner.py b/test/test_v0041_openapi_kill_jobs_resp_status_inner.py new file mode 100644 index 0000000..0004bbd --- /dev/null +++ b/test/test_v0041_openapi_kill_jobs_resp_status_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner import V0041OpenapiKillJobsRespStatusInner + +class TestV0041OpenapiKillJobsRespStatusInner(unittest.TestCase): + """V0041OpenapiKillJobsRespStatusInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiKillJobsRespStatusInner: + """Test V0041OpenapiKillJobsRespStatusInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiKillJobsRespStatusInner` + """ + model = V0041OpenapiKillJobsRespStatusInner() + if include_optional: + return V0041OpenapiKillJobsRespStatusInner( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ) + ) + else: + return V0041OpenapiKillJobsRespStatusInner( + step_id = '', + job_id = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id.v0_0_41_openapi_kill_jobs_resp_status_inner_job_id( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiKillJobsRespStatusInner(self): + """Test V0041OpenapiKillJobsRespStatusInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_kill_jobs_resp_status_inner_error.py b/test/test_v0041_openapi_kill_jobs_resp_status_inner_error.py new file mode 100644 index 0000000..81d2864 --- /dev/null +++ b/test/test_v0041_openapi_kill_jobs_resp_status_inner_error.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_error import V0041OpenapiKillJobsRespStatusInnerError + +class TestV0041OpenapiKillJobsRespStatusInnerError(unittest.TestCase): + """V0041OpenapiKillJobsRespStatusInnerError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiKillJobsRespStatusInnerError: + """Test V0041OpenapiKillJobsRespStatusInnerError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiKillJobsRespStatusInnerError` + """ + model = V0041OpenapiKillJobsRespStatusInnerError() + if include_optional: + return V0041OpenapiKillJobsRespStatusInnerError( + string = '', + code = 56, + message = '' + ) + else: + return V0041OpenapiKillJobsRespStatusInnerError( + ) + """ + + def testV0041OpenapiKillJobsRespStatusInnerError(self): + """Test V0041OpenapiKillJobsRespStatusInnerError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_kill_jobs_resp_status_inner_federation.py b/test/test_v0041_openapi_kill_jobs_resp_status_inner_federation.py new file mode 100644 index 0000000..d6014bf --- /dev/null +++ b/test/test_v0041_openapi_kill_jobs_resp_status_inner_federation.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_federation import V0041OpenapiKillJobsRespStatusInnerFederation + +class TestV0041OpenapiKillJobsRespStatusInnerFederation(unittest.TestCase): + """V0041OpenapiKillJobsRespStatusInnerFederation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiKillJobsRespStatusInnerFederation: + """Test V0041OpenapiKillJobsRespStatusInnerFederation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiKillJobsRespStatusInnerFederation` + """ + model = V0041OpenapiKillJobsRespStatusInnerFederation() + if include_optional: + return V0041OpenapiKillJobsRespStatusInnerFederation( + sibling = '' + ) + else: + return V0041OpenapiKillJobsRespStatusInnerFederation( + ) + """ + + def testV0041OpenapiKillJobsRespStatusInnerFederation(self): + """Test V0041OpenapiKillJobsRespStatusInnerFederation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_kill_jobs_resp_status_inner_job_id.py b/test/test_v0041_openapi_kill_jobs_resp_status_inner_job_id.py new file mode 100644 index 0000000..3b37c05 --- /dev/null +++ b/test/test_v0041_openapi_kill_jobs_resp_status_inner_job_id.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_kill_jobs_resp_status_inner_job_id import V0041OpenapiKillJobsRespStatusInnerJobId + +class TestV0041OpenapiKillJobsRespStatusInnerJobId(unittest.TestCase): + """V0041OpenapiKillJobsRespStatusInnerJobId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiKillJobsRespStatusInnerJobId: + """Test V0041OpenapiKillJobsRespStatusInnerJobId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiKillJobsRespStatusInnerJobId` + """ + model = V0041OpenapiKillJobsRespStatusInnerJobId() + if include_optional: + return V0041OpenapiKillJobsRespStatusInnerJobId( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiKillJobsRespStatusInnerJobId( + ) + """ + + def testV0041OpenapiKillJobsRespStatusInnerJobId(self): + """Test V0041OpenapiKillJobsRespStatusInnerJobId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_licenses_resp.py b/test/test_v0041_openapi_licenses_resp.py new file mode 100644 index 0000000..f330438 --- /dev/null +++ b/test/test_v0041_openapi_licenses_resp.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_licenses_resp import V0041OpenapiLicensesResp + +class TestV0041OpenapiLicensesResp(unittest.TestCase): + """V0041OpenapiLicensesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiLicensesResp: + """Test V0041OpenapiLicensesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiLicensesResp` + """ + model = V0041OpenapiLicensesResp() + if include_optional: + return V0041OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0_0_41_openapi_licenses_resp_licenses_inner.v0_0_41_openapi_licenses_resp_licenses_inner( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_licenses_resp_last_update.v0_0_41_openapi_licenses_resp_last_update( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0_0_41_openapi_licenses_resp_licenses_inner.v0_0_41_openapi_licenses_resp_licenses_inner( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_licenses_resp_last_update.v0_0_41_openapi_licenses_resp_last_update( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiLicensesResp(self): + """Test V0041OpenapiLicensesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_licenses_resp_last_update.py b/test/test_v0041_openapi_licenses_resp_last_update.py new file mode 100644 index 0000000..594406e --- /dev/null +++ b/test/test_v0041_openapi_licenses_resp_last_update.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_licenses_resp_last_update import V0041OpenapiLicensesRespLastUpdate + +class TestV0041OpenapiLicensesRespLastUpdate(unittest.TestCase): + """V0041OpenapiLicensesRespLastUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiLicensesRespLastUpdate: + """Test V0041OpenapiLicensesRespLastUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiLicensesRespLastUpdate` + """ + model = V0041OpenapiLicensesRespLastUpdate() + if include_optional: + return V0041OpenapiLicensesRespLastUpdate( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiLicensesRespLastUpdate( + ) + """ + + def testV0041OpenapiLicensesRespLastUpdate(self): + """Test V0041OpenapiLicensesRespLastUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_licenses_resp_licenses_inner.py b/test/test_v0041_openapi_licenses_resp_licenses_inner.py new file mode 100644 index 0000000..00bdd13 --- /dev/null +++ b/test/test_v0041_openapi_licenses_resp_licenses_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_licenses_resp_licenses_inner import V0041OpenapiLicensesRespLicensesInner + +class TestV0041OpenapiLicensesRespLicensesInner(unittest.TestCase): + """V0041OpenapiLicensesRespLicensesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiLicensesRespLicensesInner: + """Test V0041OpenapiLicensesRespLicensesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiLicensesRespLicensesInner` + """ + model = V0041OpenapiLicensesRespLicensesInner() + if include_optional: + return V0041OpenapiLicensesRespLicensesInner( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56 + ) + else: + return V0041OpenapiLicensesRespLicensesInner( + ) + """ + + def testV0041OpenapiLicensesRespLicensesInner(self): + """Test V0041OpenapiLicensesRespLicensesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp.py b/test/test_v0041_openapi_nodes_resp.py new file mode 100644 index 0000000..cb34cc6 --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp import V0041OpenapiNodesResp + +class TestV0041OpenapiNodesResp(unittest.TestCase): + """V0041OpenapiNodesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesResp: + """Test V0041OpenapiNodesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesResp` + """ + model = V0041OpenapiNodesResp() + if include_optional: + return V0041OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner.v0_0_41_openapi_nodes_resp_nodes_inner( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_boot_time.v0_0_41_openapi_nodes_resp_nodes_inner_boot_time( + set = True, + infinite = True, + number = 56, ), + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_free_mem.v0_0_41_openapi_nodes_resp_nodes_inner_free_mem( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_energy.v0_0_41_openapi_nodes_resp_nodes_inner_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_last_busy.v0_0_41_openapi_nodes_resp_nodes_inner_last_busy( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = [ + '' + ], + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_reason_changed_at.v0_0_41_openapi_nodes_resp_nodes_inner_reason_changed_at( + set = True, + infinite = True, + number = 56, ), + reason_set_by_user = '', + resume_after = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_resume_after.v0_0_41_openapi_nodes_resp_nodes_inner_resume_after( + set = True, + infinite = True, + number = 56, ), + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_slurmd_start_time.v0_0_41_openapi_nodes_resp_nodes_inner_slurmd_start_time( + set = True, + infinite = True, + number = 56, ), + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_nodes_resp_last_update.v0_0_41_openapi_nodes_resp_last_update( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner.v0_0_41_openapi_nodes_resp_nodes_inner( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_boot_time.v0_0_41_openapi_nodes_resp_nodes_inner_boot_time( + set = True, + infinite = True, + number = 56, ), + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_free_mem.v0_0_41_openapi_nodes_resp_nodes_inner_free_mem( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_energy.v0_0_41_openapi_nodes_resp_nodes_inner_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_last_busy.v0_0_41_openapi_nodes_resp_nodes_inner_last_busy( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = [ + '' + ], + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_reason_changed_at.v0_0_41_openapi_nodes_resp_nodes_inner_reason_changed_at( + set = True, + infinite = True, + number = 56, ), + reason_set_by_user = '', + resume_after = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_resume_after.v0_0_41_openapi_nodes_resp_nodes_inner_resume_after( + set = True, + infinite = True, + number = 56, ), + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_slurmd_start_time.v0_0_41_openapi_nodes_resp_nodes_inner_slurmd_start_time( + set = True, + infinite = True, + number = 56, ), + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_nodes_resp_last_update.v0_0_41_openapi_nodes_resp_last_update( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiNodesResp(self): + """Test V0041OpenapiNodesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_last_update.py b/test/test_v0041_openapi_nodes_resp_last_update.py new file mode 100644 index 0000000..96df91c --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_last_update.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_last_update import V0041OpenapiNodesRespLastUpdate + +class TestV0041OpenapiNodesRespLastUpdate(unittest.TestCase): + """V0041OpenapiNodesRespLastUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespLastUpdate: + """Test V0041OpenapiNodesRespLastUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespLastUpdate` + """ + model = V0041OpenapiNodesRespLastUpdate() + if include_optional: + return V0041OpenapiNodesRespLastUpdate( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespLastUpdate( + ) + """ + + def testV0041OpenapiNodesRespLastUpdate(self): + """Test V0041OpenapiNodesRespLastUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner.py b/test/test_v0041_openapi_nodes_resp_nodes_inner.py new file mode 100644 index 0000000..63db4cc --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner import V0041OpenapiNodesRespNodesInner + +class TestV0041OpenapiNodesRespNodesInner(unittest.TestCase): + """V0041OpenapiNodesRespNodesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInner: + """Test V0041OpenapiNodesRespNodesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInner` + """ + model = V0041OpenapiNodesRespNodesInner() + if include_optional: + return V0041OpenapiNodesRespNodesInner( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_boot_time.v0_0_41_openapi_nodes_resp_nodes_inner_boot_time( + set = True, + infinite = True, + number = 56, ), + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_free_mem.v0_0_41_openapi_nodes_resp_nodes_inner_free_mem( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_energy.v0_0_41_openapi_nodes_resp_nodes_inner_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_last_busy.v0_0_41_openapi_nodes_resp_nodes_inner_last_busy( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = [ + '' + ], + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_reason_changed_at.v0_0_41_openapi_nodes_resp_nodes_inner_reason_changed_at( + set = True, + infinite = True, + number = 56, ), + reason_set_by_user = '', + resume_after = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_resume_after.v0_0_41_openapi_nodes_resp_nodes_inner_resume_after( + set = True, + infinite = True, + number = 56, ), + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_slurmd_start_time.v0_0_41_openapi_nodes_resp_nodes_inner_slurmd_start_time( + set = True, + infinite = True, + number = 56, ), + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + tres = '', + version = '' + ) + else: + return V0041OpenapiNodesRespNodesInner( + ) + """ + + def testV0041OpenapiNodesRespNodesInner(self): + """Test V0041OpenapiNodesRespNodesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_boot_time.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_boot_time.py new file mode 100644 index 0000000..fe7ea74 --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_boot_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_boot_time import V0041OpenapiNodesRespNodesInnerBootTime + +class TestV0041OpenapiNodesRespNodesInnerBootTime(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerBootTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerBootTime: + """Test V0041OpenapiNodesRespNodesInnerBootTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerBootTime` + """ + model = V0041OpenapiNodesRespNodesInnerBootTime() + if include_optional: + return V0041OpenapiNodesRespNodesInnerBootTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerBootTime( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerBootTime(self): + """Test V0041OpenapiNodesRespNodesInnerBootTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_energy.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_energy.py new file mode 100644 index 0000000..3c70b8e --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_energy.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy import V0041OpenapiNodesRespNodesInnerEnergy + +class TestV0041OpenapiNodesRespNodesInnerEnergy(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerEnergy: + """Test V0041OpenapiNodesRespNodesInnerEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerEnergy` + """ + model = V0041OpenapiNodesRespNodesInnerEnergy() + if include_optional: + return V0041OpenapiNodesRespNodesInnerEnergy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts.v0_0_41_openapi_nodes_resp_nodes_inner_energy_current_watts( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerEnergy( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerEnergy(self): + """Test V0041OpenapiNodesRespNodesInnerEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py new file mode 100644 index 0000000..90e0372 --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_energy_current_watts.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_energy_current_watts import V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts + +class TestV0041OpenapiNodesRespNodesInnerEnergyCurrentWatts(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts: + """Test V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts` + """ + model = V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts() + if include_optional: + return V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerEnergyCurrentWatts(self): + """Test V0041OpenapiNodesRespNodesInnerEnergyCurrentWatts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_free_mem.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_free_mem.py new file mode 100644 index 0000000..8cc1649 --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_free_mem.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_free_mem import V0041OpenapiNodesRespNodesInnerFreeMem + +class TestV0041OpenapiNodesRespNodesInnerFreeMem(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerFreeMem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerFreeMem: + """Test V0041OpenapiNodesRespNodesInnerFreeMem + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerFreeMem` + """ + model = V0041OpenapiNodesRespNodesInnerFreeMem() + if include_optional: + return V0041OpenapiNodesRespNodesInnerFreeMem( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerFreeMem( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerFreeMem(self): + """Test V0041OpenapiNodesRespNodesInnerFreeMem""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_last_busy.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_last_busy.py new file mode 100644 index 0000000..31d86fa --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_last_busy.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_last_busy import V0041OpenapiNodesRespNodesInnerLastBusy + +class TestV0041OpenapiNodesRespNodesInnerLastBusy(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerLastBusy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerLastBusy: + """Test V0041OpenapiNodesRespNodesInnerLastBusy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerLastBusy` + """ + model = V0041OpenapiNodesRespNodesInnerLastBusy() + if include_optional: + return V0041OpenapiNodesRespNodesInnerLastBusy( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerLastBusy( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerLastBusy(self): + """Test V0041OpenapiNodesRespNodesInnerLastBusy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py new file mode 100644 index 0000000..ce75dcb --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_reason_changed_at.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_reason_changed_at import V0041OpenapiNodesRespNodesInnerReasonChangedAt + +class TestV0041OpenapiNodesRespNodesInnerReasonChangedAt(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerReasonChangedAt unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerReasonChangedAt: + """Test V0041OpenapiNodesRespNodesInnerReasonChangedAt + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerReasonChangedAt` + """ + model = V0041OpenapiNodesRespNodesInnerReasonChangedAt() + if include_optional: + return V0041OpenapiNodesRespNodesInnerReasonChangedAt( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerReasonChangedAt( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerReasonChangedAt(self): + """Test V0041OpenapiNodesRespNodesInnerReasonChangedAt""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_resume_after.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_resume_after.py new file mode 100644 index 0000000..af3eceb --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_resume_after.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_resume_after import V0041OpenapiNodesRespNodesInnerResumeAfter + +class TestV0041OpenapiNodesRespNodesInnerResumeAfter(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerResumeAfter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerResumeAfter: + """Test V0041OpenapiNodesRespNodesInnerResumeAfter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerResumeAfter` + """ + model = V0041OpenapiNodesRespNodesInnerResumeAfter() + if include_optional: + return V0041OpenapiNodesRespNodesInnerResumeAfter( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerResumeAfter( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerResumeAfter(self): + """Test V0041OpenapiNodesRespNodesInnerResumeAfter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py b/test/test_v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py new file mode 100644 index 0000000..f75d7fc --- /dev/null +++ b/test/test_v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_nodes_resp_nodes_inner_slurmd_start_time import V0041OpenapiNodesRespNodesInnerSlurmdStartTime + +class TestV0041OpenapiNodesRespNodesInnerSlurmdStartTime(unittest.TestCase): + """V0041OpenapiNodesRespNodesInnerSlurmdStartTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiNodesRespNodesInnerSlurmdStartTime: + """Test V0041OpenapiNodesRespNodesInnerSlurmdStartTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiNodesRespNodesInnerSlurmdStartTime` + """ + model = V0041OpenapiNodesRespNodesInnerSlurmdStartTime() + if include_optional: + return V0041OpenapiNodesRespNodesInnerSlurmdStartTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiNodesRespNodesInnerSlurmdStartTime( + ) + """ + + def testV0041OpenapiNodesRespNodesInnerSlurmdStartTime(self): + """Test V0041OpenapiNodesRespNodesInnerSlurmdStartTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp.py b/test/test_v0041_openapi_partition_resp.py new file mode 100644 index 0000000..e1ac26b --- /dev/null +++ b/test/test_v0041_openapi_partition_resp.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp import V0041OpenapiPartitionResp + +class TestV0041OpenapiPartitionResp(unittest.TestCase): + """V0041OpenapiPartitionResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionResp: + """Test V0041OpenapiPartitionResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionResp` + """ + model = V0041OpenapiPartitionResp() + if include_optional: + return V0041OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner.v0_0_41_openapi_partition_resp_partitions_inner( + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_nodes.v0_0_41_openapi_partition_resp_partitions_inner_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_accounts.v0_0_41_openapi_partition_resp_partitions_inner_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_groups.v0_0_41_openapi_partition_resp_partitions_inner_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_qos.v0_0_41_openapi_partition_resp_partitions_inner_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_tres.v0_0_41_openapi_partition_resp_partitions_inner_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_cpus.v0_0_41_openapi_partition_resp_partitions_inner_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults.v0_0_41_openapi_partition_resp_partitions_inner_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums.v0_0_41_openapi_partition_resp_partitions_inner_maximums( + cpus_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_minimums.v0_0_41_openapi_partition_resp_partitions_inner_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_priority.v0_0_41_openapi_partition_resp_partitions_inner_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts.v0_0_41_openapi_partition_resp_partitions_inner_timeouts( + resume = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend( + set = True, + infinite = True, + number = 56, ), ), + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_suspend_time.v0_0_41_openapi_partition_resp_partitions_inner_suspend_time( + set = True, + infinite = True, + number = 56, ), ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_partition_resp_last_update.v0_0_41_openapi_partition_resp_last_update( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner.v0_0_41_openapi_partition_resp_partitions_inner( + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_nodes.v0_0_41_openapi_partition_resp_partitions_inner_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_accounts.v0_0_41_openapi_partition_resp_partitions_inner_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_groups.v0_0_41_openapi_partition_resp_partitions_inner_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_qos.v0_0_41_openapi_partition_resp_partitions_inner_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_tres.v0_0_41_openapi_partition_resp_partitions_inner_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_cpus.v0_0_41_openapi_partition_resp_partitions_inner_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults.v0_0_41_openapi_partition_resp_partitions_inner_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums.v0_0_41_openapi_partition_resp_partitions_inner_maximums( + cpus_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_minimums.v0_0_41_openapi_partition_resp_partitions_inner_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_priority.v0_0_41_openapi_partition_resp_partitions_inner_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts.v0_0_41_openapi_partition_resp_partitions_inner_timeouts( + resume = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend( + set = True, + infinite = True, + number = 56, ), ), + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_suspend_time.v0_0_41_openapi_partition_resp_partitions_inner_suspend_time( + set = True, + infinite = True, + number = 56, ), ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_partition_resp_last_update.v0_0_41_openapi_partition_resp_last_update( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiPartitionResp(self): + """Test V0041OpenapiPartitionResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_last_update.py b/test/test_v0041_openapi_partition_resp_last_update.py new file mode 100644 index 0000000..d6dc8ed --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_last_update.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_last_update import V0041OpenapiPartitionRespLastUpdate + +class TestV0041OpenapiPartitionRespLastUpdate(unittest.TestCase): + """V0041OpenapiPartitionRespLastUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespLastUpdate: + """Test V0041OpenapiPartitionRespLastUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespLastUpdate` + """ + model = V0041OpenapiPartitionRespLastUpdate() + if include_optional: + return V0041OpenapiPartitionRespLastUpdate( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespLastUpdate( + ) + """ + + def testV0041OpenapiPartitionRespLastUpdate(self): + """Test V0041OpenapiPartitionRespLastUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner.py b/test/test_v0041_openapi_partition_resp_partitions_inner.py new file mode 100644 index 0000000..9f32811 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner import V0041OpenapiPartitionRespPartitionsInner + +class TestV0041OpenapiPartitionRespPartitionsInner(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInner: + """Test V0041OpenapiPartitionRespPartitionsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInner` + """ + model = V0041OpenapiPartitionRespPartitionsInner() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInner( + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_nodes.v0_0_41_openapi_partition_resp_partitions_inner_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_accounts.v0_0_41_openapi_partition_resp_partitions_inner_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_groups.v0_0_41_openapi_partition_resp_partitions_inner_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_qos.v0_0_41_openapi_partition_resp_partitions_inner_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_tres.v0_0_41_openapi_partition_resp_partitions_inner_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_cpus.v0_0_41_openapi_partition_resp_partitions_inner_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults.v0_0_41_openapi_partition_resp_partitions_inner_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums.v0_0_41_openapi_partition_resp_partitions_inner_maximums( + cpus_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node( + set = True, + infinite = True, + number = 56, ), + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_nodes.v0_0_41_openapi_partition_resp_partitions_inner_maximums_nodes( + set = True, + infinite = True, + number = 56, ), + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_time.v0_0_41_openapi_partition_resp_partitions_inner_maximums_time( + set = True, + infinite = True, + number = 56, ), + over_time_limit = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_minimums.v0_0_41_openapi_partition_resp_partitions_inner_minimums( + nodes = 56, ), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_priority.v0_0_41_openapi_partition_resp_partitions_inner_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts.v0_0_41_openapi_partition_resp_partitions_inner_timeouts( + resume = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend( + set = True, + infinite = True, + number = 56, ), ), + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_suspend_time.v0_0_41_openapi_partition_resp_partitions_inner_suspend_time( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiPartitionRespPartitionsInner( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInner(self): + """Test V0041OpenapiPartitionRespPartitionsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_accounts.py b/test/test_v0041_openapi_partition_resp_partitions_inner_accounts.py new file mode 100644 index 0000000..a931eda --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_accounts.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_accounts import V0041OpenapiPartitionRespPartitionsInnerAccounts + +class TestV0041OpenapiPartitionRespPartitionsInnerAccounts(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerAccounts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerAccounts: + """Test V0041OpenapiPartitionRespPartitionsInnerAccounts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerAccounts` + """ + model = V0041OpenapiPartitionRespPartitionsInnerAccounts() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerAccounts( + allowed = '', + deny = '' + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerAccounts( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerAccounts(self): + """Test V0041OpenapiPartitionRespPartitionsInnerAccounts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_cpus.py b/test/test_v0041_openapi_partition_resp_partitions_inner_cpus.py new file mode 100644 index 0000000..8e5cd28 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_cpus.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_cpus import V0041OpenapiPartitionRespPartitionsInnerCpus + +class TestV0041OpenapiPartitionRespPartitionsInnerCpus(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerCpus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerCpus: + """Test V0041OpenapiPartitionRespPartitionsInnerCpus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerCpus` + """ + model = V0041OpenapiPartitionRespPartitionsInnerCpus() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerCpus( + task_binding = 56, + total = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerCpus( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerCpus(self): + """Test V0041OpenapiPartitionRespPartitionsInnerCpus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_defaults.py b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults.py new file mode 100644 index 0000000..2c3241e --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults import V0041OpenapiPartitionRespPartitionsInnerDefaults + +class TestV0041OpenapiPartitionRespPartitionsInnerDefaults(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerDefaults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerDefaults: + """Test V0041OpenapiPartitionRespPartitionsInnerDefaults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerDefaults` + """ + model = V0041OpenapiPartitionRespPartitionsInnerDefaults() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerDefaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.v0_0_41_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time.v0_0_41_openapi_partition_resp_partitions_inner_defaults_time( + set = True, + infinite = True, + number = 56, ), + job = '' + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerDefaults( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerDefaults(self): + """Test V0041OpenapiPartitionRespPartitionsInnerDefaults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py new file mode 100644 index 0000000..c7ee71d --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu + +class TestV0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu: + """Test V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu` + """ + model = V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu(self): + """Test V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerCpu""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py new file mode 100644 index 0000000..ad38622 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode + +class TestV0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode: + """Test V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode` + """ + model = V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode(self): + """Test V0041OpenapiPartitionRespPartitionsInnerDefaultsPartitionMemoryPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_time.py b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_time.py new file mode 100644 index 0000000..ee94b39 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_defaults_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_defaults_time import V0041OpenapiPartitionRespPartitionsInnerDefaultsTime + +class TestV0041OpenapiPartitionRespPartitionsInnerDefaultsTime(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerDefaultsTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerDefaultsTime: + """Test V0041OpenapiPartitionRespPartitionsInnerDefaultsTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerDefaultsTime` + """ + model = V0041OpenapiPartitionRespPartitionsInnerDefaultsTime() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerDefaultsTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerDefaultsTime( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerDefaultsTime(self): + """Test V0041OpenapiPartitionRespPartitionsInnerDefaultsTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_groups.py b/test/test_v0041_openapi_partition_resp_partitions_inner_groups.py new file mode 100644 index 0000000..20ad13e --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_groups.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_groups import V0041OpenapiPartitionRespPartitionsInnerGroups + +class TestV0041OpenapiPartitionRespPartitionsInnerGroups(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerGroups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerGroups: + """Test V0041OpenapiPartitionRespPartitionsInnerGroups + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerGroups` + """ + model = V0041OpenapiPartitionRespPartitionsInnerGroups() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerGroups( + allowed = '' + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerGroups( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerGroups(self): + """Test V0041OpenapiPartitionRespPartitionsInnerGroups""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums.py new file mode 100644 index 0000000..6c3eed3 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums import V0041OpenapiPartitionRespPartitionsInnerMaximums + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximums(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximums unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximums: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximums + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximums` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximums() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximums( + cpus_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_node( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.v0_0_41_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.v0_0_41_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node( + set = True, + infinite = True, + number = 56, ), + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_nodes.v0_0_41_openapi_partition_resp_partitions_inner_maximums_nodes( + set = True, + infinite = True, + number = 56, ), + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_time.v0_0_41_openapi_partition_resp_partitions_inner_maximums_time( + set = True, + infinite = True, + number = 56, ), + over_time_limit = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit.v0_0_41_openapi_partition_resp_partitions_inner_maximums_over_time_limit( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximums( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximums(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximums""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py new file mode 100644 index 0000000..8b7d29b --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py new file mode 100644 index 0000000..1998f12 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_cpus_per_socket import V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsCpusPerSocket""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py new file mode 100644 index 0000000..ca50dbe --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_nodes.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_nodes import V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsNodes(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsNodes(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py new file mode 100644 index 0000000..872307d --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_over_time_limit import V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsOverTimeLimit""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py new file mode 100644 index 0000000..e309c2b --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_oversubscribe import V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe( + jobs = 56, + flags = [ + 'force' + ] + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsOversubscribe""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py new file mode 100644 index 0000000..811b1b6 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_cpu import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerCpu""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py new file mode 100644 index 0000000..1a1e56b --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_partition_memory_per_node import V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsPartitionMemoryPerNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_time.py b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_time.py new file mode 100644 index 0000000..802c143 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_maximums_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_maximums_time import V0041OpenapiPartitionRespPartitionsInnerMaximumsTime + +class TestV0041OpenapiPartitionRespPartitionsInnerMaximumsTime(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMaximumsTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMaximumsTime: + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMaximumsTime` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMaximumsTime() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMaximumsTime( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMaximumsTime(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMaximumsTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_minimums.py b/test/test_v0041_openapi_partition_resp_partitions_inner_minimums.py new file mode 100644 index 0000000..19d90ef --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_minimums.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_minimums import V0041OpenapiPartitionRespPartitionsInnerMinimums + +class TestV0041OpenapiPartitionRespPartitionsInnerMinimums(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerMinimums unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerMinimums: + """Test V0041OpenapiPartitionRespPartitionsInnerMinimums + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerMinimums` + """ + model = V0041OpenapiPartitionRespPartitionsInnerMinimums() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerMinimums( + nodes = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerMinimums( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerMinimums(self): + """Test V0041OpenapiPartitionRespPartitionsInnerMinimums""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_nodes.py b/test/test_v0041_openapi_partition_resp_partitions_inner_nodes.py new file mode 100644 index 0000000..709cef4 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_nodes.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_nodes import V0041OpenapiPartitionRespPartitionsInnerNodes + +class TestV0041OpenapiPartitionRespPartitionsInnerNodes(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerNodes: + """Test V0041OpenapiPartitionRespPartitionsInnerNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerNodes` + """ + model = V0041OpenapiPartitionRespPartitionsInnerNodes() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerNodes( + allowed_allocation = '', + configured = '', + total = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerNodes( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerNodes(self): + """Test V0041OpenapiPartitionRespPartitionsInnerNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_partition.py b/test/test_v0041_openapi_partition_resp_partitions_inner_partition.py new file mode 100644 index 0000000..55cf482 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_partition.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_partition import V0041OpenapiPartitionRespPartitionsInnerPartition + +class TestV0041OpenapiPartitionRespPartitionsInnerPartition(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerPartition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerPartition: + """Test V0041OpenapiPartitionRespPartitionsInnerPartition + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerPartition` + """ + model = V0041OpenapiPartitionRespPartitionsInnerPartition() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerPartition( + state = [ + 'INACTIVE' + ] + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerPartition( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerPartition(self): + """Test V0041OpenapiPartitionRespPartitionsInnerPartition""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_priority.py b/test/test_v0041_openapi_partition_resp_partitions_inner_priority.py new file mode 100644 index 0000000..be2f394 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_priority.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_priority import V0041OpenapiPartitionRespPartitionsInnerPriority + +class TestV0041OpenapiPartitionRespPartitionsInnerPriority(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerPriority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerPriority: + """Test V0041OpenapiPartitionRespPartitionsInnerPriority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerPriority` + """ + model = V0041OpenapiPartitionRespPartitionsInnerPriority() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerPriority( + job_factor = 56, + tier = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerPriority( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerPriority(self): + """Test V0041OpenapiPartitionRespPartitionsInnerPriority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_qos.py b/test/test_v0041_openapi_partition_resp_partitions_inner_qos.py new file mode 100644 index 0000000..21217c0 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_qos.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_qos import V0041OpenapiPartitionRespPartitionsInnerQos + +class TestV0041OpenapiPartitionRespPartitionsInnerQos(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerQos unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerQos: + """Test V0041OpenapiPartitionRespPartitionsInnerQos + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerQos` + """ + model = V0041OpenapiPartitionRespPartitionsInnerQos() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerQos( + allowed = '', + deny = '', + assigned = '' + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerQos( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerQos(self): + """Test V0041OpenapiPartitionRespPartitionsInnerQos""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_suspend_time.py b/test/test_v0041_openapi_partition_resp_partitions_inner_suspend_time.py new file mode 100644 index 0000000..93319aa --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_suspend_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_suspend_time import V0041OpenapiPartitionRespPartitionsInnerSuspendTime + +class TestV0041OpenapiPartitionRespPartitionsInnerSuspendTime(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerSuspendTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerSuspendTime: + """Test V0041OpenapiPartitionRespPartitionsInnerSuspendTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerSuspendTime` + """ + model = V0041OpenapiPartitionRespPartitionsInnerSuspendTime() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerSuspendTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerSuspendTime( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerSuspendTime(self): + """Test V0041OpenapiPartitionRespPartitionsInnerSuspendTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts.py b/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts.py new file mode 100644 index 0000000..9ef9e99 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts import V0041OpenapiPartitionRespPartitionsInnerTimeouts + +class TestV0041OpenapiPartitionRespPartitionsInnerTimeouts(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerTimeouts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerTimeouts: + """Test V0041OpenapiPartitionRespPartitionsInnerTimeouts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerTimeouts` + """ + model = V0041OpenapiPartitionRespPartitionsInnerTimeouts() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerTimeouts( + resume = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_resume( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend.v0_0_41_openapi_partition_resp_partitions_inner_timeouts_suspend( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerTimeouts( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerTimeouts(self): + """Test V0041OpenapiPartitionRespPartitionsInnerTimeouts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py b/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py new file mode 100644 index 0000000..2eb52fb --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_resume.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_resume import V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume + +class TestV0041OpenapiPartitionRespPartitionsInnerTimeoutsResume(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume: + """Test V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume` + """ + model = V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerTimeoutsResume(self): + """Test V0041OpenapiPartitionRespPartitionsInnerTimeoutsResume""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py b/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py new file mode 100644 index 0000000..e140b9d --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_timeouts_suspend.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_timeouts_suspend import V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend + +class TestV0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend: + """Test V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend` + """ + model = V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend(self): + """Test V0041OpenapiPartitionRespPartitionsInnerTimeoutsSuspend""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_partition_resp_partitions_inner_tres.py b/test/test_v0041_openapi_partition_resp_partitions_inner_tres.py new file mode 100644 index 0000000..87e0d93 --- /dev/null +++ b/test/test_v0041_openapi_partition_resp_partitions_inner_tres.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_partition_resp_partitions_inner_tres import V0041OpenapiPartitionRespPartitionsInnerTres + +class TestV0041OpenapiPartitionRespPartitionsInnerTres(unittest.TestCase): + """V0041OpenapiPartitionRespPartitionsInnerTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPartitionRespPartitionsInnerTres: + """Test V0041OpenapiPartitionRespPartitionsInnerTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPartitionRespPartitionsInnerTres` + """ + model = V0041OpenapiPartitionRespPartitionsInnerTres() + if include_optional: + return V0041OpenapiPartitionRespPartitionsInnerTres( + billing_weights = '', + configured = '' + ) + else: + return V0041OpenapiPartitionRespPartitionsInnerTres( + ) + """ + + def testV0041OpenapiPartitionRespPartitionsInnerTres(self): + """Test V0041OpenapiPartitionRespPartitionsInnerTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_ping_array_resp.py b/test/test_v0041_openapi_ping_array_resp.py new file mode 100644 index 0000000..fa995c4 --- /dev/null +++ b/test/test_v0041_openapi_ping_array_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_ping_array_resp import V0041OpenapiPingArrayResp + +class TestV0041OpenapiPingArrayResp(unittest.TestCase): + """V0041OpenapiPingArrayResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPingArrayResp: + """Test V0041OpenapiPingArrayResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPingArrayResp` + """ + model = V0041OpenapiPingArrayResp() + if include_optional: + return V0041OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0_0_41_openapi_ping_array_resp_pings_inner.v0_0_41_openapi_ping_array_resp_pings_inner( + hostname = '', + pinged = '', + latency = 56, + mode = '', ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0_0_41_openapi_ping_array_resp_pings_inner.v0_0_41_openapi_ping_array_resp_pings_inner( + hostname = '', + pinged = '', + latency = 56, + mode = '', ) + ], + ) + """ + + def testV0041OpenapiPingArrayResp(self): + """Test V0041OpenapiPingArrayResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_ping_array_resp_pings_inner.py b/test/test_v0041_openapi_ping_array_resp_pings_inner.py new file mode 100644 index 0000000..7566d1d --- /dev/null +++ b/test/test_v0041_openapi_ping_array_resp_pings_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_ping_array_resp_pings_inner import V0041OpenapiPingArrayRespPingsInner + +class TestV0041OpenapiPingArrayRespPingsInner(unittest.TestCase): + """V0041OpenapiPingArrayRespPingsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiPingArrayRespPingsInner: + """Test V0041OpenapiPingArrayRespPingsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiPingArrayRespPingsInner` + """ + model = V0041OpenapiPingArrayRespPingsInner() + if include_optional: + return V0041OpenapiPingArrayRespPingsInner( + hostname = '', + pinged = '', + latency = 56, + mode = '' + ) + else: + return V0041OpenapiPingArrayRespPingsInner( + ) + """ + + def testV0041OpenapiPingArrayRespPingsInner(self): + """Test V0041OpenapiPingArrayRespPingsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp.py b/test/test_v0041_openapi_reservation_resp.py new file mode 100644 index 0000000..6a88a47 --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp import V0041OpenapiReservationResp + +class TestV0041OpenapiReservationResp(unittest.TestCase): + """V0041OpenapiReservationResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationResp: + """Test V0041OpenapiReservationResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationResp` + """ + model = V0041OpenapiReservationResp() + if include_optional: + return V0041OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner.v0_0_41_openapi_reservation_resp_reservations_inner( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_core_specializations_inner.v0_0_41_openapi_reservation_resp_reservations_inner_core_specializations_inner( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_end_time.v0_0_41_openapi_reservation_resp_reservations_inner_end_time( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed( + time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_start_time.v0_0_41_openapi_reservation_resp_reservations_inner_start_time( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_watts.v0_0_41_openapi_reservation_resp_reservations_inner_watts( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_reservation_resp_last_update.v0_0_41_openapi_reservation_resp_last_update( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner.v0_0_41_openapi_reservation_resp_reservations_inner( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_core_specializations_inner.v0_0_41_openapi_reservation_resp_reservations_inner_core_specializations_inner( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_end_time.v0_0_41_openapi_reservation_resp_reservations_inner_end_time( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed( + time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_start_time.v0_0_41_openapi_reservation_resp_reservations_inner_start_time( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_watts.v0_0_41_openapi_reservation_resp_reservations_inner_watts( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0_0_41_openapi_reservation_resp_last_update.v0_0_41_openapi_reservation_resp_last_update( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0041OpenapiReservationResp(self): + """Test V0041OpenapiReservationResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_last_update.py b/test/test_v0041_openapi_reservation_resp_last_update.py new file mode 100644 index 0000000..9436715 --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_last_update.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_last_update import V0041OpenapiReservationRespLastUpdate + +class TestV0041OpenapiReservationRespLastUpdate(unittest.TestCase): + """V0041OpenapiReservationRespLastUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespLastUpdate: + """Test V0041OpenapiReservationRespLastUpdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespLastUpdate` + """ + model = V0041OpenapiReservationRespLastUpdate() + if include_optional: + return V0041OpenapiReservationRespLastUpdate( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiReservationRespLastUpdate( + ) + """ + + def testV0041OpenapiReservationRespLastUpdate(self): + """Test V0041OpenapiReservationRespLastUpdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_reservations_inner.py b/test/test_v0041_openapi_reservation_resp_reservations_inner.py new file mode 100644 index 0000000..e2f54df --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_reservations_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner import V0041OpenapiReservationRespReservationsInner + +class TestV0041OpenapiReservationRespReservationsInner(unittest.TestCase): + """V0041OpenapiReservationRespReservationsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespReservationsInner: + """Test V0041OpenapiReservationRespReservationsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespReservationsInner` + """ + model = V0041OpenapiReservationRespReservationsInner() + if include_optional: + return V0041OpenapiReservationRespReservationsInner( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_core_specializations_inner.v0_0_41_openapi_reservation_resp_reservations_inner_core_specializations_inner( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_end_time.v0_0_41_openapi_reservation_resp_reservations_inner_end_time( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed( + time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_start_time.v0_0_41_openapi_reservation_resp_reservations_inner_start_time( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_watts.v0_0_41_openapi_reservation_resp_reservations_inner_watts( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '' + ) + else: + return V0041OpenapiReservationRespReservationsInner( + ) + """ + + def testV0041OpenapiReservationRespReservationsInner(self): + """Test V0041OpenapiReservationRespReservationsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py b/test/test_v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py new file mode 100644 index 0000000..df3e288 --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_core_specializations_inner import V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner + +class TestV0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner(unittest.TestCase): + """V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner: + """Test V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner` + """ + model = V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner() + if include_optional: + return V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner( + node = '', + core = '' + ) + else: + return V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner( + ) + """ + + def testV0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner(self): + """Test V0041OpenapiReservationRespReservationsInnerCoreSpecializationsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_reservations_inner_end_time.py b/test/test_v0041_openapi_reservation_resp_reservations_inner_end_time.py new file mode 100644 index 0000000..f1c43c6 --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_reservations_inner_end_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_end_time import V0041OpenapiReservationRespReservationsInnerEndTime + +class TestV0041OpenapiReservationRespReservationsInnerEndTime(unittest.TestCase): + """V0041OpenapiReservationRespReservationsInnerEndTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespReservationsInnerEndTime: + """Test V0041OpenapiReservationRespReservationsInnerEndTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespReservationsInnerEndTime` + """ + model = V0041OpenapiReservationRespReservationsInnerEndTime() + if include_optional: + return V0041OpenapiReservationRespReservationsInnerEndTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiReservationRespReservationsInnerEndTime( + ) + """ + + def testV0041OpenapiReservationRespReservationsInnerEndTime(self): + """Test V0041OpenapiReservationRespReservationsInnerEndTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed.py b/test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed.py new file mode 100644 index 0000000..2b2d8e2 --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed import V0041OpenapiReservationRespReservationsInnerPurgeCompleted + +class TestV0041OpenapiReservationRespReservationsInnerPurgeCompleted(unittest.TestCase): + """V0041OpenapiReservationRespReservationsInnerPurgeCompleted unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespReservationsInnerPurgeCompleted: + """Test V0041OpenapiReservationRespReservationsInnerPurgeCompleted + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespReservationsInnerPurgeCompleted` + """ + model = V0041OpenapiReservationRespReservationsInnerPurgeCompleted() + if include_optional: + return V0041OpenapiReservationRespReservationsInnerPurgeCompleted( + time = slurmrest_python.models.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time.v0_0_41_openapi_reservation_resp_reservations_inner_purge_completed_time( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiReservationRespReservationsInnerPurgeCompleted( + ) + """ + + def testV0041OpenapiReservationRespReservationsInnerPurgeCompleted(self): + """Test V0041OpenapiReservationRespReservationsInnerPurgeCompleted""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py b/test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py new file mode 100644 index 0000000..0705748 --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_reservations_inner_purge_completed_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_purge_completed_time import V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime + +class TestV0041OpenapiReservationRespReservationsInnerPurgeCompletedTime(unittest.TestCase): + """V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime: + """Test V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime` + """ + model = V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime() + if include_optional: + return V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime( + ) + """ + + def testV0041OpenapiReservationRespReservationsInnerPurgeCompletedTime(self): + """Test V0041OpenapiReservationRespReservationsInnerPurgeCompletedTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_reservations_inner_start_time.py b/test/test_v0041_openapi_reservation_resp_reservations_inner_start_time.py new file mode 100644 index 0000000..ee5bc34 --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_reservations_inner_start_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_start_time import V0041OpenapiReservationRespReservationsInnerStartTime + +class TestV0041OpenapiReservationRespReservationsInnerStartTime(unittest.TestCase): + """V0041OpenapiReservationRespReservationsInnerStartTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespReservationsInnerStartTime: + """Test V0041OpenapiReservationRespReservationsInnerStartTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespReservationsInnerStartTime` + """ + model = V0041OpenapiReservationRespReservationsInnerStartTime() + if include_optional: + return V0041OpenapiReservationRespReservationsInnerStartTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiReservationRespReservationsInnerStartTime( + ) + """ + + def testV0041OpenapiReservationRespReservationsInnerStartTime(self): + """Test V0041OpenapiReservationRespReservationsInnerStartTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_reservation_resp_reservations_inner_watts.py b/test/test_v0041_openapi_reservation_resp_reservations_inner_watts.py new file mode 100644 index 0000000..b558def --- /dev/null +++ b/test/test_v0041_openapi_reservation_resp_reservations_inner_watts.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_reservation_resp_reservations_inner_watts import V0041OpenapiReservationRespReservationsInnerWatts + +class TestV0041OpenapiReservationRespReservationsInnerWatts(unittest.TestCase): + """V0041OpenapiReservationRespReservationsInnerWatts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiReservationRespReservationsInnerWatts: + """Test V0041OpenapiReservationRespReservationsInnerWatts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiReservationRespReservationsInnerWatts` + """ + model = V0041OpenapiReservationRespReservationsInnerWatts() + if include_optional: + return V0041OpenapiReservationRespReservationsInnerWatts( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiReservationRespReservationsInnerWatts( + ) + """ + + def testV0041OpenapiReservationRespReservationsInnerWatts(self): + """Test V0041OpenapiReservationRespReservationsInnerWatts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_resp.py b/test/test_v0041_openapi_resp.py new file mode 100644 index 0000000..f7cb2d4 --- /dev/null +++ b/test/test_v0041_openapi_resp.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_resp import V0041OpenapiResp + +class TestV0041OpenapiResp(unittest.TestCase): + """V0041OpenapiResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiResp: + """Test V0041OpenapiResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiResp` + """ + model = V0041OpenapiResp() + if include_optional: + return V0041OpenapiResp( + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiResp( + ) + """ + + def testV0041OpenapiResp(self): + """Test V0041OpenapiResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp.py b/test/test_v0041_openapi_shares_resp.py new file mode 100644 index 0000000..8993652 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp import V0041OpenapiSharesResp + +class TestV0041OpenapiSharesResp(unittest.TestCase): + """V0041OpenapiSharesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesResp: + """Test V0041OpenapiSharesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesResp` + """ + model = V0041OpenapiSharesResp() + if include_optional: + return V0041OpenapiSharesResp( + shares = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares.v0_0_41_openapi_shares_resp_shares( + shares = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner.v0_0_41_openapi_shares_resp_shares_shares_inner( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres.v0_0_41_openapi_shares_resp_shares_shares_inner_tres( + run_seconds = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', + value = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner( + name = '', ) + ], ), + effective_usage = 1.337, + usage_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized( + set = True, + infinite = True, + number = 1.337, ), + usage = 56, + fairshare = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare( + factor = 1.337, + level = 1.337, ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiSharesResp( + shares = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares.v0_0_41_openapi_shares_resp_shares( + shares = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner.v0_0_41_openapi_shares_resp_shares_shares_inner( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres.v0_0_41_openapi_shares_resp_shares_shares_inner_tres( + run_seconds = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', + value = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner( + name = '', ) + ], ), + effective_usage = 1.337, + usage_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized( + set = True, + infinite = True, + number = 1.337, ), + usage = 56, + fairshare = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare( + factor = 1.337, + level = 1.337, ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + ) + """ + + def testV0041OpenapiSharesResp(self): + """Test V0041OpenapiSharesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_errors_inner.py b/test/test_v0041_openapi_shares_resp_errors_inner.py new file mode 100644 index 0000000..308844b --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_errors_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_errors_inner import V0041OpenapiSharesRespErrorsInner + +class TestV0041OpenapiSharesRespErrorsInner(unittest.TestCase): + """V0041OpenapiSharesRespErrorsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespErrorsInner: + """Test V0041OpenapiSharesRespErrorsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespErrorsInner` + """ + model = V0041OpenapiSharesRespErrorsInner() + if include_optional: + return V0041OpenapiSharesRespErrorsInner( + description = '', + error_number = 56, + error = '', + source = '' + ) + else: + return V0041OpenapiSharesRespErrorsInner( + ) + """ + + def testV0041OpenapiSharesRespErrorsInner(self): + """Test V0041OpenapiSharesRespErrorsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_meta.py b/test/test_v0041_openapi_shares_resp_meta.py new file mode 100644 index 0000000..f0be0ac --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_meta.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_meta import V0041OpenapiSharesRespMeta + +class TestV0041OpenapiSharesRespMeta(unittest.TestCase): + """V0041OpenapiSharesRespMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespMeta: + """Test V0041OpenapiSharesRespMeta + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespMeta` + """ + model = V0041OpenapiSharesRespMeta() + if include_optional: + return V0041OpenapiSharesRespMeta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ) + ) + else: + return V0041OpenapiSharesRespMeta( + ) + """ + + def testV0041OpenapiSharesRespMeta(self): + """Test V0041OpenapiSharesRespMeta""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_meta_client.py b/test/test_v0041_openapi_shares_resp_meta_client.py new file mode 100644 index 0000000..bed2ff7 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_meta_client.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_meta_client import V0041OpenapiSharesRespMetaClient + +class TestV0041OpenapiSharesRespMetaClient(unittest.TestCase): + """V0041OpenapiSharesRespMetaClient unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespMetaClient: + """Test V0041OpenapiSharesRespMetaClient + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespMetaClient` + """ + model = V0041OpenapiSharesRespMetaClient() + if include_optional: + return V0041OpenapiSharesRespMetaClient( + source = '', + user = '', + group = '' + ) + else: + return V0041OpenapiSharesRespMetaClient( + ) + """ + + def testV0041OpenapiSharesRespMetaClient(self): + """Test V0041OpenapiSharesRespMetaClient""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_meta_plugin.py b/test/test_v0041_openapi_shares_resp_meta_plugin.py new file mode 100644 index 0000000..5919b3a --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_meta_plugin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_meta_plugin import V0041OpenapiSharesRespMetaPlugin + +class TestV0041OpenapiSharesRespMetaPlugin(unittest.TestCase): + """V0041OpenapiSharesRespMetaPlugin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespMetaPlugin: + """Test V0041OpenapiSharesRespMetaPlugin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespMetaPlugin` + """ + model = V0041OpenapiSharesRespMetaPlugin() + if include_optional: + return V0041OpenapiSharesRespMetaPlugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '' + ) + else: + return V0041OpenapiSharesRespMetaPlugin( + ) + """ + + def testV0041OpenapiSharesRespMetaPlugin(self): + """Test V0041OpenapiSharesRespMetaPlugin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_meta_slurm.py b/test/test_v0041_openapi_shares_resp_meta_slurm.py new file mode 100644 index 0000000..6a5b595 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_meta_slurm.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm import V0041OpenapiSharesRespMetaSlurm + +class TestV0041OpenapiSharesRespMetaSlurm(unittest.TestCase): + """V0041OpenapiSharesRespMetaSlurm unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespMetaSlurm: + """Test V0041OpenapiSharesRespMetaSlurm + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespMetaSlurm` + """ + model = V0041OpenapiSharesRespMetaSlurm() + if include_optional: + return V0041OpenapiSharesRespMetaSlurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '' + ) + else: + return V0041OpenapiSharesRespMetaSlurm( + ) + """ + + def testV0041OpenapiSharesRespMetaSlurm(self): + """Test V0041OpenapiSharesRespMetaSlurm""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_meta_slurm_version.py b/test/test_v0041_openapi_shares_resp_meta_slurm_version.py new file mode 100644 index 0000000..c136509 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_meta_slurm_version.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_meta_slurm_version import V0041OpenapiSharesRespMetaSlurmVersion + +class TestV0041OpenapiSharesRespMetaSlurmVersion(unittest.TestCase): + """V0041OpenapiSharesRespMetaSlurmVersion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespMetaSlurmVersion: + """Test V0041OpenapiSharesRespMetaSlurmVersion + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespMetaSlurmVersion` + """ + model = V0041OpenapiSharesRespMetaSlurmVersion() + if include_optional: + return V0041OpenapiSharesRespMetaSlurmVersion( + major = '', + micro = '', + minor = '' + ) + else: + return V0041OpenapiSharesRespMetaSlurmVersion( + ) + """ + + def testV0041OpenapiSharesRespMetaSlurmVersion(self): + """Test V0041OpenapiSharesRespMetaSlurmVersion""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares.py b/test/test_v0041_openapi_shares_resp_shares.py new file mode 100644 index 0000000..5f13d6f --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares import V0041OpenapiSharesRespShares + +class TestV0041OpenapiSharesRespShares(unittest.TestCase): + """V0041OpenapiSharesRespShares unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespShares: + """Test V0041OpenapiSharesRespShares + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespShares` + """ + model = V0041OpenapiSharesRespShares() + if include_optional: + return V0041OpenapiSharesRespShares( + shares = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner.v0_0_41_openapi_shares_resp_shares_shares_inner( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres.v0_0_41_openapi_shares_resp_shares_shares_inner_tres( + run_seconds = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', + value = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner( + name = '', ) + ], ), + effective_usage = 1.337, + usage_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized( + set = True, + infinite = True, + number = 1.337, ), + usage = 56, + fairshare = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare( + factor = 1.337, + level = 1.337, ), + type = [ + 'USER' + ], ) + ], + total_shares = 56 + ) + else: + return V0041OpenapiSharesRespShares( + ) + """ + + def testV0041OpenapiSharesRespShares(self): + """Test V0041OpenapiSharesRespShares""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner.py new file mode 100644 index 0000000..7a864a2 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner import V0041OpenapiSharesRespSharesSharesInner + +class TestV0041OpenapiSharesRespSharesSharesInner(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInner: + """Test V0041OpenapiSharesRespSharesSharesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInner` + """ + model = V0041OpenapiSharesRespSharesSharesInner() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInner( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_shares_normalized( + set = True, + infinite = True, + number = 1.337, ), + shares = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_shares.v0_0_41_openapi_shares_resp_shares_shares_inner_shares( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres.v0_0_41_openapi_shares_resp_shares_shares_inner_tres( + run_seconds = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', + value = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner( + name = '', ) + ], ), + effective_usage = 1.337, + usage_normalized = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized.v0_0_41_openapi_shares_resp_shares_shares_inner_usage_normalized( + set = True, + infinite = True, + number = 1.337, ), + usage = 56, + fairshare = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare.v0_0_41_openapi_shares_resp_shares_shares_inner_fairshare( + factor = 1.337, + level = 1.337, ), + type = [ + 'USER' + ] + ) + else: + return V0041OpenapiSharesRespSharesSharesInner( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInner(self): + """Test V0041OpenapiSharesRespSharesSharesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_fairshare.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_fairshare.py new file mode 100644 index 0000000..6c87d60 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_fairshare.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_fairshare import V0041OpenapiSharesRespSharesSharesInnerFairshare + +class TestV0041OpenapiSharesRespSharesSharesInnerFairshare(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerFairshare unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerFairshare: + """Test V0041OpenapiSharesRespSharesSharesInnerFairshare + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerFairshare` + """ + model = V0041OpenapiSharesRespSharesSharesInnerFairshare() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerFairshare( + factor = 1.337, + level = 1.337 + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerFairshare( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerFairshare(self): + """Test V0041OpenapiSharesRespSharesSharesInnerFairshare""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_shares.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_shares.py new file mode 100644 index 0000000..8d2b15b --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_shares.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares import V0041OpenapiSharesRespSharesSharesInnerShares + +class TestV0041OpenapiSharesRespSharesSharesInnerShares(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerShares unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerShares: + """Test V0041OpenapiSharesRespSharesSharesInnerShares + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerShares` + """ + model = V0041OpenapiSharesRespSharesSharesInnerShares() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerShares( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerShares( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerShares(self): + """Test V0041OpenapiSharesRespSharesSharesInnerShares""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py new file mode 100644 index 0000000..a510fef --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_shares_normalized.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_shares_normalized import V0041OpenapiSharesRespSharesSharesInnerSharesNormalized + +class TestV0041OpenapiSharesRespSharesSharesInnerSharesNormalized(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerSharesNormalized unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerSharesNormalized: + """Test V0041OpenapiSharesRespSharesSharesInnerSharesNormalized + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerSharesNormalized` + """ + model = V0041OpenapiSharesRespSharesSharesInnerSharesNormalized() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerSharesNormalized( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerSharesNormalized( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerSharesNormalized(self): + """Test V0041OpenapiSharesRespSharesSharesInnerSharesNormalized""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres.py new file mode 100644 index 0000000..64e61f3 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres import V0041OpenapiSharesRespSharesSharesInnerTres + +class TestV0041OpenapiSharesRespSharesSharesInnerTres(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerTres: + """Test V0041OpenapiSharesRespSharesSharesInnerTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerTres` + """ + model = V0041OpenapiSharesRespSharesSharesInnerTres() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerTres( + run_seconds = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', + value = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner( + name = '', + value = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value( + set = True, + infinite = True, + number = 56, ), ) + ], + usage = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_usage_inner( + name = '', + value = 1.337, ) + ] + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerTres( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerTres(self): + """Test V0041OpenapiSharesRespSharesSharesInnerTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py new file mode 100644 index 0000000..ef14eaa --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner + +class TestV0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner: + """Test V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner` + """ + model = V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner( + name = '', + value = slurmrest_python.models.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.v0_0_41_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner(self): + """Test V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py new file mode 100644 index 0000000..311e041 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_run_seconds_inner_value import V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue + +class TestV0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue: + """Test V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue` + """ + model = V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue(self): + """Test V0041OpenapiSharesRespSharesSharesInnerTresRunSecondsInnerValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py new file mode 100644 index 0000000..d4cd2b6 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_tres_usage_inner import V0041OpenapiSharesRespSharesSharesInnerTresUsageInner + +class TestV0041OpenapiSharesRespSharesSharesInnerTresUsageInner(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerTresUsageInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerTresUsageInner: + """Test V0041OpenapiSharesRespSharesSharesInnerTresUsageInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerTresUsageInner` + """ + model = V0041OpenapiSharesRespSharesSharesInnerTresUsageInner() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerTresUsageInner( + name = '', + value = 1.337 + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerTresUsageInner( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerTresUsageInner(self): + """Test V0041OpenapiSharesRespSharesSharesInnerTresUsageInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py b/test/test_v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py new file mode 100644 index 0000000..b69d993 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_shares_shares_inner_usage_normalized.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_shares_shares_inner_usage_normalized import V0041OpenapiSharesRespSharesSharesInnerUsageNormalized + +class TestV0041OpenapiSharesRespSharesSharesInnerUsageNormalized(unittest.TestCase): + """V0041OpenapiSharesRespSharesSharesInnerUsageNormalized unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespSharesSharesInnerUsageNormalized: + """Test V0041OpenapiSharesRespSharesSharesInnerUsageNormalized + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespSharesSharesInnerUsageNormalized` + """ + model = V0041OpenapiSharesRespSharesSharesInnerUsageNormalized() + if include_optional: + return V0041OpenapiSharesRespSharesSharesInnerUsageNormalized( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0041OpenapiSharesRespSharesSharesInnerUsageNormalized( + ) + """ + + def testV0041OpenapiSharesRespSharesSharesInnerUsageNormalized(self): + """Test V0041OpenapiSharesRespSharesSharesInnerUsageNormalized""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_shares_resp_warnings_inner.py b/test/test_v0041_openapi_shares_resp_warnings_inner.py new file mode 100644 index 0000000..e4f35c2 --- /dev/null +++ b/test/test_v0041_openapi_shares_resp_warnings_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_shares_resp_warnings_inner import V0041OpenapiSharesRespWarningsInner + +class TestV0041OpenapiSharesRespWarningsInner(unittest.TestCase): + """V0041OpenapiSharesRespWarningsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSharesRespWarningsInner: + """Test V0041OpenapiSharesRespWarningsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSharesRespWarningsInner` + """ + model = V0041OpenapiSharesRespWarningsInner() + if include_optional: + return V0041OpenapiSharesRespWarningsInner( + description = '', + source = '' + ) + else: + return V0041OpenapiSharesRespWarningsInner( + ) + """ + + def testV0041OpenapiSharesRespWarningsInner(self): + """Test V0041OpenapiSharesRespWarningsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp.py b/test/test_v0041_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..723a8cb --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp.py @@ -0,0 +1,386 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp import V0041OpenapiSlurmdbdConfigResp + +class TestV0041OpenapiSlurmdbdConfigResp(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigResp: + """Test V0041OpenapiSlurmdbdConfigResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigResp` + """ + model = V0041OpenapiSlurmdbdConfigResp() + if include_optional: + return V0041OpenapiSlurmdbdConfigResp( + clusters = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations( + root = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + tres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + accounts = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner( + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + users = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner.v0_0_41_openapi_slurmdbd_config_resp_qos_inner( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs( + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + job = [ + + ], + account = [ + + ], + user = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per( + node = [ + + ], ), ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock(), + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs(), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing(), ), + factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), ), + name = '', + preempt = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time( + set = True, + infinite = True, + number = 56, ), ), + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority( + set = True, + infinite = True, + number = 56, ), + usage_factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold( + set = True, + infinite = True, + number = 1.337, ), ) + ], + wckeys = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_associations_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max( + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per( + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ), + active = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres( + group = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group( + minutes = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), + parent_account = '', + partition = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + instances = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner.v0_0_41_openapi_slurmdbd_config_resp_instances_inner( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigResp( + ) + """ + + def testV0041OpenapiSlurmdbdConfigResp(self): + """Test V0041OpenapiSlurmdbdConfigResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner.py new file mode 100644 index 0000000..e5189fa --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner import V0041OpenapiSlurmdbdConfigRespAccountsInner + +class TestV0041OpenapiSlurmdbdConfigRespAccountsInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAccountsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAccountsInner: + """Test V0041OpenapiSlurmdbdConfigRespAccountsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAccountsInner` + """ + model = V0041OpenapiSlurmdbdConfigRespAccountsInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAccountsInner( + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespAccountsInner( + description = '', + name = '', + organization = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAccountsInner(self): + """Test V0041OpenapiSlurmdbdConfigRespAccountsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py new file mode 100644 index 0000000..af40bf4 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_associations_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner + +class TestV0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner: + """Test V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner` + """ + model = V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner( + user = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner(self): + """Test V0041OpenapiSlurmdbdConfigRespAccountsInnerAssociationsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py new file mode 100644 index 0000000..9c0f39e --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner import V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner + +class TestV0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner: + """Test V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner` + """ + model = V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner( + name = '', + direct = True + ) + else: + return V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner( + name = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner(self): + """Test V0041OpenapiSlurmdbdConfigRespAccountsInnerCoordinatorsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner.py new file mode 100644 index 0000000..e843973 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner import V0041OpenapiSlurmdbdConfigRespAssociationsInner + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInner: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInner` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max( + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per( + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ), + active = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres( + group = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group( + minutes = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), + parent_account = '', + partition = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qos = [ + '' + ], + shares_raw = 56, + user = '' + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInner( + user = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInner(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_default.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_default.py new file mode 100644 index 0000000..6feafab --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_default.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_default import V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault( + qos = '' + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerDefault""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max.py new file mode 100644 index 0000000..5c79e10 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMax(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax( + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per( + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ), + active = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group( + minutes = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + + ], ), + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per( + job = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_per( + node = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account( + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMax(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py new file mode 100644 index 0000000..298ebc8 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per( + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ), + active = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py new file mode 100644 index 0000000..902f7ae --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_accruing import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsAccruing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py new file mode 100644 index 0000000..1775afc --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_active import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsActive""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py new file mode 100644 index 0000000..15e2621 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer( + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py new file mode 100644 index 0000000..7c2e4bf --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_per_submitted import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsPerSubmitted""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py new file mode 100644 index 0000000..4a8d19d --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_jobs_total import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxJobsTotal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py new file mode 100644 index 0000000..40b191e --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_per_account( + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py new file mode 100644 index 0000000..19909f0 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_per_account import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount( + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxPerAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py new file mode 100644 index 0000000..5a7f8a3 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_group( + minutes = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_per( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py new file mode 100644 index 0000000..be25ddd --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_group import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup( + minutes = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresGroup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py new file mode 100644 index 0000000..d50492a --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py new file mode 100644 index 0000000..9d235b1 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresMinutesPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py new file mode 100644 index 0000000..b187f4c --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_max_tres_per import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_min.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_min.py new file mode 100644 index 0000000..48b81b2 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_min.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_min import V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerMin(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerMin(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py new file mode 100644 index 0000000..8513e49 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_associations_inner_priority.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_associations_inner_priority import V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority + +class TestV0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority: + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority` + """ + model = V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority(self): + """Test V0041OpenapiSlurmdbdConfigRespAssociationsInnerPriority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner.py new file mode 100644 index 0000000..82c0c05 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner import V0041OpenapiSlurmdbdConfigRespClustersInner + +class TestV0041OpenapiSlurmdbdConfigRespClustersInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespClustersInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespClustersInner: + """Test V0041OpenapiSlurmdbdConfigRespClustersInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespClustersInner` + """ + model = V0041OpenapiSlurmdbdConfigRespClustersInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespClustersInner( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations( + root = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespClustersInner( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespClustersInner(self): + """Test V0041OpenapiSlurmdbdConfigRespClustersInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py new file mode 100644 index 0000000..1f2c4a7 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations + +class TestV0041OpenapiSlurmdbdConfigRespClustersInnerAssociations(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations: + """Test V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations` + """ + model = V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations( + root = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_associations_root( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespClustersInnerAssociations(self): + """Test V0041OpenapiSlurmdbdConfigRespClustersInnerAssociations""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py new file mode 100644 index 0000000..be1aa5f --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_associations_root import V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot + +class TestV0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot: + """Test V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot` + """ + model = V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot( + account = '', + cluster = '', + partition = '', + user = '', + id = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot( + user = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot(self): + """Test V0041OpenapiSlurmdbdConfigRespClustersInnerAssociationsRoot""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py new file mode 100644 index 0000000..e9e7c54 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_clusters_inner_controller.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_clusters_inner_controller import V0041OpenapiSlurmdbdConfigRespClustersInnerController + +class TestV0041OpenapiSlurmdbdConfigRespClustersInnerController(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespClustersInnerController unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespClustersInnerController: + """Test V0041OpenapiSlurmdbdConfigRespClustersInnerController + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespClustersInnerController` + """ + model = V0041OpenapiSlurmdbdConfigRespClustersInnerController() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespClustersInnerController( + host = '', + port = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespClustersInnerController( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespClustersInnerController(self): + """Test V0041OpenapiSlurmdbdConfigRespClustersInnerController""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_instances_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_instances_inner.py new file mode 100644 index 0000000..b286adf --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_instances_inner.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner import V0041OpenapiSlurmdbdConfigRespInstancesInner + +class TestV0041OpenapiSlurmdbdConfigRespInstancesInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespInstancesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespInstancesInner: + """Test V0041OpenapiSlurmdbdConfigRespInstancesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespInstancesInner` + """ + model = V0041OpenapiSlurmdbdConfigRespInstancesInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespInstancesInner( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespInstancesInner( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespInstancesInner(self): + """Test V0041OpenapiSlurmdbdConfigRespInstancesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_instances_inner_time.py b/test/test_v0041_openapi_slurmdbd_config_resp_instances_inner_time.py new file mode 100644 index 0000000..759cf23 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_instances_inner_time.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_instances_inner_time import V0041OpenapiSlurmdbdConfigRespInstancesInnerTime + +class TestV0041OpenapiSlurmdbdConfigRespInstancesInnerTime(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespInstancesInnerTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespInstancesInnerTime: + """Test V0041OpenapiSlurmdbdConfigRespInstancesInnerTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespInstancesInnerTime` + """ + model = V0041OpenapiSlurmdbdConfigRespInstancesInnerTime() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespInstancesInnerTime( + time_end = 56, + time_start = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespInstancesInnerTime( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespInstancesInnerTime(self): + """Test V0041OpenapiSlurmdbdConfigRespInstancesInnerTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner.py new file mode 100644 index 0000000..d960c38 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner import V0041OpenapiSlurmdbdConfigRespQosInner + +class TestV0041OpenapiSlurmdbdConfigRespQosInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInner: + """Test V0041OpenapiSlurmdbdConfigRespQosInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInner` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInner( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs( + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + job = [ + + ], + account = [ + + ], + user = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per( + node = [ + + ], ), ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock(), + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs(), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing(), ), + factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), ), + name = '', + preempt = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time( + set = True, + infinite = True, + number = 56, ), ), + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority( + set = True, + infinite = True, + number = 56, ), + usage_factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold( + set = True, + infinite = True, + number = 1.337, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInner( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInner(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py new file mode 100644 index 0000000..0405c96 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits import V0041OpenapiSlurmdbdConfigRespQosInnerLimits + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimits(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimits: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimits` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimits() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimits( + grace_time = 56, + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs( + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + job = [ + + ], + account = [ + + ], + user = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per( + node = [ + + ], ), ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock(), + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs(), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing(), ), + factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimits( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimits(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py new file mode 100644 index 0000000..3142cb3 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_factor import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsFactor""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py new file mode 100644 index 0000000..fc76767 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs( + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + + ], + account = [ + + ], + user = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per( + node = [ + + ], ), ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ), ), + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user( + set = True, + infinite = True, + number = 56, ), ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per(), ), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py new file mode 100644 index 0000000..c0cf0f2 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py new file mode 100644 index 0000000..d264c91 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py new file mode 100644 index 0000000..2db013e --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py new file mode 100644 index 0000000..ec73d00 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxAccruingPerUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py new file mode 100644 index 0000000..7befceb --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs( + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py new file mode 100644 index 0000000..ccbd8d5 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsAccruing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py new file mode 100644 index 0000000..de90aa4 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxActiveJobsCount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py new file mode 100644 index 0000000..b03ea49 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user( + set = True, + infinite = True, + number = 56, ), ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..b384bf0 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..43a9d33 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py new file mode 100644 index 0000000..422c9e2 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py new file mode 100644 index 0000000..430c16e --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_active_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsActiveJobsPerUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py new file mode 100644 index 0000000..a94f2d4 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer( + account = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py new file mode 100644 index 0000000..4cc9285 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_account import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py new file mode 100644 index 0000000..6630ef6 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs_per_user import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxJobsPerUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py new file mode 100644 index 0000000..ecb4b05 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = [ + + ], + user = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per( + account = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + + ], + user = [ + + ], ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py new file mode 100644 index 0000000..be43955 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = [ + + ], + user = [ + + ], ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..a411fd0 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresMinutesPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py new file mode 100644 index 0000000..ba6dd65 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer( + account = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py new file mode 100644 index 0000000..ea8c73d --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClock""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py new file mode 100644 index 0000000..3c3ad49 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer( + qos = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py new file mode 100644 index 0000000..061d364 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_job import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerJob""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py new file mode 100644 index 0000000..647d1b6 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock_per_qos import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMaxWallClockPerQos""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py new file mode 100644 index 0000000..cab2ec1 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py new file mode 100644 index 0000000..40198aa --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinPriorityThreshold""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py new file mode 100644 index 0000000..76a1bd9 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py new file mode 100644 index 0000000..11d5061 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_limits_min_tres_per import V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer( + job = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerLimitsMinTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py new file mode 100644 index 0000000..80720ee --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt import V0041OpenapiSlurmdbdConfigRespQosInnerPreempt + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerPreempt(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerPreempt unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerPreempt: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerPreempt + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerPreempt` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerPreempt() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerPreempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerPreempt( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerPreempt(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerPreempt""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py new file mode 100644 index 0000000..359d0f3 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time import V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerPreemptExemptTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py new file mode 100644 index 0000000..f35165d --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_priority.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_priority import V0041OpenapiSlurmdbdConfigRespQosInnerPriority + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerPriority(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerPriority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerPriority: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerPriority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerPriority` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerPriority() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerPriority( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerPriority( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerPriority(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerPriority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py new file mode 100644 index 0000000..409c074 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_factor import V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerUsageFactor""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py new file mode 100644 index 0000000..c013463 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_qos_inner_usage_threshold import V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold + +class TestV0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold: + """Test V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold` + """ + model = V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold(self): + """Test V0041OpenapiSlurmdbdConfigRespQosInnerUsageThreshold""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_users_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner.py new file mode 100644 index 0000000..63be75c --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner import V0041OpenapiSlurmdbdConfigRespUsersInner + +class TestV0041OpenapiSlurmdbdConfigRespUsersInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespUsersInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespUsersInner: + """Test V0041OpenapiSlurmdbdConfigRespUsersInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespUsersInner` + """ + model = V0041OpenapiSlurmdbdConfigRespUsersInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespUsersInner( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespUsersInner( + name = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespUsersInner(self): + """Test V0041OpenapiSlurmdbdConfigRespUsersInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_default.py b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_default.py new file mode 100644 index 0000000..d546eb1 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_default.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_default import V0041OpenapiSlurmdbdConfigRespUsersInnerDefault + +class TestV0041OpenapiSlurmdbdConfigRespUsersInnerDefault(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespUsersInnerDefault unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespUsersInnerDefault: + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerDefault + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespUsersInnerDefault` + """ + model = V0041OpenapiSlurmdbdConfigRespUsersInnerDefault() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespUsersInnerDefault( + account = '', + wckey = '' + ) + else: + return V0041OpenapiSlurmdbdConfigRespUsersInnerDefault( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespUsersInnerDefault(self): + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerDefault""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py new file mode 100644 index 0000000..65b989f --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner + +class TestV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner: + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner` + """ + model = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner( + cluster = '', + name = '', + user = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner(self): + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py new file mode 100644 index 0000000..1018974 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner + +class TestV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner: + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner` + """ + model = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ) + ) + else: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner(self): + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py new file mode 100644 index 0000000..6df460d --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated + +class TestV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated: + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated` + """ + model = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated( + seconds = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated( + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated(self): + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerAllocated""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py new file mode 100644 index 0000000..ac48a2e --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres import V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES + +class TestV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES(unittest.TestCase): + """V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES: + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES` + """ + model = V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES() + if include_optional: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES( + type = '', + name = '', + id = 56, + count = 56 + ) + else: + return V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES( + type = '', + ) + """ + + def testV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES(self): + """Test V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInnerAccountingInnerTRES""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp.py b/test/test_v0041_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..3515c78 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,429 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp import V0041OpenapiSlurmdbdJobsResp + +class TestV0041OpenapiSlurmdbdJobsResp(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsResp: + """Test V0041OpenapiSlurmdbdJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsResp` + """ + model = V0041OpenapiSlurmdbdJobsResp() + if include_optional: + return V0041OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_association.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_association( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code(), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_het.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_het( + job_id = 56, + job_offset = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset( + set = True, + infinite = True, + number = 56, ), ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + qos = '', + required = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_required.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node( + set = True, + infinite = True, + number = 56, ), ), + kill_request_user = '', + reservation = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation( + name = '', ), + script = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner( + nodes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU( + requested_frequency = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency( + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_min( + set = True, + infinite = True, + number = 56, ), ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics( + energy = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy( + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed( + set = True, + infinite = True, + number = 56, ), ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres( + requested = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested( + average = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_tres.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_wckey( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_association.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_association( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code(), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_het.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_het( + job_id = 56, + job_offset = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset( + set = True, + infinite = True, + number = 56, ), ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + qos = '', + required = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_required.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node( + set = True, + infinite = True, + number = 56, ), ), + kill_request_user = '', + reservation = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation( + name = '', ), + script = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner( + nodes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU( + requested_frequency = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency( + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_min( + set = True, + infinite = True, + number = 56, ), ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics( + energy = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy( + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed( + set = True, + infinite = True, + number = 56, ), ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres( + requested = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested( + average = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_tres.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_wckey( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + ) + """ + + def testV0041OpenapiSlurmdbdJobsResp(self): + """Test V0041OpenapiSlurmdbdJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py new file mode 100644 index 0000000..3a714a8 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner import V0041OpenapiSlurmdbdJobsRespJobsInner + +class TestV0041OpenapiSlurmdbdJobsRespJobsInner(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInner: + """Test V0041OpenapiSlurmdbdJobsRespJobsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInner` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInner() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInner( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_association.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_association( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_het.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_het( + job_id = 56, + job_offset = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset( + set = True, + infinite = True, + number = 56, ), ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = slurmrest_python.models.v0_0_41_job_desc_msg_priority.v0_0_41_job_desc_msg_priority( + set = True, + infinite = True, + number = 56, ), + qos = '', + required = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_required.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node( + set = True, + infinite = True, + number = 56, ), ), + kill_request_user = '', + reservation = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation( + id = 56, + name = '', ), + script = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner( + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time( + elapsed = 56, + end = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU( + requested_frequency = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency( + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_min( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_max( + set = True, + infinite = True, + number = 56, ), ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics( + energy = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy( + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed( + set = True, + infinite = True, + number = 56, ), ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres( + requested = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested( + average = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_tres.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_tres( + allocated = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_wckey( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInner( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInner(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py new file mode 100644 index 0000000..056f1e2 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array import V0041OpenapiSlurmdbdJobsRespJobsInnerArray + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerArray(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerArray unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerArray: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArray + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerArray` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerArray() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArray( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id.v0_0_41_openapi_job_info_resp_jobs_inner_array_task_id( + set = True, + infinite = True, + number = 56, ), + task = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArray( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerArray(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArray""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py new file mode 100644 index 0000000..5e3d859 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py new file mode 100644 index 0000000..595f796 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py new file mode 100644 index 0000000..0a271c3 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running import V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning( + tasks = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerArrayLimitsMaxRunning""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py new file mode 100644 index 0000000..c1ccb49 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_association import V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerAssociation(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation( + account = '', + cluster = '', + partition = '', + user = '', + id = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation( + user = '', + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerAssociation(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerAssociation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py new file mode 100644 index 0000000..84664f6 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_comment import V0041OpenapiSlurmdbdJobsRespJobsInnerComment + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerComment(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerComment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerComment: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerComment + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerComment` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerComment() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerComment( + administrator = '', + job = '', + system = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerComment( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerComment(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerComment""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py new file mode 100644 index 0000000..70a6c5f --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code import V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerExitCode(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerExitCode(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerExitCode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py new file mode 100644 index 0000000..19e38a2 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_het import V0041OpenapiSlurmdbdJobsRespJobsInnerHet + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerHet(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerHet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerHet: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerHet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerHet` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerHet() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerHet( + job_id = 56, + job_offset = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset.v0_0_41_openapi_job_info_resp_jobs_inner_het_job_offset( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerHet( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerHet(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerHet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py new file mode 100644 index 0000000..208c303 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_mcs import V0041OpenapiSlurmdbdJobsRespJobsInnerMcs + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerMcs(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerMcs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerMcs: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerMcs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerMcs` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerMcs() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerMcs( + label = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerMcs( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerMcs(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerMcs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py new file mode 100644 index 0000000..4186970 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_required import V0041OpenapiSlurmdbdJobsRespJobsInnerRequired + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerRequired(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerRequired unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerRequired: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerRequired + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerRequired` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerRequired() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerRequired( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0_0_41_job_desc_msg_memory_per_cpu.v0_0_41_job_desc_msg_memory_per_cpu( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node.v0_0_41_openapi_job_info_resp_jobs_inner_memory_per_node( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerRequired( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerRequired(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerRequired""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py new file mode 100644 index 0000000..c081222 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_reservation import V0041OpenapiSlurmdbdJobsRespJobsInnerReservation + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerReservation(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerReservation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerReservation: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerReservation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerReservation` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerReservation() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerReservation( + id = 56, + name = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerReservation( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerReservation(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerReservation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py new file mode 100644 index 0000000..47e5297 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_state import V0041OpenapiSlurmdbdJobsRespJobsInnerState + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerState(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerState: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerState + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerState` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerState() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerState( + current = [ + 'PENDING' + ], + reason = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerState( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerState(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerState""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py new file mode 100644 index 0000000..adbf2a6 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner( + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time( + elapsed = 56, + end = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_exit_code( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_return_code( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal( + id = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id.v0_0_41_openapi_job_info_resp_jobs_inner_derived_exit_code_signal_id( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU( + requested_frequency = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency( + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_min( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_max( + set = True, + infinite = True, + number = 56, ), ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy( + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed( + set = True, + infinite = True, + number = 56, ), ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + id = '', + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres( + requested = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested( + max = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed(), + allocated = [ + + ], ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py new file mode 100644 index 0000000..1a4f378 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU( + requested_frequency = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency( + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_min( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_max( + set = True, + infinite = True, + number = 56, ), ), + governor = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPU""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py new file mode 100644 index 0000000..b0cebc5 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency( + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_min( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_CPU_requested_frequency_max( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequency""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py new file mode 100644 index 0000000..1b380e4 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_max import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py new file mode 100644 index 0000000..b19d73d --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_cpu_requested_frequency_min import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerCPURequestedFrequencyMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py new file mode 100644 index 0000000..1aa0463 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_nodes import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes( + count = 56, + range = '', + list = [ + '' + ] + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py new file mode 100644 index 0000000..45fceaf --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy( + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatistics""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py new file mode 100644 index 0000000..2ac1934 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU( + actual_frequency = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsCPU""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py new file mode 100644 index 0000000..3b43ca7 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy( + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py new file mode 100644 index 0000000..d1f1efd --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_energy_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStatisticsEnergyConsumed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py new file mode 100644 index 0000000..b9b9a9a --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep( + id = '', + name = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerStep""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py new file mode 100644 index 0000000..30c6ddf --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask( + distribution = '' + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTask""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py new file mode 100644 index 0000000..b6e7e04 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks( + count = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTasks""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py new file mode 100644 index 0000000..0559ad0 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime( + elapsed = 56, + end = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py new file mode 100644 index 0000000..b17f4b1 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_end import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeEnd""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py new file mode 100644 index 0000000..1436c16 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_start import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeStart""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py new file mode 100644 index 0000000..3bb260e --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem( + seconds = 56, + microseconds = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeSystem""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py new file mode 100644 index 0000000..40eea5a --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal( + seconds = 56, + microseconds = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeTotal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py new file mode 100644 index 0000000..35204a0 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser( + seconds = 56, + microseconds = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTimeUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py new file mode 100644 index 0000000..2100539 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres( + requested = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested( + max = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed( + max = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + allocated = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py new file mode 100644 index 0000000..ed20180 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_consumed import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed( + max = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresConsumed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py new file mode 100644 index 0000000..5d921c9 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested( + max = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequested""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py new file mode 100644 index 0000000..2d8a7a9 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner import V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner( + type = '', + name = '', + id = 56, + count = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner( + type = '', + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py new file mode 100644 index 0000000..c8ec095 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time import V0041OpenapiSlurmdbdJobsRespJobsInnerTime + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerTime(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerTime: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerTime` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerTime() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTime( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0_0_41_job_desc_msg_time_limit.v0_0_41_job_desc_msg_time_limit( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTime( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerTime(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py new file mode 100644 index 0000000..959c3b2 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_planned import V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimePlanned""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py new file mode 100644 index 0000000..695f5d0 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_system import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem( + seconds = 56, + microseconds = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimeSystem""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py new file mode 100644 index 0000000..c1a101a --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_total import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal( + seconds = 56, + microseconds = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimeTotal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py new file mode 100644 index 0000000..354fff8 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_time_user import V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser( + seconds = 56, + microseconds = 56 + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTimeUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py new file mode 100644 index 0000000..c784cc3 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_tres import V0041OpenapiSlurmdbdJobsRespJobsInnerTres + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerTres(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerTres: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerTres` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerTres() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTres( + allocated = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerTres( + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerTres(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py new file mode 100644 index 0000000..a77b0f7 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_jobs_resp_jobs_inner_wckey import V0041OpenapiSlurmdbdJobsRespJobsInnerWckey + +class TestV0041OpenapiSlurmdbdJobsRespJobsInnerWckey(unittest.TestCase): + """V0041OpenapiSlurmdbdJobsRespJobsInnerWckey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdJobsRespJobsInnerWckey: + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerWckey + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdJobsRespJobsInnerWckey` + """ + model = V0041OpenapiSlurmdbdJobsRespJobsInnerWckey() + if include_optional: + return V0041OpenapiSlurmdbdJobsRespJobsInnerWckey( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ] + ) + else: + return V0041OpenapiSlurmdbdJobsRespJobsInnerWckey( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], + ) + """ + + def testV0041OpenapiSlurmdbdJobsRespJobsInnerWckey(self): + """Test V0041OpenapiSlurmdbdJobsRespJobsInnerWckey""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_qos_removed_resp.py b/test/test_v0041_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..2907894 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_removed_resp import V0041OpenapiSlurmdbdQosRemovedResp + +class TestV0041OpenapiSlurmdbdQosRemovedResp(unittest.TestCase): + """V0041OpenapiSlurmdbdQosRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdQosRemovedResp: + """Test V0041OpenapiSlurmdbdQosRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdQosRemovedResp` + """ + model = V0041OpenapiSlurmdbdQosRemovedResp() + if include_optional: + return V0041OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + ) + """ + + def testV0041OpenapiSlurmdbdQosRemovedResp(self): + """Test V0041OpenapiSlurmdbdQosRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_qos_resp.py b/test/test_v0041_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..8aac0a2 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_qos_resp import V0041OpenapiSlurmdbdQosResp + +class TestV0041OpenapiSlurmdbdQosResp(unittest.TestCase): + """V0041OpenapiSlurmdbdQosResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdQosResp: + """Test V0041OpenapiSlurmdbdQosResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdQosResp` + """ + model = V0041OpenapiSlurmdbdQosResp() + if include_optional: + return V0041OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner.v0_0_41_openapi_slurmdbd_config_resp_qos_inner( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs( + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + job = [ + + ], + account = [ + + ], + user = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per( + node = [ + + ], ), ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock(), + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs(), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing(), ), + factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), ), + name = '', + preempt = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time( + set = True, + infinite = True, + number = 56, ), ), + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority( + set = True, + infinite = True, + number = 56, ), + usage_factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold( + set = True, + infinite = True, + number = 1.337, ), ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner.v0_0_41_openapi_slurmdbd_config_resp_qos_inner( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max( + active_jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs( + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_accruing( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_active_jobs_count( + set = True, + infinite = True, + number = 56, ), ), + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres( + total = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes( + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, ) + ], + job = [ + + ], + account = [ + + ], + user = [ + + ], ), ), + per = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_tres_per( + node = [ + + ], ), ), + wall_clock = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_wall_clock(), + jobs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_jobs(), + accruing = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_max_accruing(), ), + factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_factor( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min( + priority_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_limits_min_priority_threshold( + set = True, + infinite = True, + number = 56, ), ), ), + name = '', + preempt = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_preempt_exempt_time( + set = True, + infinite = True, + number = 56, ), ), + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_priority( + set = True, + infinite = True, + number = 56, ), + usage_factor = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_factor( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold.v0_0_41_openapi_slurmdbd_config_resp_qos_inner_usage_threshold( + set = True, + infinite = True, + number = 1.337, ), ) + ], + ) + """ + + def testV0041OpenapiSlurmdbdQosResp(self): + """Test V0041OpenapiSlurmdbdQosResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp.py b/test/test_v0041_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..6789dd8 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp import V0041OpenapiSlurmdbdStatsResp + +class TestV0041OpenapiSlurmdbdStatsResp(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsResp: + """Test V0041OpenapiSlurmdbdStatsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsResp` + """ + model = V0041OpenapiSlurmdbdStatsResp() + if include_optional: + return V0041OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics.v0_0_41_openapi_slurmdbd_stats_resp_statistics( + time_start = 56, + rollups = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_users_inner.v0_0_41_openapi_slurmdbd_stats_resp_statistics_users_inner( + user = '', + count = 56, ) + ], ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics.v0_0_41_openapi_slurmdbd_stats_resp_statistics( + time_start = 56, + rollups = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_users_inner.v0_0_41_openapi_slurmdbd_stats_resp_statistics_users_inner( + user = '', + count = 56, ) + ], ), + ) + """ + + def testV0041OpenapiSlurmdbdStatsResp(self): + """Test V0041OpenapiSlurmdbdStatsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics.py new file mode 100644 index 0000000..6425b18 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics import V0041OpenapiSlurmdbdStatsRespStatistics + +class TestV0041OpenapiSlurmdbdStatsRespStatistics(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatistics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatistics: + """Test V0041OpenapiSlurmdbdStatsRespStatistics + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatistics` + """ + model = V0041OpenapiSlurmdbdStatsRespStatistics() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatistics( + time_start = 56, + rollups = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_users_inner.v0_0_41_openapi_slurmdbd_stats_resp_statistics_users_inner( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ] + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatistics( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatistics(self): + """Test V0041OpenapiSlurmdbdStatsRespStatistics""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py new file mode 100644 index 0000000..cedbb90 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups import V0041OpenapiSlurmdbdStatsRespStatisticsRollups + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRollups(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRollups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRollups: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollups + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRollups` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRollups() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollups( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration( + last = 56, + max = 56, + time = 56, ), ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration( + last = 56, + max = 56, + time = 56, ), ) + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollups( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRollups(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollups""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py new file mode 100644 index 0000000..a0a2811 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration( + last = 56, + max = 56, + time = 56, ) + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDaily""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py new file mode 100644 index 0000000..bc7ad63 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration( + last = 56, + max = 56, + time = 56 + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsDailyDuration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py new file mode 100644 index 0000000..a8869e9 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ) + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourly""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py new file mode 100644 index 0000000..edf750f --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration( + last = 56, + max = 56, + time = 56 + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsHourlyDuration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py new file mode 100644 index 0000000..d5a70bd --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration( + last = 56, + max = 56, + time = 56, ) + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthly""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py new file mode 100644 index 0000000..59e731b --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration import V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration( + last = 56, + max = 56, + time = 56 + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRollupsMonthlyDuration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py new file mode 100644 index 0000000..c095b89 --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py new file mode 100644 index 0000000..605a9be --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time import V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime( + average = 56, + total = 56 + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsRPCsInnerTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py new file mode 100644 index 0000000..0ecd45e --- /dev/null +++ b/test/test_v0041_openapi_slurmdbd_stats_resp_statistics_users_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_slurmdbd_stats_resp_statistics_users_inner import V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner + +class TestV0041OpenapiSlurmdbdStatsRespStatisticsUsersInner(unittest.TestCase): + """V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner: + """Test V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner` + """ + model = V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner() + if include_optional: + return V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner( + ) + """ + + def testV0041OpenapiSlurmdbdStatsRespStatisticsUsersInner(self): + """Test V0041OpenapiSlurmdbdStatsRespStatisticsUsersInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_tres_resp.py b/test/test_v0041_openapi_tres_resp.py new file mode 100644 index 0000000..21ae34d --- /dev/null +++ b/test/test_v0041_openapi_tres_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_tres_resp import V0041OpenapiTresResp + +class TestV0041OpenapiTresResp(unittest.TestCase): + """V0041OpenapiTresResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiTresResp: + """Test V0041OpenapiTresResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiTresResp` + """ + model = V0041OpenapiTresResp() + if include_optional: + return V0041OpenapiTresResp( + tres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiTresResp( + tres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + ) + """ + + def testV0041OpenapiTresResp(self): + """Test V0041OpenapiTresResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp.py b/test/test_v0041_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..3c5e49d --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp import V0041OpenapiUsersAddCondResp + +class TestV0041OpenapiUsersAddCondResp(unittest.TestCase): + """V0041OpenapiUsersAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondResp: + """Test V0041OpenapiUsersAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondResp` + """ + model = V0041OpenapiUsersAddCondResp() + if include_optional: + return V0041OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition.v0_0_41_openapi_users_add_cond_resp_association_condition( + accounts = [ + '' + ], + association = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association.v0_0_41_openapi_users_add_cond_resp_association_condition_association( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + + ], + grpwall = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + + ], + maxtresrunmins = [ + + ], + maxtresperjob = [ + + ], + maxtrespernode = [ + + ], + maxwalldurationperjob = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = [ + '' + ], + users = [ + '' + ], + wckeys = [ + '' + ], ), + user = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_user.v0_0_41_openapi_users_add_cond_resp_user( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '', ), + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition.v0_0_41_openapi_users_add_cond_resp_association_condition( + accounts = [ + '' + ], + association = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association.v0_0_41_openapi_users_add_cond_resp_association_condition_association( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + + ], + grpwall = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + + ], + maxtresrunmins = [ + + ], + maxtresperjob = [ + + ], + maxtrespernode = [ + + ], + maxwalldurationperjob = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = [ + '' + ], + users = [ + '' + ], + wckeys = [ + '' + ], ), + user = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_user.v0_0_41_openapi_users_add_cond_resp_user( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '', ), + ) + """ + + def testV0041OpenapiUsersAddCondResp(self): + """Test V0041OpenapiUsersAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition.py new file mode 100644 index 0000000..2824e8c --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition import V0041OpenapiUsersAddCondRespAssociationCondition + +class TestV0041OpenapiUsersAddCondRespAssociationCondition(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationCondition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationCondition: + """Test V0041OpenapiUsersAddCondRespAssociationCondition + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationCondition` + """ + model = V0041OpenapiUsersAddCondRespAssociationCondition() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationCondition( + accounts = [ + '' + ], + association = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association.v0_0_41_openapi_users_add_cond_resp_association_condition_association( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + + ], + grpwall = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + + ], + maxtresrunmins = [ + + ], + maxtresperjob = [ + + ], + maxtrespernode = [ + + ], + maxwalldurationperjob = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = [ + '' + ], + users = [ + '' + ], + wckeys = [ + '' + ] + ) + else: + return V0041OpenapiUsersAddCondRespAssociationCondition( + users = [ + '' + ], + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationCondition(self): + """Test V0041OpenapiUsersAddCondRespAssociationCondition""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association.py new file mode 100644 index 0000000..91ca50b --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association import V0041OpenapiUsersAddCondRespAssociationConditionAssociation + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociation(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociation: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociation` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociation() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociation( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobs( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grpwall = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall.v0_0_41_openapi_users_add_cond_resp_association_condition_association_grpwall( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobs( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresrunmins = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresperjob = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtrespernode = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tres_requested_max_inner( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxwalldurationperjob = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.v0_0_41_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh.v0_0_41_openapi_users_add_cond_resp_association_condition_association_minpriothresh( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_priority( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociation( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociation(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py new file mode 100644 index 0000000..06d083d --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py new file mode 100644 index 0000000..57ef285 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpjobsaccrue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py new file mode 100644 index 0000000..1e1e446 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpsubmitjobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py new file mode 100644 index 0000000..b9e1258 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_grpwall.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_grpwall import V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationGrpwall""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py new file mode 100644 index 0000000..45a373c --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py new file mode 100644 index 0000000..6991832 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxjobsaccrue import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxjobsaccrue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py new file mode 100644 index 0000000..6c423f7 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxsubmitjobs import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxsubmitjobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py new file mode 100644 index 0000000..ce02079 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_maxwalldurationperjob import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMaxwalldurationperjob""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py new file mode 100644 index 0000000..43945f5 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_association_condition_association_minpriothresh import V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh + +class TestV0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh(unittest.TestCase): + """V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh: + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh` + """ + model = V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh() + if include_optional: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh( + ) + """ + + def testV0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh(self): + """Test V0041OpenapiUsersAddCondRespAssociationConditionAssociationMinpriothresh""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_str.py b/test/test_v0041_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..5577cd7 --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_str import V0041OpenapiUsersAddCondRespStr + +class TestV0041OpenapiUsersAddCondRespStr(unittest.TestCase): + """V0041OpenapiUsersAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespStr: + """Test V0041OpenapiUsersAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespStr` + """ + model = V0041OpenapiUsersAddCondRespStr() + if include_optional: + return V0041OpenapiUsersAddCondRespStr( + added_users = '', + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiUsersAddCondRespStr( + added_users = '', + ) + """ + + def testV0041OpenapiUsersAddCondRespStr(self): + """Test V0041OpenapiUsersAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_add_cond_resp_user.py b/test/test_v0041_openapi_users_add_cond_resp_user.py new file mode 100644 index 0000000..f27559b --- /dev/null +++ b/test/test_v0041_openapi_users_add_cond_resp_user.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_add_cond_resp_user import V0041OpenapiUsersAddCondRespUser + +class TestV0041OpenapiUsersAddCondRespUser(unittest.TestCase): + """V0041OpenapiUsersAddCondRespUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersAddCondRespUser: + """Test V0041OpenapiUsersAddCondRespUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersAddCondRespUser` + """ + model = V0041OpenapiUsersAddCondRespUser() + if include_optional: + return V0041OpenapiUsersAddCondRespUser( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '' + ) + else: + return V0041OpenapiUsersAddCondRespUser( + ) + """ + + def testV0041OpenapiUsersAddCondRespUser(self): + """Test V0041OpenapiUsersAddCondRespUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_users_resp.py b/test/test_v0041_openapi_users_resp.py new file mode 100644 index 0000000..53b2128 --- /dev/null +++ b/test/test_v0041_openapi_users_resp.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_users_resp import V0041OpenapiUsersResp + +class TestV0041OpenapiUsersResp(unittest.TestCase): + """V0041OpenapiUsersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiUsersResp: + """Test V0041OpenapiUsersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiUsersResp` + """ + model = V0041OpenapiUsersResp() + if include_optional: + return V0041OpenapiUsersResp( + users = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiUsersResp( + users = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_associations_inner( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner.v0_0_41_openapi_slurmdbd_config_resp_accounts_inner_coordinators_inner( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default.v0_0_41_openapi_slurmdbd_config_resp_users_inner_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + ) + """ + + def testV0041OpenapiUsersResp(self): + """Test V0041OpenapiUsersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_wckey_removed_resp.py b/test/test_v0041_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..a0e2a5a --- /dev/null +++ b/test/test_v0041_openapi_wckey_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_wckey_removed_resp import V0041OpenapiWckeyRemovedResp + +class TestV0041OpenapiWckeyRemovedResp(unittest.TestCase): + """V0041OpenapiWckeyRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiWckeyRemovedResp: + """Test V0041OpenapiWckeyRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiWckeyRemovedResp` + """ + model = V0041OpenapiWckeyRemovedResp() + if include_optional: + return V0041OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + ) + """ + + def testV0041OpenapiWckeyRemovedResp(self): + """Test V0041OpenapiWckeyRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_openapi_wckey_resp.py b/test/test_v0041_openapi_wckey_resp.py new file mode 100644 index 0000000..d960f02 --- /dev/null +++ b/test/test_v0041_openapi_wckey_resp.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_openapi_wckey_resp import V0041OpenapiWckeyResp + +class TestV0041OpenapiWckeyResp(unittest.TestCase): + """V0041OpenapiWckeyResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041OpenapiWckeyResp: + """Test V0041OpenapiWckeyResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041OpenapiWckeyResp` + """ + model = V0041OpenapiWckeyResp() + if include_optional: + return V0041OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta.v0_0_41_openapi_shares_resp_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_errors_inner.v0_0_41_openapi_shares_resp_errors_inner( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0_0_41_openapi_shares_resp_warnings_inner.v0_0_41_openapi_shares_resp_warnings_inner( + description = '', + source = '', ) + ] + ) + else: + return V0041OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner( + accounting = [ + slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner( + allocated = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_allocated( + seconds = 56, ), + id = 56, + start = 56, + tres = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_tres.v0_0_41_openapi_slurmdbd_config_resp_users_inner_wckeys_inner_accounting_inner_TRES( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0041OpenapiWckeyResp(self): + """Test V0041OpenapiWckeyResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_update_node_msg.py b/test/test_v0041_update_node_msg.py new file mode 100644 index 0000000..9297b9f --- /dev/null +++ b/test/test_v0041_update_node_msg.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_update_node_msg import V0041UpdateNodeMsg + +class TestV0041UpdateNodeMsg(unittest.TestCase): + """V0041UpdateNodeMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041UpdateNodeMsg: + """Test V0041UpdateNodeMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041UpdateNodeMsg` + """ + model = V0041UpdateNodeMsg() + if include_optional: + return V0041UpdateNodeMsg( + comment = '', + cpu_bind = 56, + extra = '', + features = [ + '' + ], + features_act = [ + '' + ], + gres = '', + address = [ + '' + ], + hostname = [ + '' + ], + name = [ + '' + ], + state = [ + 'INVALID' + ], + reason = '', + reason_uid = '', + resume_after = slurmrest_python.models.v0_0_41_update_node_msg_resume_after.v0_0_41_update_node_msg_resume_after( + set = True, + infinite = True, + number = 56, ), + weight = slurmrest_python.models.v0_0_41_update_node_msg_weight.v0_0_41_update_node_msg_weight( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0041UpdateNodeMsg( + ) + """ + + def testV0041UpdateNodeMsg(self): + """Test V0041UpdateNodeMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_update_node_msg_resume_after.py b/test/test_v0041_update_node_msg_resume_after.py new file mode 100644 index 0000000..185bfe7 --- /dev/null +++ b/test/test_v0041_update_node_msg_resume_after.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_update_node_msg_resume_after import V0041UpdateNodeMsgResumeAfter + +class TestV0041UpdateNodeMsgResumeAfter(unittest.TestCase): + """V0041UpdateNodeMsgResumeAfter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041UpdateNodeMsgResumeAfter: + """Test V0041UpdateNodeMsgResumeAfter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041UpdateNodeMsgResumeAfter` + """ + model = V0041UpdateNodeMsgResumeAfter() + if include_optional: + return V0041UpdateNodeMsgResumeAfter( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041UpdateNodeMsgResumeAfter( + ) + """ + + def testV0041UpdateNodeMsgResumeAfter(self): + """Test V0041UpdateNodeMsgResumeAfter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0041_update_node_msg_weight.py b/test/test_v0041_update_node_msg_weight.py new file mode 100644 index 0000000..9c98698 --- /dev/null +++ b/test/test_v0041_update_node_msg_weight.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0041_update_node_msg_weight import V0041UpdateNodeMsgWeight + +class TestV0041UpdateNodeMsgWeight(unittest.TestCase): + """V0041UpdateNodeMsgWeight unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0041UpdateNodeMsgWeight: + """Test V0041UpdateNodeMsgWeight + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0041UpdateNodeMsgWeight` + """ + model = V0041UpdateNodeMsgWeight() + if include_optional: + return V0041UpdateNodeMsgWeight( + set = True, + infinite = True, + number = 56 + ) + else: + return V0041UpdateNodeMsgWeight( + ) + """ + + def testV0041UpdateNodeMsgWeight(self): + """Test V0041UpdateNodeMsgWeight""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_account.py b/test/test_v0042_account.py new file mode 100644 index 0000000..06f1fac --- /dev/null +++ b/test/test_v0042_account.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_account import V0042Account + +class TestV0042Account(unittest.TestCase): + """V0042Account unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Account: + """Test V0042Account + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Account` + """ + model = V0042Account() + if include_optional: + return V0042Account( + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0042Account( + description = '', + name = '', + organization = '', + ) + """ + + def testV0042Account(self): + """Test V0042Account""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_account_short.py b/test/test_v0042_account_short.py new file mode 100644 index 0000000..7a32304 --- /dev/null +++ b/test/test_v0042_account_short.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_account_short import V0042AccountShort + +class TestV0042AccountShort(unittest.TestCase): + """V0042AccountShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AccountShort: + """Test V0042AccountShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AccountShort` + """ + model = V0042AccountShort() + if include_optional: + return V0042AccountShort( + description = '', + organization = '' + ) + else: + return V0042AccountShort( + ) + """ + + def testV0042AccountShort(self): + """Test V0042AccountShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_accounting.py b/test/test_v0042_accounting.py new file mode 100644 index 0000000..13e8047 --- /dev/null +++ b/test/test_v0042_accounting.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_accounting import V0042Accounting + +class TestV0042Accounting(unittest.TestCase): + """V0042Accounting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Accounting: + """Test V0042Accounting + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Accounting` + """ + model = V0042Accounting() + if include_optional: + return V0042Accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ) + else: + return V0042Accounting( + ) + """ + + def testV0042Accounting(self): + """Test V0042Accounting""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_accounts_add_cond.py b/test/test_v0042_accounts_add_cond.py new file mode 100644 index 0000000..bb7d753 --- /dev/null +++ b/test/test_v0042_accounts_add_cond.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_accounts_add_cond import V0042AccountsAddCond + +class TestV0042AccountsAddCond(unittest.TestCase): + """V0042AccountsAddCond unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AccountsAddCond: + """Test V0042AccountsAddCond + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AccountsAddCond` + """ + model = V0042AccountsAddCond() + if include_optional: + return V0042AccountsAddCond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/42_assoc_rec_set.v0.0.42_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ] + ) + else: + return V0042AccountsAddCond( + accounts = [ + '' + ], + ) + """ + + def testV0042AccountsAddCond(self): + """Test V0042AccountsAddCond""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_acct_gather_energy.py b/test/test_v0042_acct_gather_energy.py new file mode 100644 index 0000000..571ed86 --- /dev/null +++ b/test/test_v0042_acct_gather_energy.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_acct_gather_energy import V0042AcctGatherEnergy + +class TestV0042AcctGatherEnergy(unittest.TestCase): + """V0042AcctGatherEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AcctGatherEnergy: + """Test V0042AcctGatherEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AcctGatherEnergy` + """ + model = V0042AcctGatherEnergy() + if include_optional: + return V0042AcctGatherEnergy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56 + ) + else: + return V0042AcctGatherEnergy( + ) + """ + + def testV0042AcctGatherEnergy(self): + """Test V0042AcctGatherEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc.py b/test/test_v0042_assoc.py new file mode 100644 index 0000000..a3b1b9f --- /dev/null +++ b/test/test_v0042_assoc.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc import V0042Assoc + +class TestV0042Assoc(unittest.TestCase): + """V0042Assoc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Assoc: + """Test V0042Assoc + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Assoc` + """ + model = V0042Assoc() + if include_optional: + return V0042Assoc( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_42_assoc_max.v0_0_42_assoc_max( + jobs = slurmrest_python.models.v0_0_42_assoc_max_jobs.v0_0_42_assoc_max_jobs( + per = slurmrest_python.models.v0_0_42_assoc_max_jobs_per.v0_0_42_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_42_assoc_max_tres.v0_0_42_assoc_max_tres( + group = slurmrest_python.models.v0_0_42_assoc_max_tres_group.v0_0_42_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_42_assoc_max_tres_minutes.v0_0_42_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_42_assoc_max_per.v0_0_42_assoc_max_per( + account = slurmrest_python.models.v0_0_42_assoc_max_per_account.v0_0_42_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_42_assoc_min.v0_0_42_assoc_min( + priority_threshold = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + parent_account = '', + partition = '', + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qos = [ + '' + ], + shares_raw = 56, + user = '' + ) + else: + return V0042Assoc( + user = '', + ) + """ + + def testV0042Assoc(self): + """Test V0042Assoc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max.py b/test/test_v0042_assoc_max.py new file mode 100644 index 0000000..2f13859 --- /dev/null +++ b/test/test_v0042_assoc_max.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max import V0042AssocMax + +class TestV0042AssocMax(unittest.TestCase): + """V0042AssocMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMax: + """Test V0042AssocMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMax` + """ + model = V0042AssocMax() + if include_optional: + return V0042AssocMax( + jobs = slurmrest_python.models.v0_0_42_assoc_max_jobs.v0_0_42_assoc_max_jobs( + per = slurmrest_python.models.v0_0_42_assoc_max_jobs_per.v0_0_42_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_42_assoc_max_tres.v0_0_42_assoc_max_tres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_42_assoc_max_tres_group.v0_0_42_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = , ), + minutes = slurmrest_python.models.v0_0_42_assoc_max_tres_minutes.v0_0_42_assoc_max_tres_minutes( + total = , + per = slurmrest_python.models.v0_0_42_qos_limits_min_tres_per.v0_0_42_qos_limits_min_tres_per( + job = , ), ), + per = slurmrest_python.models.v0_0_42_assoc_max_tres_per.v0_0_42_assoc_max_tres_per( + job = , + node = , ), ), + per = slurmrest_python.models.v0_0_42_assoc_max_per.v0_0_42_assoc_max_per( + account = slurmrest_python.models.v0_0_42_assoc_max_per_account.v0_0_42_assoc_max_per_account( + wall_clock = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0042AssocMax( + ) + """ + + def testV0042AssocMax(self): + """Test V0042AssocMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_jobs.py b/test/test_v0042_assoc_max_jobs.py new file mode 100644 index 0000000..d0b4da6 --- /dev/null +++ b/test/test_v0042_assoc_max_jobs.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_jobs import V0042AssocMaxJobs + +class TestV0042AssocMaxJobs(unittest.TestCase): + """V0042AssocMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxJobs: + """Test V0042AssocMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxJobs` + """ + model = V0042AssocMaxJobs() + if include_optional: + return V0042AssocMaxJobs( + per = slurmrest_python.models.v0_0_42_assoc_max_jobs_per.v0_0_42_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042AssocMaxJobs( + ) + """ + + def testV0042AssocMaxJobs(self): + """Test V0042AssocMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_jobs_per.py b/test/test_v0042_assoc_max_jobs_per.py new file mode 100644 index 0000000..7c28627 --- /dev/null +++ b/test/test_v0042_assoc_max_jobs_per.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_jobs_per import V0042AssocMaxJobsPer + +class TestV0042AssocMaxJobsPer(unittest.TestCase): + """V0042AssocMaxJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxJobsPer: + """Test V0042AssocMaxJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxJobsPer` + """ + model = V0042AssocMaxJobsPer() + if include_optional: + return V0042AssocMaxJobsPer( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042AssocMaxJobsPer( + ) + """ + + def testV0042AssocMaxJobsPer(self): + """Test V0042AssocMaxJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_per.py b/test/test_v0042_assoc_max_per.py new file mode 100644 index 0000000..a7e0e7e --- /dev/null +++ b/test/test_v0042_assoc_max_per.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_per import V0042AssocMaxPer + +class TestV0042AssocMaxPer(unittest.TestCase): + """V0042AssocMaxPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxPer: + """Test V0042AssocMaxPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxPer` + """ + model = V0042AssocMaxPer() + if include_optional: + return V0042AssocMaxPer( + account = slurmrest_python.models.v0_0_42_assoc_max_per_account.v0_0_42_assoc_max_per_account( + wall_clock = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0042AssocMaxPer( + ) + """ + + def testV0042AssocMaxPer(self): + """Test V0042AssocMaxPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_per_account.py b/test/test_v0042_assoc_max_per_account.py new file mode 100644 index 0000000..0cda9c9 --- /dev/null +++ b/test/test_v0042_assoc_max_per_account.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_per_account import V0042AssocMaxPerAccount + +class TestV0042AssocMaxPerAccount(unittest.TestCase): + """V0042AssocMaxPerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxPerAccount: + """Test V0042AssocMaxPerAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxPerAccount` + """ + model = V0042AssocMaxPerAccount() + if include_optional: + return V0042AssocMaxPerAccount( + wall_clock = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042AssocMaxPerAccount( + ) + """ + + def testV0042AssocMaxPerAccount(self): + """Test V0042AssocMaxPerAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_tres.py b/test/test_v0042_assoc_max_tres.py new file mode 100644 index 0000000..9622b7b --- /dev/null +++ b/test/test_v0042_assoc_max_tres.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_tres import V0042AssocMaxTres + +class TestV0042AssocMaxTres(unittest.TestCase): + """V0042AssocMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxTres: + """Test V0042AssocMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxTres` + """ + model = V0042AssocMaxTres() + if include_optional: + return V0042AssocMaxTres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_42_assoc_max_tres_group.v0_0_42_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_42_assoc_max_tres_minutes.v0_0_42_assoc_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_42_qos_limits_min_tres_per.v0_0_42_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), + per = slurmrest_python.models.v0_0_42_assoc_max_tres_per.v0_0_42_assoc_max_tres_per( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0042AssocMaxTres( + ) + """ + + def testV0042AssocMaxTres(self): + """Test V0042AssocMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_tres_group.py b/test/test_v0042_assoc_max_tres_group.py new file mode 100644 index 0000000..b4b0cea --- /dev/null +++ b/test/test_v0042_assoc_max_tres_group.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_tres_group import V0042AssocMaxTresGroup + +class TestV0042AssocMaxTresGroup(unittest.TestCase): + """V0042AssocMaxTresGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxTresGroup: + """Test V0042AssocMaxTresGroup + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxTresGroup` + """ + model = V0042AssocMaxTresGroup() + if include_optional: + return V0042AssocMaxTresGroup( + minutes = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042AssocMaxTresGroup( + ) + """ + + def testV0042AssocMaxTresGroup(self): + """Test V0042AssocMaxTresGroup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_tres_minutes.py b/test/test_v0042_assoc_max_tres_minutes.py new file mode 100644 index 0000000..79b78c8 --- /dev/null +++ b/test/test_v0042_assoc_max_tres_minutes.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_tres_minutes import V0042AssocMaxTresMinutes + +class TestV0042AssocMaxTresMinutes(unittest.TestCase): + """V0042AssocMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxTresMinutes: + """Test V0042AssocMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxTresMinutes` + """ + model = V0042AssocMaxTresMinutes() + if include_optional: + return V0042AssocMaxTresMinutes( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_42_qos_limits_min_tres_per.v0_0_42_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0042AssocMaxTresMinutes( + ) + """ + + def testV0042AssocMaxTresMinutes(self): + """Test V0042AssocMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_max_tres_per.py b/test/test_v0042_assoc_max_tres_per.py new file mode 100644 index 0000000..32f2860 --- /dev/null +++ b/test/test_v0042_assoc_max_tres_per.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_max_tres_per import V0042AssocMaxTresPer + +class TestV0042AssocMaxTresPer(unittest.TestCase): + """V0042AssocMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMaxTresPer: + """Test V0042AssocMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMaxTresPer` + """ + model = V0042AssocMaxTresPer() + if include_optional: + return V0042AssocMaxTresPer( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042AssocMaxTresPer( + ) + """ + + def testV0042AssocMaxTresPer(self): + """Test V0042AssocMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_min.py b/test/test_v0042_assoc_min.py new file mode 100644 index 0000000..e391815 --- /dev/null +++ b/test/test_v0042_assoc_min.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_min import V0042AssocMin + +class TestV0042AssocMin(unittest.TestCase): + """V0042AssocMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocMin: + """Test V0042AssocMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocMin` + """ + model = V0042AssocMin() + if include_optional: + return V0042AssocMin( + priority_threshold = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042AssocMin( + ) + """ + + def testV0042AssocMin(self): + """Test V0042AssocMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_rec_set.py b/test/test_v0042_assoc_rec_set.py new file mode 100644 index 0000000..014c9bc --- /dev/null +++ b/test/test_v0042_assoc_rec_set.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_rec_set import V0042AssocRecSet + +class TestV0042AssocRecSet(unittest.TestCase): + """V0042AssocRecSet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocRecSet: + """Test V0042AssocRecSet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocRecSet` + """ + model = V0042AssocRecSet() + if include_optional: + return V0042AssocRecSet( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grpwall = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresrunmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresperjob = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtrespernode = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxwalldurationperjob = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56 + ) + else: + return V0042AssocRecSet( + ) + """ + + def testV0042AssocRecSet(self): + """Test V0042AssocRecSet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_shares_obj_wrap.py b/test/test_v0042_assoc_shares_obj_wrap.py new file mode 100644 index 0000000..a15cc27 --- /dev/null +++ b/test/test_v0042_assoc_shares_obj_wrap.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_shares_obj_wrap import V0042AssocSharesObjWrap + +class TestV0042AssocSharesObjWrap(unittest.TestCase): + """V0042AssocSharesObjWrap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocSharesObjWrap: + """Test V0042AssocSharesObjWrap + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocSharesObjWrap` + """ + model = V0042AssocSharesObjWrap() + if include_optional: + return V0042AssocSharesObjWrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + shares = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_tres.v0_0_42_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/42_shares_float128_tres.v0.0.42_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage = 56, + fairshare = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_fairshare.v0_0_42_assoc_shares_obj_wrap_fairshare( + factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + level = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), ), + type = [ + 'USER' + ] + ) + else: + return V0042AssocSharesObjWrap( + ) + """ + + def testV0042AssocSharesObjWrap(self): + """Test V0042AssocSharesObjWrap""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_shares_obj_wrap_fairshare.py b/test/test_v0042_assoc_shares_obj_wrap_fairshare.py new file mode 100644 index 0000000..1474298 --- /dev/null +++ b/test/test_v0042_assoc_shares_obj_wrap_fairshare.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_fairshare import V0042AssocSharesObjWrapFairshare + +class TestV0042AssocSharesObjWrapFairshare(unittest.TestCase): + """V0042AssocSharesObjWrapFairshare unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocSharesObjWrapFairshare: + """Test V0042AssocSharesObjWrapFairshare + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocSharesObjWrapFairshare` + """ + model = V0042AssocSharesObjWrapFairshare() + if include_optional: + return V0042AssocSharesObjWrapFairshare( + factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + level = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ) + ) + else: + return V0042AssocSharesObjWrapFairshare( + ) + """ + + def testV0042AssocSharesObjWrapFairshare(self): + """Test V0042AssocSharesObjWrapFairshare""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_shares_obj_wrap_tres.py b/test/test_v0042_assoc_shares_obj_wrap_tres.py new file mode 100644 index 0000000..0dcd012 --- /dev/null +++ b/test/test_v0042_assoc_shares_obj_wrap_tres.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_shares_obj_wrap_tres import V0042AssocSharesObjWrapTres + +class TestV0042AssocSharesObjWrapTres(unittest.TestCase): + """V0042AssocSharesObjWrapTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocSharesObjWrapTres: + """Test V0042AssocSharesObjWrapTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocSharesObjWrapTres` + """ + model = V0042AssocSharesObjWrapTres() + if include_optional: + return V0042AssocSharesObjWrapTres( + run_seconds = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + usage = [ + slurmrest_python.models.v0/0/42_shares_float128_tres.v0.0.42_shares_float128_tres( + name = '', + value = 1.337, ) + ] + ) + else: + return V0042AssocSharesObjWrapTres( + ) + """ + + def testV0042AssocSharesObjWrapTres(self): + """Test V0042AssocSharesObjWrapTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_assoc_short.py b/test/test_v0042_assoc_short.py new file mode 100644 index 0000000..f085f16 --- /dev/null +++ b/test/test_v0042_assoc_short.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_assoc_short import V0042AssocShort + +class TestV0042AssocShort(unittest.TestCase): + """V0042AssocShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042AssocShort: + """Test V0042AssocShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042AssocShort` + """ + model = V0042AssocShort() + if include_optional: + return V0042AssocShort( + account = '', + cluster = '', + partition = '', + user = '', + id = 56 + ) + else: + return V0042AssocShort( + user = '', + ) + """ + + def testV0042AssocShort(self): + """Test V0042AssocShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_bf_exit_fields.py b/test/test_v0042_bf_exit_fields.py new file mode 100644 index 0000000..aa6277a --- /dev/null +++ b/test/test_v0042_bf_exit_fields.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_bf_exit_fields import V0042BfExitFields + +class TestV0042BfExitFields(unittest.TestCase): + """V0042BfExitFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042BfExitFields: + """Test V0042BfExitFields + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042BfExitFields` + """ + model = V0042BfExitFields() + if include_optional: + return V0042BfExitFields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56 + ) + else: + return V0042BfExitFields( + ) + """ + + def testV0042BfExitFields(self): + """Test V0042BfExitFields""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_cluster_rec.py b/test/test_v0042_cluster_rec.py new file mode 100644 index 0000000..a810d17 --- /dev/null +++ b/test/test_v0042_cluster_rec.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_cluster_rec import V0042ClusterRec + +class TestV0042ClusterRec(unittest.TestCase): + """V0042ClusterRec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ClusterRec: + """Test V0042ClusterRec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ClusterRec` + """ + model = V0042ClusterRec() + if include_optional: + return V0042ClusterRec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_42_cluster_rec_associations.v0_0_42_cluster_rec_associations( + root = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042ClusterRec( + ) + """ + + def testV0042ClusterRec(self): + """Test V0042ClusterRec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_cluster_rec_associations.py b/test/test_v0042_cluster_rec_associations.py new file mode 100644 index 0000000..53711d2 --- /dev/null +++ b/test/test_v0042_cluster_rec_associations.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_cluster_rec_associations import V0042ClusterRecAssociations + +class TestV0042ClusterRecAssociations(unittest.TestCase): + """V0042ClusterRecAssociations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ClusterRecAssociations: + """Test V0042ClusterRecAssociations + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ClusterRecAssociations` + """ + model = V0042ClusterRecAssociations() + if include_optional: + return V0042ClusterRecAssociations( + root = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ) + else: + return V0042ClusterRecAssociations( + ) + """ + + def testV0042ClusterRecAssociations(self): + """Test V0042ClusterRecAssociations""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_controller_ping.py b/test/test_v0042_controller_ping.py new file mode 100644 index 0000000..d02b5d9 --- /dev/null +++ b/test/test_v0042_controller_ping.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_controller_ping import V0042ControllerPing + +class TestV0042ControllerPing(unittest.TestCase): + """V0042ControllerPing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ControllerPing: + """Test V0042ControllerPing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ControllerPing` + """ + model = V0042ControllerPing() + if include_optional: + return V0042ControllerPing( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True + ) + else: + return V0042ControllerPing( + responding = True, + primary = True, + ) + """ + + def testV0042ControllerPing(self): + """Test V0042ControllerPing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_coord.py b/test/test_v0042_coord.py new file mode 100644 index 0000000..798cf37 --- /dev/null +++ b/test/test_v0042_coord.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_coord import V0042Coord + +class TestV0042Coord(unittest.TestCase): + """V0042Coord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Coord: + """Test V0042Coord + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Coord` + """ + model = V0042Coord() + if include_optional: + return V0042Coord( + name = '', + direct = True + ) + else: + return V0042Coord( + name = '', + ) + """ + + def testV0042Coord(self): + """Test V0042Coord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_cron_entry.py b/test/test_v0042_cron_entry.py new file mode 100644 index 0000000..4abedd5 --- /dev/null +++ b/test/test_v0042_cron_entry.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_cron_entry import V0042CronEntry + +class TestV0042CronEntry(unittest.TestCase): + """V0042CronEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042CronEntry: + """Test V0042CronEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042CronEntry` + """ + model = V0042CronEntry() + if include_optional: + return V0042CronEntry( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ) + ) + else: + return V0042CronEntry( + ) + """ + + def testV0042CronEntry(self): + """Test V0042CronEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_float64_no_val_struct.py b/test/test_v0042_float64_no_val_struct.py new file mode 100644 index 0000000..cc341cb --- /dev/null +++ b/test/test_v0042_float64_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_float64_no_val_struct import V0042Float64NoValStruct + +class TestV0042Float64NoValStruct(unittest.TestCase): + """V0042Float64NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Float64NoValStruct: + """Test V0042Float64NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Float64NoValStruct` + """ + model = V0042Float64NoValStruct() + if include_optional: + return V0042Float64NoValStruct( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0042Float64NoValStruct( + ) + """ + + def testV0042Float64NoValStruct(self): + """Test V0042Float64NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_instance.py b/test/test_v0042_instance.py new file mode 100644 index 0000000..670ed62 --- /dev/null +++ b/test/test_v0042_instance.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_instance import V0042Instance + +class TestV0042Instance(unittest.TestCase): + """V0042Instance unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Instance: + """Test V0042Instance + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Instance` + """ + model = V0042Instance() + if include_optional: + return V0042Instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ) + ) + else: + return V0042Instance( + ) + """ + + def testV0042Instance(self): + """Test V0042Instance""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job.py b/test/test_v0042_job.py new file mode 100644 index 0000000..e2e2480 --- /dev/null +++ b/test/test_v0042_job.py @@ -0,0 +1,286 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job import V0042Job + +class TestV0042Job(unittest.TestCase): + """V0042Job unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Job: + """Test V0042Job + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Job` + """ + model = V0042Job() + if include_optional: + return V0042Job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_42_job_array.v0_0_42_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_42_job_time.v0_0_42_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_42_job_het.v0_0_42_job_het( + job_id = 56, + job_offset = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_42_job_required.v0_0_42_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation( + id = 56, + name = '', ), + script = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_42_job_state.v0_0_42_job_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/42_step.v0.0.42_step( + time = slurmrest_python.models.v0_0_42_step_time.v0_0_42_step_time( + elapsed = 56, + end = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_42_step_nodes.v0_0_42_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_42_step_cpu.v0_0_42_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_42_step_cpu_requested_frequency.v0_0_42_step_CPU_requested_frequency( + min = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = , ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_42_step_statistics.v0_0_42_step_statistics( + energy = slurmrest_python.models.v0_0_42_step_statistics_energy.v0_0_42_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_42_step_tres.v0_0_42_step_tres( + requested = slurmrest_python.models.v0_0_42_step_tres_requested.v0_0_42_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_42_job_tres.v0_0_42_job_tres( + allocated = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/42_wckey_tag_struct.v0.0.42_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '' + ) + else: + return V0042Job( + ) + """ + + def testV0042Job(self): + """Test V0042Job""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_alloc_req.py b/test/test_v0042_job_alloc_req.py new file mode 100644 index 0000000..de49850 --- /dev/null +++ b/test/test_v0042_job_alloc_req.py @@ -0,0 +1,420 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_alloc_req import V0042JobAllocReq + +class TestV0042JobAllocReq(unittest.TestCase): + """V0042JobAllocReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobAllocReq: + """Test V0042JobAllocReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobAllocReq` + """ + model = V0042JobAllocReq() + if include_optional: + return V0042JobAllocReq( + hetjob = [ + slurmrest_python.models.v0/0/42_job_desc_msg.v0.0.42_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/42_cron_entry.v0.0.42_cron_entry( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_42_job_desc_msg_rlimits.v0_0_42_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/42_job_desc_msg.v0.0.42_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/42_cron_entry.v0.0.42_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_42_job_desc_msg_rlimits.v0_0_42_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0042JobAllocReq( + ) + """ + + def testV0042JobAllocReq(self): + """Test V0042JobAllocReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_array.py b/test/test_v0042_job_array.py new file mode 100644 index 0000000..6f26dda --- /dev/null +++ b/test/test_v0042_job_array.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_array import V0042JobArray + +class TestV0042JobArray(unittest.TestCase): + """V0042JobArray unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobArray: + """Test V0042JobArray + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobArray` + """ + model = V0042JobArray() + if include_optional: + return V0042JobArray( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '' + ) + else: + return V0042JobArray( + ) + """ + + def testV0042JobArray(self): + """Test V0042JobArray""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_array_response_msg_entry.py b/test/test_v0042_job_array_response_msg_entry.py new file mode 100644 index 0000000..e033512 --- /dev/null +++ b/test/test_v0042_job_array_response_msg_entry.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_array_response_msg_entry import V0042JobArrayResponseMsgEntry + +class TestV0042JobArrayResponseMsgEntry(unittest.TestCase): + """V0042JobArrayResponseMsgEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobArrayResponseMsgEntry: + """Test V0042JobArrayResponseMsgEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobArrayResponseMsgEntry` + """ + model = V0042JobArrayResponseMsgEntry() + if include_optional: + return V0042JobArrayResponseMsgEntry( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '' + ) + else: + return V0042JobArrayResponseMsgEntry( + ) + """ + + def testV0042JobArrayResponseMsgEntry(self): + """Test V0042JobArrayResponseMsgEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_desc_msg.py b/test/test_v0042_job_desc_msg.py new file mode 100644 index 0000000..91aedd5 --- /dev/null +++ b/test/test_v0042_job_desc_msg.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_desc_msg import V0042JobDescMsg + +class TestV0042JobDescMsg(unittest.TestCase): + """V0042JobDescMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobDescMsg: + """Test V0042JobDescMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobDescMsg` + """ + model = V0042JobDescMsg() + if include_optional: + return V0042JobDescMsg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/42_cron_entry.v0.0.42_cron_entry( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_42_job_desc_msg_rlimits.v0_0_42_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = [ + '' + ], + distribution = '', + time_limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56 + ) + else: + return V0042JobDescMsg( + ) + """ + + def testV0042JobDescMsg(self): + """Test V0042JobDescMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_desc_msg_rlimits.py b/test/test_v0042_job_desc_msg_rlimits.py new file mode 100644 index 0000000..0fac27e --- /dev/null +++ b/test/test_v0042_job_desc_msg_rlimits.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_desc_msg_rlimits import V0042JobDescMsgRlimits + +class TestV0042JobDescMsgRlimits(unittest.TestCase): + """V0042JobDescMsgRlimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobDescMsgRlimits: + """Test V0042JobDescMsgRlimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobDescMsgRlimits` + """ + model = V0042JobDescMsgRlimits() + if include_optional: + return V0042JobDescMsgRlimits( + cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + var_as = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042JobDescMsgRlimits( + ) + """ + + def testV0042JobDescMsgRlimits(self): + """Test V0042JobDescMsgRlimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_het.py b/test/test_v0042_job_het.py new file mode 100644 index 0000000..144fe86 --- /dev/null +++ b/test/test_v0042_job_het.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_het import V0042JobHet + +class TestV0042JobHet(unittest.TestCase): + """V0042JobHet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobHet: + """Test V0042JobHet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobHet` + """ + model = V0042JobHet() + if include_optional: + return V0042JobHet( + job_id = 56, + job_offset = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042JobHet( + ) + """ + + def testV0042JobHet(self): + """Test V0042JobHet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_info.py b/test/test_v0042_job_info.py new file mode 100644 index 0000000..e4b68de --- /dev/null +++ b/test/test_v0042_job_info.py @@ -0,0 +1,389 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_info import V0042JobInfo + +class TestV0042JobInfo(unittest.TestCase): + """V0042JobInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobInfo: + """Test V0042JobInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobInfo` + """ + model = V0042JobInfo() + if include_optional: + return V0042JobInfo( + account = '', + accrue_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_maximum = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_governor = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + eligible_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + het_job_id_set = '', + het_job_offset = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job_id = 56, + job_resources = slurmrest_python.models.v0/0/42_job_res.v0.0.42_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_42_job_res_nodes.v0_0_42_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/42_job_res_node.v0.0.42_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/42_job_res_socket.v0.0.42_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max_nodes = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_tres = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_node = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_socket = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_board = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + node_count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition = '', + prefer = '', + memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minimum_cpus_per_node = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minimum_tmp_disk_per_node = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power( + flags = [ + null + ], ), + preempt_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + preemptable_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + pre_sus_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + hold = True, + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + priority_by_partition = [ + slurmrest_python.models.v0/0/42_part_prio.v0.0.42_part_prio( + partition = '', + priority = 56, ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + selinux_context = '', + shared = [ + 'none' + ], + sockets_per_board = 56, + sockets_per_node = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + state_description = '', + state_reason = '', + standard_error = '', + standard_input = '', + standard_output = '', + submit_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + system_comment = '', + time_limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + threads_per_core = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '' + ) + else: + return V0042JobInfo( + ) + """ + + def testV0042JobInfo(self): + """Test V0042JobInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_required.py b/test/test_v0042_job_required.py new file mode 100644 index 0000000..9e85402 --- /dev/null +++ b/test/test_v0042_job_required.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_required import V0042JobRequired + +class TestV0042JobRequired(unittest.TestCase): + """V0042JobRequired unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobRequired: + """Test V0042JobRequired + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobRequired` + """ + model = V0042JobRequired() + if include_optional: + return V0042JobRequired( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042JobRequired( + ) + """ + + def testV0042JobRequired(self): + """Test V0042JobRequired""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_res.py b/test/test_v0042_job_res.py new file mode 100644 index 0000000..6d517fa --- /dev/null +++ b/test/test_v0042_job_res.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_res import V0042JobRes + +class TestV0042JobRes(unittest.TestCase): + """V0042JobRes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobRes: + """Test V0042JobRes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobRes` + """ + model = V0042JobRes() + if include_optional: + return V0042JobRes( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_42_job_res_nodes.v0_0_42_job_res_nodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/42_job_res_node.v0.0.42_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/42_job_res_socket.v0.0.42_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042JobRes( + select_type = [ + 'CPU' + ], + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042JobRes(self): + """Test V0042JobRes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_res_core.py b/test/test_v0042_job_res_core.py new file mode 100644 index 0000000..34ff9b0 --- /dev/null +++ b/test/test_v0042_job_res_core.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_res_core import V0042JobResCore + +class TestV0042JobResCore(unittest.TestCase): + """V0042JobResCore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobResCore: + """Test V0042JobResCore + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobResCore` + """ + model = V0042JobResCore() + if include_optional: + return V0042JobResCore( + index = 56, + status = [ + 'INVALID' + ] + ) + else: + return V0042JobResCore( + index = 56, + status = [ + 'INVALID' + ], + ) + """ + + def testV0042JobResCore(self): + """Test V0042JobResCore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_res_node.py b/test/test_v0042_job_res_node.py new file mode 100644 index 0000000..e8f2594 --- /dev/null +++ b/test/test_v0042_job_res_node.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_res_node import V0042JobResNode + +class TestV0042JobResNode(unittest.TestCase): + """V0042JobResNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobResNode: + """Test V0042JobResNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobResNode` + """ + model = V0042JobResNode() + if include_optional: + return V0042JobResNode( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/42_job_res_socket.v0.0.42_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ] + ) + else: + return V0042JobResNode( + index = 56, + name = '', + sockets = [ + slurmrest_python.models.v0/0/42_job_res_socket.v0.0.42_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], + ) + """ + + def testV0042JobResNode(self): + """Test V0042JobResNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_res_nodes.py b/test/test_v0042_job_res_nodes.py new file mode 100644 index 0000000..91285ab --- /dev/null +++ b/test/test_v0042_job_res_nodes.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_res_nodes import V0042JobResNodes + +class TestV0042JobResNodes(unittest.TestCase): + """V0042JobResNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobResNodes: + """Test V0042JobResNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobResNodes` + """ + model = V0042JobResNodes() + if include_optional: + return V0042JobResNodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/42_job_res_node.v0.0.42_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/42_job_res_socket.v0.0.42_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ] + ) + else: + return V0042JobResNodes( + ) + """ + + def testV0042JobResNodes(self): + """Test V0042JobResNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_res_socket.py b/test/test_v0042_job_res_socket.py new file mode 100644 index 0000000..bb4df6f --- /dev/null +++ b/test/test_v0042_job_res_socket.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_res_socket import V0042JobResSocket + +class TestV0042JobResSocket(unittest.TestCase): + """V0042JobResSocket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobResSocket: + """Test V0042JobResSocket + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobResSocket` + """ + model = V0042JobResSocket() + if include_optional: + return V0042JobResSocket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ] + ) + else: + return V0042JobResSocket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], + ) + """ + + def testV0042JobResSocket(self): + """Test V0042JobResSocket""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_state.py b/test/test_v0042_job_state.py new file mode 100644 index 0000000..e016bab --- /dev/null +++ b/test/test_v0042_job_state.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_state import V0042JobState + +class TestV0042JobState(unittest.TestCase): + """V0042JobState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobState: + """Test V0042JobState + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobState` + """ + model = V0042JobState() + if include_optional: + return V0042JobState( + current = [ + 'PENDING' + ], + reason = '' + ) + else: + return V0042JobState( + ) + """ + + def testV0042JobState(self): + """Test V0042JobState""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_submit_req.py b/test/test_v0042_job_submit_req.py new file mode 100644 index 0000000..1416a02 --- /dev/null +++ b/test/test_v0042_job_submit_req.py @@ -0,0 +1,418 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_submit_req import V0042JobSubmitReq + +class TestV0042JobSubmitReq(unittest.TestCase): + """V0042JobSubmitReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobSubmitReq: + """Test V0042JobSubmitReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobSubmitReq` + """ + model = V0042JobSubmitReq() + if include_optional: + return V0042JobSubmitReq( + script = '', + jobs = [ + slurmrest_python.models.v0/0/42_job_desc_msg.v0.0.42_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/42_cron_entry.v0.0.42_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_42_job_desc_msg_rlimits.v0_0_42_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/42_job_desc_msg.v0.0.42_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/42_cron_entry.v0.0.42_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_42_job_desc_msg_rlimits.v0_0_42_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0042JobSubmitReq( + ) + """ + + def testV0042JobSubmitReq(self): + """Test V0042JobSubmitReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_time.py b/test/test_v0042_job_time.py new file mode 100644 index 0000000..9ee1785 --- /dev/null +++ b/test/test_v0042_job_time.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_time import V0042JobTime + +class TestV0042JobTime(unittest.TestCase): + """V0042JobTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobTime: + """Test V0042JobTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobTime` + """ + model = V0042JobTime() + if include_optional: + return V0042JobTime( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0042JobTime( + ) + """ + + def testV0042JobTime(self): + """Test V0042JobTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_job_tres.py b/test/test_v0042_job_tres.py new file mode 100644 index 0000000..27e8a51 --- /dev/null +++ b/test/test_v0042_job_tres.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_job_tres import V0042JobTres + +class TestV0042JobTres(unittest.TestCase): + """V0042JobTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042JobTres: + """Test V0042JobTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042JobTres` + """ + model = V0042JobTres() + if include_optional: + return V0042JobTres( + allocated = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042JobTres( + ) + """ + + def testV0042JobTres(self): + """Test V0042JobTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_kill_jobs_msg.py b/test/test_v0042_kill_jobs_msg.py new file mode 100644 index 0000000..6e0eb90 --- /dev/null +++ b/test/test_v0042_kill_jobs_msg.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_kill_jobs_msg import V0042KillJobsMsg + +class TestV0042KillJobsMsg(unittest.TestCase): + """V0042KillJobsMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042KillJobsMsg: + """Test V0042KillJobsMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042KillJobsMsg` + """ + model = V0042KillJobsMsg() + if include_optional: + return V0042KillJobsMsg( + account = '', + flags = [ + 'BATCH_JOB' + ], + job_name = '', + jobs = [ + '' + ], + partition = '', + qos = '', + reservation = '', + signal = '', + job_state = [ + 'PENDING' + ], + user_id = '', + user_name = '', + wckey = '', + nodes = [ + '' + ] + ) + else: + return V0042KillJobsMsg( + ) + """ + + def testV0042KillJobsMsg(self): + """Test V0042KillJobsMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_kill_jobs_resp_job.py b/test/test_v0042_kill_jobs_resp_job.py new file mode 100644 index 0000000..6818e43 --- /dev/null +++ b/test/test_v0042_kill_jobs_resp_job.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_kill_jobs_resp_job import V0042KillJobsRespJob + +class TestV0042KillJobsRespJob(unittest.TestCase): + """V0042KillJobsRespJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042KillJobsRespJob: + """Test V0042KillJobsRespJob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042KillJobsRespJob` + """ + model = V0042KillJobsRespJob() + if include_optional: + return V0042KillJobsRespJob( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ) + ) + else: + return V0042KillJobsRespJob( + step_id = '', + job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042KillJobsRespJob(self): + """Test V0042KillJobsRespJob""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_license.py b/test/test_v0042_license.py new file mode 100644 index 0000000..7a03d27 --- /dev/null +++ b/test/test_v0042_license.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_license import V0042License + +class TestV0042License(unittest.TestCase): + """V0042License unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042License: + """Test V0042License + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042License` + """ + model = V0042License() + if include_optional: + return V0042License( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56 + ) + else: + return V0042License( + ) + """ + + def testV0042License(self): + """Test V0042License""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_node.py b/test/test_v0042_node.py new file mode 100644 index 0000000..1ba141c --- /dev/null +++ b/test/test_v0042_node.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_node import V0042Node + +class TestV0042Node(unittest.TestCase): + """V0042Node unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Node: + """Test V0042Node + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Node` + """ + model = V0042Node() + if include_optional: + return V0042Node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/42_acct_gather_energy.v0.0.42_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = [ + '' + ], + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + reason_set_by_user = '', + resume_after = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + tres = '', + version = '' + ) + else: + return V0042Node( + ) + """ + + def testV0042Node(self): + """Test V0042Node""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_accounts_add_cond_resp.py b/test/test_v0042_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..0b43ca9 --- /dev/null +++ b/test/test_v0042_openapi_accounts_add_cond_resp.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp import V0042OpenapiAccountsAddCondResp + +class TestV0042OpenapiAccountsAddCondResp(unittest.TestCase): + """V0042OpenapiAccountsAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiAccountsAddCondResp: + """Test V0042OpenapiAccountsAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiAccountsAddCondResp` + """ + model = V0042OpenapiAccountsAddCondResp() + if include_optional: + return V0042OpenapiAccountsAddCondResp( + association_condition = slurmrest_python.models.v0/0/42_accounts_add_cond.v0.0.42_accounts_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/42_assoc_rec_set.v0.0.42_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], ), + account = slurmrest_python.models.v0/0/42_account_short.v0.0.42_account_short( + description = '', + organization = '', ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiAccountsAddCondResp( + ) + """ + + def testV0042OpenapiAccountsAddCondResp(self): + """Test V0042OpenapiAccountsAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_accounts_add_cond_resp_str.py b/test/test_v0042_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..b532379 --- /dev/null +++ b/test/test_v0042_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_accounts_add_cond_resp_str import V0042OpenapiAccountsAddCondRespStr + +class TestV0042OpenapiAccountsAddCondRespStr(unittest.TestCase): + """V0042OpenapiAccountsAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiAccountsAddCondRespStr: + """Test V0042OpenapiAccountsAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiAccountsAddCondRespStr` + """ + model = V0042OpenapiAccountsAddCondRespStr() + if include_optional: + return V0042OpenapiAccountsAddCondRespStr( + added_accounts = '', + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiAccountsAddCondRespStr( + added_accounts = '', + ) + """ + + def testV0042OpenapiAccountsAddCondRespStr(self): + """Test V0042OpenapiAccountsAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_accounts_removed_resp.py b/test/test_v0042_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..f3e9f7e --- /dev/null +++ b/test/test_v0042_openapi_accounts_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_accounts_removed_resp import V0042OpenapiAccountsRemovedResp + +class TestV0042OpenapiAccountsRemovedResp(unittest.TestCase): + """V0042OpenapiAccountsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiAccountsRemovedResp: + """Test V0042OpenapiAccountsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiAccountsRemovedResp` + """ + model = V0042OpenapiAccountsRemovedResp() + if include_optional: + return V0042OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + ) + """ + + def testV0042OpenapiAccountsRemovedResp(self): + """Test V0042OpenapiAccountsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_accounts_resp.py b/test/test_v0042_openapi_accounts_resp.py new file mode 100644 index 0000000..9dea3df --- /dev/null +++ b/test/test_v0042_openapi_accounts_resp.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_accounts_resp import V0042OpenapiAccountsResp + +class TestV0042OpenapiAccountsResp(unittest.TestCase): + """V0042OpenapiAccountsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiAccountsResp: + """Test V0042OpenapiAccountsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiAccountsResp` + """ + model = V0042OpenapiAccountsResp() + if include_optional: + return V0042OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0/0/42_account.v0.0.42_account( + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0/0/42_account.v0.0.42_account( + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0042OpenapiAccountsResp(self): + """Test V0042OpenapiAccountsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_assocs_removed_resp.py b/test/test_v0042_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..745b840 --- /dev/null +++ b/test/test_v0042_openapi_assocs_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_assocs_removed_resp import V0042OpenapiAssocsRemovedResp + +class TestV0042OpenapiAssocsRemovedResp(unittest.TestCase): + """V0042OpenapiAssocsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiAssocsRemovedResp: + """Test V0042OpenapiAssocsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiAssocsRemovedResp` + """ + model = V0042OpenapiAssocsRemovedResp() + if include_optional: + return V0042OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + ) + """ + + def testV0042OpenapiAssocsRemovedResp(self): + """Test V0042OpenapiAssocsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_assocs_resp.py b/test/test_v0042_openapi_assocs_resp.py new file mode 100644 index 0000000..23eced3 --- /dev/null +++ b/test/test_v0042_openapi_assocs_resp.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_assocs_resp import V0042OpenapiAssocsResp + +class TestV0042OpenapiAssocsResp(unittest.TestCase): + """V0042OpenapiAssocsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiAssocsResp: + """Test V0042OpenapiAssocsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiAssocsResp` + """ + model = V0042OpenapiAssocsResp() + if include_optional: + return V0042OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0/0/42_assoc.v0.0.42_assoc( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_42_assoc_max.v0_0_42_assoc_max( + jobs = slurmrest_python.models.v0_0_42_assoc_max_jobs.v0_0_42_assoc_max_jobs( + per = slurmrest_python.models.v0_0_42_assoc_max_jobs_per.v0_0_42_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_42_assoc_max_tres.v0_0_42_assoc_max_tres( + group = slurmrest_python.models.v0_0_42_assoc_max_tres_group.v0_0_42_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_42_assoc_max_tres_minutes.v0_0_42_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_42_assoc_max_per.v0_0_42_assoc_max_per( + account = slurmrest_python.models.v0_0_42_assoc_max_per_account.v0_0_42_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_42_assoc_min.v0_0_42_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0/0/42_assoc.v0.0.42_assoc( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_42_assoc_max.v0_0_42_assoc_max( + jobs = slurmrest_python.models.v0_0_42_assoc_max_jobs.v0_0_42_assoc_max_jobs( + per = slurmrest_python.models.v0_0_42_assoc_max_jobs_per.v0_0_42_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_42_assoc_max_tres.v0_0_42_assoc_max_tres( + group = slurmrest_python.models.v0_0_42_assoc_max_tres_group.v0_0_42_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_42_assoc_max_tres_minutes.v0_0_42_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_42_assoc_max_per.v0_0_42_assoc_max_per( + account = slurmrest_python.models.v0_0_42_assoc_max_per_account.v0_0_42_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_42_assoc_min.v0_0_42_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + ) + """ + + def testV0042OpenapiAssocsResp(self): + """Test V0042OpenapiAssocsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_clusters_removed_resp.py b/test/test_v0042_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..01e12e1 --- /dev/null +++ b/test/test_v0042_openapi_clusters_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_clusters_removed_resp import V0042OpenapiClustersRemovedResp + +class TestV0042OpenapiClustersRemovedResp(unittest.TestCase): + """V0042OpenapiClustersRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiClustersRemovedResp: + """Test V0042OpenapiClustersRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiClustersRemovedResp` + """ + model = V0042OpenapiClustersRemovedResp() + if include_optional: + return V0042OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + ) + """ + + def testV0042OpenapiClustersRemovedResp(self): + """Test V0042OpenapiClustersRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_clusters_resp.py b/test/test_v0042_openapi_clusters_resp.py new file mode 100644 index 0000000..ae1f0ac --- /dev/null +++ b/test/test_v0042_openapi_clusters_resp.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_clusters_resp import V0042OpenapiClustersResp + +class TestV0042OpenapiClustersResp(unittest.TestCase): + """V0042OpenapiClustersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiClustersResp: + """Test V0042OpenapiClustersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiClustersResp` + """ + model = V0042OpenapiClustersResp() + if include_optional: + return V0042OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0/0/42_cluster_rec.v0.0.42_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_42_cluster_rec_associations.v0_0_42_cluster_rec_associations( + root = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0/0/42_cluster_rec.v0.0.42_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_42_cluster_rec_associations.v0_0_42_cluster_rec_associations( + root = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + ) + """ + + def testV0042OpenapiClustersResp(self): + """Test V0042OpenapiClustersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_diag_resp.py b/test/test_v0042_openapi_diag_resp.py new file mode 100644 index 0000000..b353ecf --- /dev/null +++ b/test/test_v0042_openapi_diag_resp.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_diag_resp import V0042OpenapiDiagResp + +class TestV0042OpenapiDiagResp(unittest.TestCase): + """V0042OpenapiDiagResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiDiagResp: + """Test V0042OpenapiDiagResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiDiagResp` + """ + model = V0042OpenapiDiagResp() + if include_optional: + return V0042OpenapiDiagResp( + statistics = slurmrest_python.models.v0/0/42_stats_msg.v0.0.42_stats_msg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/42_schedule_exit_fields.v0.0.42_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = , + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/42_bf_exit_fields.v0.0.42_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = , + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_type.v0.0.42_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = , ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_user.v0.0.42_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = , ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_queue.v0.0.42_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_dump.v0.0.42_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiDiagResp( + statistics = slurmrest_python.models.v0/0/42_stats_msg.v0.0.42_stats_msg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/42_schedule_exit_fields.v0.0.42_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = , + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/42_bf_exit_fields.v0.0.42_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = , + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_type.v0.0.42_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = , ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_user.v0.0.42_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = , ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_queue.v0.0.42_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_dump.v0.0.42_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + ) + """ + + def testV0042OpenapiDiagResp(self): + """Test V0042OpenapiDiagResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_error.py b/test/test_v0042_openapi_error.py new file mode 100644 index 0000000..64855ef --- /dev/null +++ b/test/test_v0042_openapi_error.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_error import V0042OpenapiError + +class TestV0042OpenapiError(unittest.TestCase): + """V0042OpenapiError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiError: + """Test V0042OpenapiError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiError` + """ + model = V0042OpenapiError() + if include_optional: + return V0042OpenapiError( + description = '', + error_number = 56, + error = '', + source = '' + ) + else: + return V0042OpenapiError( + ) + """ + + def testV0042OpenapiError(self): + """Test V0042OpenapiError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_instances_resp.py b/test/test_v0042_openapi_instances_resp.py new file mode 100644 index 0000000..ab2de7c --- /dev/null +++ b/test/test_v0042_openapi_instances_resp.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_instances_resp import V0042OpenapiInstancesResp + +class TestV0042OpenapiInstancesResp(unittest.TestCase): + """V0042OpenapiInstancesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiInstancesResp: + """Test V0042OpenapiInstancesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiInstancesResp` + """ + model = V0042OpenapiInstancesResp() + if include_optional: + return V0042OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0/0/42_instance.v0.0.42_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0/0/42_instance.v0.0.42_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ), ) + ], + ) + """ + + def testV0042OpenapiInstancesResp(self): + """Test V0042OpenapiInstancesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_job_alloc_resp.py b/test/test_v0042_openapi_job_alloc_resp.py new file mode 100644 index 0000000..f84ce00 --- /dev/null +++ b/test/test_v0042_openapi_job_alloc_resp.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_job_alloc_resp import V0042OpenapiJobAllocResp + +class TestV0042OpenapiJobAllocResp(unittest.TestCase): + """V0042OpenapiJobAllocResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiJobAllocResp: + """Test V0042OpenapiJobAllocResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiJobAllocResp` + """ + model = V0042OpenapiJobAllocResp() + if include_optional: + return V0042OpenapiJobAllocResp( + job_id = 56, + job_submit_user_msg = '', + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiJobAllocResp( + ) + """ + + def testV0042OpenapiJobAllocResp(self): + """Test V0042OpenapiJobAllocResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_job_info_resp.py b/test/test_v0042_openapi_job_info_resp.py new file mode 100644 index 0000000..343c879 --- /dev/null +++ b/test/test_v0042_openapi_job_info_resp.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_job_info_resp import V0042OpenapiJobInfoResp + +class TestV0042OpenapiJobInfoResp(unittest.TestCase): + """V0042OpenapiJobInfoResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiJobInfoResp: + """Test V0042OpenapiJobInfoResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiJobInfoResp` + """ + model = V0042OpenapiJobInfoResp() + if include_optional: + return V0042OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0/0/42_job_info.v0.0.42_job_info( + account = '', + accrue_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = , + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = , + cpu_frequency_maximum = , + cpu_frequency_governor = , + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = , + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = , + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = , + name = '', ), ), + eligible_time = , + end_time = , + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = , + het_job_id_set = '', + het_job_offset = , + job_id = 56, + job_resources = slurmrest_python.models.v0/0/42_job_res.v0.0.42_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_42_job_res_nodes.v0_0_42_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/42_job_res_node.v0.0.42_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/42_job_res_socket.v0.0.42_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = , ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = , + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = , + max_nodes = , + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = , + tasks_per_tres = , + tasks_per_node = , + tasks_per_socket = , + tasks_per_board = , + cpus = , + node_count = , + tasks = , + partition = '', + prefer = '', + memory_per_cpu = , + memory_per_node = , + minimum_cpus_per_node = , + minimum_tmp_disk_per_node = , + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = , + preemptable_time = , + pre_sus_time = , + hold = True, + priority = , + priority_by_partition = [ + slurmrest_python.models.v0/0/42_part_prio.v0.0.42_part_prio( + partition = '', ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = , + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + selinux_context = '', + shared = [ + 'none' + ], + sockets_per_board = 56, + sockets_per_node = , + start_time = , + state_description = '', + state_reason = '', + standard_error = '', + standard_input = '', + standard_output = '', + submit_time = , + suspend_time = , + system_comment = '', + time_limit = , + time_minimum = , + threads_per_core = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0/0/42_job_info.v0.0.42_job_info( + account = '', + accrue_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = , + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = , + cpu_frequency_maximum = , + cpu_frequency_governor = , + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = , + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = , + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = , + name = '', ), ), + eligible_time = , + end_time = , + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = , + het_job_id_set = '', + het_job_offset = , + job_id = 56, + job_resources = slurmrest_python.models.v0/0/42_job_res.v0.0.42_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_42_job_res_nodes.v0_0_42_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/42_job_res_node.v0.0.42_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/42_job_res_socket.v0.0.42_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/42_job_res_core.v0.0.42_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = , ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = , + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = , + max_nodes = , + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = , + tasks_per_tres = , + tasks_per_node = , + tasks_per_socket = , + tasks_per_board = , + cpus = , + node_count = , + tasks = , + partition = '', + prefer = '', + memory_per_cpu = , + memory_per_node = , + minimum_cpus_per_node = , + minimum_tmp_disk_per_node = , + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = , + preemptable_time = , + pre_sus_time = , + hold = True, + priority = , + priority_by_partition = [ + slurmrest_python.models.v0/0/42_part_prio.v0.0.42_part_prio( + partition = '', ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = , + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + selinux_context = '', + shared = [ + 'none' + ], + sockets_per_board = 56, + sockets_per_node = , + start_time = , + state_description = '', + state_reason = '', + standard_error = '', + standard_input = '', + standard_output = '', + submit_time = , + suspend_time = , + system_comment = '', + time_limit = , + time_minimum = , + threads_per_core = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042OpenapiJobInfoResp(self): + """Test V0042OpenapiJobInfoResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_job_post_response.py b/test/test_v0042_openapi_job_post_response.py new file mode 100644 index 0000000..1577c7f --- /dev/null +++ b/test/test_v0042_openapi_job_post_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_job_post_response import V0042OpenapiJobPostResponse + +class TestV0042OpenapiJobPostResponse(unittest.TestCase): + """V0042OpenapiJobPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiJobPostResponse: + """Test V0042OpenapiJobPostResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiJobPostResponse` + """ + model = V0042OpenapiJobPostResponse() + if include_optional: + return V0042OpenapiJobPostResponse( + results = [ + slurmrest_python.models.v0/0/42_job_array_response_msg_entry.v0.0.42_job_array_response_msg_entry( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '', ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiJobPostResponse( + ) + """ + + def testV0042OpenapiJobPostResponse(self): + """Test V0042OpenapiJobPostResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_job_submit_response.py b/test/test_v0042_openapi_job_submit_response.py new file mode 100644 index 0000000..868f948 --- /dev/null +++ b/test/test_v0042_openapi_job_submit_response.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_job_submit_response import V0042OpenapiJobSubmitResponse + +class TestV0042OpenapiJobSubmitResponse(unittest.TestCase): + """V0042OpenapiJobSubmitResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiJobSubmitResponse: + """Test V0042OpenapiJobSubmitResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiJobSubmitResponse` + """ + model = V0042OpenapiJobSubmitResponse() + if include_optional: + return V0042OpenapiJobSubmitResponse( + job_id = 56, + step_id = '', + job_submit_user_msg = '', + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiJobSubmitResponse( + ) + """ + + def testV0042OpenapiJobSubmitResponse(self): + """Test V0042OpenapiJobSubmitResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_kill_job_resp.py b/test/test_v0042_openapi_kill_job_resp.py new file mode 100644 index 0000000..ce7e3f1 --- /dev/null +++ b/test/test_v0042_openapi_kill_job_resp.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_kill_job_resp import V0042OpenapiKillJobResp + +class TestV0042OpenapiKillJobResp(unittest.TestCase): + """V0042OpenapiKillJobResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiKillJobResp: + """Test V0042OpenapiKillJobResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiKillJobResp` + """ + model = V0042OpenapiKillJobResp() + if include_optional: + return V0042OpenapiKillJobResp( + status = [ + slurmrest_python.models.v0/0/42_kill_jobs_resp_job.v0.0.42_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiKillJobResp( + status = [ + slurmrest_python.models.v0/0/42_kill_jobs_resp_job.v0.0.42_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + ) + """ + + def testV0042OpenapiKillJobResp(self): + """Test V0042OpenapiKillJobResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_kill_jobs_resp.py b/test/test_v0042_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..04702a9 --- /dev/null +++ b/test/test_v0042_openapi_kill_jobs_resp.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_kill_jobs_resp import V0042OpenapiKillJobsResp + +class TestV0042OpenapiKillJobsResp(unittest.TestCase): + """V0042OpenapiKillJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiKillJobsResp: + """Test V0042OpenapiKillJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiKillJobsResp` + """ + model = V0042OpenapiKillJobsResp() + if include_optional: + return V0042OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0/0/42_kill_jobs_resp_job.v0.0.42_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0/0/42_kill_jobs_resp_job.v0.0.42_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + ) + """ + + def testV0042OpenapiKillJobsResp(self): + """Test V0042OpenapiKillJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_licenses_resp.py b/test/test_v0042_openapi_licenses_resp.py new file mode 100644 index 0000000..dc5b9dc --- /dev/null +++ b/test/test_v0042_openapi_licenses_resp.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_licenses_resp import V0042OpenapiLicensesResp + +class TestV0042OpenapiLicensesResp(unittest.TestCase): + """V0042OpenapiLicensesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiLicensesResp: + """Test V0042OpenapiLicensesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiLicensesResp` + """ + model = V0042OpenapiLicensesResp() + if include_optional: + return V0042OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0/0/42_license.v0.0.42_license( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0/0/42_license.v0.0.42_license( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042OpenapiLicensesResp(self): + """Test V0042OpenapiLicensesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_meta.py b/test/test_v0042_openapi_meta.py new file mode 100644 index 0000000..7e490a0 --- /dev/null +++ b/test/test_v0042_openapi_meta.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_meta import V0042OpenapiMeta + +class TestV0042OpenapiMeta(unittest.TestCase): + """V0042OpenapiMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiMeta: + """Test V0042OpenapiMeta + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiMeta` + """ + model = V0042OpenapiMeta() + if include_optional: + return V0042OpenapiMeta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ) + ) + else: + return V0042OpenapiMeta( + ) + """ + + def testV0042OpenapiMeta(self): + """Test V0042OpenapiMeta""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_nodes_resp.py b/test/test_v0042_openapi_nodes_resp.py new file mode 100644 index 0000000..5cbb8e0 --- /dev/null +++ b/test/test_v0042_openapi_nodes_resp.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_nodes_resp import V0042OpenapiNodesResp + +class TestV0042OpenapiNodesResp(unittest.TestCase): + """V0042OpenapiNodesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiNodesResp: + """Test V0042OpenapiNodesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiNodesResp` + """ + model = V0042OpenapiNodesResp() + if include_optional: + return V0042OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0/0/42_node.v0.0.42_node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/42_acct_gather_energy.v0.0.42_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = , + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = , + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = , + reason_set_by_user = '', + resume_after = , + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = , + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0/0/42_node.v0.0.42_node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/42_acct_gather_energy.v0.0.42_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = , + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = , + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = , + reason_set_by_user = '', + resume_after = , + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = , + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042OpenapiNodesResp(self): + """Test V0042OpenapiNodesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_partition_resp.py b/test/test_v0042_openapi_partition_resp.py new file mode 100644 index 0000000..160f43e --- /dev/null +++ b/test/test_v0042_openapi_partition_resp.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_partition_resp import V0042OpenapiPartitionResp + +class TestV0042OpenapiPartitionResp(unittest.TestCase): + """V0042OpenapiPartitionResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiPartitionResp: + """Test V0042OpenapiPartitionResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiPartitionResp` + """ + model = V0042OpenapiPartitionResp() + if include_optional: + return V0042OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0/0/42_partition_info.v0.0.42_partition_info( + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_nodes.v0_0_41_openapi_partition_resp_partitions_inner_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_accounts.v0_0_41_openapi_partition_resp_partitions_inner_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_groups.v0_0_41_openapi_partition_resp_partitions_inner_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_qos.v0_0_41_openapi_partition_resp_partitions_inner_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_tres.v0_0_41_openapi_partition_resp_partitions_inner_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_cpus.v0_0_41_openapi_partition_resp_partitions_inner_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_42_partition_info_defaults.v0_0_42_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_42_partition_info_maximums.v0_0_42_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = , + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_42_partition_info_maximums_oversubscribe.v0_0_42_partition_info_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_minimums.v0_0_41_openapi_partition_resp_partitions_inner_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_priority.v0_0_41_openapi_partition_resp_partitions_inner_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_42_partition_info_timeouts.v0_0_42_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = , ), + partition = slurmrest_python.models.v0_0_42_partition_info_partition.v0_0_42_partition_info_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = , ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0/0/42_partition_info.v0.0.42_partition_info( + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_nodes.v0_0_41_openapi_partition_resp_partitions_inner_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_accounts.v0_0_41_openapi_partition_resp_partitions_inner_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_groups.v0_0_41_openapi_partition_resp_partitions_inner_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_qos.v0_0_41_openapi_partition_resp_partitions_inner_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_tres.v0_0_41_openapi_partition_resp_partitions_inner_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_cpus.v0_0_41_openapi_partition_resp_partitions_inner_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_42_partition_info_defaults.v0_0_42_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_42_partition_info_maximums.v0_0_42_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = , + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_42_partition_info_maximums_oversubscribe.v0_0_42_partition_info_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_minimums.v0_0_41_openapi_partition_resp_partitions_inner_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_priority.v0_0_41_openapi_partition_resp_partitions_inner_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_42_partition_info_timeouts.v0_0_42_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = , ), + partition = slurmrest_python.models.v0_0_42_partition_info_partition.v0_0_42_partition_info_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = , ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042OpenapiPartitionResp(self): + """Test V0042OpenapiPartitionResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_ping_array_resp.py b/test/test_v0042_openapi_ping_array_resp.py new file mode 100644 index 0000000..d39da70 --- /dev/null +++ b/test/test_v0042_openapi_ping_array_resp.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_ping_array_resp import V0042OpenapiPingArrayResp + +class TestV0042OpenapiPingArrayResp(unittest.TestCase): + """V0042OpenapiPingArrayResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiPingArrayResp: + """Test V0042OpenapiPingArrayResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiPingArrayResp` + """ + model = V0042OpenapiPingArrayResp() + if include_optional: + return V0042OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0/0/42_controller_ping.v0.0.42_controller_ping( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True, ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0/0/42_controller_ping.v0.0.42_controller_ping( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True, ) + ], + ) + """ + + def testV0042OpenapiPingArrayResp(self): + """Test V0042OpenapiPingArrayResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_reservation_resp.py b/test/test_v0042_openapi_reservation_resp.py new file mode 100644 index 0000000..cfa000e --- /dev/null +++ b/test/test_v0042_openapi_reservation_resp.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_reservation_resp import V0042OpenapiReservationResp + +class TestV0042OpenapiReservationResp(unittest.TestCase): + """V0042OpenapiReservationResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiReservationResp: + """Test V0042OpenapiReservationResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiReservationResp` + """ + model = V0042OpenapiReservationResp() + if include_optional: + return V0042OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0/0/42_reservation_info.v0.0.42_reservation_info( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/42_reservation_core_spec.v0.0.42_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_42_reservation_info_purge_completed.v0_0_42_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0/0/42_reservation_info.v0.0.42_reservation_info( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/42_reservation_core_spec.v0.0.42_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_42_reservation_info_purge_completed.v0_0_42_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042OpenapiReservationResp(self): + """Test V0042OpenapiReservationResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_resp.py b/test/test_v0042_openapi_resp.py new file mode 100644 index 0000000..eff3f53 --- /dev/null +++ b/test/test_v0042_openapi_resp.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_resp import V0042OpenapiResp + +class TestV0042OpenapiResp(unittest.TestCase): + """V0042OpenapiResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiResp: + """Test V0042OpenapiResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiResp` + """ + model = V0042OpenapiResp() + if include_optional: + return V0042OpenapiResp( + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiResp( + ) + """ + + def testV0042OpenapiResp(self): + """Test V0042OpenapiResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_shares_resp.py b/test/test_v0042_openapi_shares_resp.py new file mode 100644 index 0000000..33137a3 --- /dev/null +++ b/test/test_v0042_openapi_shares_resp.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_shares_resp import V0042OpenapiSharesResp + +class TestV0042OpenapiSharesResp(unittest.TestCase): + """V0042OpenapiSharesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiSharesResp: + """Test V0042OpenapiSharesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiSharesResp` + """ + model = V0042OpenapiSharesResp() + if include_optional: + return V0042OpenapiSharesResp( + shares = slurmrest_python.models.v0/0/42_shares_resp_msg.v0.0.42_shares_resp_msg( + shares = [ + slurmrest_python.models.v0/0/42_assoc_shares_obj_wrap.v0.0.42_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_tres.v0_0_42_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/42_shares_float128_tres.v0.0.42_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_fairshare.v0_0_42_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiSharesResp( + shares = slurmrest_python.models.v0/0/42_shares_resp_msg.v0.0.42_shares_resp_msg( + shares = [ + slurmrest_python.models.v0/0/42_assoc_shares_obj_wrap.v0.0.42_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_tres.v0_0_42_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/42_shares_float128_tres.v0.0.42_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_fairshare.v0_0_42_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + ) + """ + + def testV0042OpenapiSharesResp(self): + """Test V0042OpenapiSharesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_slurmdbd_config_resp.py b/test/test_v0042_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..77eb4ee --- /dev/null +++ b/test/test_v0042_openapi_slurmdbd_config_resp.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_slurmdbd_config_resp import V0042OpenapiSlurmdbdConfigResp + +class TestV0042OpenapiSlurmdbdConfigResp(unittest.TestCase): + """V0042OpenapiSlurmdbdConfigResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiSlurmdbdConfigResp: + """Test V0042OpenapiSlurmdbdConfigResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiSlurmdbdConfigResp` + """ + model = V0042OpenapiSlurmdbdConfigResp() + if include_optional: + return V0042OpenapiSlurmdbdConfigResp( + clusters = [ + slurmrest_python.models.v0/0/42_cluster_rec.v0.0.42_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'REGISTERING' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_42_cluster_rec_associations.v0_0_42_cluster_rec_associations( + root = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + tres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + accounts = [ + slurmrest_python.models.v0/0/42_account.v0.0.42_account( + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + users = [ + slurmrest_python.models.v0/0/42_user.v0.0.42_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/42_wckey.v0.0.42_wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + qos = [ + slurmrest_python.models.v0/0/42_qos.v0.0.42_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_42_qos_limits.v0_0_42_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_42_qos_limits_max.v0_0_42_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_active_jobs.v0_0_42_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs.v0_0_42_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_42_qos_limits_max_tres.v0_0_42_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes.v0_0_42_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock.v0_0_42_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_42_qos_limits_min.v0_0_42_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_42_qos_preempt.v0_0_42_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + wckeys = [ + slurmrest_python.models.v0/0/42_wckey.v0.0.42_wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + associations = [ + slurmrest_python.models.v0/0/42_assoc.v0.0.42_assoc( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_42_assoc_max.v0_0_42_assoc_max( + jobs = slurmrest_python.models.v0_0_42_assoc_max_jobs.v0_0_42_assoc_max_jobs( + per = slurmrest_python.models.v0_0_42_assoc_max_jobs_per.v0_0_42_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_42_assoc_max_tres.v0_0_42_assoc_max_tres( + group = slurmrest_python.models.v0_0_42_assoc_max_tres_group.v0_0_42_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_42_assoc_max_tres_minutes.v0_0_42_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_42_assoc_max_per.v0_0_42_assoc_max_per( + account = slurmrest_python.models.v0_0_42_assoc_max_per_account.v0_0_42_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_42_assoc_min.v0_0_42_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + instances = [ + slurmrest_python.models.v0/0/42_instance.v0.0.42_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time.v0_0_41_openapi_slurmdbd_config_resp_instances_inner_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiSlurmdbdConfigResp( + ) + """ + + def testV0042OpenapiSlurmdbdConfigResp(self): + """Test V0042OpenapiSlurmdbdConfigResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_slurmdbd_jobs_resp.py b/test/test_v0042_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..ef6c2ac --- /dev/null +++ b/test/test_v0042_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,403 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_slurmdbd_jobs_resp import V0042OpenapiSlurmdbdJobsResp + +class TestV0042OpenapiSlurmdbdJobsResp(unittest.TestCase): + """V0042OpenapiSlurmdbdJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiSlurmdbdJobsResp: + """Test V0042OpenapiSlurmdbdJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiSlurmdbdJobsResp` + """ + model = V0042OpenapiSlurmdbdJobsResp() + if include_optional: + return V0042OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0/0/42_job.v0.0.42_job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_42_job_array.v0_0_42_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_42_job_time.v0_0_42_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = , + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], ), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_42_job_het.v0_0_42_job_het( + job_id = 56, + job_offset = , ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = , + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_42_job_required.v0_0_42_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = , ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation( + name = '', ), + script = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_42_job_state.v0_0_42_job_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/42_step.v0.0.42_step( + nodes = slurmrest_python.models.v0_0_42_step_nodes.v0_0_42_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_42_step_cpu.v0_0_42_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_42_step_cpu_requested_frequency.v0_0_42_step_CPU_requested_frequency( + min = , ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_42_step_statistics.v0_0_42_step_statistics( + energy = slurmrest_python.models.v0_0_42_step_statistics_energy.v0_0_42_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_42_step_tres.v0_0_42_step_tres( + requested = slurmrest_python.models.v0_0_42_step_tres_requested.v0_0_42_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_42_job_tres.v0_0_42_job_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/42_wckey_tag_struct.v0.0.42_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0/0/42_job.v0.0.42_job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_42_job_array.v0_0_42_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_42_job_time.v0_0_42_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = , + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], ), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_42_job_het.v0_0_42_job_het( + job_id = 56, + job_offset = , ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = , + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_42_job_required.v0_0_42_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = , ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_reservation( + name = '', ), + script = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_42_job_state.v0_0_42_job_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/42_step.v0.0.42_step( + nodes = slurmrest_python.models.v0_0_42_step_nodes.v0_0_42_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_42_step_cpu.v0_0_42_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_42_step_cpu_requested_frequency.v0_0_42_step_CPU_requested_frequency( + min = , ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_42_step_statistics.v0_0_42_step_statistics( + energy = slurmrest_python.models.v0_0_42_step_statistics_energy.v0_0_42_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_42_step_tres.v0_0_42_step_tres( + requested = slurmrest_python.models.v0_0_42_step_tres_requested.v0_0_42_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_42_job_tres.v0_0_42_job_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/42_wckey_tag_struct.v0.0.42_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + ) + """ + + def testV0042OpenapiSlurmdbdJobsResp(self): + """Test V0042OpenapiSlurmdbdJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_slurmdbd_ping_resp.py b/test/test_v0042_openapi_slurmdbd_ping_resp.py new file mode 100644 index 0000000..8fbfef5 --- /dev/null +++ b/test/test_v0042_openapi_slurmdbd_ping_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_slurmdbd_ping_resp import V0042OpenapiSlurmdbdPingResp + +class TestV0042OpenapiSlurmdbdPingResp(unittest.TestCase): + """V0042OpenapiSlurmdbdPingResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiSlurmdbdPingResp: + """Test V0042OpenapiSlurmdbdPingResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiSlurmdbdPingResp` + """ + model = V0042OpenapiSlurmdbdPingResp() + if include_optional: + return V0042OpenapiSlurmdbdPingResp( + pings = [ + slurmrest_python.models.v0/0/42_slurmdbd_ping.v0.0.42_slurmdbd_ping( + hostname = '', + responding = True, + latency = 56, + primary = True, ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiSlurmdbdPingResp( + pings = [ + slurmrest_python.models.v0/0/42_slurmdbd_ping.v0.0.42_slurmdbd_ping( + hostname = '', + responding = True, + latency = 56, + primary = True, ) + ], + ) + """ + + def testV0042OpenapiSlurmdbdPingResp(self): + """Test V0042OpenapiSlurmdbdPingResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_slurmdbd_qos_removed_resp.py b/test/test_v0042_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..eb39d3e --- /dev/null +++ b/test/test_v0042_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_removed_resp import V0042OpenapiSlurmdbdQosRemovedResp + +class TestV0042OpenapiSlurmdbdQosRemovedResp(unittest.TestCase): + """V0042OpenapiSlurmdbdQosRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiSlurmdbdQosRemovedResp: + """Test V0042OpenapiSlurmdbdQosRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiSlurmdbdQosRemovedResp` + """ + model = V0042OpenapiSlurmdbdQosRemovedResp() + if include_optional: + return V0042OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + ) + """ + + def testV0042OpenapiSlurmdbdQosRemovedResp(self): + """Test V0042OpenapiSlurmdbdQosRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_slurmdbd_qos_resp.py b/test/test_v0042_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..62904e4 --- /dev/null +++ b/test/test_v0042_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_slurmdbd_qos_resp import V0042OpenapiSlurmdbdQosResp + +class TestV0042OpenapiSlurmdbdQosResp(unittest.TestCase): + """V0042OpenapiSlurmdbdQosResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiSlurmdbdQosResp: + """Test V0042OpenapiSlurmdbdQosResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiSlurmdbdQosResp` + """ + model = V0042OpenapiSlurmdbdQosResp() + if include_optional: + return V0042OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0/0/42_qos.v0.0.42_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_42_qos_limits.v0_0_42_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_42_qos_limits_max.v0_0_42_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_active_jobs.v0_0_42_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs.v0_0_42_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_42_qos_limits_max_tres.v0_0_42_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes.v0_0_42_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock.v0_0_42_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_42_qos_limits_min.v0_0_42_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_42_qos_preempt.v0_0_42_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0/0/42_qos.v0.0.42_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_42_qos_limits.v0_0_42_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_42_qos_limits_max.v0_0_42_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_active_jobs.v0_0_42_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs.v0_0_42_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_42_qos_limits_max_tres.v0_0_42_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes.v0_0_42_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock.v0_0_42_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_42_qos_limits_min.v0_0_42_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_42_qos_preempt.v0_0_42_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + ) + """ + + def testV0042OpenapiSlurmdbdQosResp(self): + """Test V0042OpenapiSlurmdbdQosResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_slurmdbd_stats_resp.py b/test/test_v0042_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..5d1d64f --- /dev/null +++ b/test/test_v0042_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_slurmdbd_stats_resp import V0042OpenapiSlurmdbdStatsResp + +class TestV0042OpenapiSlurmdbdStatsResp(unittest.TestCase): + """V0042OpenapiSlurmdbdStatsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiSlurmdbdStatsResp: + """Test V0042OpenapiSlurmdbdStatsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiSlurmdbdStatsResp` + """ + model = V0042OpenapiSlurmdbdStatsResp() + if include_optional: + return V0042OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0/0/42_stats_rec.v0.0.42_stats_rec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/42_rollup_stats.v0.0.42_rollup_stats( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/42_stats_rpc.v0.0.42_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/42_stats_user.v0.0.42_stats_user( + user = '', + count = 56, ) + ], ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0/0/42_stats_rec.v0.0.42_stats_rec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/42_rollup_stats.v0.0.42_rollup_stats( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/42_stats_rpc.v0.0.42_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/42_stats_user.v0.0.42_stats_user( + user = '', + count = 56, ) + ], ), + ) + """ + + def testV0042OpenapiSlurmdbdStatsResp(self): + """Test V0042OpenapiSlurmdbdStatsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_tres_resp.py b/test/test_v0042_openapi_tres_resp.py new file mode 100644 index 0000000..3c4a56e --- /dev/null +++ b/test/test_v0042_openapi_tres_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_tres_resp import V0042OpenapiTresResp + +class TestV0042OpenapiTresResp(unittest.TestCase): + """V0042OpenapiTresResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiTresResp: + """Test V0042OpenapiTresResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiTresResp` + """ + model = V0042OpenapiTresResp() + if include_optional: + return V0042OpenapiTresResp( + tres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiTresResp( + tres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + ) + """ + + def testV0042OpenapiTresResp(self): + """Test V0042OpenapiTresResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_users_add_cond_resp.py b/test/test_v0042_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..a049a51 --- /dev/null +++ b/test/test_v0042_openapi_users_add_cond_resp.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_users_add_cond_resp import V0042OpenapiUsersAddCondResp + +class TestV0042OpenapiUsersAddCondResp(unittest.TestCase): + """V0042OpenapiUsersAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiUsersAddCondResp: + """Test V0042OpenapiUsersAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiUsersAddCondResp` + """ + model = V0042OpenapiUsersAddCondResp() + if include_optional: + return V0042OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0/0/42_users_add_cond.v0.0.42_users_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/42_assoc_rec_set.v0.0.42_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = , + users = , + wckeys = , ), + user = slurmrest_python.models.v0/0/42_user_short.v0.0.42_user_short( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '', ), + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0/0/42_users_add_cond.v0.0.42_users_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/42_assoc_rec_set.v0.0.42_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = , + users = , + wckeys = , ), + user = slurmrest_python.models.v0/0/42_user_short.v0.0.42_user_short( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '', ), + ) + """ + + def testV0042OpenapiUsersAddCondResp(self): + """Test V0042OpenapiUsersAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_users_add_cond_resp_str.py b/test/test_v0042_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..383dc38 --- /dev/null +++ b/test/test_v0042_openapi_users_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_users_add_cond_resp_str import V0042OpenapiUsersAddCondRespStr + +class TestV0042OpenapiUsersAddCondRespStr(unittest.TestCase): + """V0042OpenapiUsersAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiUsersAddCondRespStr: + """Test V0042OpenapiUsersAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiUsersAddCondRespStr` + """ + model = V0042OpenapiUsersAddCondRespStr() + if include_optional: + return V0042OpenapiUsersAddCondRespStr( + added_users = '', + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiUsersAddCondRespStr( + added_users = '', + ) + """ + + def testV0042OpenapiUsersAddCondRespStr(self): + """Test V0042OpenapiUsersAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_users_resp.py b/test/test_v0042_openapi_users_resp.py new file mode 100644 index 0000000..3b711b8 --- /dev/null +++ b/test/test_v0042_openapi_users_resp.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_users_resp import V0042OpenapiUsersResp + +class TestV0042OpenapiUsersResp(unittest.TestCase): + """V0042OpenapiUsersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiUsersResp: + """Test V0042OpenapiUsersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiUsersResp` + """ + model = V0042OpenapiUsersResp() + if include_optional: + return V0042OpenapiUsersResp( + users = [ + slurmrest_python.models.v0/0/42_user.v0.0.42_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/42_wckey.v0.0.42_wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiUsersResp( + users = [ + slurmrest_python.models.v0/0/42_user.v0.0.42_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/42_wckey.v0.0.42_wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], ) + ], + ) + """ + + def testV0042OpenapiUsersResp(self): + """Test V0042OpenapiUsersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_warning.py b/test/test_v0042_openapi_warning.py new file mode 100644 index 0000000..c346a24 --- /dev/null +++ b/test/test_v0042_openapi_warning.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_warning import V0042OpenapiWarning + +class TestV0042OpenapiWarning(unittest.TestCase): + """V0042OpenapiWarning unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiWarning: + """Test V0042OpenapiWarning + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiWarning` + """ + model = V0042OpenapiWarning() + if include_optional: + return V0042OpenapiWarning( + description = '', + source = '' + ) + else: + return V0042OpenapiWarning( + ) + """ + + def testV0042OpenapiWarning(self): + """Test V0042OpenapiWarning""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_wckey_removed_resp.py b/test/test_v0042_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..b33d1d7 --- /dev/null +++ b/test/test_v0042_openapi_wckey_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_wckey_removed_resp import V0042OpenapiWckeyRemovedResp + +class TestV0042OpenapiWckeyRemovedResp(unittest.TestCase): + """V0042OpenapiWckeyRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiWckeyRemovedResp: + """Test V0042OpenapiWckeyRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiWckeyRemovedResp` + """ + model = V0042OpenapiWckeyRemovedResp() + if include_optional: + return V0042OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + ) + """ + + def testV0042OpenapiWckeyRemovedResp(self): + """Test V0042OpenapiWckeyRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_openapi_wckey_resp.py b/test/test_v0042_openapi_wckey_resp.py new file mode 100644 index 0000000..47b8eab --- /dev/null +++ b/test/test_v0042_openapi_wckey_resp.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_openapi_wckey_resp import V0042OpenapiWckeyResp + +class TestV0042OpenapiWckeyResp(unittest.TestCase): + """V0042OpenapiWckeyResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042OpenapiWckeyResp: + """Test V0042OpenapiWckeyResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042OpenapiWckeyResp` + """ + model = V0042OpenapiWckeyResp() + if include_optional: + return V0042OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0/0/42_wckey.v0.0.42_wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0/0/42_openapi_meta.v0.0.42_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/42_openapi_error.v0.0.42_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/42_openapi_warning.v0.0.42_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0042OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0/0/42_wckey.v0.0.42_wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0042OpenapiWckeyResp(self): + """Test V0042OpenapiWckeyResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_part_prio.py b/test/test_v0042_part_prio.py new file mode 100644 index 0000000..8d68777 --- /dev/null +++ b/test/test_v0042_part_prio.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_part_prio import V0042PartPrio + +class TestV0042PartPrio(unittest.TestCase): + """V0042PartPrio unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042PartPrio: + """Test V0042PartPrio + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042PartPrio` + """ + model = V0042PartPrio() + if include_optional: + return V0042PartPrio( + partition = '', + priority = 56 + ) + else: + return V0042PartPrio( + ) + """ + + def testV0042PartPrio(self): + """Test V0042PartPrio""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_partition_info.py b/test/test_v0042_partition_info.py new file mode 100644 index 0000000..f103729 --- /dev/null +++ b/test/test_v0042_partition_info.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_partition_info import V0042PartitionInfo + +class TestV0042PartitionInfo(unittest.TestCase): + """V0042PartitionInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042PartitionInfo: + """Test V0042PartitionInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042PartitionInfo` + """ + model = V0042PartitionInfo() + if include_optional: + return V0042PartitionInfo( + nodes = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_nodes.v0_0_41_openapi_partition_resp_partitions_inner_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_accounts.v0_0_41_openapi_partition_resp_partitions_inner_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_groups.v0_0_41_openapi_partition_resp_partitions_inner_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_qos.v0_0_41_openapi_partition_resp_partitions_inner_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_tres.v0_0_41_openapi_partition_resp_partitions_inner_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_cpus.v0_0_41_openapi_partition_resp_partitions_inner_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_42_partition_info_defaults.v0_0_42_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_42_partition_info_maximums.v0_0_42_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nodes = , + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_42_partition_info_maximums_oversubscribe.v0_0_42_partition_info_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = , + over_time_limit = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_minimums.v0_0_41_openapi_partition_resp_partitions_inner_minimums( + nodes = 56, ), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_priority.v0_0_41_openapi_partition_resp_partitions_inner_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_42_partition_info_timeouts.v0_0_42_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + partition = slurmrest_python.models.v0_0_42_partition_info_partition.v0_0_42_partition_info_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042PartitionInfo( + ) + """ + + def testV0042PartitionInfo(self): + """Test V0042PartitionInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_partition_info_defaults.py b/test/test_v0042_partition_info_defaults.py new file mode 100644 index 0000000..7221d28 --- /dev/null +++ b/test/test_v0042_partition_info_defaults.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_partition_info_defaults import V0042PartitionInfoDefaults + +class TestV0042PartitionInfoDefaults(unittest.TestCase): + """V0042PartitionInfoDefaults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042PartitionInfoDefaults: + """Test V0042PartitionInfoDefaults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042PartitionInfoDefaults` + """ + model = V0042PartitionInfoDefaults() + if include_optional: + return V0042PartitionInfoDefaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '' + ) + else: + return V0042PartitionInfoDefaults( + ) + """ + + def testV0042PartitionInfoDefaults(self): + """Test V0042PartitionInfoDefaults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_partition_info_maximums.py b/test/test_v0042_partition_info_maximums.py new file mode 100644 index 0000000..62dd757 --- /dev/null +++ b/test/test_v0042_partition_info_maximums.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_partition_info_maximums import V0042PartitionInfoMaximums + +class TestV0042PartitionInfoMaximums(unittest.TestCase): + """V0042PartitionInfoMaximums unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042PartitionInfoMaximums: + """Test V0042PartitionInfoMaximums + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042PartitionInfoMaximums` + """ + model = V0042PartitionInfoMaximums() + if include_optional: + return V0042PartitionInfoMaximums( + cpus_per_node = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nodes = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_42_partition_info_maximums_oversubscribe.v0_0_42_partition_info_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + over_time_limit = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042PartitionInfoMaximums( + ) + """ + + def testV0042PartitionInfoMaximums(self): + """Test V0042PartitionInfoMaximums""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_partition_info_maximums_oversubscribe.py b/test/test_v0042_partition_info_maximums_oversubscribe.py new file mode 100644 index 0000000..6c633dc --- /dev/null +++ b/test/test_v0042_partition_info_maximums_oversubscribe.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_partition_info_maximums_oversubscribe import V0042PartitionInfoMaximumsOversubscribe + +class TestV0042PartitionInfoMaximumsOversubscribe(unittest.TestCase): + """V0042PartitionInfoMaximumsOversubscribe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042PartitionInfoMaximumsOversubscribe: + """Test V0042PartitionInfoMaximumsOversubscribe + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042PartitionInfoMaximumsOversubscribe` + """ + model = V0042PartitionInfoMaximumsOversubscribe() + if include_optional: + return V0042PartitionInfoMaximumsOversubscribe( + jobs = 56, + flags = [ + 'force' + ] + ) + else: + return V0042PartitionInfoMaximumsOversubscribe( + ) + """ + + def testV0042PartitionInfoMaximumsOversubscribe(self): + """Test V0042PartitionInfoMaximumsOversubscribe""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_partition_info_partition.py b/test/test_v0042_partition_info_partition.py new file mode 100644 index 0000000..a96caf3 --- /dev/null +++ b/test/test_v0042_partition_info_partition.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_partition_info_partition import V0042PartitionInfoPartition + +class TestV0042PartitionInfoPartition(unittest.TestCase): + """V0042PartitionInfoPartition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042PartitionInfoPartition: + """Test V0042PartitionInfoPartition + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042PartitionInfoPartition` + """ + model = V0042PartitionInfoPartition() + if include_optional: + return V0042PartitionInfoPartition( + state = [ + 'INACTIVE' + ] + ) + else: + return V0042PartitionInfoPartition( + ) + """ + + def testV0042PartitionInfoPartition(self): + """Test V0042PartitionInfoPartition""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_partition_info_timeouts.py b/test/test_v0042_partition_info_timeouts.py new file mode 100644 index 0000000..a1a31a7 --- /dev/null +++ b/test/test_v0042_partition_info_timeouts.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_partition_info_timeouts import V0042PartitionInfoTimeouts + +class TestV0042PartitionInfoTimeouts(unittest.TestCase): + """V0042PartitionInfoTimeouts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042PartitionInfoTimeouts: + """Test V0042PartitionInfoTimeouts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042PartitionInfoTimeouts` + """ + model = V0042PartitionInfoTimeouts() + if include_optional: + return V0042PartitionInfoTimeouts( + resume = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042PartitionInfoTimeouts( + ) + """ + + def testV0042PartitionInfoTimeouts(self): + """Test V0042PartitionInfoTimeouts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_process_exit_code_verbose.py b/test/test_v0042_process_exit_code_verbose.py new file mode 100644 index 0000000..c120110 --- /dev/null +++ b/test/test_v0042_process_exit_code_verbose.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_process_exit_code_verbose import V0042ProcessExitCodeVerbose + +class TestV0042ProcessExitCodeVerbose(unittest.TestCase): + """V0042ProcessExitCodeVerbose unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ProcessExitCodeVerbose: + """Test V0042ProcessExitCodeVerbose + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ProcessExitCodeVerbose` + """ + model = V0042ProcessExitCodeVerbose() + if include_optional: + return V0042ProcessExitCodeVerbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ) + ) + else: + return V0042ProcessExitCodeVerbose( + ) + """ + + def testV0042ProcessExitCodeVerbose(self): + """Test V0042ProcessExitCodeVerbose""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_process_exit_code_verbose_signal.py b/test/test_v0042_process_exit_code_verbose_signal.py new file mode 100644 index 0000000..d495fb9 --- /dev/null +++ b/test/test_v0042_process_exit_code_verbose_signal.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_process_exit_code_verbose_signal import V0042ProcessExitCodeVerboseSignal + +class TestV0042ProcessExitCodeVerboseSignal(unittest.TestCase): + """V0042ProcessExitCodeVerboseSignal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ProcessExitCodeVerboseSignal: + """Test V0042ProcessExitCodeVerboseSignal + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ProcessExitCodeVerboseSignal` + """ + model = V0042ProcessExitCodeVerboseSignal() + if include_optional: + return V0042ProcessExitCodeVerboseSignal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '' + ) + else: + return V0042ProcessExitCodeVerboseSignal( + ) + """ + + def testV0042ProcessExitCodeVerboseSignal(self): + """Test V0042ProcessExitCodeVerboseSignal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos.py b/test/test_v0042_qos.py new file mode 100644 index 0000000..eb3f475 --- /dev/null +++ b/test/test_v0042_qos.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos import V0042Qos + +class TestV0042Qos(unittest.TestCase): + """V0042Qos unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Qos: + """Test V0042Qos + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Qos` + """ + model = V0042Qos() + if include_optional: + return V0042Qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_42_qos_limits.v0_0_42_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_42_qos_limits_max.v0_0_42_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_active_jobs.v0_0_42_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs.v0_0_42_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_42_qos_limits_max_tres.v0_0_42_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes.v0_0_42_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock.v0_0_42_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_42_qos_limits_min.v0_0_42_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_42_qos_preempt.v0_0_42_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + priority = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + usage_factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ) + ) + else: + return V0042Qos( + ) + """ + + def testV0042Qos(self): + """Test V0042Qos""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits.py b/test/test_v0042_qos_limits.py new file mode 100644 index 0000000..346fc41 --- /dev/null +++ b/test/test_v0042_qos_limits.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits import V0042QosLimits + +class TestV0042QosLimits(unittest.TestCase): + """V0042QosLimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimits: + """Test V0042QosLimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimits` + """ + model = V0042QosLimits() + if include_optional: + return V0042QosLimits( + grace_time = 56, + max = slurmrest_python.models.v0_0_42_qos_limits_max.v0_0_42_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_active_jobs.v0_0_42_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs.v0_0_42_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_42_qos_limits_max_tres.v0_0_42_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes.v0_0_42_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, ) + ], ), ), + wall_clock = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock.v0_0_42_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_42_qos_limits_min.v0_0_42_qos_limits_min( + priority_threshold = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_42_qos_limits_min_tres.v0_0_42_qos_limits_min_tres( + per = slurmrest_python.models.v0_0_42_qos_limits_min_tres_per.v0_0_42_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), ) + ) + else: + return V0042QosLimits( + ) + """ + + def testV0042QosLimits(self): + """Test V0042QosLimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max.py b/test/test_v0042_qos_limits_max.py new file mode 100644 index 0000000..619e72d --- /dev/null +++ b/test/test_v0042_qos_limits_max.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max import V0042QosLimitsMax + +class TestV0042QosLimitsMax(unittest.TestCase): + """V0042QosLimitsMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMax: + """Test V0042QosLimitsMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMax` + """ + model = V0042QosLimitsMax() + if include_optional: + return V0042QosLimitsMax( + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_active_jobs.v0_0_42_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs.v0_0_42_qos_limits_max_jobs( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = , ), ), + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per(), ), + tres = slurmrest_python.models.v0_0_42_qos_limits_max_tres.v0_0_42_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes.v0_0_42_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes_per.v0_0_42_qos_limits_max_tres_minutes_per( + qos = , + job = , + account = , + user = , ), ), + per = slurmrest_python.models.v0_0_42_qos_limits_max_tres_per.v0_0_42_qos_limits_max_tres_per( + account = , + job = , + node = , + user = , ), ), + wall_clock = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock.v0_0_42_qos_limits_max_wall_clock( + per = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock_per.v0_0_42_qos_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + accruing = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0042QosLimitsMax( + ) + """ + + def testV0042QosLimitsMax(self): + """Test V0042QosLimitsMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_active_jobs.py b/test/test_v0042_qos_limits_max_active_jobs.py new file mode 100644 index 0000000..83d2e0a --- /dev/null +++ b/test/test_v0042_qos_limits_max_active_jobs.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_active_jobs import V0042QosLimitsMaxActiveJobs + +class TestV0042QosLimitsMaxActiveJobs(unittest.TestCase): + """V0042QosLimitsMaxActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxActiveJobs: + """Test V0042QosLimitsMaxActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxActiveJobs` + """ + model = V0042QosLimitsMaxActiveJobs() + if include_optional: + return V0042QosLimitsMaxActiveJobs( + accruing = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042QosLimitsMaxActiveJobs( + ) + """ + + def testV0042QosLimitsMaxActiveJobs(self): + """Test V0042QosLimitsMaxActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_jobs.py b/test/test_v0042_qos_limits_max_jobs.py new file mode 100644 index 0000000..47bdc08 --- /dev/null +++ b/test/test_v0042_qos_limits_max_jobs.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_jobs import V0042QosLimitsMaxJobs + +class TestV0042QosLimitsMaxJobs(unittest.TestCase): + """V0042QosLimitsMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxJobs: + """Test V0042QosLimitsMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxJobs` + """ + model = V0042QosLimitsMaxJobs() + if include_optional: + return V0042QosLimitsMaxJobs( + count = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + active_jobs = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs.v0_0_42_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0042QosLimitsMaxJobs( + ) + """ + + def testV0042QosLimitsMaxJobs(self): + """Test V0042QosLimitsMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_jobs_active_jobs.py b/test/test_v0042_qos_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..9e879df --- /dev/null +++ b/test/test_v0042_qos_limits_max_jobs_active_jobs.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs import V0042QosLimitsMaxJobsActiveJobs + +class TestV0042QosLimitsMaxJobsActiveJobs(unittest.TestCase): + """V0042QosLimitsMaxJobsActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxJobsActiveJobs: + """Test V0042QosLimitsMaxJobsActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxJobsActiveJobs` + """ + model = V0042QosLimitsMaxJobsActiveJobs() + if include_optional: + return V0042QosLimitsMaxJobsActiveJobs( + per = slurmrest_python.models.v0_0_42_qos_limits_max_jobs_active_jobs_per.v0_0_42_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0042QosLimitsMaxJobsActiveJobs( + ) + """ + + def testV0042QosLimitsMaxJobsActiveJobs(self): + """Test V0042QosLimitsMaxJobsActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_jobs_active_jobs_per.py b/test/test_v0042_qos_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..932c071 --- /dev/null +++ b/test/test_v0042_qos_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_jobs_active_jobs_per import V0042QosLimitsMaxJobsActiveJobsPer + +class TestV0042QosLimitsMaxJobsActiveJobsPer(unittest.TestCase): + """V0042QosLimitsMaxJobsActiveJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxJobsActiveJobsPer: + """Test V0042QosLimitsMaxJobsActiveJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxJobsActiveJobsPer` + """ + model = V0042QosLimitsMaxJobsActiveJobsPer() + if include_optional: + return V0042QosLimitsMaxJobsActiveJobsPer( + account = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042QosLimitsMaxJobsActiveJobsPer( + ) + """ + + def testV0042QosLimitsMaxJobsActiveJobsPer(self): + """Test V0042QosLimitsMaxJobsActiveJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_tres.py b/test/test_v0042_qos_limits_max_tres.py new file mode 100644 index 0000000..66c475e --- /dev/null +++ b/test/test_v0042_qos_limits_max_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_tres import V0042QosLimitsMaxTres + +class TestV0042QosLimitsMaxTres(unittest.TestCase): + """V0042QosLimitsMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxTres: + """Test V0042QosLimitsMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxTres` + """ + model = V0042QosLimitsMaxTres() + if include_optional: + return V0042QosLimitsMaxTres( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes.v0_0_42_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes_per.v0_0_42_qos_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = , + account = , + user = , ), ), + per = slurmrest_python.models.v0_0_42_qos_limits_max_tres_per.v0_0_42_qos_limits_max_tres_per( + account = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = , + user = , ) + ) + else: + return V0042QosLimitsMaxTres( + ) + """ + + def testV0042QosLimitsMaxTres(self): + """Test V0042QosLimitsMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_tres_minutes.py b/test/test_v0042_qos_limits_max_tres_minutes.py new file mode 100644 index 0000000..c757531 --- /dev/null +++ b/test/test_v0042_qos_limits_max_tres_minutes.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes import V0042QosLimitsMaxTresMinutes + +class TestV0042QosLimitsMaxTresMinutes(unittest.TestCase): + """V0042QosLimitsMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxTresMinutes: + """Test V0042QosLimitsMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxTresMinutes` + """ + model = V0042QosLimitsMaxTresMinutes() + if include_optional: + return V0042QosLimitsMaxTresMinutes( + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_42_qos_limits_max_tres_minutes_per.v0_0_42_qos_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = , + user = , ) + ) + else: + return V0042QosLimitsMaxTresMinutes( + ) + """ + + def testV0042QosLimitsMaxTresMinutes(self): + """Test V0042QosLimitsMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_tres_minutes_per.py b/test/test_v0042_qos_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..e5accb3 --- /dev/null +++ b/test/test_v0042_qos_limits_max_tres_minutes_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_tres_minutes_per import V0042QosLimitsMaxTresMinutesPer + +class TestV0042QosLimitsMaxTresMinutesPer(unittest.TestCase): + """V0042QosLimitsMaxTresMinutesPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxTresMinutesPer: + """Test V0042QosLimitsMaxTresMinutesPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxTresMinutesPer` + """ + model = V0042QosLimitsMaxTresMinutesPer() + if include_optional: + return V0042QosLimitsMaxTresMinutesPer( + qos = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042QosLimitsMaxTresMinutesPer( + ) + """ + + def testV0042QosLimitsMaxTresMinutesPer(self): + """Test V0042QosLimitsMaxTresMinutesPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_tres_per.py b/test/test_v0042_qos_limits_max_tres_per.py new file mode 100644 index 0000000..8d9fad0 --- /dev/null +++ b/test/test_v0042_qos_limits_max_tres_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_tres_per import V0042QosLimitsMaxTresPer + +class TestV0042QosLimitsMaxTresPer(unittest.TestCase): + """V0042QosLimitsMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxTresPer: + """Test V0042QosLimitsMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxTresPer` + """ + model = V0042QosLimitsMaxTresPer() + if include_optional: + return V0042QosLimitsMaxTresPer( + account = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042QosLimitsMaxTresPer( + ) + """ + + def testV0042QosLimitsMaxTresPer(self): + """Test V0042QosLimitsMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_wall_clock.py b/test/test_v0042_qos_limits_max_wall_clock.py new file mode 100644 index 0000000..e908160 --- /dev/null +++ b/test/test_v0042_qos_limits_max_wall_clock.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_wall_clock import V0042QosLimitsMaxWallClock + +class TestV0042QosLimitsMaxWallClock(unittest.TestCase): + """V0042QosLimitsMaxWallClock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxWallClock: + """Test V0042QosLimitsMaxWallClock + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxWallClock` + """ + model = V0042QosLimitsMaxWallClock() + if include_optional: + return V0042QosLimitsMaxWallClock( + per = slurmrest_python.models.v0_0_42_qos_limits_max_wall_clock_per.v0_0_42_qos_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0042QosLimitsMaxWallClock( + ) + """ + + def testV0042QosLimitsMaxWallClock(self): + """Test V0042QosLimitsMaxWallClock""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_max_wall_clock_per.py b/test/test_v0042_qos_limits_max_wall_clock_per.py new file mode 100644 index 0000000..94513fa --- /dev/null +++ b/test/test_v0042_qos_limits_max_wall_clock_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_max_wall_clock_per import V0042QosLimitsMaxWallClockPer + +class TestV0042QosLimitsMaxWallClockPer(unittest.TestCase): + """V0042QosLimitsMaxWallClockPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMaxWallClockPer: + """Test V0042QosLimitsMaxWallClockPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMaxWallClockPer` + """ + model = V0042QosLimitsMaxWallClockPer() + if include_optional: + return V0042QosLimitsMaxWallClockPer( + qos = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042QosLimitsMaxWallClockPer( + ) + """ + + def testV0042QosLimitsMaxWallClockPer(self): + """Test V0042QosLimitsMaxWallClockPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_min.py b/test/test_v0042_qos_limits_min.py new file mode 100644 index 0000000..4493778 --- /dev/null +++ b/test/test_v0042_qos_limits_min.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_min import V0042QosLimitsMin + +class TestV0042QosLimitsMin(unittest.TestCase): + """V0042QosLimitsMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMin: + """Test V0042QosLimitsMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMin` + """ + model = V0042QosLimitsMin() + if include_optional: + return V0042QosLimitsMin( + priority_threshold = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_42_qos_limits_min_tres.v0_0_42_qos_limits_min_tres( + per = slurmrest_python.models.v0_0_42_qos_limits_min_tres_per.v0_0_42_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ) + ) + else: + return V0042QosLimitsMin( + ) + """ + + def testV0042QosLimitsMin(self): + """Test V0042QosLimitsMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_min_tres.py b/test/test_v0042_qos_limits_min_tres.py new file mode 100644 index 0000000..c1935d2 --- /dev/null +++ b/test/test_v0042_qos_limits_min_tres.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_min_tres import V0042QosLimitsMinTres + +class TestV0042QosLimitsMinTres(unittest.TestCase): + """V0042QosLimitsMinTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMinTres: + """Test V0042QosLimitsMinTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMinTres` + """ + model = V0042QosLimitsMinTres() + if include_optional: + return V0042QosLimitsMinTres( + per = slurmrest_python.models.v0_0_42_qos_limits_min_tres_per.v0_0_42_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0042QosLimitsMinTres( + ) + """ + + def testV0042QosLimitsMinTres(self): + """Test V0042QosLimitsMinTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_limits_min_tres_per.py b/test/test_v0042_qos_limits_min_tres_per.py new file mode 100644 index 0000000..1296937 --- /dev/null +++ b/test/test_v0042_qos_limits_min_tres_per.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_limits_min_tres_per import V0042QosLimitsMinTresPer + +class TestV0042QosLimitsMinTresPer(unittest.TestCase): + """V0042QosLimitsMinTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosLimitsMinTresPer: + """Test V0042QosLimitsMinTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosLimitsMinTresPer` + """ + model = V0042QosLimitsMinTresPer() + if include_optional: + return V0042QosLimitsMinTresPer( + job = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042QosLimitsMinTresPer( + ) + """ + + def testV0042QosLimitsMinTresPer(self): + """Test V0042QosLimitsMinTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_qos_preempt.py b/test/test_v0042_qos_preempt.py new file mode 100644 index 0000000..8471230 --- /dev/null +++ b/test/test_v0042_qos_preempt.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_qos_preempt import V0042QosPreempt + +class TestV0042QosPreempt(unittest.TestCase): + """V0042QosPreempt unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042QosPreempt: + """Test V0042QosPreempt + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042QosPreempt` + """ + model = V0042QosPreempt() + if include_optional: + return V0042QosPreempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042QosPreempt( + ) + """ + + def testV0042QosPreempt(self): + """Test V0042QosPreempt""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_reservation_core_spec.py b/test/test_v0042_reservation_core_spec.py new file mode 100644 index 0000000..287ebdd --- /dev/null +++ b/test/test_v0042_reservation_core_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_reservation_core_spec import V0042ReservationCoreSpec + +class TestV0042ReservationCoreSpec(unittest.TestCase): + """V0042ReservationCoreSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ReservationCoreSpec: + """Test V0042ReservationCoreSpec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ReservationCoreSpec` + """ + model = V0042ReservationCoreSpec() + if include_optional: + return V0042ReservationCoreSpec( + node = '', + core = '' + ) + else: + return V0042ReservationCoreSpec( + ) + """ + + def testV0042ReservationCoreSpec(self): + """Test V0042ReservationCoreSpec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_reservation_info.py b/test/test_v0042_reservation_info.py new file mode 100644 index 0000000..868cebc --- /dev/null +++ b/test/test_v0042_reservation_info.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_reservation_info import V0042ReservationInfo + +class TestV0042ReservationInfo(unittest.TestCase): + """V0042ReservationInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ReservationInfo: + """Test V0042ReservationInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ReservationInfo` + """ + model = V0042ReservationInfo() + if include_optional: + return V0042ReservationInfo( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/42_reservation_core_spec.v0.0.42_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_42_reservation_info_purge_completed.v0_0_42_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '' + ) + else: + return V0042ReservationInfo( + ) + """ + + def testV0042ReservationInfo(self): + """Test V0042ReservationInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_reservation_info_purge_completed.py b/test/test_v0042_reservation_info_purge_completed.py new file mode 100644 index 0000000..3215a79 --- /dev/null +++ b/test/test_v0042_reservation_info_purge_completed.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_reservation_info_purge_completed import V0042ReservationInfoPurgeCompleted + +class TestV0042ReservationInfoPurgeCompleted(unittest.TestCase): + """V0042ReservationInfoPurgeCompleted unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ReservationInfoPurgeCompleted: + """Test V0042ReservationInfoPurgeCompleted + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ReservationInfoPurgeCompleted` + """ + model = V0042ReservationInfoPurgeCompleted() + if include_optional: + return V0042ReservationInfoPurgeCompleted( + time = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042ReservationInfoPurgeCompleted( + ) + """ + + def testV0042ReservationInfoPurgeCompleted(self): + """Test V0042ReservationInfoPurgeCompleted""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_rollup_stats.py b/test/test_v0042_rollup_stats.py new file mode 100644 index 0000000..c7e5d11 --- /dev/null +++ b/test/test_v0042_rollup_stats.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_rollup_stats import V0042RollupStats + +class TestV0042RollupStats(unittest.TestCase): + """V0042RollupStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042RollupStats: + """Test V0042RollupStats + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042RollupStats` + """ + model = V0042RollupStats() + if include_optional: + return V0042RollupStats( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration( + last = 56, + max = 56, + time = 56, ), ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration( + last = 56, + max = 56, + time = 56, ), ) + ) + else: + return V0042RollupStats( + ) + """ + + def testV0042RollupStats(self): + """Test V0042RollupStats""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_schedule_exit_fields.py b/test/test_v0042_schedule_exit_fields.py new file mode 100644 index 0000000..f47afec --- /dev/null +++ b/test/test_v0042_schedule_exit_fields.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_schedule_exit_fields import V0042ScheduleExitFields + +class TestV0042ScheduleExitFields(unittest.TestCase): + """V0042ScheduleExitFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042ScheduleExitFields: + """Test V0042ScheduleExitFields + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042ScheduleExitFields` + """ + model = V0042ScheduleExitFields() + if include_optional: + return V0042ScheduleExitFields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56 + ) + else: + return V0042ScheduleExitFields( + ) + """ + + def testV0042ScheduleExitFields(self): + """Test V0042ScheduleExitFields""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_shares_float128_tres.py b/test/test_v0042_shares_float128_tres.py new file mode 100644 index 0000000..c4daafb --- /dev/null +++ b/test/test_v0042_shares_float128_tres.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_shares_float128_tres import V0042SharesFloat128Tres + +class TestV0042SharesFloat128Tres(unittest.TestCase): + """V0042SharesFloat128Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042SharesFloat128Tres: + """Test V0042SharesFloat128Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042SharesFloat128Tres` + """ + model = V0042SharesFloat128Tres() + if include_optional: + return V0042SharesFloat128Tres( + name = '', + value = 1.337 + ) + else: + return V0042SharesFloat128Tres( + ) + """ + + def testV0042SharesFloat128Tres(self): + """Test V0042SharesFloat128Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_shares_resp_msg.py b/test/test_v0042_shares_resp_msg.py new file mode 100644 index 0000000..8e98426 --- /dev/null +++ b/test/test_v0042_shares_resp_msg.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_shares_resp_msg import V0042SharesRespMsg + +class TestV0042SharesRespMsg(unittest.TestCase): + """V0042SharesRespMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042SharesRespMsg: + """Test V0042SharesRespMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042SharesRespMsg` + """ + model = V0042SharesRespMsg() + if include_optional: + return V0042SharesRespMsg( + shares = [ + slurmrest_python.models.v0/0/42_assoc_shares_obj_wrap.v0.0.42_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + shares = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_tres.v0_0_42_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/42_shares_uint64_tres.v0.0.42_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/42_shares_float128_tres.v0.0.42_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/42_float64_no_val_struct.v0.0.42_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_42_assoc_shares_obj_wrap_fairshare.v0_0_42_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56 + ) + else: + return V0042SharesRespMsg( + ) + """ + + def testV0042SharesRespMsg(self): + """Test V0042SharesRespMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_shares_uint64_tres.py b/test/test_v0042_shares_uint64_tres.py new file mode 100644 index 0000000..e5a78a6 --- /dev/null +++ b/test/test_v0042_shares_uint64_tres.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_shares_uint64_tres import V0042SharesUint64Tres + +class TestV0042SharesUint64Tres(unittest.TestCase): + """V0042SharesUint64Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042SharesUint64Tres: + """Test V0042SharesUint64Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042SharesUint64Tres` + """ + model = V0042SharesUint64Tres() + if include_optional: + return V0042SharesUint64Tres( + name = '', + value = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042SharesUint64Tres( + ) + """ + + def testV0042SharesUint64Tres(self): + """Test V0042SharesUint64Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_slurmdbd_ping.py b/test/test_v0042_slurmdbd_ping.py new file mode 100644 index 0000000..97b2322 --- /dev/null +++ b/test/test_v0042_slurmdbd_ping.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_slurmdbd_ping import V0042SlurmdbdPing + +class TestV0042SlurmdbdPing(unittest.TestCase): + """V0042SlurmdbdPing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042SlurmdbdPing: + """Test V0042SlurmdbdPing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042SlurmdbdPing` + """ + model = V0042SlurmdbdPing() + if include_optional: + return V0042SlurmdbdPing( + hostname = '', + responding = True, + latency = 56, + primary = True + ) + else: + return V0042SlurmdbdPing( + hostname = '', + responding = True, + latency = 56, + primary = True, + ) + """ + + def testV0042SlurmdbdPing(self): + """Test V0042SlurmdbdPing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_msg.py b/test/test_v0042_stats_msg.py new file mode 100644 index 0000000..03c7b09 --- /dev/null +++ b/test/test_v0042_stats_msg.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_msg import V0042StatsMsg + +class TestV0042StatsMsg(unittest.TestCase): + """V0042StatsMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsMsg: + """Test V0042StatsMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsMsg` + """ + model = V0042StatsMsg() + if include_optional: + return V0042StatsMsg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/42_schedule_exit_fields.v0.0.42_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/42_bf_exit_fields.v0.0.42_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_type.v0.0.42_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_user.v0.0.42_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_queue.v0.0.42_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/42_stats_msg_rpc_dump.v0.0.42_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ] + ) + else: + return V0042StatsMsg( + ) + """ + + def testV0042StatsMsg(self): + """Test V0042StatsMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_msg_rpc_dump.py b/test/test_v0042_stats_msg_rpc_dump.py new file mode 100644 index 0000000..0154a0b --- /dev/null +++ b/test/test_v0042_stats_msg_rpc_dump.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_msg_rpc_dump import V0042StatsMsgRpcDump + +class TestV0042StatsMsgRpcDump(unittest.TestCase): + """V0042StatsMsgRpcDump unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsMsgRpcDump: + """Test V0042StatsMsgRpcDump + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsMsgRpcDump` + """ + model = V0042StatsMsgRpcDump() + if include_optional: + return V0042StatsMsgRpcDump( + type_id = 56, + message_type = '', + count = [ + '' + ] + ) + else: + return V0042StatsMsgRpcDump( + type_id = 56, + message_type = '', + count = [ + '' + ], + ) + """ + + def testV0042StatsMsgRpcDump(self): + """Test V0042StatsMsgRpcDump""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_msg_rpc_queue.py b/test/test_v0042_stats_msg_rpc_queue.py new file mode 100644 index 0000000..7b55dc7 --- /dev/null +++ b/test/test_v0042_stats_msg_rpc_queue.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_msg_rpc_queue import V0042StatsMsgRpcQueue + +class TestV0042StatsMsgRpcQueue(unittest.TestCase): + """V0042StatsMsgRpcQueue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsMsgRpcQueue: + """Test V0042StatsMsgRpcQueue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsMsgRpcQueue` + """ + model = V0042StatsMsgRpcQueue() + if include_optional: + return V0042StatsMsgRpcQueue( + type_id = 56, + message_type = '', + count = 56 + ) + else: + return V0042StatsMsgRpcQueue( + type_id = 56, + message_type = '', + count = 56, + ) + """ + + def testV0042StatsMsgRpcQueue(self): + """Test V0042StatsMsgRpcQueue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_msg_rpc_type.py b/test/test_v0042_stats_msg_rpc_type.py new file mode 100644 index 0000000..83d790e --- /dev/null +++ b/test/test_v0042_stats_msg_rpc_type.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_msg_rpc_type import V0042StatsMsgRpcType + +class TestV0042StatsMsgRpcType(unittest.TestCase): + """V0042StatsMsgRpcType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsMsgRpcType: + """Test V0042StatsMsgRpcType + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsMsgRpcType` + """ + model = V0042StatsMsgRpcType() + if include_optional: + return V0042StatsMsgRpcType( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042StatsMsgRpcType( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042StatsMsgRpcType(self): + """Test V0042StatsMsgRpcType""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_msg_rpc_user.py b/test/test_v0042_stats_msg_rpc_user.py new file mode 100644 index 0000000..3bea236 --- /dev/null +++ b/test/test_v0042_stats_msg_rpc_user.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_msg_rpc_user import V0042StatsMsgRpcUser + +class TestV0042StatsMsgRpcUser(unittest.TestCase): + """V0042StatsMsgRpcUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsMsgRpcUser: + """Test V0042StatsMsgRpcUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsMsgRpcUser` + """ + model = V0042StatsMsgRpcUser() + if include_optional: + return V0042StatsMsgRpcUser( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042StatsMsgRpcUser( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0042StatsMsgRpcUser(self): + """Test V0042StatsMsgRpcUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_rec.py b/test/test_v0042_stats_rec.py new file mode 100644 index 0000000..fac0c72 --- /dev/null +++ b/test/test_v0042_stats_rec.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_rec import V0042StatsRec + +class TestV0042StatsRec(unittest.TestCase): + """V0042StatsRec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsRec: + """Test V0042StatsRec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsRec` + """ + model = V0042StatsRec() + if include_optional: + return V0042StatsRec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/42_rollup_stats.v0.0.42_rollup_stats( + hourly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/42_stats_rpc.v0.0.42_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/42_stats_user.v0.0.42_stats_user( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ] + ) + else: + return V0042StatsRec( + ) + """ + + def testV0042StatsRec(self): + """Test V0042StatsRec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_rpc.py b/test/test_v0042_stats_rpc.py new file mode 100644 index 0000000..33fa6a3 --- /dev/null +++ b/test/test_v0042_stats_rpc.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_rpc import V0042StatsRpc + +class TestV0042StatsRpc(unittest.TestCase): + """V0042StatsRpc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsRpc: + """Test V0042StatsRpc + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsRpc` + """ + model = V0042StatsRpc() + if include_optional: + return V0042StatsRpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0042StatsRpc( + ) + """ + + def testV0042StatsRpc(self): + """Test V0042StatsRpc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_stats_user.py b/test/test_v0042_stats_user.py new file mode 100644 index 0000000..bcb67f8 --- /dev/null +++ b/test/test_v0042_stats_user.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_stats_user import V0042StatsUser + +class TestV0042StatsUser(unittest.TestCase): + """V0042StatsUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StatsUser: + """Test V0042StatsUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StatsUser` + """ + model = V0042StatsUser() + if include_optional: + return V0042StatsUser( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0042StatsUser( + ) + """ + + def testV0042StatsUser(self): + """Test V0042StatsUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step.py b/test/test_v0042_step.py new file mode 100644 index 0000000..5f9dc1d --- /dev/null +++ b/test/test_v0042_step.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step import V0042Step + +class TestV0042Step(unittest.TestCase): + """V0042Step unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Step: + """Test V0042Step + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Step` + """ + model = V0042Step() + if include_optional: + return V0042Step( + time = slurmrest_python.models.v0_0_42_step_time.v0_0_42_step_time( + elapsed = 56, + end = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/42_process_exit_code_verbose.v0.0.42_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_42_process_exit_code_verbose_signal.v0_0_42_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/42_uint16_no_val_struct.v0.0.42_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_42_step_nodes.v0_0_42_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_42_step_cpu.v0_0_42_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_42_step_cpu_requested_frequency.v0_0_42_step_CPU_requested_frequency( + min = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_42_step_statistics.v0_0_42_step_statistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_42_step_statistics_energy.v0_0_42_step_statistics_energy( + consumed = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + step = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_step( + id = '', + name = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_42_step_tres.v0_0_42_step_tres( + requested = slurmrest_python.models.v0_0_42_step_tres_requested.v0_0_42_step_tres_requested( + max = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_42_step_tres_consumed.v0_0_42_step_tres_consumed(), + allocated = , ) + ) + else: + return V0042Step( + ) + """ + + def testV0042Step(self): + """Test V0042Step""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_cpu.py b/test/test_v0042_step_cpu.py new file mode 100644 index 0000000..98f4781 --- /dev/null +++ b/test/test_v0042_step_cpu.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_cpu import V0042StepCPU + +class TestV0042StepCPU(unittest.TestCase): + """V0042StepCPU unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepCPU: + """Test V0042StepCPU + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepCPU` + """ + model = V0042StepCPU() + if include_optional: + return V0042StepCPU( + requested_frequency = slurmrest_python.models.v0_0_42_step_cpu_requested_frequency.v0_0_42_step_CPU_requested_frequency( + min = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + governor = '' + ) + else: + return V0042StepCPU( + ) + """ + + def testV0042StepCPU(self): + """Test V0042StepCPU""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_cpu_requested_frequency.py b/test/test_v0042_step_cpu_requested_frequency.py new file mode 100644 index 0000000..0f6b622 --- /dev/null +++ b/test/test_v0042_step_cpu_requested_frequency.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_cpu_requested_frequency import V0042StepCPURequestedFrequency + +class TestV0042StepCPURequestedFrequency(unittest.TestCase): + """V0042StepCPURequestedFrequency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepCPURequestedFrequency: + """Test V0042StepCPURequestedFrequency + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepCPURequestedFrequency` + """ + model = V0042StepCPURequestedFrequency() + if include_optional: + return V0042StepCPURequestedFrequency( + min = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042StepCPURequestedFrequency( + ) + """ + + def testV0042StepCPURequestedFrequency(self): + """Test V0042StepCPURequestedFrequency""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_nodes.py b/test/test_v0042_step_nodes.py new file mode 100644 index 0000000..d30462d --- /dev/null +++ b/test/test_v0042_step_nodes.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_nodes import V0042StepNodes + +class TestV0042StepNodes(unittest.TestCase): + """V0042StepNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepNodes: + """Test V0042StepNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepNodes` + """ + model = V0042StepNodes() + if include_optional: + return V0042StepNodes( + count = 56, + range = '', + list = [ + '' + ] + ) + else: + return V0042StepNodes( + ) + """ + + def testV0042StepNodes(self): + """Test V0042StepNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_statistics.py b/test/test_v0042_step_statistics.py new file mode 100644 index 0000000..d5b218b --- /dev/null +++ b/test/test_v0042_step_statistics.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_statistics import V0042StepStatistics + +class TestV0042StepStatistics(unittest.TestCase): + """V0042StepStatistics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepStatistics: + """Test V0042StepStatistics + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepStatistics` + """ + model = V0042StepStatistics() + if include_optional: + return V0042StepStatistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_42_step_statistics_energy.v0_0_42_step_statistics_energy( + consumed = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0042StepStatistics( + ) + """ + + def testV0042StepStatistics(self): + """Test V0042StepStatistics""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_statistics_energy.py b/test/test_v0042_step_statistics_energy.py new file mode 100644 index 0000000..5dd3749 --- /dev/null +++ b/test/test_v0042_step_statistics_energy.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_statistics_energy import V0042StepStatisticsEnergy + +class TestV0042StepStatisticsEnergy(unittest.TestCase): + """V0042StepStatisticsEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepStatisticsEnergy: + """Test V0042StepStatisticsEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepStatisticsEnergy` + """ + model = V0042StepStatisticsEnergy() + if include_optional: + return V0042StepStatisticsEnergy( + consumed = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042StepStatisticsEnergy( + ) + """ + + def testV0042StepStatisticsEnergy(self): + """Test V0042StepStatisticsEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_time.py b/test/test_v0042_step_time.py new file mode 100644 index 0000000..a91ae4b --- /dev/null +++ b/test/test_v0042_step_time.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_time import V0042StepTime + +class TestV0042StepTime(unittest.TestCase): + """V0042StepTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepTime: + """Test V0042StepTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepTime` + """ + model = V0042StepTime() + if include_optional: + return V0042StepTime( + elapsed = 56, + end = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/42_uint64_no_val_struct.v0.0.42_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0042StepTime( + ) + """ + + def testV0042StepTime(self): + """Test V0042StepTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_tres.py b/test/test_v0042_step_tres.py new file mode 100644 index 0000000..10208c3 --- /dev/null +++ b/test/test_v0042_step_tres.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_tres import V0042StepTres + +class TestV0042StepTres(unittest.TestCase): + """V0042StepTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepTres: + """Test V0042StepTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepTres` + """ + model = V0042StepTres() + if include_optional: + return V0042StepTres( + requested = slurmrest_python.models.v0_0_42_step_tres_requested.v0_0_42_step_tres_requested( + max = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_42_step_tres_consumed.v0_0_42_step_tres_consumed( + max = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + allocated = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042StepTres( + ) + """ + + def testV0042StepTres(self): + """Test V0042StepTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_tres_consumed.py b/test/test_v0042_step_tres_consumed.py new file mode 100644 index 0000000..43ffed9 --- /dev/null +++ b/test/test_v0042_step_tres_consumed.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_tres_consumed import V0042StepTresConsumed + +class TestV0042StepTresConsumed(unittest.TestCase): + """V0042StepTresConsumed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepTresConsumed: + """Test V0042StepTresConsumed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepTresConsumed` + """ + model = V0042StepTresConsumed() + if include_optional: + return V0042StepTresConsumed( + max = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042StepTresConsumed( + ) + """ + + def testV0042StepTresConsumed(self): + """Test V0042StepTresConsumed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_step_tres_requested.py b/test/test_v0042_step_tres_requested.py new file mode 100644 index 0000000..6ca22b1 --- /dev/null +++ b/test/test_v0042_step_tres_requested.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_step_tres_requested import V0042StepTresRequested + +class TestV0042StepTresRequested(unittest.TestCase): + """V0042StepTresRequested unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042StepTresRequested: + """Test V0042StepTresRequested + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042StepTresRequested` + """ + model = V0042StepTresRequested() + if include_optional: + return V0042StepTresRequested( + max = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0042StepTresRequested( + ) + """ + + def testV0042StepTresRequested(self): + """Test V0042StepTresRequested""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_tres.py b/test/test_v0042_tres.py new file mode 100644 index 0000000..fd1d991 --- /dev/null +++ b/test/test_v0042_tres.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_tres import V0042Tres + +class TestV0042Tres(unittest.TestCase): + """V0042Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Tres: + """Test V0042Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Tres` + """ + model = V0042Tres() + if include_optional: + return V0042Tres( + type = '', + name = '', + id = 56, + count = 56 + ) + else: + return V0042Tres( + type = '', + ) + """ + + def testV0042Tres(self): + """Test V0042Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_uint16_no_val_struct.py b/test/test_v0042_uint16_no_val_struct.py new file mode 100644 index 0000000..87bd733 --- /dev/null +++ b/test/test_v0042_uint16_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_uint16_no_val_struct import V0042Uint16NoValStruct + +class TestV0042Uint16NoValStruct(unittest.TestCase): + """V0042Uint16NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Uint16NoValStruct: + """Test V0042Uint16NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Uint16NoValStruct` + """ + model = V0042Uint16NoValStruct() + if include_optional: + return V0042Uint16NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0042Uint16NoValStruct( + ) + """ + + def testV0042Uint16NoValStruct(self): + """Test V0042Uint16NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_uint32_no_val_struct.py b/test/test_v0042_uint32_no_val_struct.py new file mode 100644 index 0000000..d625bab --- /dev/null +++ b/test/test_v0042_uint32_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_uint32_no_val_struct import V0042Uint32NoValStruct + +class TestV0042Uint32NoValStruct(unittest.TestCase): + """V0042Uint32NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Uint32NoValStruct: + """Test V0042Uint32NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Uint32NoValStruct` + """ + model = V0042Uint32NoValStruct() + if include_optional: + return V0042Uint32NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0042Uint32NoValStruct( + ) + """ + + def testV0042Uint32NoValStruct(self): + """Test V0042Uint32NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_uint64_no_val_struct.py b/test/test_v0042_uint64_no_val_struct.py new file mode 100644 index 0000000..8e2c5fc --- /dev/null +++ b/test/test_v0042_uint64_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_uint64_no_val_struct import V0042Uint64NoValStruct + +class TestV0042Uint64NoValStruct(unittest.TestCase): + """V0042Uint64NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Uint64NoValStruct: + """Test V0042Uint64NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Uint64NoValStruct` + """ + model = V0042Uint64NoValStruct() + if include_optional: + return V0042Uint64NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0042Uint64NoValStruct( + ) + """ + + def testV0042Uint64NoValStruct(self): + """Test V0042Uint64NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_update_node_msg.py b/test/test_v0042_update_node_msg.py new file mode 100644 index 0000000..ed7e56d --- /dev/null +++ b/test/test_v0042_update_node_msg.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_update_node_msg import V0042UpdateNodeMsg + +class TestV0042UpdateNodeMsg(unittest.TestCase): + """V0042UpdateNodeMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042UpdateNodeMsg: + """Test V0042UpdateNodeMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042UpdateNodeMsg` + """ + model = V0042UpdateNodeMsg() + if include_optional: + return V0042UpdateNodeMsg( + comment = '', + cpu_bind = 56, + extra = '', + features = [ + '' + ], + features_act = [ + '' + ], + gres = '', + address = [ + '' + ], + hostname = [ + '' + ], + name = [ + '' + ], + state = [ + 'INVALID' + ], + reason = '', + reason_uid = '', + resume_after = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + weight = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0042UpdateNodeMsg( + ) + """ + + def testV0042UpdateNodeMsg(self): + """Test V0042UpdateNodeMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_user.py b/test/test_v0042_user.py new file mode 100644 index 0000000..ddd35c9 --- /dev/null +++ b/test/test_v0042_user.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_user import V0042User + +class TestV0042User(unittest.TestCase): + """V0042User unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042User: + """Test V0042User + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042User` + """ + model = V0042User() + if include_optional: + return V0042User( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/42_assoc_short.v0.0.42_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/42_coord.v0.0.42_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/42_wckey.v0.0.42_wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ] + ) + else: + return V0042User( + name = '', + ) + """ + + def testV0042User(self): + """Test V0042User""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_user_default.py b/test/test_v0042_user_default.py new file mode 100644 index 0000000..3b4fbea --- /dev/null +++ b/test/test_v0042_user_default.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_user_default import V0042UserDefault + +class TestV0042UserDefault(unittest.TestCase): + """V0042UserDefault unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042UserDefault: + """Test V0042UserDefault + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042UserDefault` + """ + model = V0042UserDefault() + if include_optional: + return V0042UserDefault( + account = '', + wckey = '' + ) + else: + return V0042UserDefault( + ) + """ + + def testV0042UserDefault(self): + """Test V0042UserDefault""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_user_short.py b/test/test_v0042_user_short.py new file mode 100644 index 0000000..996c19d --- /dev/null +++ b/test/test_v0042_user_short.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_user_short import V0042UserShort + +class TestV0042UserShort(unittest.TestCase): + """V0042UserShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042UserShort: + """Test V0042UserShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042UserShort` + """ + model = V0042UserShort() + if include_optional: + return V0042UserShort( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '' + ) + else: + return V0042UserShort( + ) + """ + + def testV0042UserShort(self): + """Test V0042UserShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_users_add_cond.py b/test/test_v0042_users_add_cond.py new file mode 100644 index 0000000..b029386 --- /dev/null +++ b/test/test_v0042_users_add_cond.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_users_add_cond import V0042UsersAddCond + +class TestV0042UsersAddCond(unittest.TestCase): + """V0042UsersAddCond unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042UsersAddCond: + """Test V0042UsersAddCond + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042UsersAddCond` + """ + model = V0042UsersAddCond() + if include_optional: + return V0042UsersAddCond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/42_assoc_rec_set.v0.0.42_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/42_uint32_no_val_struct.v0.0.42_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = [ + '' + ], + users = [ + '' + ], + wckeys = [ + '' + ] + ) + else: + return V0042UsersAddCond( + users = [ + '' + ], + ) + """ + + def testV0042UsersAddCond(self): + """Test V0042UsersAddCond""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_wckey.py b/test/test_v0042_wckey.py new file mode 100644 index 0000000..e721753 --- /dev/null +++ b/test/test_v0042_wckey.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_wckey import V0042Wckey + +class TestV0042Wckey(unittest.TestCase): + """V0042Wckey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042Wckey: + """Test V0042Wckey + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042Wckey` + """ + model = V0042Wckey() + if include_optional: + return V0042Wckey( + accounting = [ + slurmrest_python.models.v0/0/42_accounting.v0.0.42_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/42_tres.v0.0.42_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0042Wckey( + cluster = '', + name = '', + user = '', + ) + """ + + def testV0042Wckey(self): + """Test V0042Wckey""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0042_wckey_tag_struct.py b/test/test_v0042_wckey_tag_struct.py new file mode 100644 index 0000000..1655f35 --- /dev/null +++ b/test/test_v0042_wckey_tag_struct.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0042_wckey_tag_struct import V0042WckeyTagStruct + +class TestV0042WckeyTagStruct(unittest.TestCase): + """V0042WckeyTagStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0042WckeyTagStruct: + """Test V0042WckeyTagStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0042WckeyTagStruct` + """ + model = V0042WckeyTagStruct() + if include_optional: + return V0042WckeyTagStruct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ] + ) + else: + return V0042WckeyTagStruct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], + ) + """ + + def testV0042WckeyTagStruct(self): + """Test V0042WckeyTagStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_account.py b/test/test_v0043_account.py new file mode 100644 index 0000000..0b0fb8e --- /dev/null +++ b/test/test_v0043_account.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_account import V0043Account + +class TestV0043Account(unittest.TestCase): + """V0043Account unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Account: + """Test V0043Account + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Account` + """ + model = V0043Account() + if include_optional: + return V0043Account( + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0043Account( + description = '', + name = '', + organization = '', + ) + """ + + def testV0043Account(self): + """Test V0043Account""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_account_short.py b/test/test_v0043_account_short.py new file mode 100644 index 0000000..1f4725d --- /dev/null +++ b/test/test_v0043_account_short.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_account_short import V0043AccountShort + +class TestV0043AccountShort(unittest.TestCase): + """V0043AccountShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AccountShort: + """Test V0043AccountShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AccountShort` + """ + model = V0043AccountShort() + if include_optional: + return V0043AccountShort( + description = '', + organization = '' + ) + else: + return V0043AccountShort( + ) + """ + + def testV0043AccountShort(self): + """Test V0043AccountShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_accounting.py b/test/test_v0043_accounting.py new file mode 100644 index 0000000..b5eee92 --- /dev/null +++ b/test/test_v0043_accounting.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_accounting import V0043Accounting + +class TestV0043Accounting(unittest.TestCase): + """V0043Accounting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Accounting: + """Test V0043Accounting + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Accounting` + """ + model = V0043Accounting() + if include_optional: + return V0043Accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ) + else: + return V0043Accounting( + ) + """ + + def testV0043Accounting(self): + """Test V0043Accounting""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_accounts_add_cond.py b/test/test_v0043_accounts_add_cond.py new file mode 100644 index 0000000..1ce9e81 --- /dev/null +++ b/test/test_v0043_accounts_add_cond.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_accounts_add_cond import V0043AccountsAddCond + +class TestV0043AccountsAddCond(unittest.TestCase): + """V0043AccountsAddCond unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AccountsAddCond: + """Test V0043AccountsAddCond + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AccountsAddCond` + """ + model = V0043AccountsAddCond() + if include_optional: + return V0043AccountsAddCond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/43_assoc_rec_set.v0.0.43_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ] + ) + else: + return V0043AccountsAddCond( + accounts = [ + '' + ], + ) + """ + + def testV0043AccountsAddCond(self): + """Test V0043AccountsAddCond""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_acct_gather_energy.py b/test/test_v0043_acct_gather_energy.py new file mode 100644 index 0000000..940d36d --- /dev/null +++ b/test/test_v0043_acct_gather_energy.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_acct_gather_energy import V0043AcctGatherEnergy + +class TestV0043AcctGatherEnergy(unittest.TestCase): + """V0043AcctGatherEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AcctGatherEnergy: + """Test V0043AcctGatherEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AcctGatherEnergy` + """ + model = V0043AcctGatherEnergy() + if include_optional: + return V0043AcctGatherEnergy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56 + ) + else: + return V0043AcctGatherEnergy( + ) + """ + + def testV0043AcctGatherEnergy(self): + """Test V0043AcctGatherEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc.py b/test/test_v0043_assoc.py new file mode 100644 index 0000000..3aaf46e --- /dev/null +++ b/test/test_v0043_assoc.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc import V0043Assoc + +class TestV0043Assoc(unittest.TestCase): + """V0043Assoc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Assoc: + """Test V0043Assoc + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Assoc` + """ + model = V0043Assoc() + if include_optional: + return V0043Assoc( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_43_assoc_max.v0_0_43_assoc_max( + jobs = slurmrest_python.models.v0_0_43_assoc_max_jobs.v0_0_43_assoc_max_jobs( + per = slurmrest_python.models.v0_0_43_assoc_max_jobs_per.v0_0_43_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_43_assoc_max_tres.v0_0_43_assoc_max_tres( + group = slurmrest_python.models.v0_0_43_assoc_max_tres_group.v0_0_43_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_43_assoc_max_tres_minutes.v0_0_43_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_43_assoc_max_per.v0_0_43_assoc_max_per( + account = slurmrest_python.models.v0_0_43_assoc_max_per_account.v0_0_43_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_43_assoc_min.v0_0_43_assoc_min( + priority_threshold = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + parent_account = '', + partition = '', + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qos = [ + '' + ], + shares_raw = 56, + user = '' + ) + else: + return V0043Assoc( + user = '', + ) + """ + + def testV0043Assoc(self): + """Test V0043Assoc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max.py b/test/test_v0043_assoc_max.py new file mode 100644 index 0000000..087946e --- /dev/null +++ b/test/test_v0043_assoc_max.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max import V0043AssocMax + +class TestV0043AssocMax(unittest.TestCase): + """V0043AssocMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMax: + """Test V0043AssocMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMax` + """ + model = V0043AssocMax() + if include_optional: + return V0043AssocMax( + jobs = slurmrest_python.models.v0_0_43_assoc_max_jobs.v0_0_43_assoc_max_jobs( + per = slurmrest_python.models.v0_0_43_assoc_max_jobs_per.v0_0_43_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_43_assoc_max_tres.v0_0_43_assoc_max_tres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_43_assoc_max_tres_group.v0_0_43_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = , ), + minutes = slurmrest_python.models.v0_0_43_assoc_max_tres_minutes.v0_0_43_assoc_max_tres_minutes( + total = , + per = slurmrest_python.models.v0_0_43_qos_limits_min_tres_per.v0_0_43_qos_limits_min_tres_per( + job = , ), ), + per = slurmrest_python.models.v0_0_43_assoc_max_tres_per.v0_0_43_assoc_max_tres_per( + job = , + node = , ), ), + per = slurmrest_python.models.v0_0_43_assoc_max_per.v0_0_43_assoc_max_per( + account = slurmrest_python.models.v0_0_43_assoc_max_per_account.v0_0_43_assoc_max_per_account( + wall_clock = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0043AssocMax( + ) + """ + + def testV0043AssocMax(self): + """Test V0043AssocMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_jobs.py b/test/test_v0043_assoc_max_jobs.py new file mode 100644 index 0000000..3c2c073 --- /dev/null +++ b/test/test_v0043_assoc_max_jobs.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_jobs import V0043AssocMaxJobs + +class TestV0043AssocMaxJobs(unittest.TestCase): + """V0043AssocMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxJobs: + """Test V0043AssocMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxJobs` + """ + model = V0043AssocMaxJobs() + if include_optional: + return V0043AssocMaxJobs( + per = slurmrest_python.models.v0_0_43_assoc_max_jobs_per.v0_0_43_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043AssocMaxJobs( + ) + """ + + def testV0043AssocMaxJobs(self): + """Test V0043AssocMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_jobs_per.py b/test/test_v0043_assoc_max_jobs_per.py new file mode 100644 index 0000000..d1a03c7 --- /dev/null +++ b/test/test_v0043_assoc_max_jobs_per.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_jobs_per import V0043AssocMaxJobsPer + +class TestV0043AssocMaxJobsPer(unittest.TestCase): + """V0043AssocMaxJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxJobsPer: + """Test V0043AssocMaxJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxJobsPer` + """ + model = V0043AssocMaxJobsPer() + if include_optional: + return V0043AssocMaxJobsPer( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043AssocMaxJobsPer( + ) + """ + + def testV0043AssocMaxJobsPer(self): + """Test V0043AssocMaxJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_per.py b/test/test_v0043_assoc_max_per.py new file mode 100644 index 0000000..337173f --- /dev/null +++ b/test/test_v0043_assoc_max_per.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_per import V0043AssocMaxPer + +class TestV0043AssocMaxPer(unittest.TestCase): + """V0043AssocMaxPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxPer: + """Test V0043AssocMaxPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxPer` + """ + model = V0043AssocMaxPer() + if include_optional: + return V0043AssocMaxPer( + account = slurmrest_python.models.v0_0_43_assoc_max_per_account.v0_0_43_assoc_max_per_account( + wall_clock = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0043AssocMaxPer( + ) + """ + + def testV0043AssocMaxPer(self): + """Test V0043AssocMaxPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_per_account.py b/test/test_v0043_assoc_max_per_account.py new file mode 100644 index 0000000..ce87b34 --- /dev/null +++ b/test/test_v0043_assoc_max_per_account.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_per_account import V0043AssocMaxPerAccount + +class TestV0043AssocMaxPerAccount(unittest.TestCase): + """V0043AssocMaxPerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxPerAccount: + """Test V0043AssocMaxPerAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxPerAccount` + """ + model = V0043AssocMaxPerAccount() + if include_optional: + return V0043AssocMaxPerAccount( + wall_clock = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043AssocMaxPerAccount( + ) + """ + + def testV0043AssocMaxPerAccount(self): + """Test V0043AssocMaxPerAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_tres.py b/test/test_v0043_assoc_max_tres.py new file mode 100644 index 0000000..f1adf93 --- /dev/null +++ b/test/test_v0043_assoc_max_tres.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_tres import V0043AssocMaxTres + +class TestV0043AssocMaxTres(unittest.TestCase): + """V0043AssocMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxTres: + """Test V0043AssocMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxTres` + """ + model = V0043AssocMaxTres() + if include_optional: + return V0043AssocMaxTres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_43_assoc_max_tres_group.v0_0_43_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_43_assoc_max_tres_minutes.v0_0_43_assoc_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_43_qos_limits_min_tres_per.v0_0_43_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), + per = slurmrest_python.models.v0_0_43_assoc_max_tres_per.v0_0_43_assoc_max_tres_per( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0043AssocMaxTres( + ) + """ + + def testV0043AssocMaxTres(self): + """Test V0043AssocMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_tres_group.py b/test/test_v0043_assoc_max_tres_group.py new file mode 100644 index 0000000..751e250 --- /dev/null +++ b/test/test_v0043_assoc_max_tres_group.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_tres_group import V0043AssocMaxTresGroup + +class TestV0043AssocMaxTresGroup(unittest.TestCase): + """V0043AssocMaxTresGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxTresGroup: + """Test V0043AssocMaxTresGroup + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxTresGroup` + """ + model = V0043AssocMaxTresGroup() + if include_optional: + return V0043AssocMaxTresGroup( + minutes = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043AssocMaxTresGroup( + ) + """ + + def testV0043AssocMaxTresGroup(self): + """Test V0043AssocMaxTresGroup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_tres_minutes.py b/test/test_v0043_assoc_max_tres_minutes.py new file mode 100644 index 0000000..1743bd4 --- /dev/null +++ b/test/test_v0043_assoc_max_tres_minutes.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_tres_minutes import V0043AssocMaxTresMinutes + +class TestV0043AssocMaxTresMinutes(unittest.TestCase): + """V0043AssocMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxTresMinutes: + """Test V0043AssocMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxTresMinutes` + """ + model = V0043AssocMaxTresMinutes() + if include_optional: + return V0043AssocMaxTresMinutes( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_43_qos_limits_min_tres_per.v0_0_43_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0043AssocMaxTresMinutes( + ) + """ + + def testV0043AssocMaxTresMinutes(self): + """Test V0043AssocMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_max_tres_per.py b/test/test_v0043_assoc_max_tres_per.py new file mode 100644 index 0000000..464b019 --- /dev/null +++ b/test/test_v0043_assoc_max_tres_per.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_max_tres_per import V0043AssocMaxTresPer + +class TestV0043AssocMaxTresPer(unittest.TestCase): + """V0043AssocMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMaxTresPer: + """Test V0043AssocMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMaxTresPer` + """ + model = V0043AssocMaxTresPer() + if include_optional: + return V0043AssocMaxTresPer( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043AssocMaxTresPer( + ) + """ + + def testV0043AssocMaxTresPer(self): + """Test V0043AssocMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_min.py b/test/test_v0043_assoc_min.py new file mode 100644 index 0000000..f68f7d5 --- /dev/null +++ b/test/test_v0043_assoc_min.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_min import V0043AssocMin + +class TestV0043AssocMin(unittest.TestCase): + """V0043AssocMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocMin: + """Test V0043AssocMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocMin` + """ + model = V0043AssocMin() + if include_optional: + return V0043AssocMin( + priority_threshold = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043AssocMin( + ) + """ + + def testV0043AssocMin(self): + """Test V0043AssocMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_rec_set.py b/test/test_v0043_assoc_rec_set.py new file mode 100644 index 0000000..82c33d8 --- /dev/null +++ b/test/test_v0043_assoc_rec_set.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_rec_set import V0043AssocRecSet + +class TestV0043AssocRecSet(unittest.TestCase): + """V0043AssocRecSet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocRecSet: + """Test V0043AssocRecSet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocRecSet` + """ + model = V0043AssocRecSet() + if include_optional: + return V0043AssocRecSet( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grpwall = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresrunmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresperjob = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtrespernode = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxwalldurationperjob = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56 + ) + else: + return V0043AssocRecSet( + ) + """ + + def testV0043AssocRecSet(self): + """Test V0043AssocRecSet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_shares_obj_wrap.py b/test/test_v0043_assoc_shares_obj_wrap.py new file mode 100644 index 0000000..c9d26b6 --- /dev/null +++ b/test/test_v0043_assoc_shares_obj_wrap.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_shares_obj_wrap import V0043AssocSharesObjWrap + +class TestV0043AssocSharesObjWrap(unittest.TestCase): + """V0043AssocSharesObjWrap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocSharesObjWrap: + """Test V0043AssocSharesObjWrap + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocSharesObjWrap` + """ + model = V0043AssocSharesObjWrap() + if include_optional: + return V0043AssocSharesObjWrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + shares = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_tres.v0_0_43_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/43_shares_float128_tres.v0.0.43_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage = 56, + fairshare = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_fairshare.v0_0_43_assoc_shares_obj_wrap_fairshare( + factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + level = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), ), + type = [ + 'USER' + ] + ) + else: + return V0043AssocSharesObjWrap( + ) + """ + + def testV0043AssocSharesObjWrap(self): + """Test V0043AssocSharesObjWrap""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_shares_obj_wrap_fairshare.py b/test/test_v0043_assoc_shares_obj_wrap_fairshare.py new file mode 100644 index 0000000..103b4ca --- /dev/null +++ b/test/test_v0043_assoc_shares_obj_wrap_fairshare.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_fairshare import V0043AssocSharesObjWrapFairshare + +class TestV0043AssocSharesObjWrapFairshare(unittest.TestCase): + """V0043AssocSharesObjWrapFairshare unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocSharesObjWrapFairshare: + """Test V0043AssocSharesObjWrapFairshare + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocSharesObjWrapFairshare` + """ + model = V0043AssocSharesObjWrapFairshare() + if include_optional: + return V0043AssocSharesObjWrapFairshare( + factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + level = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ) + ) + else: + return V0043AssocSharesObjWrapFairshare( + ) + """ + + def testV0043AssocSharesObjWrapFairshare(self): + """Test V0043AssocSharesObjWrapFairshare""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_shares_obj_wrap_tres.py b/test/test_v0043_assoc_shares_obj_wrap_tres.py new file mode 100644 index 0000000..601b361 --- /dev/null +++ b/test/test_v0043_assoc_shares_obj_wrap_tres.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_shares_obj_wrap_tres import V0043AssocSharesObjWrapTres + +class TestV0043AssocSharesObjWrapTres(unittest.TestCase): + """V0043AssocSharesObjWrapTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocSharesObjWrapTres: + """Test V0043AssocSharesObjWrapTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocSharesObjWrapTres` + """ + model = V0043AssocSharesObjWrapTres() + if include_optional: + return V0043AssocSharesObjWrapTres( + run_seconds = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + usage = [ + slurmrest_python.models.v0/0/43_shares_float128_tres.v0.0.43_shares_float128_tres( + name = '', + value = 1.337, ) + ] + ) + else: + return V0043AssocSharesObjWrapTres( + ) + """ + + def testV0043AssocSharesObjWrapTres(self): + """Test V0043AssocSharesObjWrapTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_assoc_short.py b/test/test_v0043_assoc_short.py new file mode 100644 index 0000000..dea3d6e --- /dev/null +++ b/test/test_v0043_assoc_short.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_assoc_short import V0043AssocShort + +class TestV0043AssocShort(unittest.TestCase): + """V0043AssocShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043AssocShort: + """Test V0043AssocShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043AssocShort` + """ + model = V0043AssocShort() + if include_optional: + return V0043AssocShort( + account = '', + cluster = '', + partition = '', + user = '', + id = 56 + ) + else: + return V0043AssocShort( + user = '', + ) + """ + + def testV0043AssocShort(self): + """Test V0043AssocShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_bf_exit_fields.py b/test/test_v0043_bf_exit_fields.py new file mode 100644 index 0000000..cfec877 --- /dev/null +++ b/test/test_v0043_bf_exit_fields.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_bf_exit_fields import V0043BfExitFields + +class TestV0043BfExitFields(unittest.TestCase): + """V0043BfExitFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043BfExitFields: + """Test V0043BfExitFields + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043BfExitFields` + """ + model = V0043BfExitFields() + if include_optional: + return V0043BfExitFields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56 + ) + else: + return V0043BfExitFields( + ) + """ + + def testV0043BfExitFields(self): + """Test V0043BfExitFields""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_cluster_rec.py b/test/test_v0043_cluster_rec.py new file mode 100644 index 0000000..e1b54e4 --- /dev/null +++ b/test/test_v0043_cluster_rec.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_cluster_rec import V0043ClusterRec + +class TestV0043ClusterRec(unittest.TestCase): + """V0043ClusterRec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ClusterRec: + """Test V0043ClusterRec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ClusterRec` + """ + model = V0043ClusterRec() + if include_optional: + return V0043ClusterRec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_43_cluster_rec_associations.v0_0_43_cluster_rec_associations( + root = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043ClusterRec( + ) + """ + + def testV0043ClusterRec(self): + """Test V0043ClusterRec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_cluster_rec_associations.py b/test/test_v0043_cluster_rec_associations.py new file mode 100644 index 0000000..3cd4cf6 --- /dev/null +++ b/test/test_v0043_cluster_rec_associations.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_cluster_rec_associations import V0043ClusterRecAssociations + +class TestV0043ClusterRecAssociations(unittest.TestCase): + """V0043ClusterRecAssociations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ClusterRecAssociations: + """Test V0043ClusterRecAssociations + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ClusterRecAssociations` + """ + model = V0043ClusterRecAssociations() + if include_optional: + return V0043ClusterRecAssociations( + root = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ) + else: + return V0043ClusterRecAssociations( + ) + """ + + def testV0043ClusterRecAssociations(self): + """Test V0043ClusterRecAssociations""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_controller_ping.py b/test/test_v0043_controller_ping.py new file mode 100644 index 0000000..8ca79d6 --- /dev/null +++ b/test/test_v0043_controller_ping.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_controller_ping import V0043ControllerPing + +class TestV0043ControllerPing(unittest.TestCase): + """V0043ControllerPing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ControllerPing: + """Test V0043ControllerPing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ControllerPing` + """ + model = V0043ControllerPing() + if include_optional: + return V0043ControllerPing( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True + ) + else: + return V0043ControllerPing( + responding = True, + primary = True, + ) + """ + + def testV0043ControllerPing(self): + """Test V0043ControllerPing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_coord.py b/test/test_v0043_coord.py new file mode 100644 index 0000000..2781905 --- /dev/null +++ b/test/test_v0043_coord.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_coord import V0043Coord + +class TestV0043Coord(unittest.TestCase): + """V0043Coord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Coord: + """Test V0043Coord + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Coord` + """ + model = V0043Coord() + if include_optional: + return V0043Coord( + name = '', + direct = True + ) + else: + return V0043Coord( + name = '', + ) + """ + + def testV0043Coord(self): + """Test V0043Coord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_cron_entry.py b/test/test_v0043_cron_entry.py new file mode 100644 index 0000000..8cd111b --- /dev/null +++ b/test/test_v0043_cron_entry.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_cron_entry import V0043CronEntry + +class TestV0043CronEntry(unittest.TestCase): + """V0043CronEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043CronEntry: + """Test V0043CronEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043CronEntry` + """ + model = V0043CronEntry() + if include_optional: + return V0043CronEntry( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ) + ) + else: + return V0043CronEntry( + ) + """ + + def testV0043CronEntry(self): + """Test V0043CronEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_float64_no_val_struct.py b/test/test_v0043_float64_no_val_struct.py new file mode 100644 index 0000000..c560ad1 --- /dev/null +++ b/test/test_v0043_float64_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_float64_no_val_struct import V0043Float64NoValStruct + +class TestV0043Float64NoValStruct(unittest.TestCase): + """V0043Float64NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Float64NoValStruct: + """Test V0043Float64NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Float64NoValStruct` + """ + model = V0043Float64NoValStruct() + if include_optional: + return V0043Float64NoValStruct( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0043Float64NoValStruct( + ) + """ + + def testV0043Float64NoValStruct(self): + """Test V0043Float64NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_instance.py b/test/test_v0043_instance.py new file mode 100644 index 0000000..9785305 --- /dev/null +++ b/test/test_v0043_instance.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_instance import V0043Instance + +class TestV0043Instance(unittest.TestCase): + """V0043Instance unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Instance: + """Test V0043Instance + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Instance` + """ + model = V0043Instance() + if include_optional: + return V0043Instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ) + ) + else: + return V0043Instance( + ) + """ + + def testV0043Instance(self): + """Test V0043Instance""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job.py b/test/test_v0043_job.py new file mode 100644 index 0000000..9d64d7c --- /dev/null +++ b/test/test_v0043_job.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job import V0043Job + +class TestV0043Job(unittest.TestCase): + """V0043Job unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Job: + """Test V0043Job + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Job` + """ + model = V0043Job() + if include_optional: + return V0043Job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_43_job_array.v0_0_43_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_43_job_time.v0_0_43_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_43_job_het.v0_0_43_job_het( + job_id = 56, + job_offset = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_43_job_required.v0_0_43_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_44_job_reservation.v0_0_44_job_reservation( + id = 56, + name = '', + requested = '', ), + script = '', + segment_size = 56, + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/43_step.v0.0.43_step( + time = slurmrest_python.models.v0_0_43_step_time.v0_0_43_step_time( + elapsed = 56, + end = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_43_step_nodes.v0_0_43_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_43_step_cpu.v0_0_43_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_43_step_cpu_requested_frequency.v0_0_43_step_CPU_requested_frequency( + min = , + max = , ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_43_step_statistics.v0_0_43_step_statistics( + energy = slurmrest_python.models.v0_0_43_step_statistics_energy.v0_0_43_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_43_step_tres.v0_0_43_step_tres( + requested = slurmrest_python.models.v0_0_43_step_tres_requested.v0_0_43_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_43_job_tres.v0_0_43_job_tres( + allocated = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/43_wckey_tag_struct.v0.0.43_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '' + ) + else: + return V0043Job( + ) + """ + + def testV0043Job(self): + """Test V0043Job""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_alloc_req.py b/test/test_v0043_job_alloc_req.py new file mode 100644 index 0000000..01ea683 --- /dev/null +++ b/test/test_v0043_job_alloc_req.py @@ -0,0 +1,417 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_alloc_req import V0043JobAllocReq + +class TestV0043JobAllocReq(unittest.TestCase): + """V0043JobAllocReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobAllocReq: + """Test V0043JobAllocReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobAllocReq` + """ + model = V0043JobAllocReq() + if include_optional: + return V0043JobAllocReq( + hetjob = [ + slurmrest_python.models.v0/0/43_job_desc_msg.v0.0.43_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/43_cron_entry.v0.0.43_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_43_job_desc_msg_rlimits.v0_0_43_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/43_job_desc_msg.v0.0.43_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/43_cron_entry.v0.0.43_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_43_job_desc_msg_rlimits.v0_0_43_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0043JobAllocReq( + ) + """ + + def testV0043JobAllocReq(self): + """Test V0043JobAllocReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_array.py b/test/test_v0043_job_array.py new file mode 100644 index 0000000..a3a1fb2 --- /dev/null +++ b/test/test_v0043_job_array.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_array import V0043JobArray + +class TestV0043JobArray(unittest.TestCase): + """V0043JobArray unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobArray: + """Test V0043JobArray + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobArray` + """ + model = V0043JobArray() + if include_optional: + return V0043JobArray( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '' + ) + else: + return V0043JobArray( + ) + """ + + def testV0043JobArray(self): + """Test V0043JobArray""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_array_response_msg_entry.py b/test/test_v0043_job_array_response_msg_entry.py new file mode 100644 index 0000000..90cd29e --- /dev/null +++ b/test/test_v0043_job_array_response_msg_entry.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_array_response_msg_entry import V0043JobArrayResponseMsgEntry + +class TestV0043JobArrayResponseMsgEntry(unittest.TestCase): + """V0043JobArrayResponseMsgEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobArrayResponseMsgEntry: + """Test V0043JobArrayResponseMsgEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobArrayResponseMsgEntry` + """ + model = V0043JobArrayResponseMsgEntry() + if include_optional: + return V0043JobArrayResponseMsgEntry( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '' + ) + else: + return V0043JobArrayResponseMsgEntry( + ) + """ + + def testV0043JobArrayResponseMsgEntry(self): + """Test V0043JobArrayResponseMsgEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_desc_msg.py b/test/test_v0043_job_desc_msg.py new file mode 100644 index 0000000..d8b2904 --- /dev/null +++ b/test/test_v0043_job_desc_msg.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_desc_msg import V0043JobDescMsg + +class TestV0043JobDescMsg(unittest.TestCase): + """V0043JobDescMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobDescMsg: + """Test V0043JobDescMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobDescMsg` + """ + model = V0043JobDescMsg() + if include_optional: + return V0043JobDescMsg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/43_cron_entry.v0.0.43_cron_entry( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_43_job_desc_msg_rlimits.v0_0_43_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = [ + '' + ], + distribution = '', + time_limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56 + ) + else: + return V0043JobDescMsg( + ) + """ + + def testV0043JobDescMsg(self): + """Test V0043JobDescMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_desc_msg_rlimits.py b/test/test_v0043_job_desc_msg_rlimits.py new file mode 100644 index 0000000..685a581 --- /dev/null +++ b/test/test_v0043_job_desc_msg_rlimits.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_desc_msg_rlimits import V0043JobDescMsgRlimits + +class TestV0043JobDescMsgRlimits(unittest.TestCase): + """V0043JobDescMsgRlimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobDescMsgRlimits: + """Test V0043JobDescMsgRlimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobDescMsgRlimits` + """ + model = V0043JobDescMsgRlimits() + if include_optional: + return V0043JobDescMsgRlimits( + cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + var_as = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043JobDescMsgRlimits( + ) + """ + + def testV0043JobDescMsgRlimits(self): + """Test V0043JobDescMsgRlimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_het.py b/test/test_v0043_job_het.py new file mode 100644 index 0000000..ab9fd71 --- /dev/null +++ b/test/test_v0043_job_het.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_het import V0043JobHet + +class TestV0043JobHet(unittest.TestCase): + """V0043JobHet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobHet: + """Test V0043JobHet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobHet` + """ + model = V0043JobHet() + if include_optional: + return V0043JobHet( + job_id = 56, + job_offset = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043JobHet( + ) + """ + + def testV0043JobHet(self): + """Test V0043JobHet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_info.py b/test/test_v0043_job_info.py new file mode 100644 index 0000000..dbeaab4 --- /dev/null +++ b/test/test_v0043_job_info.py @@ -0,0 +1,394 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_info import V0043JobInfo + +class TestV0043JobInfo(unittest.TestCase): + """V0043JobInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobInfo: + """Test V0043JobInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobInfo` + """ + model = V0043JobInfo() + if include_optional: + return V0043JobInfo( + account = '', + accrue_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_maximum = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_governor = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + eligible_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + het_job_id_set = '', + het_job_offset = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job_id = 56, + job_resources = slurmrest_python.models.v0/0/43_job_res.v0.0.43_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_43_job_res_nodes.v0_0_43_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/43_job_res_node.v0.0.43_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/43_job_res_socket.v0.0.43_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + licenses = '', + licenses_allocated = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max_nodes = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_tres = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_node = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_socket = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_board = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + node_count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition = '', + prefer = '', + memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minimum_cpus_per_node = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minimum_tmp_disk_per_node = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power( + flags = [ + null + ], ), + preempt_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + preemptable_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + pre_sus_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + hold = True, + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + priority_by_partition = [ + slurmrest_python.models.v0/0/43_part_prio.v0.0.43_part_prio( + partition = '', + priority = 56, ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + segment_size = 56, + selinux_context = '', + shared = [ + 'none' + ], + sockets_per_board = 56, + sockets_per_node = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + state_description = '', + state_reason = '', + standard_input = '', + standard_output = '', + standard_error = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + submit_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + system_comment = '', + time_limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + threads_per_core = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '' + ) + else: + return V0043JobInfo( + ) + """ + + def testV0043JobInfo(self): + """Test V0043JobInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_required.py b/test/test_v0043_job_required.py new file mode 100644 index 0000000..4f8872d --- /dev/null +++ b/test/test_v0043_job_required.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_required import V0043JobRequired + +class TestV0043JobRequired(unittest.TestCase): + """V0043JobRequired unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobRequired: + """Test V0043JobRequired + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobRequired` + """ + model = V0043JobRequired() + if include_optional: + return V0043JobRequired( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043JobRequired( + ) + """ + + def testV0043JobRequired(self): + """Test V0043JobRequired""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_res.py b/test/test_v0043_job_res.py new file mode 100644 index 0000000..9f88461 --- /dev/null +++ b/test/test_v0043_job_res.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_res import V0043JobRes + +class TestV0043JobRes(unittest.TestCase): + """V0043JobRes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobRes: + """Test V0043JobRes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobRes` + """ + model = V0043JobRes() + if include_optional: + return V0043JobRes( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_43_job_res_nodes.v0_0_43_job_res_nodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/43_job_res_node.v0.0.43_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/43_job_res_socket.v0.0.43_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043JobRes( + select_type = [ + 'CPU' + ], + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043JobRes(self): + """Test V0043JobRes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_res_core.py b/test/test_v0043_job_res_core.py new file mode 100644 index 0000000..acf8502 --- /dev/null +++ b/test/test_v0043_job_res_core.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_res_core import V0043JobResCore + +class TestV0043JobResCore(unittest.TestCase): + """V0043JobResCore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobResCore: + """Test V0043JobResCore + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobResCore` + """ + model = V0043JobResCore() + if include_optional: + return V0043JobResCore( + index = 56, + status = [ + 'INVALID' + ] + ) + else: + return V0043JobResCore( + index = 56, + status = [ + 'INVALID' + ], + ) + """ + + def testV0043JobResCore(self): + """Test V0043JobResCore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_res_node.py b/test/test_v0043_job_res_node.py new file mode 100644 index 0000000..d040ef5 --- /dev/null +++ b/test/test_v0043_job_res_node.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_res_node import V0043JobResNode + +class TestV0043JobResNode(unittest.TestCase): + """V0043JobResNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobResNode: + """Test V0043JobResNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobResNode` + """ + model = V0043JobResNode() + if include_optional: + return V0043JobResNode( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/43_job_res_socket.v0.0.43_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ] + ) + else: + return V0043JobResNode( + index = 56, + name = '', + sockets = [ + slurmrest_python.models.v0/0/43_job_res_socket.v0.0.43_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], + ) + """ + + def testV0043JobResNode(self): + """Test V0043JobResNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_res_nodes.py b/test/test_v0043_job_res_nodes.py new file mode 100644 index 0000000..950b9a5 --- /dev/null +++ b/test/test_v0043_job_res_nodes.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_res_nodes import V0043JobResNodes + +class TestV0043JobResNodes(unittest.TestCase): + """V0043JobResNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobResNodes: + """Test V0043JobResNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobResNodes` + """ + model = V0043JobResNodes() + if include_optional: + return V0043JobResNodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/43_job_res_node.v0.0.43_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/43_job_res_socket.v0.0.43_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ] + ) + else: + return V0043JobResNodes( + ) + """ + + def testV0043JobResNodes(self): + """Test V0043JobResNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_res_socket.py b/test/test_v0043_job_res_socket.py new file mode 100644 index 0000000..38a7d93 --- /dev/null +++ b/test/test_v0043_job_res_socket.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_res_socket import V0043JobResSocket + +class TestV0043JobResSocket(unittest.TestCase): + """V0043JobResSocket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobResSocket: + """Test V0043JobResSocket + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobResSocket` + """ + model = V0043JobResSocket() + if include_optional: + return V0043JobResSocket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ] + ) + else: + return V0043JobResSocket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], + ) + """ + + def testV0043JobResSocket(self): + """Test V0043JobResSocket""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_submit_req.py b/test/test_v0043_job_submit_req.py new file mode 100644 index 0000000..080edac --- /dev/null +++ b/test/test_v0043_job_submit_req.py @@ -0,0 +1,418 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_submit_req import V0043JobSubmitReq + +class TestV0043JobSubmitReq(unittest.TestCase): + """V0043JobSubmitReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobSubmitReq: + """Test V0043JobSubmitReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobSubmitReq` + """ + model = V0043JobSubmitReq() + if include_optional: + return V0043JobSubmitReq( + script = '', + jobs = [ + slurmrest_python.models.v0/0/43_job_desc_msg.v0.0.43_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/43_cron_entry.v0.0.43_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_43_job_desc_msg_rlimits.v0_0_43_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/43_job_desc_msg.v0.0.43_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/43_cron_entry.v0.0.43_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_43_job_desc_msg_rlimits.v0_0_43_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + distribution = '', + time_limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0043JobSubmitReq( + ) + """ + + def testV0043JobSubmitReq(self): + """Test V0043JobSubmitReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_time.py b/test/test_v0043_job_time.py new file mode 100644 index 0000000..06ee047 --- /dev/null +++ b/test/test_v0043_job_time.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_time import V0043JobTime + +class TestV0043JobTime(unittest.TestCase): + """V0043JobTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobTime: + """Test V0043JobTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobTime` + """ + model = V0043JobTime() + if include_optional: + return V0043JobTime( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0043JobTime( + ) + """ + + def testV0043JobTime(self): + """Test V0043JobTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_job_tres.py b/test/test_v0043_job_tres.py new file mode 100644 index 0000000..e0a3abe --- /dev/null +++ b/test/test_v0043_job_tres.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_job_tres import V0043JobTres + +class TestV0043JobTres(unittest.TestCase): + """V0043JobTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043JobTres: + """Test V0043JobTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043JobTres` + """ + model = V0043JobTres() + if include_optional: + return V0043JobTres( + allocated = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043JobTres( + ) + """ + + def testV0043JobTres(self): + """Test V0043JobTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_kill_jobs_msg.py b/test/test_v0043_kill_jobs_msg.py new file mode 100644 index 0000000..83d6178 --- /dev/null +++ b/test/test_v0043_kill_jobs_msg.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_kill_jobs_msg import V0043KillJobsMsg + +class TestV0043KillJobsMsg(unittest.TestCase): + """V0043KillJobsMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043KillJobsMsg: + """Test V0043KillJobsMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043KillJobsMsg` + """ + model = V0043KillJobsMsg() + if include_optional: + return V0043KillJobsMsg( + account = '', + flags = [ + 'BATCH_JOB' + ], + job_name = '', + jobs = [ + '' + ], + partition = '', + qos = '', + reservation = '', + signal = '', + job_state = [ + 'PENDING' + ], + user_id = '', + user_name = '', + wckey = '', + nodes = [ + '' + ] + ) + else: + return V0043KillJobsMsg( + ) + """ + + def testV0043KillJobsMsg(self): + """Test V0043KillJobsMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_kill_jobs_resp_job.py b/test/test_v0043_kill_jobs_resp_job.py new file mode 100644 index 0000000..7668dce --- /dev/null +++ b/test/test_v0043_kill_jobs_resp_job.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_kill_jobs_resp_job import V0043KillJobsRespJob + +class TestV0043KillJobsRespJob(unittest.TestCase): + """V0043KillJobsRespJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043KillJobsRespJob: + """Test V0043KillJobsRespJob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043KillJobsRespJob` + """ + model = V0043KillJobsRespJob() + if include_optional: + return V0043KillJobsRespJob( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ) + ) + else: + return V0043KillJobsRespJob( + step_id = '', + job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043KillJobsRespJob(self): + """Test V0043KillJobsRespJob""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_license.py b/test/test_v0043_license.py new file mode 100644 index 0000000..48a3647 --- /dev/null +++ b/test/test_v0043_license.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_license import V0043License + +class TestV0043License(unittest.TestCase): + """V0043License unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043License: + """Test V0043License + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043License` + """ + model = V0043License() + if include_optional: + return V0043License( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56 + ) + else: + return V0043License( + ) + """ + + def testV0043License(self): + """Test V0043License""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_node.py b/test/test_v0043_node.py new file mode 100644 index 0000000..684ae19 --- /dev/null +++ b/test/test_v0043_node.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_node import V0043Node + +class TestV0043Node(unittest.TestCase): + """V0043Node unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Node: + """Test V0043Node + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Node` + """ + model = V0043Node() + if include_optional: + return V0043Node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tls_cert_last_renewal = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cert_flags = [ + 'TOKEN_SET' + ], + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/43_acct_gather_energy.v0.0.43_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = [ + '' + ], + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + reason_set_by_user = '', + resume_after = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + topology = '', + tres = '', + version = '' + ) + else: + return V0043Node( + ) + """ + + def testV0043Node(self): + """Test V0043Node""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_accounts_add_cond_resp.py b/test/test_v0043_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..35f1c79 --- /dev/null +++ b/test/test_v0043_openapi_accounts_add_cond_resp.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp import V0043OpenapiAccountsAddCondResp + +class TestV0043OpenapiAccountsAddCondResp(unittest.TestCase): + """V0043OpenapiAccountsAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiAccountsAddCondResp: + """Test V0043OpenapiAccountsAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiAccountsAddCondResp` + """ + model = V0043OpenapiAccountsAddCondResp() + if include_optional: + return V0043OpenapiAccountsAddCondResp( + association_condition = slurmrest_python.models.v0/0/43_accounts_add_cond.v0.0.43_accounts_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/43_assoc_rec_set.v0.0.43_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], ), + account = slurmrest_python.models.v0/0/43_account_short.v0.0.43_account_short( + description = '', + organization = '', ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiAccountsAddCondResp( + ) + """ + + def testV0043OpenapiAccountsAddCondResp(self): + """Test V0043OpenapiAccountsAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_accounts_add_cond_resp_str.py b/test/test_v0043_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..4ebf247 --- /dev/null +++ b/test/test_v0043_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_accounts_add_cond_resp_str import V0043OpenapiAccountsAddCondRespStr + +class TestV0043OpenapiAccountsAddCondRespStr(unittest.TestCase): + """V0043OpenapiAccountsAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiAccountsAddCondRespStr: + """Test V0043OpenapiAccountsAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiAccountsAddCondRespStr` + """ + model = V0043OpenapiAccountsAddCondRespStr() + if include_optional: + return V0043OpenapiAccountsAddCondRespStr( + added_accounts = '', + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiAccountsAddCondRespStr( + added_accounts = '', + ) + """ + + def testV0043OpenapiAccountsAddCondRespStr(self): + """Test V0043OpenapiAccountsAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_accounts_removed_resp.py b/test/test_v0043_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..98d6b0f --- /dev/null +++ b/test/test_v0043_openapi_accounts_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_accounts_removed_resp import V0043OpenapiAccountsRemovedResp + +class TestV0043OpenapiAccountsRemovedResp(unittest.TestCase): + """V0043OpenapiAccountsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiAccountsRemovedResp: + """Test V0043OpenapiAccountsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiAccountsRemovedResp` + """ + model = V0043OpenapiAccountsRemovedResp() + if include_optional: + return V0043OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + ) + """ + + def testV0043OpenapiAccountsRemovedResp(self): + """Test V0043OpenapiAccountsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_accounts_resp.py b/test/test_v0043_openapi_accounts_resp.py new file mode 100644 index 0000000..3c52e99 --- /dev/null +++ b/test/test_v0043_openapi_accounts_resp.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_accounts_resp import V0043OpenapiAccountsResp + +class TestV0043OpenapiAccountsResp(unittest.TestCase): + """V0043OpenapiAccountsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiAccountsResp: + """Test V0043OpenapiAccountsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiAccountsResp` + """ + model = V0043OpenapiAccountsResp() + if include_optional: + return V0043OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0/0/43_account.v0.0.43_account( + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0/0/43_account.v0.0.43_account( + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0043OpenapiAccountsResp(self): + """Test V0043OpenapiAccountsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_assocs_removed_resp.py b/test/test_v0043_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..d3257fa --- /dev/null +++ b/test/test_v0043_openapi_assocs_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_assocs_removed_resp import V0043OpenapiAssocsRemovedResp + +class TestV0043OpenapiAssocsRemovedResp(unittest.TestCase): + """V0043OpenapiAssocsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiAssocsRemovedResp: + """Test V0043OpenapiAssocsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiAssocsRemovedResp` + """ + model = V0043OpenapiAssocsRemovedResp() + if include_optional: + return V0043OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + ) + """ + + def testV0043OpenapiAssocsRemovedResp(self): + """Test V0043OpenapiAssocsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_assocs_resp.py b/test/test_v0043_openapi_assocs_resp.py new file mode 100644 index 0000000..bcebbac --- /dev/null +++ b/test/test_v0043_openapi_assocs_resp.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_assocs_resp import V0043OpenapiAssocsResp + +class TestV0043OpenapiAssocsResp(unittest.TestCase): + """V0043OpenapiAssocsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiAssocsResp: + """Test V0043OpenapiAssocsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiAssocsResp` + """ + model = V0043OpenapiAssocsResp() + if include_optional: + return V0043OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0/0/43_assoc.v0.0.43_assoc( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_43_assoc_max.v0_0_43_assoc_max( + jobs = slurmrest_python.models.v0_0_43_assoc_max_jobs.v0_0_43_assoc_max_jobs( + per = slurmrest_python.models.v0_0_43_assoc_max_jobs_per.v0_0_43_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_43_assoc_max_tres.v0_0_43_assoc_max_tres( + group = slurmrest_python.models.v0_0_43_assoc_max_tres_group.v0_0_43_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_43_assoc_max_tres_minutes.v0_0_43_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_43_assoc_max_per.v0_0_43_assoc_max_per( + account = slurmrest_python.models.v0_0_43_assoc_max_per_account.v0_0_43_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_43_assoc_min.v0_0_43_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0/0/43_assoc.v0.0.43_assoc( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_43_assoc_max.v0_0_43_assoc_max( + jobs = slurmrest_python.models.v0_0_43_assoc_max_jobs.v0_0_43_assoc_max_jobs( + per = slurmrest_python.models.v0_0_43_assoc_max_jobs_per.v0_0_43_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_43_assoc_max_tres.v0_0_43_assoc_max_tres( + group = slurmrest_python.models.v0_0_43_assoc_max_tres_group.v0_0_43_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_43_assoc_max_tres_minutes.v0_0_43_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_43_assoc_max_per.v0_0_43_assoc_max_per( + account = slurmrest_python.models.v0_0_43_assoc_max_per_account.v0_0_43_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_43_assoc_min.v0_0_43_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + ) + """ + + def testV0043OpenapiAssocsResp(self): + """Test V0043OpenapiAssocsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_clusters_removed_resp.py b/test/test_v0043_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..5452823 --- /dev/null +++ b/test/test_v0043_openapi_clusters_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_clusters_removed_resp import V0043OpenapiClustersRemovedResp + +class TestV0043OpenapiClustersRemovedResp(unittest.TestCase): + """V0043OpenapiClustersRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiClustersRemovedResp: + """Test V0043OpenapiClustersRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiClustersRemovedResp` + """ + model = V0043OpenapiClustersRemovedResp() + if include_optional: + return V0043OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + ) + """ + + def testV0043OpenapiClustersRemovedResp(self): + """Test V0043OpenapiClustersRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_clusters_resp.py b/test/test_v0043_openapi_clusters_resp.py new file mode 100644 index 0000000..90dfd28 --- /dev/null +++ b/test/test_v0043_openapi_clusters_resp.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_clusters_resp import V0043OpenapiClustersResp + +class TestV0043OpenapiClustersResp(unittest.TestCase): + """V0043OpenapiClustersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiClustersResp: + """Test V0043OpenapiClustersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiClustersResp` + """ + model = V0043OpenapiClustersResp() + if include_optional: + return V0043OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0/0/43_cluster_rec.v0.0.43_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_43_cluster_rec_associations.v0_0_43_cluster_rec_associations( + root = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0/0/43_cluster_rec.v0.0.43_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_43_cluster_rec_associations.v0_0_43_cluster_rec_associations( + root = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + ) + """ + + def testV0043OpenapiClustersResp(self): + """Test V0043OpenapiClustersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_diag_resp.py b/test/test_v0043_openapi_diag_resp.py new file mode 100644 index 0000000..fc0cf93 --- /dev/null +++ b/test/test_v0043_openapi_diag_resp.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_diag_resp import V0043OpenapiDiagResp + +class TestV0043OpenapiDiagResp(unittest.TestCase): + """V0043OpenapiDiagResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiDiagResp: + """Test V0043OpenapiDiagResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiDiagResp` + """ + model = V0043OpenapiDiagResp() + if include_optional: + return V0043OpenapiDiagResp( + statistics = slurmrest_python.models.v0/0/43_stats_msg.v0.0.43_stats_msg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/43_schedule_exit_fields.v0.0.43_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = , + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/43_bf_exit_fields.v0.0.43_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = , + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_type.v0.0.43_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = , ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_user.v0.0.43_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = , ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_queue.v0.0.43_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_dump.v0.0.43_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiDiagResp( + statistics = slurmrest_python.models.v0/0/43_stats_msg.v0.0.43_stats_msg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/43_schedule_exit_fields.v0.0.43_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = , + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/43_bf_exit_fields.v0.0.43_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = , + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_type.v0.0.43_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = , ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_user.v0.0.43_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = , ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_queue.v0.0.43_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_dump.v0.0.43_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + ) + """ + + def testV0043OpenapiDiagResp(self): + """Test V0043OpenapiDiagResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_error.py b/test/test_v0043_openapi_error.py new file mode 100644 index 0000000..49051d5 --- /dev/null +++ b/test/test_v0043_openapi_error.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_error import V0043OpenapiError + +class TestV0043OpenapiError(unittest.TestCase): + """V0043OpenapiError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiError: + """Test V0043OpenapiError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiError` + """ + model = V0043OpenapiError() + if include_optional: + return V0043OpenapiError( + description = '', + error_number = 56, + error = '', + source = '' + ) + else: + return V0043OpenapiError( + ) + """ + + def testV0043OpenapiError(self): + """Test V0043OpenapiError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_instances_resp.py b/test/test_v0043_openapi_instances_resp.py new file mode 100644 index 0000000..5379532 --- /dev/null +++ b/test/test_v0043_openapi_instances_resp.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_instances_resp import V0043OpenapiInstancesResp + +class TestV0043OpenapiInstancesResp(unittest.TestCase): + """V0043OpenapiInstancesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiInstancesResp: + """Test V0043OpenapiInstancesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiInstancesResp` + """ + model = V0043OpenapiInstancesResp() + if include_optional: + return V0043OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0/0/43_instance.v0.0.43_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0/0/43_instance.v0.0.43_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ), ) + ], + ) + """ + + def testV0043OpenapiInstancesResp(self): + """Test V0043OpenapiInstancesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_job_alloc_resp.py b/test/test_v0043_openapi_job_alloc_resp.py new file mode 100644 index 0000000..4853397 --- /dev/null +++ b/test/test_v0043_openapi_job_alloc_resp.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_job_alloc_resp import V0043OpenapiJobAllocResp + +class TestV0043OpenapiJobAllocResp(unittest.TestCase): + """V0043OpenapiJobAllocResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiJobAllocResp: + """Test V0043OpenapiJobAllocResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiJobAllocResp` + """ + model = V0043OpenapiJobAllocResp() + if include_optional: + return V0043OpenapiJobAllocResp( + job_id = 56, + job_submit_user_msg = '', + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiJobAllocResp( + ) + """ + + def testV0043OpenapiJobAllocResp(self): + """Test V0043OpenapiJobAllocResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_job_info_resp.py b/test/test_v0043_openapi_job_info_resp.py new file mode 100644 index 0000000..4e4f131 --- /dev/null +++ b/test/test_v0043_openapi_job_info_resp.py @@ -0,0 +1,523 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_job_info_resp import V0043OpenapiJobInfoResp + +class TestV0043OpenapiJobInfoResp(unittest.TestCase): + """V0043OpenapiJobInfoResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiJobInfoResp: + """Test V0043OpenapiJobInfoResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiJobInfoResp` + """ + model = V0043OpenapiJobInfoResp() + if include_optional: + return V0043OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0/0/43_job_info.v0.0.43_job_info( + account = '', + accrue_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = , + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = , + cpu_frequency_maximum = , + cpu_frequency_governor = , + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = , + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = , + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = , + name = '', ), ), + eligible_time = , + end_time = , + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = , + het_job_id_set = '', + het_job_offset = , + job_id = 56, + job_resources = slurmrest_python.models.v0/0/43_job_res.v0.0.43_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_43_job_res_nodes.v0_0_43_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/43_job_res_node.v0.0.43_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/43_job_res_socket.v0.0.43_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = , ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = , + licenses = '', + licenses_allocated = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = , + max_nodes = , + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = , + tasks_per_tres = , + tasks_per_node = , + tasks_per_socket = , + tasks_per_board = , + cpus = , + node_count = , + tasks = , + partition = '', + prefer = '', + memory_per_cpu = , + memory_per_node = , + minimum_cpus_per_node = , + minimum_tmp_disk_per_node = , + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = , + preemptable_time = , + pre_sus_time = , + hold = True, + priority = , + priority_by_partition = [ + slurmrest_python.models.v0/0/43_part_prio.v0.0.43_part_prio( + partition = '', ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = , + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + segment_size = 56, + selinux_context = '', + shared = [ + 'none' + ], + sockets_per_board = 56, + sockets_per_node = , + start_time = , + state_description = '', + state_reason = '', + standard_input = '', + standard_output = '', + standard_error = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + submit_time = , + suspend_time = , + system_comment = '', + time_limit = , + time_minimum = , + threads_per_core = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0/0/43_job_info.v0.0.43_job_info( + account = '', + accrue_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = , + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = , + cpu_frequency_maximum = , + cpu_frequency_governor = , + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = , + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = , + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = , + name = '', ), ), + eligible_time = , + end_time = , + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = , + het_job_id_set = '', + het_job_offset = , + job_id = 56, + job_resources = slurmrest_python.models.v0/0/43_job_res.v0.0.43_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_43_job_res_nodes.v0_0_43_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/43_job_res_node.v0.0.43_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/43_job_res_socket.v0.0.43_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/43_job_res_core.v0.0.43_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = , ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = , + licenses = '', + licenses_allocated = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = , + max_nodes = , + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = , + tasks_per_tres = , + tasks_per_node = , + tasks_per_socket = , + tasks_per_board = , + cpus = , + node_count = , + tasks = , + partition = '', + prefer = '', + memory_per_cpu = , + memory_per_node = , + minimum_cpus_per_node = , + minimum_tmp_disk_per_node = , + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = , + preemptable_time = , + pre_sus_time = , + hold = True, + priority = , + priority_by_partition = [ + slurmrest_python.models.v0/0/43_part_prio.v0.0.43_part_prio( + partition = '', ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = , + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + segment_size = 56, + selinux_context = '', + shared = [ + 'none' + ], + sockets_per_board = 56, + sockets_per_node = , + start_time = , + state_description = '', + state_reason = '', + standard_input = '', + standard_output = '', + standard_error = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + submit_time = , + suspend_time = , + system_comment = '', + time_limit = , + time_minimum = , + threads_per_core = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043OpenapiJobInfoResp(self): + """Test V0043OpenapiJobInfoResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_job_post_response.py b/test/test_v0043_openapi_job_post_response.py new file mode 100644 index 0000000..15d06a4 --- /dev/null +++ b/test/test_v0043_openapi_job_post_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_job_post_response import V0043OpenapiJobPostResponse + +class TestV0043OpenapiJobPostResponse(unittest.TestCase): + """V0043OpenapiJobPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiJobPostResponse: + """Test V0043OpenapiJobPostResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiJobPostResponse` + """ + model = V0043OpenapiJobPostResponse() + if include_optional: + return V0043OpenapiJobPostResponse( + results = [ + slurmrest_python.models.v0/0/43_job_array_response_msg_entry.v0.0.43_job_array_response_msg_entry( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '', ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiJobPostResponse( + ) + """ + + def testV0043OpenapiJobPostResponse(self): + """Test V0043OpenapiJobPostResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_job_submit_response.py b/test/test_v0043_openapi_job_submit_response.py new file mode 100644 index 0000000..350bc3b --- /dev/null +++ b/test/test_v0043_openapi_job_submit_response.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_job_submit_response import V0043OpenapiJobSubmitResponse + +class TestV0043OpenapiJobSubmitResponse(unittest.TestCase): + """V0043OpenapiJobSubmitResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiJobSubmitResponse: + """Test V0043OpenapiJobSubmitResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiJobSubmitResponse` + """ + model = V0043OpenapiJobSubmitResponse() + if include_optional: + return V0043OpenapiJobSubmitResponse( + job_id = 56, + step_id = '', + job_submit_user_msg = '', + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiJobSubmitResponse( + ) + """ + + def testV0043OpenapiJobSubmitResponse(self): + """Test V0043OpenapiJobSubmitResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_kill_job_resp.py b/test/test_v0043_openapi_kill_job_resp.py new file mode 100644 index 0000000..646b06a --- /dev/null +++ b/test/test_v0043_openapi_kill_job_resp.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_kill_job_resp import V0043OpenapiKillJobResp + +class TestV0043OpenapiKillJobResp(unittest.TestCase): + """V0043OpenapiKillJobResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiKillJobResp: + """Test V0043OpenapiKillJobResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiKillJobResp` + """ + model = V0043OpenapiKillJobResp() + if include_optional: + return V0043OpenapiKillJobResp( + status = [ + slurmrest_python.models.v0/0/43_kill_jobs_resp_job.v0.0.43_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiKillJobResp( + status = [ + slurmrest_python.models.v0/0/43_kill_jobs_resp_job.v0.0.43_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + ) + """ + + def testV0043OpenapiKillJobResp(self): + """Test V0043OpenapiKillJobResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_kill_jobs_resp.py b/test/test_v0043_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..dc12cc8 --- /dev/null +++ b/test/test_v0043_openapi_kill_jobs_resp.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_kill_jobs_resp import V0043OpenapiKillJobsResp + +class TestV0043OpenapiKillJobsResp(unittest.TestCase): + """V0043OpenapiKillJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiKillJobsResp: + """Test V0043OpenapiKillJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiKillJobsResp` + """ + model = V0043OpenapiKillJobsResp() + if include_optional: + return V0043OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0/0/43_kill_jobs_resp_job.v0.0.43_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0/0/43_kill_jobs_resp_job.v0.0.43_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + ) + """ + + def testV0043OpenapiKillJobsResp(self): + """Test V0043OpenapiKillJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_licenses_resp.py b/test/test_v0043_openapi_licenses_resp.py new file mode 100644 index 0000000..9c968d4 --- /dev/null +++ b/test/test_v0043_openapi_licenses_resp.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_licenses_resp import V0043OpenapiLicensesResp + +class TestV0043OpenapiLicensesResp(unittest.TestCase): + """V0043OpenapiLicensesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiLicensesResp: + """Test V0043OpenapiLicensesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiLicensesResp` + """ + model = V0043OpenapiLicensesResp() + if include_optional: + return V0043OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0/0/43_license.v0.0.43_license( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0/0/43_license.v0.0.43_license( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043OpenapiLicensesResp(self): + """Test V0043OpenapiLicensesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_meta.py b/test/test_v0043_openapi_meta.py new file mode 100644 index 0000000..89dea05 --- /dev/null +++ b/test/test_v0043_openapi_meta.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_meta import V0043OpenapiMeta + +class TestV0043OpenapiMeta(unittest.TestCase): + """V0043OpenapiMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiMeta: + """Test V0043OpenapiMeta + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiMeta` + """ + model = V0043OpenapiMeta() + if include_optional: + return V0043OpenapiMeta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ) + ) + else: + return V0043OpenapiMeta( + ) + """ + + def testV0043OpenapiMeta(self): + """Test V0043OpenapiMeta""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_nodes_resp.py b/test/test_v0043_openapi_nodes_resp.py new file mode 100644 index 0000000..fdb81e3 --- /dev/null +++ b/test/test_v0043_openapi_nodes_resp.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_nodes_resp import V0043OpenapiNodesResp + +class TestV0043OpenapiNodesResp(unittest.TestCase): + """V0043OpenapiNodesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiNodesResp: + """Test V0043OpenapiNodesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiNodesResp` + """ + model = V0043OpenapiNodesResp() + if include_optional: + return V0043OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0/0/43_node.v0.0.43_node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tls_cert_last_renewal = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cert_flags = [ + 'TOKEN_SET' + ], + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = , + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/43_acct_gather_energy.v0.0.43_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = , + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = , + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = , + reason_set_by_user = '', + resume_after = , + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = , + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + topology = '', + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0/0/43_node.v0.0.43_node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tls_cert_last_renewal = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cert_flags = [ + 'TOKEN_SET' + ], + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = , + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/43_acct_gather_energy.v0.0.43_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = , + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = , + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = , + reason_set_by_user = '', + resume_after = , + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = , + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + topology = '', + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043OpenapiNodesResp(self): + """Test V0043OpenapiNodesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_partition_resp.py b/test/test_v0043_openapi_partition_resp.py new file mode 100644 index 0000000..1a5a0d4 --- /dev/null +++ b/test/test_v0043_openapi_partition_resp.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_partition_resp import V0043OpenapiPartitionResp + +class TestV0043OpenapiPartitionResp(unittest.TestCase): + """V0043OpenapiPartitionResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiPartitionResp: + """Test V0043OpenapiPartitionResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiPartitionResp` + """ + model = V0043OpenapiPartitionResp() + if include_optional: + return V0043OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0/0/43_partition_info.v0.0.43_partition_info( + nodes = slurmrest_python.models.v0_0_44_partition_info_nodes.v0_0_44_partition_info_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_44_partition_info_accounts.v0_0_44_partition_info_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_44_partition_info_groups.v0_0_44_partition_info_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_44_partition_info_qos.v0_0_44_partition_info_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_44_partition_info_tres.v0_0_44_partition_info_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_44_partition_info_cpus.v0_0_44_partition_info_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_43_partition_info_defaults.v0_0_43_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_43_partition_info_maximums.v0_0_43_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = , + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_44_partition_info_minimums.v0_0_44_partition_info_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_44_partition_info_priority.v0_0_44_partition_info_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_43_partition_info_timeouts.v0_0_43_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = , ), + topology = '', + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = , ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0/0/43_partition_info.v0.0.43_partition_info( + nodes = slurmrest_python.models.v0_0_44_partition_info_nodes.v0_0_44_partition_info_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_44_partition_info_accounts.v0_0_44_partition_info_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_44_partition_info_groups.v0_0_44_partition_info_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_44_partition_info_qos.v0_0_44_partition_info_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_44_partition_info_tres.v0_0_44_partition_info_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_44_partition_info_cpus.v0_0_44_partition_info_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_43_partition_info_defaults.v0_0_43_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_43_partition_info_maximums.v0_0_43_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = , + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_44_partition_info_minimums.v0_0_44_partition_info_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_44_partition_info_priority.v0_0_44_partition_info_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_43_partition_info_timeouts.v0_0_43_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = , ), + topology = '', + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = , ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043OpenapiPartitionResp(self): + """Test V0043OpenapiPartitionResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_ping_array_resp.py b/test/test_v0043_openapi_ping_array_resp.py new file mode 100644 index 0000000..0049b4d --- /dev/null +++ b/test/test_v0043_openapi_ping_array_resp.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_ping_array_resp import V0043OpenapiPingArrayResp + +class TestV0043OpenapiPingArrayResp(unittest.TestCase): + """V0043OpenapiPingArrayResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiPingArrayResp: + """Test V0043OpenapiPingArrayResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiPingArrayResp` + """ + model = V0043OpenapiPingArrayResp() + if include_optional: + return V0043OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0/0/43_controller_ping.v0.0.43_controller_ping( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True, ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0/0/43_controller_ping.v0.0.43_controller_ping( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True, ) + ], + ) + """ + + def testV0043OpenapiPingArrayResp(self): + """Test V0043OpenapiPingArrayResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_reservation_mod_resp.py b/test/test_v0043_openapi_reservation_mod_resp.py new file mode 100644 index 0000000..19f3467 --- /dev/null +++ b/test/test_v0043_openapi_reservation_mod_resp.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_reservation_mod_resp import V0043OpenapiReservationModResp + +class TestV0043OpenapiReservationModResp(unittest.TestCase): + """V0043OpenapiReservationModResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiReservationModResp: + """Test V0043OpenapiReservationModResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiReservationModResp` + """ + model = V0043OpenapiReservationModResp() + if include_optional: + return V0043OpenapiReservationModResp( + reservations = [ + slurmrest_python.models.v0/0/43_reservation_desc_msg.v0.0.43_reservation_desc_msg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = , + max_start_delay = , + name = '', + node_count = , + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_43_reservation_info_purge_completed.v0_0_43_reservation_info_purge_completed( + time = , ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = , ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiReservationModResp( + reservations = [ + slurmrest_python.models.v0/0/43_reservation_desc_msg.v0.0.43_reservation_desc_msg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = , + max_start_delay = , + name = '', + node_count = , + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_43_reservation_info_purge_completed.v0_0_43_reservation_info_purge_completed( + time = , ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = , ) + ], + ) + """ + + def testV0043OpenapiReservationModResp(self): + """Test V0043OpenapiReservationModResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_reservation_resp.py b/test/test_v0043_openapi_reservation_resp.py new file mode 100644 index 0000000..38b3cfa --- /dev/null +++ b/test/test_v0043_openapi_reservation_resp.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_reservation_resp import V0043OpenapiReservationResp + +class TestV0043OpenapiReservationResp(unittest.TestCase): + """V0043OpenapiReservationResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiReservationResp: + """Test V0043OpenapiReservationResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiReservationResp` + """ + model = V0043OpenapiReservationResp() + if include_optional: + return V0043OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0/0/43_reservation_info.v0.0.43_reservation_info( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/43_reservation_core_spec.v0.0.43_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_43_reservation_info_purge_completed.v0_0_43_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0/0/43_reservation_info.v0.0.43_reservation_info( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/43_reservation_core_spec.v0.0.43_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_43_reservation_info_purge_completed.v0_0_43_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043OpenapiReservationResp(self): + """Test V0043OpenapiReservationResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_resp.py b/test/test_v0043_openapi_resp.py new file mode 100644 index 0000000..82737b4 --- /dev/null +++ b/test/test_v0043_openapi_resp.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_resp import V0043OpenapiResp + +class TestV0043OpenapiResp(unittest.TestCase): + """V0043OpenapiResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiResp: + """Test V0043OpenapiResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiResp` + """ + model = V0043OpenapiResp() + if include_optional: + return V0043OpenapiResp( + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiResp( + ) + """ + + def testV0043OpenapiResp(self): + """Test V0043OpenapiResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_shares_resp.py b/test/test_v0043_openapi_shares_resp.py new file mode 100644 index 0000000..66a0b8c --- /dev/null +++ b/test/test_v0043_openapi_shares_resp.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_shares_resp import V0043OpenapiSharesResp + +class TestV0043OpenapiSharesResp(unittest.TestCase): + """V0043OpenapiSharesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiSharesResp: + """Test V0043OpenapiSharesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiSharesResp` + """ + model = V0043OpenapiSharesResp() + if include_optional: + return V0043OpenapiSharesResp( + shares = slurmrest_python.models.v0/0/43_shares_resp_msg.v0.0.43_shares_resp_msg( + shares = [ + slurmrest_python.models.v0/0/43_assoc_shares_obj_wrap.v0.0.43_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_tres.v0_0_43_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/43_shares_float128_tres.v0.0.43_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_fairshare.v0_0_43_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiSharesResp( + shares = slurmrest_python.models.v0/0/43_shares_resp_msg.v0.0.43_shares_resp_msg( + shares = [ + slurmrest_python.models.v0/0/43_assoc_shares_obj_wrap.v0.0.43_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_tres.v0_0_43_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/43_shares_float128_tres.v0.0.43_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_fairshare.v0_0_43_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + ) + """ + + def testV0043OpenapiSharesResp(self): + """Test V0043OpenapiSharesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_slurmdbd_config_resp.py b/test/test_v0043_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..4cf1f1d --- /dev/null +++ b/test/test_v0043_openapi_slurmdbd_config_resp.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_slurmdbd_config_resp import V0043OpenapiSlurmdbdConfigResp + +class TestV0043OpenapiSlurmdbdConfigResp(unittest.TestCase): + """V0043OpenapiSlurmdbdConfigResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiSlurmdbdConfigResp: + """Test V0043OpenapiSlurmdbdConfigResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiSlurmdbdConfigResp` + """ + model = V0043OpenapiSlurmdbdConfigResp() + if include_optional: + return V0043OpenapiSlurmdbdConfigResp( + clusters = [ + slurmrest_python.models.v0/0/43_cluster_rec.v0.0.43_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_43_cluster_rec_associations.v0_0_43_cluster_rec_associations( + root = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + accounts = [ + slurmrest_python.models.v0/0/43_account.v0.0.43_account( + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + users = [ + slurmrest_python.models.v0/0/43_user.v0.0.43_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/43_wckey.v0.0.43_wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + qos = [ + slurmrest_python.models.v0/0/43_qos.v0.0.43_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_43_qos_limits.v0_0_43_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_43_qos_limits_max.v0_0_43_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_active_jobs.v0_0_43_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs.v0_0_43_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_43_qos_limits_max_tres.v0_0_43_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes.v0_0_43_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock.v0_0_43_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_43_qos_limits_min.v0_0_43_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_43_qos_preempt.v0_0_43_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + wckeys = [ + slurmrest_python.models.v0/0/43_wckey.v0.0.43_wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + associations = [ + slurmrest_python.models.v0/0/43_assoc.v0.0.43_assoc( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_43_assoc_max.v0_0_43_assoc_max( + jobs = slurmrest_python.models.v0_0_43_assoc_max_jobs.v0_0_43_assoc_max_jobs( + per = slurmrest_python.models.v0_0_43_assoc_max_jobs_per.v0_0_43_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_43_assoc_max_tres.v0_0_43_assoc_max_tres( + group = slurmrest_python.models.v0_0_43_assoc_max_tres_group.v0_0_43_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_43_assoc_max_tres_minutes.v0_0_43_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_43_assoc_max_per.v0_0_43_assoc_max_per( + account = slurmrest_python.models.v0_0_43_assoc_max_per_account.v0_0_43_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_43_assoc_min.v0_0_43_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + instances = [ + slurmrest_python.models.v0/0/43_instance.v0.0.43_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiSlurmdbdConfigResp( + ) + """ + + def testV0043OpenapiSlurmdbdConfigResp(self): + """Test V0043OpenapiSlurmdbdConfigResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_slurmdbd_jobs_resp.py b/test/test_v0043_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..a43ebf4 --- /dev/null +++ b/test/test_v0043_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,413 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_slurmdbd_jobs_resp import V0043OpenapiSlurmdbdJobsResp + +class TestV0043OpenapiSlurmdbdJobsResp(unittest.TestCase): + """V0043OpenapiSlurmdbdJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiSlurmdbdJobsResp: + """Test V0043OpenapiSlurmdbdJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiSlurmdbdJobsResp` + """ + model = V0043OpenapiSlurmdbdJobsResp() + if include_optional: + return V0043OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0/0/43_job.v0.0.43_job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_43_job_array.v0_0_43_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_43_job_time.v0_0_43_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = , + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose(), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_43_job_het.v0_0_43_job_het( + job_id = 56, + job_offset = , ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = , + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_43_job_required.v0_0_43_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = , ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_44_job_reservation.v0_0_44_job_reservation( + name = '', + requested = '', ), + script = '', + segment_size = 56, + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/43_step.v0.0.43_step( + nodes = slurmrest_python.models.v0_0_43_step_nodes.v0_0_43_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_43_step_cpu.v0_0_43_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_43_step_cpu_requested_frequency.v0_0_43_step_CPU_requested_frequency( + min = , ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_43_step_statistics.v0_0_43_step_statistics( + energy = slurmrest_python.models.v0_0_43_step_statistics_energy.v0_0_43_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_43_step_tres.v0_0_43_step_tres( + requested = slurmrest_python.models.v0_0_43_step_tres_requested.v0_0_43_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_43_job_tres.v0_0_43_job_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/43_wckey_tag_struct.v0.0.43_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0/0/43_job.v0.0.43_job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_43_job_array.v0_0_43_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_43_job_time.v0_0_43_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = , + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose(), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_43_job_het.v0_0_43_job_het( + job_id = 56, + job_offset = , ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = , + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_43_job_required.v0_0_43_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = , ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_44_job_reservation.v0_0_44_job_reservation( + name = '', + requested = '', ), + script = '', + segment_size = 56, + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/43_step.v0.0.43_step( + nodes = slurmrest_python.models.v0_0_43_step_nodes.v0_0_43_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_43_step_cpu.v0_0_43_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_43_step_cpu_requested_frequency.v0_0_43_step_CPU_requested_frequency( + min = , ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_43_step_statistics.v0_0_43_step_statistics( + energy = slurmrest_python.models.v0_0_43_step_statistics_energy.v0_0_43_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_43_step_tres.v0_0_43_step_tres( + requested = slurmrest_python.models.v0_0_43_step_tres_requested.v0_0_43_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_43_job_tres.v0_0_43_job_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/43_wckey_tag_struct.v0.0.43_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + ) + """ + + def testV0043OpenapiSlurmdbdJobsResp(self): + """Test V0043OpenapiSlurmdbdJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_slurmdbd_ping_resp.py b/test/test_v0043_openapi_slurmdbd_ping_resp.py new file mode 100644 index 0000000..53d837d --- /dev/null +++ b/test/test_v0043_openapi_slurmdbd_ping_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_slurmdbd_ping_resp import V0043OpenapiSlurmdbdPingResp + +class TestV0043OpenapiSlurmdbdPingResp(unittest.TestCase): + """V0043OpenapiSlurmdbdPingResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiSlurmdbdPingResp: + """Test V0043OpenapiSlurmdbdPingResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiSlurmdbdPingResp` + """ + model = V0043OpenapiSlurmdbdPingResp() + if include_optional: + return V0043OpenapiSlurmdbdPingResp( + pings = [ + slurmrest_python.models.v0/0/43_slurmdbd_ping.v0.0.43_slurmdbd_ping( + hostname = '', + responding = True, + latency = 56, + primary = True, ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiSlurmdbdPingResp( + pings = [ + slurmrest_python.models.v0/0/43_slurmdbd_ping.v0.0.43_slurmdbd_ping( + hostname = '', + responding = True, + latency = 56, + primary = True, ) + ], + ) + """ + + def testV0043OpenapiSlurmdbdPingResp(self): + """Test V0043OpenapiSlurmdbdPingResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_slurmdbd_qos_removed_resp.py b/test/test_v0043_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..7e89338 --- /dev/null +++ b/test/test_v0043_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_removed_resp import V0043OpenapiSlurmdbdQosRemovedResp + +class TestV0043OpenapiSlurmdbdQosRemovedResp(unittest.TestCase): + """V0043OpenapiSlurmdbdQosRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiSlurmdbdQosRemovedResp: + """Test V0043OpenapiSlurmdbdQosRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiSlurmdbdQosRemovedResp` + """ + model = V0043OpenapiSlurmdbdQosRemovedResp() + if include_optional: + return V0043OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + ) + """ + + def testV0043OpenapiSlurmdbdQosRemovedResp(self): + """Test V0043OpenapiSlurmdbdQosRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_slurmdbd_qos_resp.py b/test/test_v0043_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..7687674 --- /dev/null +++ b/test/test_v0043_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_slurmdbd_qos_resp import V0043OpenapiSlurmdbdQosResp + +class TestV0043OpenapiSlurmdbdQosResp(unittest.TestCase): + """V0043OpenapiSlurmdbdQosResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiSlurmdbdQosResp: + """Test V0043OpenapiSlurmdbdQosResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiSlurmdbdQosResp` + """ + model = V0043OpenapiSlurmdbdQosResp() + if include_optional: + return V0043OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0/0/43_qos.v0.0.43_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_43_qos_limits.v0_0_43_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_43_qos_limits_max.v0_0_43_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_active_jobs.v0_0_43_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs.v0_0_43_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_43_qos_limits_max_tres.v0_0_43_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes.v0_0_43_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock.v0_0_43_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_43_qos_limits_min.v0_0_43_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_43_qos_preempt.v0_0_43_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0/0/43_qos.v0.0.43_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_43_qos_limits.v0_0_43_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_43_qos_limits_max.v0_0_43_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_active_jobs.v0_0_43_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs.v0_0_43_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_43_qos_limits_max_tres.v0_0_43_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes.v0_0_43_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock.v0_0_43_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_43_qos_limits_min.v0_0_43_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_43_qos_preempt.v0_0_43_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + ) + """ + + def testV0043OpenapiSlurmdbdQosResp(self): + """Test V0043OpenapiSlurmdbdQosResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_slurmdbd_stats_resp.py b/test/test_v0043_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..4045904 --- /dev/null +++ b/test/test_v0043_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_slurmdbd_stats_resp import V0043OpenapiSlurmdbdStatsResp + +class TestV0043OpenapiSlurmdbdStatsResp(unittest.TestCase): + """V0043OpenapiSlurmdbdStatsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiSlurmdbdStatsResp: + """Test V0043OpenapiSlurmdbdStatsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiSlurmdbdStatsResp` + """ + model = V0043OpenapiSlurmdbdStatsResp() + if include_optional: + return V0043OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0/0/43_stats_rec.v0.0.43_stats_rec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/43_rollup_stats.v0.0.43_rollup_stats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/43_stats_rpc.v0.0.43_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/43_stats_user.v0.0.43_stats_user( + user = '', + count = 56, ) + ], ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0/0/43_stats_rec.v0.0.43_stats_rec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/43_rollup_stats.v0.0.43_rollup_stats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/43_stats_rpc.v0.0.43_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/43_stats_user.v0.0.43_stats_user( + user = '', + count = 56, ) + ], ), + ) + """ + + def testV0043OpenapiSlurmdbdStatsResp(self): + """Test V0043OpenapiSlurmdbdStatsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_tres_resp.py b/test/test_v0043_openapi_tres_resp.py new file mode 100644 index 0000000..3de96e3 --- /dev/null +++ b/test/test_v0043_openapi_tres_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_tres_resp import V0043OpenapiTresResp + +class TestV0043OpenapiTresResp(unittest.TestCase): + """V0043OpenapiTresResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiTresResp: + """Test V0043OpenapiTresResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiTresResp` + """ + model = V0043OpenapiTresResp() + if include_optional: + return V0043OpenapiTresResp( + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiTresResp( + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + ) + """ + + def testV0043OpenapiTresResp(self): + """Test V0043OpenapiTresResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_users_add_cond_resp.py b/test/test_v0043_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..321fc09 --- /dev/null +++ b/test/test_v0043_openapi_users_add_cond_resp.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_users_add_cond_resp import V0043OpenapiUsersAddCondResp + +class TestV0043OpenapiUsersAddCondResp(unittest.TestCase): + """V0043OpenapiUsersAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiUsersAddCondResp: + """Test V0043OpenapiUsersAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiUsersAddCondResp` + """ + model = V0043OpenapiUsersAddCondResp() + if include_optional: + return V0043OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0/0/43_users_add_cond.v0.0.43_users_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/43_assoc_rec_set.v0.0.43_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = , + users = , + wckeys = , ), + user = slurmrest_python.models.v0/0/43_user_short.v0.0.43_user_short( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '', ), + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0/0/43_users_add_cond.v0.0.43_users_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/43_assoc_rec_set.v0.0.43_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = , + users = , + wckeys = , ), + user = slurmrest_python.models.v0/0/43_user_short.v0.0.43_user_short( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '', ), + ) + """ + + def testV0043OpenapiUsersAddCondResp(self): + """Test V0043OpenapiUsersAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_users_add_cond_resp_str.py b/test/test_v0043_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..a49c6c0 --- /dev/null +++ b/test/test_v0043_openapi_users_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_users_add_cond_resp_str import V0043OpenapiUsersAddCondRespStr + +class TestV0043OpenapiUsersAddCondRespStr(unittest.TestCase): + """V0043OpenapiUsersAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiUsersAddCondRespStr: + """Test V0043OpenapiUsersAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiUsersAddCondRespStr` + """ + model = V0043OpenapiUsersAddCondRespStr() + if include_optional: + return V0043OpenapiUsersAddCondRespStr( + added_users = '', + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiUsersAddCondRespStr( + added_users = '', + ) + """ + + def testV0043OpenapiUsersAddCondRespStr(self): + """Test V0043OpenapiUsersAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_users_resp.py b/test/test_v0043_openapi_users_resp.py new file mode 100644 index 0000000..6430006 --- /dev/null +++ b/test/test_v0043_openapi_users_resp.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_users_resp import V0043OpenapiUsersResp + +class TestV0043OpenapiUsersResp(unittest.TestCase): + """V0043OpenapiUsersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiUsersResp: + """Test V0043OpenapiUsersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiUsersResp` + """ + model = V0043OpenapiUsersResp() + if include_optional: + return V0043OpenapiUsersResp( + users = [ + slurmrest_python.models.v0/0/43_user.v0.0.43_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/43_wckey.v0.0.43_wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiUsersResp( + users = [ + slurmrest_python.models.v0/0/43_user.v0.0.43_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/43_wckey.v0.0.43_wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + ) + """ + + def testV0043OpenapiUsersResp(self): + """Test V0043OpenapiUsersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_warning.py b/test/test_v0043_openapi_warning.py new file mode 100644 index 0000000..45d8c02 --- /dev/null +++ b/test/test_v0043_openapi_warning.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_warning import V0043OpenapiWarning + +class TestV0043OpenapiWarning(unittest.TestCase): + """V0043OpenapiWarning unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiWarning: + """Test V0043OpenapiWarning + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiWarning` + """ + model = V0043OpenapiWarning() + if include_optional: + return V0043OpenapiWarning( + description = '', + source = '' + ) + else: + return V0043OpenapiWarning( + ) + """ + + def testV0043OpenapiWarning(self): + """Test V0043OpenapiWarning""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_wckey_removed_resp.py b/test/test_v0043_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..26f72eb --- /dev/null +++ b/test/test_v0043_openapi_wckey_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_wckey_removed_resp import V0043OpenapiWckeyRemovedResp + +class TestV0043OpenapiWckeyRemovedResp(unittest.TestCase): + """V0043OpenapiWckeyRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiWckeyRemovedResp: + """Test V0043OpenapiWckeyRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiWckeyRemovedResp` + """ + model = V0043OpenapiWckeyRemovedResp() + if include_optional: + return V0043OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + ) + """ + + def testV0043OpenapiWckeyRemovedResp(self): + """Test V0043OpenapiWckeyRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_openapi_wckey_resp.py b/test/test_v0043_openapi_wckey_resp.py new file mode 100644 index 0000000..73b17c2 --- /dev/null +++ b/test/test_v0043_openapi_wckey_resp.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_openapi_wckey_resp import V0043OpenapiWckeyResp + +class TestV0043OpenapiWckeyResp(unittest.TestCase): + """V0043OpenapiWckeyResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043OpenapiWckeyResp: + """Test V0043OpenapiWckeyResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043OpenapiWckeyResp` + """ + model = V0043OpenapiWckeyResp() + if include_optional: + return V0043OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0/0/43_wckey.v0.0.43_wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0/0/43_openapi_meta.v0.0.43_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/43_openapi_error.v0.0.43_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/43_openapi_warning.v0.0.43_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0043OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0/0/43_wckey.v0.0.43_wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0043OpenapiWckeyResp(self): + """Test V0043OpenapiWckeyResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_part_prio.py b/test/test_v0043_part_prio.py new file mode 100644 index 0000000..d22fc83 --- /dev/null +++ b/test/test_v0043_part_prio.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_part_prio import V0043PartPrio + +class TestV0043PartPrio(unittest.TestCase): + """V0043PartPrio unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043PartPrio: + """Test V0043PartPrio + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043PartPrio` + """ + model = V0043PartPrio() + if include_optional: + return V0043PartPrio( + partition = '', + priority = 56 + ) + else: + return V0043PartPrio( + ) + """ + + def testV0043PartPrio(self): + """Test V0043PartPrio""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_partition_info.py b/test/test_v0043_partition_info.py new file mode 100644 index 0000000..1694a1e --- /dev/null +++ b/test/test_v0043_partition_info.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_partition_info import V0043PartitionInfo + +class TestV0043PartitionInfo(unittest.TestCase): + """V0043PartitionInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043PartitionInfo: + """Test V0043PartitionInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043PartitionInfo` + """ + model = V0043PartitionInfo() + if include_optional: + return V0043PartitionInfo( + nodes = slurmrest_python.models.v0_0_44_partition_info_nodes.v0_0_44_partition_info_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_44_partition_info_accounts.v0_0_44_partition_info_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_44_partition_info_groups.v0_0_44_partition_info_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_44_partition_info_qos.v0_0_44_partition_info_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_44_partition_info_tres.v0_0_44_partition_info_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_44_partition_info_cpus.v0_0_44_partition_info_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_43_partition_info_defaults.v0_0_43_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_43_partition_info_maximums.v0_0_43_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nodes = , + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = , + over_time_limit = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_44_partition_info_minimums.v0_0_44_partition_info_minimums( + nodes = 56, ), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_44_partition_info_priority.v0_0_44_partition_info_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_43_partition_info_timeouts.v0_0_43_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + topology = '', + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043PartitionInfo( + ) + """ + + def testV0043PartitionInfo(self): + """Test V0043PartitionInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_partition_info_defaults.py b/test/test_v0043_partition_info_defaults.py new file mode 100644 index 0000000..62a97da --- /dev/null +++ b/test/test_v0043_partition_info_defaults.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_partition_info_defaults import V0043PartitionInfoDefaults + +class TestV0043PartitionInfoDefaults(unittest.TestCase): + """V0043PartitionInfoDefaults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043PartitionInfoDefaults: + """Test V0043PartitionInfoDefaults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043PartitionInfoDefaults` + """ + model = V0043PartitionInfoDefaults() + if include_optional: + return V0043PartitionInfoDefaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '' + ) + else: + return V0043PartitionInfoDefaults( + ) + """ + + def testV0043PartitionInfoDefaults(self): + """Test V0043PartitionInfoDefaults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_partition_info_maximums.py b/test/test_v0043_partition_info_maximums.py new file mode 100644 index 0000000..be424b8 --- /dev/null +++ b/test/test_v0043_partition_info_maximums.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_partition_info_maximums import V0043PartitionInfoMaximums + +class TestV0043PartitionInfoMaximums(unittest.TestCase): + """V0043PartitionInfoMaximums unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043PartitionInfoMaximums: + """Test V0043PartitionInfoMaximums + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043PartitionInfoMaximums` + """ + model = V0043PartitionInfoMaximums() + if include_optional: + return V0043PartitionInfoMaximums( + cpus_per_node = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nodes = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + over_time_limit = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043PartitionInfoMaximums( + ) + """ + + def testV0043PartitionInfoMaximums(self): + """Test V0043PartitionInfoMaximums""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_partition_info_timeouts.py b/test/test_v0043_partition_info_timeouts.py new file mode 100644 index 0000000..65cee78 --- /dev/null +++ b/test/test_v0043_partition_info_timeouts.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_partition_info_timeouts import V0043PartitionInfoTimeouts + +class TestV0043PartitionInfoTimeouts(unittest.TestCase): + """V0043PartitionInfoTimeouts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043PartitionInfoTimeouts: + """Test V0043PartitionInfoTimeouts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043PartitionInfoTimeouts` + """ + model = V0043PartitionInfoTimeouts() + if include_optional: + return V0043PartitionInfoTimeouts( + resume = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043PartitionInfoTimeouts( + ) + """ + + def testV0043PartitionInfoTimeouts(self): + """Test V0043PartitionInfoTimeouts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_process_exit_code_verbose.py b/test/test_v0043_process_exit_code_verbose.py new file mode 100644 index 0000000..af6afe5 --- /dev/null +++ b/test/test_v0043_process_exit_code_verbose.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_process_exit_code_verbose import V0043ProcessExitCodeVerbose + +class TestV0043ProcessExitCodeVerbose(unittest.TestCase): + """V0043ProcessExitCodeVerbose unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ProcessExitCodeVerbose: + """Test V0043ProcessExitCodeVerbose + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ProcessExitCodeVerbose` + """ + model = V0043ProcessExitCodeVerbose() + if include_optional: + return V0043ProcessExitCodeVerbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ) + ) + else: + return V0043ProcessExitCodeVerbose( + ) + """ + + def testV0043ProcessExitCodeVerbose(self): + """Test V0043ProcessExitCodeVerbose""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_process_exit_code_verbose_signal.py b/test/test_v0043_process_exit_code_verbose_signal.py new file mode 100644 index 0000000..e41a336 --- /dev/null +++ b/test/test_v0043_process_exit_code_verbose_signal.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_process_exit_code_verbose_signal import V0043ProcessExitCodeVerboseSignal + +class TestV0043ProcessExitCodeVerboseSignal(unittest.TestCase): + """V0043ProcessExitCodeVerboseSignal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ProcessExitCodeVerboseSignal: + """Test V0043ProcessExitCodeVerboseSignal + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ProcessExitCodeVerboseSignal` + """ + model = V0043ProcessExitCodeVerboseSignal() + if include_optional: + return V0043ProcessExitCodeVerboseSignal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '' + ) + else: + return V0043ProcessExitCodeVerboseSignal( + ) + """ + + def testV0043ProcessExitCodeVerboseSignal(self): + """Test V0043ProcessExitCodeVerboseSignal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos.py b/test/test_v0043_qos.py new file mode 100644 index 0000000..8f8878e --- /dev/null +++ b/test/test_v0043_qos.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos import V0043Qos + +class TestV0043Qos(unittest.TestCase): + """V0043Qos unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Qos: + """Test V0043Qos + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Qos` + """ + model = V0043Qos() + if include_optional: + return V0043Qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_43_qos_limits.v0_0_43_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_43_qos_limits_max.v0_0_43_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_active_jobs.v0_0_43_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs.v0_0_43_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_43_qos_limits_max_tres.v0_0_43_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes.v0_0_43_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock.v0_0_43_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_43_qos_limits_min.v0_0_43_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_43_qos_preempt.v0_0_43_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + priority = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + usage_factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ) + ) + else: + return V0043Qos( + ) + """ + + def testV0043Qos(self): + """Test V0043Qos""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits.py b/test/test_v0043_qos_limits.py new file mode 100644 index 0000000..ffe5691 --- /dev/null +++ b/test/test_v0043_qos_limits.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits import V0043QosLimits + +class TestV0043QosLimits(unittest.TestCase): + """V0043QosLimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimits: + """Test V0043QosLimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimits` + """ + model = V0043QosLimits() + if include_optional: + return V0043QosLimits( + grace_time = 56, + max = slurmrest_python.models.v0_0_43_qos_limits_max.v0_0_43_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_active_jobs.v0_0_43_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs.v0_0_43_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_43_qos_limits_max_tres.v0_0_43_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes.v0_0_43_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, ) + ], ), ), + wall_clock = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock.v0_0_43_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_43_qos_limits_min.v0_0_43_qos_limits_min( + priority_threshold = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_43_qos_limits_min_tres.v0_0_43_qos_limits_min_tres( + per = slurmrest_python.models.v0_0_43_qos_limits_min_tres_per.v0_0_43_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), ) + ) + else: + return V0043QosLimits( + ) + """ + + def testV0043QosLimits(self): + """Test V0043QosLimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max.py b/test/test_v0043_qos_limits_max.py new file mode 100644 index 0000000..97c21e3 --- /dev/null +++ b/test/test_v0043_qos_limits_max.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max import V0043QosLimitsMax + +class TestV0043QosLimitsMax(unittest.TestCase): + """V0043QosLimitsMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMax: + """Test V0043QosLimitsMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMax` + """ + model = V0043QosLimitsMax() + if include_optional: + return V0043QosLimitsMax( + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_active_jobs.v0_0_43_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs.v0_0_43_qos_limits_max_jobs( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = , ), ), + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per(), ), + tres = slurmrest_python.models.v0_0_43_qos_limits_max_tres.v0_0_43_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes.v0_0_43_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes_per.v0_0_43_qos_limits_max_tres_minutes_per( + qos = , + job = , + account = , + user = , ), ), + per = slurmrest_python.models.v0_0_43_qos_limits_max_tres_per.v0_0_43_qos_limits_max_tres_per( + account = , + job = , + node = , + user = , ), ), + wall_clock = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock.v0_0_43_qos_limits_max_wall_clock( + per = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock_per.v0_0_43_qos_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + accruing = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0043QosLimitsMax( + ) + """ + + def testV0043QosLimitsMax(self): + """Test V0043QosLimitsMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_active_jobs.py b/test/test_v0043_qos_limits_max_active_jobs.py new file mode 100644 index 0000000..fda1b86 --- /dev/null +++ b/test/test_v0043_qos_limits_max_active_jobs.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_active_jobs import V0043QosLimitsMaxActiveJobs + +class TestV0043QosLimitsMaxActiveJobs(unittest.TestCase): + """V0043QosLimitsMaxActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxActiveJobs: + """Test V0043QosLimitsMaxActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxActiveJobs` + """ + model = V0043QosLimitsMaxActiveJobs() + if include_optional: + return V0043QosLimitsMaxActiveJobs( + accruing = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043QosLimitsMaxActiveJobs( + ) + """ + + def testV0043QosLimitsMaxActiveJobs(self): + """Test V0043QosLimitsMaxActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_jobs.py b/test/test_v0043_qos_limits_max_jobs.py new file mode 100644 index 0000000..e12ec1c --- /dev/null +++ b/test/test_v0043_qos_limits_max_jobs.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_jobs import V0043QosLimitsMaxJobs + +class TestV0043QosLimitsMaxJobs(unittest.TestCase): + """V0043QosLimitsMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxJobs: + """Test V0043QosLimitsMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxJobs` + """ + model = V0043QosLimitsMaxJobs() + if include_optional: + return V0043QosLimitsMaxJobs( + count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + active_jobs = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs.v0_0_43_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0043QosLimitsMaxJobs( + ) + """ + + def testV0043QosLimitsMaxJobs(self): + """Test V0043QosLimitsMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_jobs_active_jobs.py b/test/test_v0043_qos_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..2967e80 --- /dev/null +++ b/test/test_v0043_qos_limits_max_jobs_active_jobs.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs import V0043QosLimitsMaxJobsActiveJobs + +class TestV0043QosLimitsMaxJobsActiveJobs(unittest.TestCase): + """V0043QosLimitsMaxJobsActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxJobsActiveJobs: + """Test V0043QosLimitsMaxJobsActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxJobsActiveJobs` + """ + model = V0043QosLimitsMaxJobsActiveJobs() + if include_optional: + return V0043QosLimitsMaxJobsActiveJobs( + per = slurmrest_python.models.v0_0_43_qos_limits_max_jobs_active_jobs_per.v0_0_43_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0043QosLimitsMaxJobsActiveJobs( + ) + """ + + def testV0043QosLimitsMaxJobsActiveJobs(self): + """Test V0043QosLimitsMaxJobsActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_jobs_active_jobs_per.py b/test/test_v0043_qos_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..5c27dff --- /dev/null +++ b/test/test_v0043_qos_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_jobs_active_jobs_per import V0043QosLimitsMaxJobsActiveJobsPer + +class TestV0043QosLimitsMaxJobsActiveJobsPer(unittest.TestCase): + """V0043QosLimitsMaxJobsActiveJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxJobsActiveJobsPer: + """Test V0043QosLimitsMaxJobsActiveJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxJobsActiveJobsPer` + """ + model = V0043QosLimitsMaxJobsActiveJobsPer() + if include_optional: + return V0043QosLimitsMaxJobsActiveJobsPer( + account = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043QosLimitsMaxJobsActiveJobsPer( + ) + """ + + def testV0043QosLimitsMaxJobsActiveJobsPer(self): + """Test V0043QosLimitsMaxJobsActiveJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_tres.py b/test/test_v0043_qos_limits_max_tres.py new file mode 100644 index 0000000..7a3cf80 --- /dev/null +++ b/test/test_v0043_qos_limits_max_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_tres import V0043QosLimitsMaxTres + +class TestV0043QosLimitsMaxTres(unittest.TestCase): + """V0043QosLimitsMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxTres: + """Test V0043QosLimitsMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxTres` + """ + model = V0043QosLimitsMaxTres() + if include_optional: + return V0043QosLimitsMaxTres( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes.v0_0_43_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes_per.v0_0_43_qos_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = , + account = , + user = , ), ), + per = slurmrest_python.models.v0_0_43_qos_limits_max_tres_per.v0_0_43_qos_limits_max_tres_per( + account = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = , + user = , ) + ) + else: + return V0043QosLimitsMaxTres( + ) + """ + + def testV0043QosLimitsMaxTres(self): + """Test V0043QosLimitsMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_tres_minutes.py b/test/test_v0043_qos_limits_max_tres_minutes.py new file mode 100644 index 0000000..e22f567 --- /dev/null +++ b/test/test_v0043_qos_limits_max_tres_minutes.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes import V0043QosLimitsMaxTresMinutes + +class TestV0043QosLimitsMaxTresMinutes(unittest.TestCase): + """V0043QosLimitsMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxTresMinutes: + """Test V0043QosLimitsMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxTresMinutes` + """ + model = V0043QosLimitsMaxTresMinutes() + if include_optional: + return V0043QosLimitsMaxTresMinutes( + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_43_qos_limits_max_tres_minutes_per.v0_0_43_qos_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = , + user = , ) + ) + else: + return V0043QosLimitsMaxTresMinutes( + ) + """ + + def testV0043QosLimitsMaxTresMinutes(self): + """Test V0043QosLimitsMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_tres_minutes_per.py b/test/test_v0043_qos_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..bc7b7e4 --- /dev/null +++ b/test/test_v0043_qos_limits_max_tres_minutes_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_tres_minutes_per import V0043QosLimitsMaxTresMinutesPer + +class TestV0043QosLimitsMaxTresMinutesPer(unittest.TestCase): + """V0043QosLimitsMaxTresMinutesPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxTresMinutesPer: + """Test V0043QosLimitsMaxTresMinutesPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxTresMinutesPer` + """ + model = V0043QosLimitsMaxTresMinutesPer() + if include_optional: + return V0043QosLimitsMaxTresMinutesPer( + qos = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043QosLimitsMaxTresMinutesPer( + ) + """ + + def testV0043QosLimitsMaxTresMinutesPer(self): + """Test V0043QosLimitsMaxTresMinutesPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_tres_per.py b/test/test_v0043_qos_limits_max_tres_per.py new file mode 100644 index 0000000..99c22cf --- /dev/null +++ b/test/test_v0043_qos_limits_max_tres_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_tres_per import V0043QosLimitsMaxTresPer + +class TestV0043QosLimitsMaxTresPer(unittest.TestCase): + """V0043QosLimitsMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxTresPer: + """Test V0043QosLimitsMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxTresPer` + """ + model = V0043QosLimitsMaxTresPer() + if include_optional: + return V0043QosLimitsMaxTresPer( + account = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043QosLimitsMaxTresPer( + ) + """ + + def testV0043QosLimitsMaxTresPer(self): + """Test V0043QosLimitsMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_wall_clock.py b/test/test_v0043_qos_limits_max_wall_clock.py new file mode 100644 index 0000000..dfcfcc5 --- /dev/null +++ b/test/test_v0043_qos_limits_max_wall_clock.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_wall_clock import V0043QosLimitsMaxWallClock + +class TestV0043QosLimitsMaxWallClock(unittest.TestCase): + """V0043QosLimitsMaxWallClock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxWallClock: + """Test V0043QosLimitsMaxWallClock + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxWallClock` + """ + model = V0043QosLimitsMaxWallClock() + if include_optional: + return V0043QosLimitsMaxWallClock( + per = slurmrest_python.models.v0_0_43_qos_limits_max_wall_clock_per.v0_0_43_qos_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0043QosLimitsMaxWallClock( + ) + """ + + def testV0043QosLimitsMaxWallClock(self): + """Test V0043QosLimitsMaxWallClock""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_max_wall_clock_per.py b/test/test_v0043_qos_limits_max_wall_clock_per.py new file mode 100644 index 0000000..0ac40fb --- /dev/null +++ b/test/test_v0043_qos_limits_max_wall_clock_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_max_wall_clock_per import V0043QosLimitsMaxWallClockPer + +class TestV0043QosLimitsMaxWallClockPer(unittest.TestCase): + """V0043QosLimitsMaxWallClockPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMaxWallClockPer: + """Test V0043QosLimitsMaxWallClockPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMaxWallClockPer` + """ + model = V0043QosLimitsMaxWallClockPer() + if include_optional: + return V0043QosLimitsMaxWallClockPer( + qos = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043QosLimitsMaxWallClockPer( + ) + """ + + def testV0043QosLimitsMaxWallClockPer(self): + """Test V0043QosLimitsMaxWallClockPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_min.py b/test/test_v0043_qos_limits_min.py new file mode 100644 index 0000000..84e3710 --- /dev/null +++ b/test/test_v0043_qos_limits_min.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_min import V0043QosLimitsMin + +class TestV0043QosLimitsMin(unittest.TestCase): + """V0043QosLimitsMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMin: + """Test V0043QosLimitsMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMin` + """ + model = V0043QosLimitsMin() + if include_optional: + return V0043QosLimitsMin( + priority_threshold = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_43_qos_limits_min_tres.v0_0_43_qos_limits_min_tres( + per = slurmrest_python.models.v0_0_43_qos_limits_min_tres_per.v0_0_43_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ) + ) + else: + return V0043QosLimitsMin( + ) + """ + + def testV0043QosLimitsMin(self): + """Test V0043QosLimitsMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_min_tres.py b/test/test_v0043_qos_limits_min_tres.py new file mode 100644 index 0000000..21eb0a3 --- /dev/null +++ b/test/test_v0043_qos_limits_min_tres.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_min_tres import V0043QosLimitsMinTres + +class TestV0043QosLimitsMinTres(unittest.TestCase): + """V0043QosLimitsMinTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMinTres: + """Test V0043QosLimitsMinTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMinTres` + """ + model = V0043QosLimitsMinTres() + if include_optional: + return V0043QosLimitsMinTres( + per = slurmrest_python.models.v0_0_43_qos_limits_min_tres_per.v0_0_43_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0043QosLimitsMinTres( + ) + """ + + def testV0043QosLimitsMinTres(self): + """Test V0043QosLimitsMinTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_limits_min_tres_per.py b/test/test_v0043_qos_limits_min_tres_per.py new file mode 100644 index 0000000..7ba4c96 --- /dev/null +++ b/test/test_v0043_qos_limits_min_tres_per.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_limits_min_tres_per import V0043QosLimitsMinTresPer + +class TestV0043QosLimitsMinTresPer(unittest.TestCase): + """V0043QosLimitsMinTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosLimitsMinTresPer: + """Test V0043QosLimitsMinTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosLimitsMinTresPer` + """ + model = V0043QosLimitsMinTresPer() + if include_optional: + return V0043QosLimitsMinTresPer( + job = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043QosLimitsMinTresPer( + ) + """ + + def testV0043QosLimitsMinTresPer(self): + """Test V0043QosLimitsMinTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_qos_preempt.py b/test/test_v0043_qos_preempt.py new file mode 100644 index 0000000..db552f3 --- /dev/null +++ b/test/test_v0043_qos_preempt.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_qos_preempt import V0043QosPreempt + +class TestV0043QosPreempt(unittest.TestCase): + """V0043QosPreempt unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043QosPreempt: + """Test V0043QosPreempt + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043QosPreempt` + """ + model = V0043QosPreempt() + if include_optional: + return V0043QosPreempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043QosPreempt( + ) + """ + + def testV0043QosPreempt(self): + """Test V0043QosPreempt""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_reservation_core_spec.py b/test/test_v0043_reservation_core_spec.py new file mode 100644 index 0000000..c41d513 --- /dev/null +++ b/test/test_v0043_reservation_core_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_reservation_core_spec import V0043ReservationCoreSpec + +class TestV0043ReservationCoreSpec(unittest.TestCase): + """V0043ReservationCoreSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ReservationCoreSpec: + """Test V0043ReservationCoreSpec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ReservationCoreSpec` + """ + model = V0043ReservationCoreSpec() + if include_optional: + return V0043ReservationCoreSpec( + node = '', + core = '' + ) + else: + return V0043ReservationCoreSpec( + ) + """ + + def testV0043ReservationCoreSpec(self): + """Test V0043ReservationCoreSpec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_reservation_desc_msg.py b/test/test_v0043_reservation_desc_msg.py new file mode 100644 index 0000000..03679df --- /dev/null +++ b/test/test_v0043_reservation_desc_msg.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_reservation_desc_msg import V0043ReservationDescMsg + +class TestV0043ReservationDescMsg(unittest.TestCase): + """V0043ReservationDescMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ReservationDescMsg: + """Test V0043ReservationDescMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ReservationDescMsg` + """ + model = V0043ReservationDescMsg() + if include_optional: + return V0043ReservationDescMsg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = [ + '' + ], + max_start_delay = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', + node_count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_43_reservation_info_purge_completed.v0_0_43_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = [ + '' + ] + ) + else: + return V0043ReservationDescMsg( + ) + """ + + def testV0043ReservationDescMsg(self): + """Test V0043ReservationDescMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_reservation_info.py b/test/test_v0043_reservation_info.py new file mode 100644 index 0000000..e8c9d2b --- /dev/null +++ b/test/test_v0043_reservation_info.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_reservation_info import V0043ReservationInfo + +class TestV0043ReservationInfo(unittest.TestCase): + """V0043ReservationInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ReservationInfo: + """Test V0043ReservationInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ReservationInfo` + """ + model = V0043ReservationInfo() + if include_optional: + return V0043ReservationInfo( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/43_reservation_core_spec.v0.0.43_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_43_reservation_info_purge_completed.v0_0_43_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '' + ) + else: + return V0043ReservationInfo( + ) + """ + + def testV0043ReservationInfo(self): + """Test V0043ReservationInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_reservation_info_purge_completed.py b/test/test_v0043_reservation_info_purge_completed.py new file mode 100644 index 0000000..35a1969 --- /dev/null +++ b/test/test_v0043_reservation_info_purge_completed.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_reservation_info_purge_completed import V0043ReservationInfoPurgeCompleted + +class TestV0043ReservationInfoPurgeCompleted(unittest.TestCase): + """V0043ReservationInfoPurgeCompleted unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ReservationInfoPurgeCompleted: + """Test V0043ReservationInfoPurgeCompleted + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ReservationInfoPurgeCompleted` + """ + model = V0043ReservationInfoPurgeCompleted() + if include_optional: + return V0043ReservationInfoPurgeCompleted( + time = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043ReservationInfoPurgeCompleted( + ) + """ + + def testV0043ReservationInfoPurgeCompleted(self): + """Test V0043ReservationInfoPurgeCompleted""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_reservation_mod_req.py b/test/test_v0043_reservation_mod_req.py new file mode 100644 index 0000000..20972f1 --- /dev/null +++ b/test/test_v0043_reservation_mod_req.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_reservation_mod_req import V0043ReservationModReq + +class TestV0043ReservationModReq(unittest.TestCase): + """V0043ReservationModReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ReservationModReq: + """Test V0043ReservationModReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ReservationModReq` + """ + model = V0043ReservationModReq() + if include_optional: + return V0043ReservationModReq( + reservations = [ + slurmrest_python.models.v0/0/43_reservation_desc_msg.v0.0.43_reservation_desc_msg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = , + max_start_delay = , + name = '', + node_count = , + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_43_reservation_info_purge_completed.v0_0_43_reservation_info_purge_completed( + time = , ), + start_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = , ) + ] + ) + else: + return V0043ReservationModReq( + ) + """ + + def testV0043ReservationModReq(self): + """Test V0043ReservationModReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_rollup_stats.py b/test/test_v0043_rollup_stats.py new file mode 100644 index 0000000..4bff846 --- /dev/null +++ b/test/test_v0043_rollup_stats.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_rollup_stats import V0043RollupStats + +class TestV0043RollupStats(unittest.TestCase): + """V0043RollupStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043RollupStats: + """Test V0043RollupStats + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043RollupStats` + """ + model = V0043RollupStats() + if include_optional: + return V0043RollupStats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration( + last = 56, + max = 56, + time = 56, ), ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration( + last = 56, + max = 56, + time = 56, ), ) + ) + else: + return V0043RollupStats( + ) + """ + + def testV0043RollupStats(self): + """Test V0043RollupStats""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_schedule_exit_fields.py b/test/test_v0043_schedule_exit_fields.py new file mode 100644 index 0000000..7388f5f --- /dev/null +++ b/test/test_v0043_schedule_exit_fields.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_schedule_exit_fields import V0043ScheduleExitFields + +class TestV0043ScheduleExitFields(unittest.TestCase): + """V0043ScheduleExitFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043ScheduleExitFields: + """Test V0043ScheduleExitFields + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043ScheduleExitFields` + """ + model = V0043ScheduleExitFields() + if include_optional: + return V0043ScheduleExitFields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56 + ) + else: + return V0043ScheduleExitFields( + ) + """ + + def testV0043ScheduleExitFields(self): + """Test V0043ScheduleExitFields""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_shares_float128_tres.py b/test/test_v0043_shares_float128_tres.py new file mode 100644 index 0000000..28de4a1 --- /dev/null +++ b/test/test_v0043_shares_float128_tres.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_shares_float128_tres import V0043SharesFloat128Tres + +class TestV0043SharesFloat128Tres(unittest.TestCase): + """V0043SharesFloat128Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043SharesFloat128Tres: + """Test V0043SharesFloat128Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043SharesFloat128Tres` + """ + model = V0043SharesFloat128Tres() + if include_optional: + return V0043SharesFloat128Tres( + name = '', + value = 1.337 + ) + else: + return V0043SharesFloat128Tres( + ) + """ + + def testV0043SharesFloat128Tres(self): + """Test V0043SharesFloat128Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_shares_resp_msg.py b/test/test_v0043_shares_resp_msg.py new file mode 100644 index 0000000..33af4ab --- /dev/null +++ b/test/test_v0043_shares_resp_msg.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_shares_resp_msg import V0043SharesRespMsg + +class TestV0043SharesRespMsg(unittest.TestCase): + """V0043SharesRespMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043SharesRespMsg: + """Test V0043SharesRespMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043SharesRespMsg` + """ + model = V0043SharesRespMsg() + if include_optional: + return V0043SharesRespMsg( + shares = [ + slurmrest_python.models.v0/0/43_assoc_shares_obj_wrap.v0.0.43_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + shares = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_tres.v0_0_43_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/43_shares_uint64_tres.v0.0.43_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/43_shares_float128_tres.v0.0.43_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/43_float64_no_val_struct.v0.0.43_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_43_assoc_shares_obj_wrap_fairshare.v0_0_43_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56 + ) + else: + return V0043SharesRespMsg( + ) + """ + + def testV0043SharesRespMsg(self): + """Test V0043SharesRespMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_shares_uint64_tres.py b/test/test_v0043_shares_uint64_tres.py new file mode 100644 index 0000000..0f36d56 --- /dev/null +++ b/test/test_v0043_shares_uint64_tres.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_shares_uint64_tres import V0043SharesUint64Tres + +class TestV0043SharesUint64Tres(unittest.TestCase): + """V0043SharesUint64Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043SharesUint64Tres: + """Test V0043SharesUint64Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043SharesUint64Tres` + """ + model = V0043SharesUint64Tres() + if include_optional: + return V0043SharesUint64Tres( + name = '', + value = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043SharesUint64Tres( + ) + """ + + def testV0043SharesUint64Tres(self): + """Test V0043SharesUint64Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_slurmdbd_ping.py b/test/test_v0043_slurmdbd_ping.py new file mode 100644 index 0000000..a4461bf --- /dev/null +++ b/test/test_v0043_slurmdbd_ping.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_slurmdbd_ping import V0043SlurmdbdPing + +class TestV0043SlurmdbdPing(unittest.TestCase): + """V0043SlurmdbdPing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043SlurmdbdPing: + """Test V0043SlurmdbdPing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043SlurmdbdPing` + """ + model = V0043SlurmdbdPing() + if include_optional: + return V0043SlurmdbdPing( + hostname = '', + responding = True, + latency = 56, + primary = True + ) + else: + return V0043SlurmdbdPing( + hostname = '', + responding = True, + latency = 56, + primary = True, + ) + """ + + def testV0043SlurmdbdPing(self): + """Test V0043SlurmdbdPing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_msg.py b/test/test_v0043_stats_msg.py new file mode 100644 index 0000000..3777094 --- /dev/null +++ b/test/test_v0043_stats_msg.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_msg import V0043StatsMsg + +class TestV0043StatsMsg(unittest.TestCase): + """V0043StatsMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsMsg: + """Test V0043StatsMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsMsg` + """ + model = V0043StatsMsg() + if include_optional: + return V0043StatsMsg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/43_schedule_exit_fields.v0.0.43_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/43_bf_exit_fields.v0.0.43_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_type.v0.0.43_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_user.v0.0.43_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_queue.v0.0.43_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/43_stats_msg_rpc_dump.v0.0.43_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ] + ) + else: + return V0043StatsMsg( + ) + """ + + def testV0043StatsMsg(self): + """Test V0043StatsMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_msg_rpc_dump.py b/test/test_v0043_stats_msg_rpc_dump.py new file mode 100644 index 0000000..77c6424 --- /dev/null +++ b/test/test_v0043_stats_msg_rpc_dump.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_msg_rpc_dump import V0043StatsMsgRpcDump + +class TestV0043StatsMsgRpcDump(unittest.TestCase): + """V0043StatsMsgRpcDump unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsMsgRpcDump: + """Test V0043StatsMsgRpcDump + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsMsgRpcDump` + """ + model = V0043StatsMsgRpcDump() + if include_optional: + return V0043StatsMsgRpcDump( + type_id = 56, + message_type = '', + count = [ + '' + ] + ) + else: + return V0043StatsMsgRpcDump( + type_id = 56, + message_type = '', + count = [ + '' + ], + ) + """ + + def testV0043StatsMsgRpcDump(self): + """Test V0043StatsMsgRpcDump""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_msg_rpc_queue.py b/test/test_v0043_stats_msg_rpc_queue.py new file mode 100644 index 0000000..1196ba6 --- /dev/null +++ b/test/test_v0043_stats_msg_rpc_queue.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_msg_rpc_queue import V0043StatsMsgRpcQueue + +class TestV0043StatsMsgRpcQueue(unittest.TestCase): + """V0043StatsMsgRpcQueue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsMsgRpcQueue: + """Test V0043StatsMsgRpcQueue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsMsgRpcQueue` + """ + model = V0043StatsMsgRpcQueue() + if include_optional: + return V0043StatsMsgRpcQueue( + type_id = 56, + message_type = '', + count = 56 + ) + else: + return V0043StatsMsgRpcQueue( + type_id = 56, + message_type = '', + count = 56, + ) + """ + + def testV0043StatsMsgRpcQueue(self): + """Test V0043StatsMsgRpcQueue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_msg_rpc_type.py b/test/test_v0043_stats_msg_rpc_type.py new file mode 100644 index 0000000..28ff1d3 --- /dev/null +++ b/test/test_v0043_stats_msg_rpc_type.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_msg_rpc_type import V0043StatsMsgRpcType + +class TestV0043StatsMsgRpcType(unittest.TestCase): + """V0043StatsMsgRpcType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsMsgRpcType: + """Test V0043StatsMsgRpcType + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsMsgRpcType` + """ + model = V0043StatsMsgRpcType() + if include_optional: + return V0043StatsMsgRpcType( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043StatsMsgRpcType( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043StatsMsgRpcType(self): + """Test V0043StatsMsgRpcType""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_msg_rpc_user.py b/test/test_v0043_stats_msg_rpc_user.py new file mode 100644 index 0000000..e133b83 --- /dev/null +++ b/test/test_v0043_stats_msg_rpc_user.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_msg_rpc_user import V0043StatsMsgRpcUser + +class TestV0043StatsMsgRpcUser(unittest.TestCase): + """V0043StatsMsgRpcUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsMsgRpcUser: + """Test V0043StatsMsgRpcUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsMsgRpcUser` + """ + model = V0043StatsMsgRpcUser() + if include_optional: + return V0043StatsMsgRpcUser( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043StatsMsgRpcUser( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0043StatsMsgRpcUser(self): + """Test V0043StatsMsgRpcUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_rec.py b/test/test_v0043_stats_rec.py new file mode 100644 index 0000000..10a7061 --- /dev/null +++ b/test/test_v0043_stats_rec.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_rec import V0043StatsRec + +class TestV0043StatsRec(unittest.TestCase): + """V0043StatsRec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsRec: + """Test V0043StatsRec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsRec` + """ + model = V0043StatsRec() + if include_optional: + return V0043StatsRec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/43_rollup_stats.v0.0.43_rollup_stats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/43_stats_rpc.v0.0.43_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/43_stats_user.v0.0.43_stats_user( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ] + ) + else: + return V0043StatsRec( + ) + """ + + def testV0043StatsRec(self): + """Test V0043StatsRec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_rpc.py b/test/test_v0043_stats_rpc.py new file mode 100644 index 0000000..f1a5d04 --- /dev/null +++ b/test/test_v0043_stats_rpc.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_rpc import V0043StatsRpc + +class TestV0043StatsRpc(unittest.TestCase): + """V0043StatsRpc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsRpc: + """Test V0043StatsRpc + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsRpc` + """ + model = V0043StatsRpc() + if include_optional: + return V0043StatsRpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0043StatsRpc( + ) + """ + + def testV0043StatsRpc(self): + """Test V0043StatsRpc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_stats_user.py b/test/test_v0043_stats_user.py new file mode 100644 index 0000000..95cf6e7 --- /dev/null +++ b/test/test_v0043_stats_user.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_stats_user import V0043StatsUser + +class TestV0043StatsUser(unittest.TestCase): + """V0043StatsUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StatsUser: + """Test V0043StatsUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StatsUser` + """ + model = V0043StatsUser() + if include_optional: + return V0043StatsUser( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0043StatsUser( + ) + """ + + def testV0043StatsUser(self): + """Test V0043StatsUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step.py b/test/test_v0043_step.py new file mode 100644 index 0000000..906f7dc --- /dev/null +++ b/test/test_v0043_step.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step import V0043Step + +class TestV0043Step(unittest.TestCase): + """V0043Step unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Step: + """Test V0043Step + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Step` + """ + model = V0043Step() + if include_optional: + return V0043Step( + time = slurmrest_python.models.v0_0_43_step_time.v0_0_43_step_time( + elapsed = 56, + end = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/43_process_exit_code_verbose.v0.0.43_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_43_process_exit_code_verbose_signal.v0_0_43_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/43_uint16_no_val_struct.v0.0.43_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_43_step_nodes.v0_0_43_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_43_step_cpu.v0_0_43_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_43_step_cpu_requested_frequency.v0_0_43_step_CPU_requested_frequency( + min = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_43_step_statistics.v0_0_43_step_statistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_43_step_statistics_energy.v0_0_43_step_statistics_energy( + consumed = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + id = '', + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_43_step_tres.v0_0_43_step_tres( + requested = slurmrest_python.models.v0_0_43_step_tres_requested.v0_0_43_step_tres_requested( + max = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_43_step_tres_consumed.v0_0_43_step_tres_consumed(), + allocated = , ) + ) + else: + return V0043Step( + ) + """ + + def testV0043Step(self): + """Test V0043Step""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_cpu.py b/test/test_v0043_step_cpu.py new file mode 100644 index 0000000..19aa3bc --- /dev/null +++ b/test/test_v0043_step_cpu.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_cpu import V0043StepCPU + +class TestV0043StepCPU(unittest.TestCase): + """V0043StepCPU unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepCPU: + """Test V0043StepCPU + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepCPU` + """ + model = V0043StepCPU() + if include_optional: + return V0043StepCPU( + requested_frequency = slurmrest_python.models.v0_0_43_step_cpu_requested_frequency.v0_0_43_step_CPU_requested_frequency( + min = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + governor = '' + ) + else: + return V0043StepCPU( + ) + """ + + def testV0043StepCPU(self): + """Test V0043StepCPU""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_cpu_requested_frequency.py b/test/test_v0043_step_cpu_requested_frequency.py new file mode 100644 index 0000000..b8786fe --- /dev/null +++ b/test/test_v0043_step_cpu_requested_frequency.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_cpu_requested_frequency import V0043StepCPURequestedFrequency + +class TestV0043StepCPURequestedFrequency(unittest.TestCase): + """V0043StepCPURequestedFrequency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepCPURequestedFrequency: + """Test V0043StepCPURequestedFrequency + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepCPURequestedFrequency` + """ + model = V0043StepCPURequestedFrequency() + if include_optional: + return V0043StepCPURequestedFrequency( + min = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043StepCPURequestedFrequency( + ) + """ + + def testV0043StepCPURequestedFrequency(self): + """Test V0043StepCPURequestedFrequency""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_nodes.py b/test/test_v0043_step_nodes.py new file mode 100644 index 0000000..ddacc13 --- /dev/null +++ b/test/test_v0043_step_nodes.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_nodes import V0043StepNodes + +class TestV0043StepNodes(unittest.TestCase): + """V0043StepNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepNodes: + """Test V0043StepNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepNodes` + """ + model = V0043StepNodes() + if include_optional: + return V0043StepNodes( + count = 56, + range = '', + list = [ + '' + ] + ) + else: + return V0043StepNodes( + ) + """ + + def testV0043StepNodes(self): + """Test V0043StepNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_statistics.py b/test/test_v0043_step_statistics.py new file mode 100644 index 0000000..9284809 --- /dev/null +++ b/test/test_v0043_step_statistics.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_statistics import V0043StepStatistics + +class TestV0043StepStatistics(unittest.TestCase): + """V0043StepStatistics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepStatistics: + """Test V0043StepStatistics + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepStatistics` + """ + model = V0043StepStatistics() + if include_optional: + return V0043StepStatistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_43_step_statistics_energy.v0_0_43_step_statistics_energy( + consumed = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0043StepStatistics( + ) + """ + + def testV0043StepStatistics(self): + """Test V0043StepStatistics""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_statistics_energy.py b/test/test_v0043_step_statistics_energy.py new file mode 100644 index 0000000..4843b31 --- /dev/null +++ b/test/test_v0043_step_statistics_energy.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_statistics_energy import V0043StepStatisticsEnergy + +class TestV0043StepStatisticsEnergy(unittest.TestCase): + """V0043StepStatisticsEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepStatisticsEnergy: + """Test V0043StepStatisticsEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepStatisticsEnergy` + """ + model = V0043StepStatisticsEnergy() + if include_optional: + return V0043StepStatisticsEnergy( + consumed = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043StepStatisticsEnergy( + ) + """ + + def testV0043StepStatisticsEnergy(self): + """Test V0043StepStatisticsEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_time.py b/test/test_v0043_step_time.py new file mode 100644 index 0000000..a9c8b65 --- /dev/null +++ b/test/test_v0043_step_time.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_time import V0043StepTime + +class TestV0043StepTime(unittest.TestCase): + """V0043StepTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepTime: + """Test V0043StepTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepTime` + """ + model = V0043StepTime() + if include_optional: + return V0043StepTime( + elapsed = 56, + end = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/43_uint64_no_val_struct.v0.0.43_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0043StepTime( + ) + """ + + def testV0043StepTime(self): + """Test V0043StepTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_tres.py b/test/test_v0043_step_tres.py new file mode 100644 index 0000000..d7171bf --- /dev/null +++ b/test/test_v0043_step_tres.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_tres import V0043StepTres + +class TestV0043StepTres(unittest.TestCase): + """V0043StepTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepTres: + """Test V0043StepTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepTres` + """ + model = V0043StepTres() + if include_optional: + return V0043StepTres( + requested = slurmrest_python.models.v0_0_43_step_tres_requested.v0_0_43_step_tres_requested( + max = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_43_step_tres_consumed.v0_0_43_step_tres_consumed( + max = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + allocated = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043StepTres( + ) + """ + + def testV0043StepTres(self): + """Test V0043StepTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_tres_consumed.py b/test/test_v0043_step_tres_consumed.py new file mode 100644 index 0000000..43aac22 --- /dev/null +++ b/test/test_v0043_step_tres_consumed.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_tres_consumed import V0043StepTresConsumed + +class TestV0043StepTresConsumed(unittest.TestCase): + """V0043StepTresConsumed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepTresConsumed: + """Test V0043StepTresConsumed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepTresConsumed` + """ + model = V0043StepTresConsumed() + if include_optional: + return V0043StepTresConsumed( + max = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043StepTresConsumed( + ) + """ + + def testV0043StepTresConsumed(self): + """Test V0043StepTresConsumed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_step_tres_requested.py b/test/test_v0043_step_tres_requested.py new file mode 100644 index 0000000..4add6da --- /dev/null +++ b/test/test_v0043_step_tres_requested.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_step_tres_requested import V0043StepTresRequested + +class TestV0043StepTresRequested(unittest.TestCase): + """V0043StepTresRequested unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043StepTresRequested: + """Test V0043StepTresRequested + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043StepTresRequested` + """ + model = V0043StepTresRequested() + if include_optional: + return V0043StepTresRequested( + max = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0043StepTresRequested( + ) + """ + + def testV0043StepTresRequested(self): + """Test V0043StepTresRequested""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_tres.py b/test/test_v0043_tres.py new file mode 100644 index 0000000..dd95973 --- /dev/null +++ b/test/test_v0043_tres.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_tres import V0043Tres + +class TestV0043Tres(unittest.TestCase): + """V0043Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Tres: + """Test V0043Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Tres` + """ + model = V0043Tres() + if include_optional: + return V0043Tres( + type = '', + name = '', + id = 56, + count = 56 + ) + else: + return V0043Tres( + type = '', + ) + """ + + def testV0043Tres(self): + """Test V0043Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_uint16_no_val_struct.py b/test/test_v0043_uint16_no_val_struct.py new file mode 100644 index 0000000..d530e50 --- /dev/null +++ b/test/test_v0043_uint16_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_uint16_no_val_struct import V0043Uint16NoValStruct + +class TestV0043Uint16NoValStruct(unittest.TestCase): + """V0043Uint16NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Uint16NoValStruct: + """Test V0043Uint16NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Uint16NoValStruct` + """ + model = V0043Uint16NoValStruct() + if include_optional: + return V0043Uint16NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0043Uint16NoValStruct( + ) + """ + + def testV0043Uint16NoValStruct(self): + """Test V0043Uint16NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_uint32_no_val_struct.py b/test/test_v0043_uint32_no_val_struct.py new file mode 100644 index 0000000..a98a655 --- /dev/null +++ b/test/test_v0043_uint32_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_uint32_no_val_struct import V0043Uint32NoValStruct + +class TestV0043Uint32NoValStruct(unittest.TestCase): + """V0043Uint32NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Uint32NoValStruct: + """Test V0043Uint32NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Uint32NoValStruct` + """ + model = V0043Uint32NoValStruct() + if include_optional: + return V0043Uint32NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0043Uint32NoValStruct( + ) + """ + + def testV0043Uint32NoValStruct(self): + """Test V0043Uint32NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_uint64_no_val_struct.py b/test/test_v0043_uint64_no_val_struct.py new file mode 100644 index 0000000..b2c36d7 --- /dev/null +++ b/test/test_v0043_uint64_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_uint64_no_val_struct import V0043Uint64NoValStruct + +class TestV0043Uint64NoValStruct(unittest.TestCase): + """V0043Uint64NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Uint64NoValStruct: + """Test V0043Uint64NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Uint64NoValStruct` + """ + model = V0043Uint64NoValStruct() + if include_optional: + return V0043Uint64NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0043Uint64NoValStruct( + ) + """ + + def testV0043Uint64NoValStruct(self): + """Test V0043Uint64NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_update_node_msg.py b/test/test_v0043_update_node_msg.py new file mode 100644 index 0000000..693b64a --- /dev/null +++ b/test/test_v0043_update_node_msg.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_update_node_msg import V0043UpdateNodeMsg + +class TestV0043UpdateNodeMsg(unittest.TestCase): + """V0043UpdateNodeMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043UpdateNodeMsg: + """Test V0043UpdateNodeMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043UpdateNodeMsg` + """ + model = V0043UpdateNodeMsg() + if include_optional: + return V0043UpdateNodeMsg( + comment = '', + cpu_bind = 56, + extra = '', + features = [ + '' + ], + features_act = [ + '' + ], + gres = '', + address = [ + '' + ], + hostname = [ + '' + ], + name = [ + '' + ], + state = [ + 'INVALID' + ], + reason = '', + reason_uid = '', + resume_after = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + topology_str = '', + weight = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0043UpdateNodeMsg( + ) + """ + + def testV0043UpdateNodeMsg(self): + """Test V0043UpdateNodeMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_user.py b/test/test_v0043_user.py new file mode 100644 index 0000000..bf68d72 --- /dev/null +++ b/test/test_v0043_user.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_user import V0043User + +class TestV0043User(unittest.TestCase): + """V0043User unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043User: + """Test V0043User + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043User` + """ + model = V0043User() + if include_optional: + return V0043User( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/43_assoc_short.v0.0.43_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/43_coord.v0.0.43_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_42_user_default.v0_0_42_user_default( + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/43_wckey.v0.0.43_wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ] + ) + else: + return V0043User( + name = '', + ) + """ + + def testV0043User(self): + """Test V0043User""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_user_short.py b/test/test_v0043_user_short.py new file mode 100644 index 0000000..3e5b6f6 --- /dev/null +++ b/test/test_v0043_user_short.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_user_short import V0043UserShort + +class TestV0043UserShort(unittest.TestCase): + """V0043UserShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043UserShort: + """Test V0043UserShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043UserShort` + """ + model = V0043UserShort() + if include_optional: + return V0043UserShort( + adminlevel = [ + 'Not Set' + ], + defaultaccount = '', + defaultwckey = '' + ) + else: + return V0043UserShort( + ) + """ + + def testV0043UserShort(self): + """Test V0043UserShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_users_add_cond.py b/test/test_v0043_users_add_cond.py new file mode 100644 index 0000000..6e89de0 --- /dev/null +++ b/test/test_v0043_users_add_cond.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_users_add_cond import V0043UsersAddCond + +class TestV0043UsersAddCond(unittest.TestCase): + """V0043UsersAddCond unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043UsersAddCond: + """Test V0043UsersAddCond + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043UsersAddCond` + """ + model = V0043UsersAddCond() + if include_optional: + return V0043UsersAddCond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/43_assoc_rec_set.v0.0.43_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/43_uint32_no_val_struct.v0.0.43_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = [ + '' + ], + users = [ + '' + ], + wckeys = [ + '' + ] + ) + else: + return V0043UsersAddCond( + users = [ + '' + ], + ) + """ + + def testV0043UsersAddCond(self): + """Test V0043UsersAddCond""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_wckey.py b/test/test_v0043_wckey.py new file mode 100644 index 0000000..346ed07 --- /dev/null +++ b/test/test_v0043_wckey.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_wckey import V0043Wckey + +class TestV0043Wckey(unittest.TestCase): + """V0043Wckey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043Wckey: + """Test V0043Wckey + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043Wckey` + """ + model = V0043Wckey() + if include_optional: + return V0043Wckey( + accounting = [ + slurmrest_python.models.v0/0/43_accounting.v0.0.43_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/43_tres.v0.0.43_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0043Wckey( + cluster = '', + name = '', + user = '', + ) + """ + + def testV0043Wckey(self): + """Test V0043Wckey""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0043_wckey_tag_struct.py b/test/test_v0043_wckey_tag_struct.py new file mode 100644 index 0000000..31e209b --- /dev/null +++ b/test/test_v0043_wckey_tag_struct.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0043_wckey_tag_struct import V0043WckeyTagStruct + +class TestV0043WckeyTagStruct(unittest.TestCase): + """V0043WckeyTagStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0043WckeyTagStruct: + """Test V0043WckeyTagStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0043WckeyTagStruct` + """ + model = V0043WckeyTagStruct() + if include_optional: + return V0043WckeyTagStruct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ] + ) + else: + return V0043WckeyTagStruct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], + ) + """ + + def testV0043WckeyTagStruct(self): + """Test V0043WckeyTagStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_account.py b/test/test_v0044_account.py new file mode 100644 index 0000000..bb9e3f2 --- /dev/null +++ b/test/test_v0044_account.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_account import V0044Account + +class TestV0044Account(unittest.TestCase): + """V0044Account unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Account: + """Test V0044Account + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Account` + """ + model = V0044Account() + if include_optional: + return V0044Account( + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0044Account( + description = '', + name = '', + organization = '', + ) + """ + + def testV0044Account(self): + """Test V0044Account""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_account_short.py b/test/test_v0044_account_short.py new file mode 100644 index 0000000..f44dcd8 --- /dev/null +++ b/test/test_v0044_account_short.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_account_short import V0044AccountShort + +class TestV0044AccountShort(unittest.TestCase): + """V0044AccountShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AccountShort: + """Test V0044AccountShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AccountShort` + """ + model = V0044AccountShort() + if include_optional: + return V0044AccountShort( + description = '', + organization = '' + ) + else: + return V0044AccountShort( + ) + """ + + def testV0044AccountShort(self): + """Test V0044AccountShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_accounting.py b/test/test_v0044_accounting.py new file mode 100644 index 0000000..db22b0f --- /dev/null +++ b/test/test_v0044_accounting.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_accounting import V0044Accounting + +class TestV0044Accounting(unittest.TestCase): + """V0044Accounting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Accounting: + """Test V0044Accounting + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Accounting` + """ + model = V0044Accounting() + if include_optional: + return V0044Accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ) + else: + return V0044Accounting( + ) + """ + + def testV0044Accounting(self): + """Test V0044Accounting""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_accounting_allocated.py b/test/test_v0044_accounting_allocated.py new file mode 100644 index 0000000..0c5f8da --- /dev/null +++ b/test/test_v0044_accounting_allocated.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_accounting_allocated import V0044AccountingAllocated + +class TestV0044AccountingAllocated(unittest.TestCase): + """V0044AccountingAllocated unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AccountingAllocated: + """Test V0044AccountingAllocated + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AccountingAllocated` + """ + model = V0044AccountingAllocated() + if include_optional: + return V0044AccountingAllocated( + seconds = 56 + ) + else: + return V0044AccountingAllocated( + ) + """ + + def testV0044AccountingAllocated(self): + """Test V0044AccountingAllocated""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_accounts_add_cond.py b/test/test_v0044_accounts_add_cond.py new file mode 100644 index 0000000..27ef04c --- /dev/null +++ b/test/test_v0044_accounts_add_cond.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_accounts_add_cond import V0044AccountsAddCond + +class TestV0044AccountsAddCond(unittest.TestCase): + """V0044AccountsAddCond unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AccountsAddCond: + """Test V0044AccountsAddCond + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AccountsAddCond` + """ + model = V0044AccountsAddCond() + if include_optional: + return V0044AccountsAddCond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/44_assoc_rec_set.v0.0.44_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ] + ) + else: + return V0044AccountsAddCond( + accounts = [ + '' + ], + ) + """ + + def testV0044AccountsAddCond(self): + """Test V0044AccountsAddCond""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_acct_gather_energy.py b/test/test_v0044_acct_gather_energy.py new file mode 100644 index 0000000..4aebfed --- /dev/null +++ b/test/test_v0044_acct_gather_energy.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_acct_gather_energy import V0044AcctGatherEnergy + +class TestV0044AcctGatherEnergy(unittest.TestCase): + """V0044AcctGatherEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AcctGatherEnergy: + """Test V0044AcctGatherEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AcctGatherEnergy` + """ + model = V0044AcctGatherEnergy() + if include_optional: + return V0044AcctGatherEnergy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56 + ) + else: + return V0044AcctGatherEnergy( + ) + """ + + def testV0044AcctGatherEnergy(self): + """Test V0044AcctGatherEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc.py b/test/test_v0044_assoc.py new file mode 100644 index 0000000..1c03189 --- /dev/null +++ b/test/test_v0044_assoc.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc import V0044Assoc + +class TestV0044Assoc(unittest.TestCase): + """V0044Assoc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Assoc: + """Test V0044Assoc + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Assoc` + """ + model = V0044Assoc() + if include_optional: + return V0044Assoc( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_44_assoc_max.v0_0_44_assoc_max( + jobs = slurmrest_python.models.v0_0_44_assoc_max_jobs.v0_0_44_assoc_max_jobs( + per = slurmrest_python.models.v0_0_44_assoc_max_jobs_per.v0_0_44_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_44_assoc_max_tres.v0_0_44_assoc_max_tres( + group = slurmrest_python.models.v0_0_44_assoc_max_tres_group.v0_0_44_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_44_assoc_max_tres_minutes.v0_0_44_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_44_assoc_max_per.v0_0_44_assoc_max_per( + account = slurmrest_python.models.v0_0_44_assoc_max_per_account.v0_0_44_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_44_assoc_min.v0_0_44_assoc_min( + priority_threshold = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + parent_account = '', + partition = '', + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qos = [ + '' + ], + shares_raw = 56, + user = '' + ) + else: + return V0044Assoc( + user = '', + ) + """ + + def testV0044Assoc(self): + """Test V0044Assoc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max.py b/test/test_v0044_assoc_max.py new file mode 100644 index 0000000..2580a32 --- /dev/null +++ b/test/test_v0044_assoc_max.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max import V0044AssocMax + +class TestV0044AssocMax(unittest.TestCase): + """V0044AssocMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMax: + """Test V0044AssocMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMax` + """ + model = V0044AssocMax() + if include_optional: + return V0044AssocMax( + jobs = slurmrest_python.models.v0_0_44_assoc_max_jobs.v0_0_44_assoc_max_jobs( + per = slurmrest_python.models.v0_0_44_assoc_max_jobs_per.v0_0_44_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_44_assoc_max_tres.v0_0_44_assoc_max_tres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_44_assoc_max_tres_group.v0_0_44_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = , ), + minutes = slurmrest_python.models.v0_0_44_assoc_max_tres_minutes.v0_0_44_assoc_max_tres_minutes( + total = , + per = slurmrest_python.models.v0_0_44_qos_limits_min_tres_per.v0_0_44_qos_limits_min_tres_per( + job = , ), ), + per = slurmrest_python.models.v0_0_44_assoc_max_tres_per.v0_0_44_assoc_max_tres_per( + job = , + node = , ), ), + per = slurmrest_python.models.v0_0_44_assoc_max_per.v0_0_44_assoc_max_per( + account = slurmrest_python.models.v0_0_44_assoc_max_per_account.v0_0_44_assoc_max_per_account( + wall_clock = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0044AssocMax( + ) + """ + + def testV0044AssocMax(self): + """Test V0044AssocMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_jobs.py b/test/test_v0044_assoc_max_jobs.py new file mode 100644 index 0000000..9849d65 --- /dev/null +++ b/test/test_v0044_assoc_max_jobs.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_jobs import V0044AssocMaxJobs + +class TestV0044AssocMaxJobs(unittest.TestCase): + """V0044AssocMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxJobs: + """Test V0044AssocMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxJobs` + """ + model = V0044AssocMaxJobs() + if include_optional: + return V0044AssocMaxJobs( + per = slurmrest_python.models.v0_0_44_assoc_max_jobs_per.v0_0_44_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044AssocMaxJobs( + ) + """ + + def testV0044AssocMaxJobs(self): + """Test V0044AssocMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_jobs_per.py b/test/test_v0044_assoc_max_jobs_per.py new file mode 100644 index 0000000..fd36cd7 --- /dev/null +++ b/test/test_v0044_assoc_max_jobs_per.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_jobs_per import V0044AssocMaxJobsPer + +class TestV0044AssocMaxJobsPer(unittest.TestCase): + """V0044AssocMaxJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxJobsPer: + """Test V0044AssocMaxJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxJobsPer` + """ + model = V0044AssocMaxJobsPer() + if include_optional: + return V0044AssocMaxJobsPer( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + wall_clock = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044AssocMaxJobsPer( + ) + """ + + def testV0044AssocMaxJobsPer(self): + """Test V0044AssocMaxJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_per.py b/test/test_v0044_assoc_max_per.py new file mode 100644 index 0000000..7cedb78 --- /dev/null +++ b/test/test_v0044_assoc_max_per.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_per import V0044AssocMaxPer + +class TestV0044AssocMaxPer(unittest.TestCase): + """V0044AssocMaxPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxPer: + """Test V0044AssocMaxPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxPer` + """ + model = V0044AssocMaxPer() + if include_optional: + return V0044AssocMaxPer( + account = slurmrest_python.models.v0_0_44_assoc_max_per_account.v0_0_44_assoc_max_per_account( + wall_clock = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0044AssocMaxPer( + ) + """ + + def testV0044AssocMaxPer(self): + """Test V0044AssocMaxPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_per_account.py b/test/test_v0044_assoc_max_per_account.py new file mode 100644 index 0000000..c2bfea6 --- /dev/null +++ b/test/test_v0044_assoc_max_per_account.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_per_account import V0044AssocMaxPerAccount + +class TestV0044AssocMaxPerAccount(unittest.TestCase): + """V0044AssocMaxPerAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxPerAccount: + """Test V0044AssocMaxPerAccount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxPerAccount` + """ + model = V0044AssocMaxPerAccount() + if include_optional: + return V0044AssocMaxPerAccount( + wall_clock = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044AssocMaxPerAccount( + ) + """ + + def testV0044AssocMaxPerAccount(self): + """Test V0044AssocMaxPerAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_tres.py b/test/test_v0044_assoc_max_tres.py new file mode 100644 index 0000000..941181d --- /dev/null +++ b/test/test_v0044_assoc_max_tres.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_tres import V0044AssocMaxTres + +class TestV0044AssocMaxTres(unittest.TestCase): + """V0044AssocMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxTres: + """Test V0044AssocMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxTres` + """ + model = V0044AssocMaxTres() + if include_optional: + return V0044AssocMaxTres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + group = slurmrest_python.models.v0_0_44_assoc_max_tres_group.v0_0_44_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_44_assoc_max_tres_minutes.v0_0_44_assoc_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_44_qos_limits_min_tres_per.v0_0_44_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), + per = slurmrest_python.models.v0_0_44_assoc_max_tres_per.v0_0_44_assoc_max_tres_per( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0044AssocMaxTres( + ) + """ + + def testV0044AssocMaxTres(self): + """Test V0044AssocMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_tres_group.py b/test/test_v0044_assoc_max_tres_group.py new file mode 100644 index 0000000..d25fa99 --- /dev/null +++ b/test/test_v0044_assoc_max_tres_group.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_tres_group import V0044AssocMaxTresGroup + +class TestV0044AssocMaxTresGroup(unittest.TestCase): + """V0044AssocMaxTresGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxTresGroup: + """Test V0044AssocMaxTresGroup + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxTresGroup` + """ + model = V0044AssocMaxTresGroup() + if include_optional: + return V0044AssocMaxTresGroup( + minutes = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + active = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044AssocMaxTresGroup( + ) + """ + + def testV0044AssocMaxTresGroup(self): + """Test V0044AssocMaxTresGroup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_tres_minutes.py b/test/test_v0044_assoc_max_tres_minutes.py new file mode 100644 index 0000000..1ae3918 --- /dev/null +++ b/test/test_v0044_assoc_max_tres_minutes.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_tres_minutes import V0044AssocMaxTresMinutes + +class TestV0044AssocMaxTresMinutes(unittest.TestCase): + """V0044AssocMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxTresMinutes: + """Test V0044AssocMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxTresMinutes` + """ + model = V0044AssocMaxTresMinutes() + if include_optional: + return V0044AssocMaxTresMinutes( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_44_qos_limits_min_tres_per.v0_0_44_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0044AssocMaxTresMinutes( + ) + """ + + def testV0044AssocMaxTresMinutes(self): + """Test V0044AssocMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_max_tres_per.py b/test/test_v0044_assoc_max_tres_per.py new file mode 100644 index 0000000..bb6a7ae --- /dev/null +++ b/test/test_v0044_assoc_max_tres_per.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_max_tres_per import V0044AssocMaxTresPer + +class TestV0044AssocMaxTresPer(unittest.TestCase): + """V0044AssocMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMaxTresPer: + """Test V0044AssocMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMaxTresPer` + """ + model = V0044AssocMaxTresPer() + if include_optional: + return V0044AssocMaxTresPer( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044AssocMaxTresPer( + ) + """ + + def testV0044AssocMaxTresPer(self): + """Test V0044AssocMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_min.py b/test/test_v0044_assoc_min.py new file mode 100644 index 0000000..852411b --- /dev/null +++ b/test/test_v0044_assoc_min.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_min import V0044AssocMin + +class TestV0044AssocMin(unittest.TestCase): + """V0044AssocMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocMin: + """Test V0044AssocMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocMin` + """ + model = V0044AssocMin() + if include_optional: + return V0044AssocMin( + priority_threshold = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044AssocMin( + ) + """ + + def testV0044AssocMin(self): + """Test V0044AssocMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_rec_set.py b/test/test_v0044_assoc_rec_set.py new file mode 100644 index 0000000..d48340c --- /dev/null +++ b/test/test_v0044_assoc_rec_set.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_rec_set import V0044AssocRecSet + +class TestV0044AssocRecSet(unittest.TestCase): + """V0044AssocRecSet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocRecSet: + """Test V0044AssocRecSet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocRecSet` + """ + model = V0044AssocRecSet() + if include_optional: + return V0044AssocRecSet( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grptres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grpwall = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxsubmitjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + maxtresminsperjob = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresrunmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtresperjob = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxtrespernode = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + maxwalldurationperjob = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minpriothresh = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + parent = '', + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qoslevel = [ + '' + ], + fairshare = 56 + ) + else: + return V0044AssocRecSet( + ) + """ + + def testV0044AssocRecSet(self): + """Test V0044AssocRecSet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_shares_obj_wrap.py b/test/test_v0044_assoc_shares_obj_wrap.py new file mode 100644 index 0000000..4f2a32e --- /dev/null +++ b/test/test_v0044_assoc_shares_obj_wrap.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_shares_obj_wrap import V0044AssocSharesObjWrap + +class TestV0044AssocSharesObjWrap(unittest.TestCase): + """V0044AssocSharesObjWrap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocSharesObjWrap: + """Test V0044AssocSharesObjWrap + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocSharesObjWrap` + """ + model = V0044AssocSharesObjWrap() + if include_optional: + return V0044AssocSharesObjWrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + shares = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_tres.v0_0_44_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/44_shares_float128_tres.v0.0.44_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage = 56, + fairshare = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_fairshare.v0_0_44_assoc_shares_obj_wrap_fairshare( + factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + level = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), ), + type = [ + 'USER' + ] + ) + else: + return V0044AssocSharesObjWrap( + ) + """ + + def testV0044AssocSharesObjWrap(self): + """Test V0044AssocSharesObjWrap""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_shares_obj_wrap_fairshare.py b/test/test_v0044_assoc_shares_obj_wrap_fairshare.py new file mode 100644 index 0000000..75f2861 --- /dev/null +++ b/test/test_v0044_assoc_shares_obj_wrap_fairshare.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_fairshare import V0044AssocSharesObjWrapFairshare + +class TestV0044AssocSharesObjWrapFairshare(unittest.TestCase): + """V0044AssocSharesObjWrapFairshare unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocSharesObjWrapFairshare: + """Test V0044AssocSharesObjWrapFairshare + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocSharesObjWrapFairshare` + """ + model = V0044AssocSharesObjWrapFairshare() + if include_optional: + return V0044AssocSharesObjWrapFairshare( + factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + level = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ) + ) + else: + return V0044AssocSharesObjWrapFairshare( + ) + """ + + def testV0044AssocSharesObjWrapFairshare(self): + """Test V0044AssocSharesObjWrapFairshare""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_shares_obj_wrap_tres.py b/test/test_v0044_assoc_shares_obj_wrap_tres.py new file mode 100644 index 0000000..7621c26 --- /dev/null +++ b/test/test_v0044_assoc_shares_obj_wrap_tres.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_shares_obj_wrap_tres import V0044AssocSharesObjWrapTres + +class TestV0044AssocSharesObjWrapTres(unittest.TestCase): + """V0044AssocSharesObjWrapTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocSharesObjWrapTres: + """Test V0044AssocSharesObjWrapTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocSharesObjWrapTres` + """ + model = V0044AssocSharesObjWrapTres() + if include_optional: + return V0044AssocSharesObjWrapTres( + run_seconds = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + usage = [ + slurmrest_python.models.v0/0/44_shares_float128_tres.v0.0.44_shares_float128_tres( + name = '', + value = 1.337, ) + ] + ) + else: + return V0044AssocSharesObjWrapTres( + ) + """ + + def testV0044AssocSharesObjWrapTres(self): + """Test V0044AssocSharesObjWrapTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_assoc_short.py b/test/test_v0044_assoc_short.py new file mode 100644 index 0000000..eba6d52 --- /dev/null +++ b/test/test_v0044_assoc_short.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_assoc_short import V0044AssocShort + +class TestV0044AssocShort(unittest.TestCase): + """V0044AssocShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044AssocShort: + """Test V0044AssocShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044AssocShort` + """ + model = V0044AssocShort() + if include_optional: + return V0044AssocShort( + account = '', + cluster = '', + partition = '', + user = '', + id = 56 + ) + else: + return V0044AssocShort( + user = '', + ) + """ + + def testV0044AssocShort(self): + """Test V0044AssocShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_bf_exit_fields.py b/test/test_v0044_bf_exit_fields.py new file mode 100644 index 0000000..a4e1885 --- /dev/null +++ b/test/test_v0044_bf_exit_fields.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_bf_exit_fields import V0044BfExitFields + +class TestV0044BfExitFields(unittest.TestCase): + """V0044BfExitFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044BfExitFields: + """Test V0044BfExitFields + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044BfExitFields` + """ + model = V0044BfExitFields() + if include_optional: + return V0044BfExitFields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56 + ) + else: + return V0044BfExitFields( + ) + """ + + def testV0044BfExitFields(self): + """Test V0044BfExitFields""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_cluster_rec.py b/test/test_v0044_cluster_rec.py new file mode 100644 index 0000000..5c1d647 --- /dev/null +++ b/test/test_v0044_cluster_rec.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_cluster_rec import V0044ClusterRec + +class TestV0044ClusterRec(unittest.TestCase): + """V0044ClusterRec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ClusterRec: + """Test V0044ClusterRec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ClusterRec` + """ + model = V0044ClusterRec() + if include_optional: + return V0044ClusterRec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_44_cluster_rec_associations.v0_0_44_cluster_rec_associations( + root = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044ClusterRec( + ) + """ + + def testV0044ClusterRec(self): + """Test V0044ClusterRec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_cluster_rec_associations.py b/test/test_v0044_cluster_rec_associations.py new file mode 100644 index 0000000..c29136d --- /dev/null +++ b/test/test_v0044_cluster_rec_associations.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_cluster_rec_associations import V0044ClusterRecAssociations + +class TestV0044ClusterRecAssociations(unittest.TestCase): + """V0044ClusterRecAssociations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ClusterRecAssociations: + """Test V0044ClusterRecAssociations + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ClusterRecAssociations` + """ + model = V0044ClusterRecAssociations() + if include_optional: + return V0044ClusterRecAssociations( + root = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ) + else: + return V0044ClusterRecAssociations( + ) + """ + + def testV0044ClusterRecAssociations(self): + """Test V0044ClusterRecAssociations""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_controller_ping.py b/test/test_v0044_controller_ping.py new file mode 100644 index 0000000..2ada481 --- /dev/null +++ b/test/test_v0044_controller_ping.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_controller_ping import V0044ControllerPing + +class TestV0044ControllerPing(unittest.TestCase): + """V0044ControllerPing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ControllerPing: + """Test V0044ControllerPing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ControllerPing` + """ + model = V0044ControllerPing() + if include_optional: + return V0044ControllerPing( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True + ) + else: + return V0044ControllerPing( + responding = True, + primary = True, + ) + """ + + def testV0044ControllerPing(self): + """Test V0044ControllerPing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_coord.py b/test/test_v0044_coord.py new file mode 100644 index 0000000..49b56fc --- /dev/null +++ b/test/test_v0044_coord.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_coord import V0044Coord + +class TestV0044Coord(unittest.TestCase): + """V0044Coord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Coord: + """Test V0044Coord + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Coord` + """ + model = V0044Coord() + if include_optional: + return V0044Coord( + name = '', + direct = True + ) + else: + return V0044Coord( + name = '', + ) + """ + + def testV0044Coord(self): + """Test V0044Coord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_cron_entry.py b/test/test_v0044_cron_entry.py new file mode 100644 index 0000000..3ffdac5 --- /dev/null +++ b/test/test_v0044_cron_entry.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_cron_entry import V0044CronEntry + +class TestV0044CronEntry(unittest.TestCase): + """V0044CronEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044CronEntry: + """Test V0044CronEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044CronEntry` + """ + model = V0044CronEntry() + if include_optional: + return V0044CronEntry( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ) + ) + else: + return V0044CronEntry( + ) + """ + + def testV0044CronEntry(self): + """Test V0044CronEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_float64_no_val_struct.py b/test/test_v0044_float64_no_val_struct.py new file mode 100644 index 0000000..223ad11 --- /dev/null +++ b/test/test_v0044_float64_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_float64_no_val_struct import V0044Float64NoValStruct + +class TestV0044Float64NoValStruct(unittest.TestCase): + """V0044Float64NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Float64NoValStruct: + """Test V0044Float64NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Float64NoValStruct` + """ + model = V0044Float64NoValStruct() + if include_optional: + return V0044Float64NoValStruct( + set = True, + infinite = True, + number = 1.337 + ) + else: + return V0044Float64NoValStruct( + ) + """ + + def testV0044Float64NoValStruct(self): + """Test V0044Float64NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_instance.py b/test/test_v0044_instance.py new file mode 100644 index 0000000..9cdf7be --- /dev/null +++ b/test/test_v0044_instance.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_instance import V0044Instance + +class TestV0044Instance(unittest.TestCase): + """V0044Instance unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Instance: + """Test V0044Instance + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Instance` + """ + model = V0044Instance() + if include_optional: + return V0044Instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ) + ) + else: + return V0044Instance( + ) + """ + + def testV0044Instance(self): + """Test V0044Instance""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_instance_time.py b/test/test_v0044_instance_time.py new file mode 100644 index 0000000..5c36ef4 --- /dev/null +++ b/test/test_v0044_instance_time.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_instance_time import V0044InstanceTime + +class TestV0044InstanceTime(unittest.TestCase): + """V0044InstanceTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044InstanceTime: + """Test V0044InstanceTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044InstanceTime` + """ + model = V0044InstanceTime() + if include_optional: + return V0044InstanceTime( + time_end = 56, + time_start = 56 + ) + else: + return V0044InstanceTime( + ) + """ + + def testV0044InstanceTime(self): + """Test V0044InstanceTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job.py b/test/test_v0044_job.py new file mode 100644 index 0000000..dcdffde --- /dev/null +++ b/test/test_v0044_job.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job import V0044Job + +class TestV0044Job(unittest.TestCase): + """V0044Job unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Job: + """Test V0044Job + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Job` + """ + model = V0044Job() + if include_optional: + return V0044Job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_44_job_array.v0_0_44_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_44_job_time.v0_0_44_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_44_job_het.v0_0_44_job_het( + job_id = 56, + job_offset = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_44_job_required.v0_0_44_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_44_job_reservation.v0_0_44_job_reservation( + id = 56, + name = '', + requested = '', ), + script = '', + segment_size = 56, + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_44_job_state.v0_0_44_job_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/44_step.v0.0.44_step( + time = slurmrest_python.models.v0_0_44_step_time.v0_0_44_step_time( + elapsed = 56, + end = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_44_step_nodes.v0_0_44_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_44_step_cpu.v0_0_44_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_44_step_cpu_requested_frequency.v0_0_44_step_CPU_requested_frequency( + min = , + max = , ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_44_step_statistics.v0_0_44_step_statistics( + energy = slurmrest_python.models.v0_0_44_step_statistics_energy.v0_0_44_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_44_step_tres.v0_0_44_step_tres( + requested = slurmrest_python.models.v0_0_44_step_tres_requested.v0_0_44_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_44_job_tres.v0_0_44_job_tres( + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/44_wckey_tag_struct.v0.0.44_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '' + ) + else: + return V0044Job( + ) + """ + + def testV0044Job(self): + """Test V0044Job""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_alloc_req.py b/test/test_v0044_job_alloc_req.py new file mode 100644 index 0000000..cbd0c71 --- /dev/null +++ b/test/test_v0044_job_alloc_req.py @@ -0,0 +1,425 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_alloc_req import V0044JobAllocReq + +class TestV0044JobAllocReq(unittest.TestCase): + """V0044JobAllocReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobAllocReq: + """Test V0044JobAllocReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobAllocReq` + """ + model = V0044JobAllocReq() + if include_optional: + return V0044JobAllocReq( + hetjob = [ + slurmrest_python.models.v0/0/44_job_desc_msg.v0.0.44_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/44_cron_entry.v0.0.44_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_44_job_desc_msg_rlimits.v0_0_44_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_het_component = , ), + distribution = '', + time_limit = , + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/44_job_desc_msg.v0.0.44_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/44_cron_entry.v0.0.44_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_44_job_desc_msg_rlimits.v0_0_44_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_het_component = , ), + distribution = '', + time_limit = , + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0044JobAllocReq( + ) + """ + + def testV0044JobAllocReq(self): + """Test V0044JobAllocReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_array.py b/test/test_v0044_job_array.py new file mode 100644 index 0000000..0cce455 --- /dev/null +++ b/test/test_v0044_job_array.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_array import V0044JobArray + +class TestV0044JobArray(unittest.TestCase): + """V0044JobArray unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobArray: + """Test V0044JobArray + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobArray` + """ + model = V0044JobArray() + if include_optional: + return V0044JobArray( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '' + ) + else: + return V0044JobArray( + ) + """ + + def testV0044JobArray(self): + """Test V0044JobArray""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_array_response_msg_entry.py b/test/test_v0044_job_array_response_msg_entry.py new file mode 100644 index 0000000..6a6cd26 --- /dev/null +++ b/test/test_v0044_job_array_response_msg_entry.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_array_response_msg_entry import V0044JobArrayResponseMsgEntry + +class TestV0044JobArrayResponseMsgEntry(unittest.TestCase): + """V0044JobArrayResponseMsgEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobArrayResponseMsgEntry: + """Test V0044JobArrayResponseMsgEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobArrayResponseMsgEntry` + """ + model = V0044JobArrayResponseMsgEntry() + if include_optional: + return V0044JobArrayResponseMsgEntry( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '' + ) + else: + return V0044JobArrayResponseMsgEntry( + ) + """ + + def testV0044JobArrayResponseMsgEntry(self): + """Test V0044JobArrayResponseMsgEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_desc_msg.py b/test/test_v0044_job_desc_msg.py new file mode 100644 index 0000000..850887c --- /dev/null +++ b/test/test_v0044_job_desc_msg.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_desc_msg import V0044JobDescMsg + +class TestV0044JobDescMsg(unittest.TestCase): + """V0044JobDescMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobDescMsg: + """Test V0044JobDescMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobDescMsg` + """ + model = V0044JobDescMsg() + if include_optional: + return V0044JobDescMsg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/44_cron_entry.v0.0.44_cron_entry( + flags = [ + 'WILD_MINUTE' + ], + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_44_job_desc_msg_rlimits.v0_0_44_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = [ + '' + ], + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_het_component = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + distribution = '', + time_limit = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + segment_size = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56 + ) + else: + return V0044JobDescMsg( + ) + """ + + def testV0044JobDescMsg(self): + """Test V0044JobDescMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_desc_msg_rlimits.py b/test/test_v0044_job_desc_msg_rlimits.py new file mode 100644 index 0000000..b1523e6 --- /dev/null +++ b/test/test_v0044_job_desc_msg_rlimits.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_desc_msg_rlimits import V0044JobDescMsgRlimits + +class TestV0044JobDescMsgRlimits(unittest.TestCase): + """V0044JobDescMsgRlimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobDescMsgRlimits: + """Test V0044JobDescMsgRlimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobDescMsgRlimits` + """ + model = V0044JobDescMsgRlimits() + if include_optional: + return V0044JobDescMsgRlimits( + cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + data = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + stack = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + core = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + rss = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nproc = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nofile = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memlock = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + var_as = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044JobDescMsgRlimits( + ) + """ + + def testV0044JobDescMsgRlimits(self): + """Test V0044JobDescMsgRlimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_het.py b/test/test_v0044_job_het.py new file mode 100644 index 0000000..e6f264d --- /dev/null +++ b/test/test_v0044_job_het.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_het import V0044JobHet + +class TestV0044JobHet(unittest.TestCase): + """V0044JobHet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobHet: + """Test V0044JobHet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobHet` + """ + model = V0044JobHet() + if include_optional: + return V0044JobHet( + job_id = 56, + job_offset = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044JobHet( + ) + """ + + def testV0044JobHet(self): + """Test V0044JobHet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_info.py b/test/test_v0044_job_info.py new file mode 100644 index 0000000..f06c4cf --- /dev/null +++ b/test/test_v0044_job_info.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_info import V0044JobInfo + +class TestV0044JobInfo(unittest.TestCase): + """V0044JobInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobInfo: + """Test V0044JobInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobInfo` + """ + model = V0044JobInfo() + if include_optional: + return V0044JobInfo( + account = '', + accrue_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_maximum = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_governor = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + eligible_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + het_job_id_set = '', + het_job_offset = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job_id = 56, + job_resources = slurmrest_python.models.v0/0/44_job_res.v0.0.44_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_44_job_res_nodes.v0_0_44_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/44_job_res_node.v0.0.44_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/44_job_res_socket.v0.0.44_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + licenses = '', + licenses_allocated = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max_nodes = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_tres = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_node = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_socket = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks_per_board = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + node_count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tasks = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition = '', + prefer = '', + memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minimum_cpus_per_node = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + minimum_tmp_disk_per_node = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power( + flags = [ + null + ], ), + preempt_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + preemptable_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + pre_sus_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + hold = True, + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + priority_by_partition = [ + slurmrest_python.models.v0/0/44_part_prio.v0.0.44_part_prio( + partition = '', + priority = 56, ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + segment_size = 56, + selinux_context = '', + shared = [ + 'none' + ], + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_het_component = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + sockets_per_board = 56, + sockets_per_node = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + state_description = '', + state_reason = '', + standard_input = '', + standard_output = '', + standard_error = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + submit_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submit_line = '', + suspend_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + system_comment = '', + time_limit = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time_minimum = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + threads_per_core = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '' + ) + else: + return V0044JobInfo( + ) + """ + + def testV0044JobInfo(self): + """Test V0044JobInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_modify.py b/test/test_v0044_job_modify.py new file mode 100644 index 0000000..89fc716 --- /dev/null +++ b/test/test_v0044_job_modify.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_modify import V0044JobModify + +class TestV0044JobModify(unittest.TestCase): + """V0044JobModify unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobModify: + """Test V0044JobModify + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobModify` + """ + model = V0044JobModify() + if include_optional: + return V0044JobModify( + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + tres = slurmrest_python.models.v0_0_44_job_modify_tres.v0_0_44_job_modify_tres( + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), + wckey = '' + ) + else: + return V0044JobModify( + ) + """ + + def testV0044JobModify(self): + """Test V0044JobModify""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_modify_tres.py b/test/test_v0044_job_modify_tres.py new file mode 100644 index 0000000..4a8e298 --- /dev/null +++ b/test/test_v0044_job_modify_tres.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_modify_tres import V0044JobModifyTres + +class TestV0044JobModifyTres(unittest.TestCase): + """V0044JobModifyTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobModifyTres: + """Test V0044JobModifyTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobModifyTres` + """ + model = V0044JobModifyTres() + if include_optional: + return V0044JobModifyTres( + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044JobModifyTres( + ) + """ + + def testV0044JobModifyTres(self): + """Test V0044JobModifyTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_required.py b/test/test_v0044_job_required.py new file mode 100644 index 0000000..c6de6f0 --- /dev/null +++ b/test/test_v0044_job_required.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_required import V0044JobRequired + +class TestV0044JobRequired(unittest.TestCase): + """V0044JobRequired unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobRequired: + """Test V0044JobRequired + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobRequired` + """ + model = V0044JobRequired() + if include_optional: + return V0044JobRequired( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044JobRequired( + ) + """ + + def testV0044JobRequired(self): + """Test V0044JobRequired""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_res.py b/test/test_v0044_job_res.py new file mode 100644 index 0000000..0d98c49 --- /dev/null +++ b/test/test_v0044_job_res.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_res import V0044JobRes + +class TestV0044JobRes(unittest.TestCase): + """V0044JobRes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobRes: + """Test V0044JobRes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobRes` + """ + model = V0044JobRes() + if include_optional: + return V0044JobRes( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_44_job_res_nodes.v0_0_44_job_res_nodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/44_job_res_node.v0.0.44_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/44_job_res_socket.v0.0.44_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044JobRes( + select_type = [ + 'CPU' + ], + cpus = 56, + threads_per_core = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044JobRes(self): + """Test V0044JobRes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_res_core.py b/test/test_v0044_job_res_core.py new file mode 100644 index 0000000..210f12b --- /dev/null +++ b/test/test_v0044_job_res_core.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_res_core import V0044JobResCore + +class TestV0044JobResCore(unittest.TestCase): + """V0044JobResCore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobResCore: + """Test V0044JobResCore + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobResCore` + """ + model = V0044JobResCore() + if include_optional: + return V0044JobResCore( + index = 56, + status = [ + 'INVALID' + ] + ) + else: + return V0044JobResCore( + index = 56, + status = [ + 'INVALID' + ], + ) + """ + + def testV0044JobResCore(self): + """Test V0044JobResCore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_res_node.py b/test/test_v0044_job_res_node.py new file mode 100644 index 0000000..ea25271 --- /dev/null +++ b/test/test_v0044_job_res_node.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_res_node import V0044JobResNode + +class TestV0044JobResNode(unittest.TestCase): + """V0044JobResNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobResNode: + """Test V0044JobResNode + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobResNode` + """ + model = V0044JobResNode() + if include_optional: + return V0044JobResNode( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/44_job_res_socket.v0.0.44_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ] + ) + else: + return V0044JobResNode( + index = 56, + name = '', + sockets = [ + slurmrest_python.models.v0/0/44_job_res_socket.v0.0.44_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], + ) + """ + + def testV0044JobResNode(self): + """Test V0044JobResNode""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_res_nodes.py b/test/test_v0044_job_res_nodes.py new file mode 100644 index 0000000..44e237c --- /dev/null +++ b/test/test_v0044_job_res_nodes.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_res_nodes import V0044JobResNodes + +class TestV0044JobResNodes(unittest.TestCase): + """V0044JobResNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobResNodes: + """Test V0044JobResNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobResNodes` + """ + model = V0044JobResNodes() + if include_optional: + return V0044JobResNodes( + count = 56, + select_type = [ + 'AVAILABLE' + ], + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/44_job_res_node.v0.0.44_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/44_job_res_socket.v0.0.44_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ] + ) + else: + return V0044JobResNodes( + ) + """ + + def testV0044JobResNodes(self): + """Test V0044JobResNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_res_socket.py b/test/test_v0044_job_res_socket.py new file mode 100644 index 0000000..3c469dd --- /dev/null +++ b/test/test_v0044_job_res_socket.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_res_socket import V0044JobResSocket + +class TestV0044JobResSocket(unittest.TestCase): + """V0044JobResSocket unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobResSocket: + """Test V0044JobResSocket + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobResSocket` + """ + model = V0044JobResSocket() + if include_optional: + return V0044JobResSocket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ] + ) + else: + return V0044JobResSocket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], + ) + """ + + def testV0044JobResSocket(self): + """Test V0044JobResSocket""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_reservation.py b/test/test_v0044_job_reservation.py new file mode 100644 index 0000000..a972a73 --- /dev/null +++ b/test/test_v0044_job_reservation.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_reservation import V0044JobReservation + +class TestV0044JobReservation(unittest.TestCase): + """V0044JobReservation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobReservation: + """Test V0044JobReservation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobReservation` + """ + model = V0044JobReservation() + if include_optional: + return V0044JobReservation( + id = 56, + name = '', + requested = '' + ) + else: + return V0044JobReservation( + ) + """ + + def testV0044JobReservation(self): + """Test V0044JobReservation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_state.py b/test/test_v0044_job_state.py new file mode 100644 index 0000000..abbb955 --- /dev/null +++ b/test/test_v0044_job_state.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_state import V0044JobState + +class TestV0044JobState(unittest.TestCase): + """V0044JobState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobState: + """Test V0044JobState + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobState` + """ + model = V0044JobState() + if include_optional: + return V0044JobState( + current = [ + 'PENDING' + ], + reason = '' + ) + else: + return V0044JobState( + ) + """ + + def testV0044JobState(self): + """Test V0044JobState""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_submit_req.py b/test/test_v0044_job_submit_req.py new file mode 100644 index 0000000..f286627 --- /dev/null +++ b/test/test_v0044_job_submit_req.py @@ -0,0 +1,426 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_submit_req import V0044JobSubmitReq + +class TestV0044JobSubmitReq(unittest.TestCase): + """V0044JobSubmitReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobSubmitReq: + """Test V0044JobSubmitReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobSubmitReq` + """ + model = V0044JobSubmitReq() + if include_optional: + return V0044JobSubmitReq( + script = '', + jobs = [ + slurmrest_python.models.v0/0/44_job_desc_msg.v0.0.44_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/44_cron_entry.v0.0.44_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_44_job_desc_msg_rlimits.v0_0_44_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_het_component = , ), + distribution = '', + time_limit = , + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ], + job = slurmrest_python.models.v0/0/44_job_desc_msg.v0.0.44_job_desc_msg( + account = '', + account_gather_frequency = '', + admin_comment = '', + allocation_node_list = '', + allocation_node_port = 56, + argv = [ + '' + ], + array = '', + batch_features = '', + begin_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + clusters = '', + cluster_constraint = '', + comment = '', + contiguous = True, + container = '', + container_id = '', + core_specification = 56, + thread_specification = 56, + cpu_binding = '', + cpu_binding_flags = [ + 'CPU_BIND_TO_THREADS' + ], + cpu_frequency = '', + cpus_per_tres = '', + crontab = slurmrest_python.models.v0/0/44_cron_entry.v0.0.44_cron_entry( + minute = '', + hour = '', + day_of_month = '', + month = '', + day_of_week = '', + specification = '', + command = '', + line = slurmrest_python.models.v0_0_41_job_desc_msg_crontab_line.v0_0_41_job_desc_msg_crontab_line( + start = 56, + end = 56, ), ), + deadline = 56, + delay_boot = 56, + dependency = '', + end_time = 56, + environment = [ + '' + ], + rlimits = slurmrest_python.models.v0_0_44_job_desc_msg_rlimits.v0_0_44_job_desc_msg_rlimits( + cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + fsize = , + data = , + stack = , + core = , + rss = , + nproc = , + nofile = , + memlock = , + as = , ), + excluded_nodes = [ + '' + ], + extra = '', + constraints = '', + group_id = '', + hetjob_group = 56, + immediate = True, + job_id = 56, + kill_on_node_fail = True, + licenses = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + mcs_label = '', + memory_binding = '', + memory_binding_type = [ + 'NONE' + ], + memory_per_tres = '', + name = '', + network = '', + nice = 56, + tasks = 56, + oom_kill_step = 56, + open_mode = [ + 'APPEND' + ], + reserve_ports = 56, + overcommit = True, + partition = '', + distribution_plane_size = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + power_flags = [ + null + ], + prefer = '', + hold = True, + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = [ + '' + ], + requeue = True, + reservation = '', + script = '', + shared = [ + 'none' + ], + site_factor = 56, + spank_environment = , + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_het_component = , ), + distribution = '', + time_limit = , + time_minimum = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + user_id = '', + wait_all_nodes = True, + kill_warning_flags = [ + 'BATCH_JOB' + ], + kill_warning_signal = '', + kill_warning_delay = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + current_working_directory = '', + cpus_per_task = 56, + minimum_cpus = 56, + maximum_cpus = 56, + nodes = '', + minimum_nodes = 56, + maximum_nodes = 56, + minimum_boards_per_node = 56, + minimum_sockets_per_board = 56, + sockets_per_node = 56, + threads_per_core = 56, + tasks_per_node = 56, + tasks_per_socket = 56, + tasks_per_core = 56, + tasks_per_board = 56, + ntasks_per_tres = 56, + minimum_cpus_per_node = 56, + memory_per_cpu = , + memory_per_node = , + temporary_disk_per_node = 56, + selinux_context = '', + required_switches = , + segment_size = , + standard_error = '', + standard_input = '', + standard_output = '', + wait_for_switch = 56, + wckey = '', + x11 = [ + 'FORWARD_ALL_NODES' + ], + x11_magic_cookie = '', + x11_target_host = '', + x11_target_port = 56, ) + ) + else: + return V0044JobSubmitReq( + ) + """ + + def testV0044JobSubmitReq(self): + """Test V0044JobSubmitReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_time.py b/test/test_v0044_job_time.py new file mode 100644 index 0000000..329ed02 --- /dev/null +++ b/test/test_v0044_job_time.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_time import V0044JobTime + +class TestV0044JobTime(unittest.TestCase): + """V0044JobTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobTime: + """Test V0044JobTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobTime` + """ + model = V0044JobTime() + if include_optional: + return V0044JobTime( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0044JobTime( + ) + """ + + def testV0044JobTime(self): + """Test V0044JobTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_job_tres.py b/test/test_v0044_job_tres.py new file mode 100644 index 0000000..f6470d9 --- /dev/null +++ b/test/test_v0044_job_tres.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_job_tres import V0044JobTres + +class TestV0044JobTres(unittest.TestCase): + """V0044JobTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044JobTres: + """Test V0044JobTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044JobTres` + """ + model = V0044JobTres() + if include_optional: + return V0044JobTres( + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + requested = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044JobTres( + ) + """ + + def testV0044JobTres(self): + """Test V0044JobTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_kill_jobs_msg.py b/test/test_v0044_kill_jobs_msg.py new file mode 100644 index 0000000..d456893 --- /dev/null +++ b/test/test_v0044_kill_jobs_msg.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_kill_jobs_msg import V0044KillJobsMsg + +class TestV0044KillJobsMsg(unittest.TestCase): + """V0044KillJobsMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044KillJobsMsg: + """Test V0044KillJobsMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044KillJobsMsg` + """ + model = V0044KillJobsMsg() + if include_optional: + return V0044KillJobsMsg( + account = '', + flags = [ + 'BATCH_JOB' + ], + job_name = '', + jobs = [ + '' + ], + partition = '', + qos = '', + reservation = '', + signal = '', + job_state = [ + 'PENDING' + ], + user_id = '', + user_name = '', + wckey = '', + nodes = [ + '' + ] + ) + else: + return V0044KillJobsMsg( + ) + """ + + def testV0044KillJobsMsg(self): + """Test V0044KillJobsMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_kill_jobs_resp_job.py b/test/test_v0044_kill_jobs_resp_job.py new file mode 100644 index 0000000..ffb82d3 --- /dev/null +++ b/test/test_v0044_kill_jobs_resp_job.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_kill_jobs_resp_job import V0044KillJobsRespJob + +class TestV0044KillJobsRespJob(unittest.TestCase): + """V0044KillJobsRespJob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044KillJobsRespJob: + """Test V0044KillJobsRespJob + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044KillJobsRespJob` + """ + model = V0044KillJobsRespJob() + if include_optional: + return V0044KillJobsRespJob( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ) + ) + else: + return V0044KillJobsRespJob( + step_id = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044KillJobsRespJob(self): + """Test V0044KillJobsRespJob""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_license.py b/test/test_v0044_license.py new file mode 100644 index 0000000..1058530 --- /dev/null +++ b/test/test_v0044_license.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_license import V0044License + +class TestV0044License(unittest.TestCase): + """V0044License unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044License: + """Test V0044License + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044License` + """ + model = V0044License() + if include_optional: + return V0044License( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, + nodes = '' + ) + else: + return V0044License( + ) + """ + + def testV0044License(self): + """Test V0044License""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_node.py b/test/test_v0044_node.py new file mode 100644 index 0000000..433d508 --- /dev/null +++ b/test/test_v0044_node.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_node import V0044Node + +class TestV0044Node(unittest.TestCase): + """V0044Node unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Node: + """Test V0044Node + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Node` + """ + model = V0044Node() + if include_optional: + return V0044Node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tls_cert_last_renewal = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cert_flags = [ + 'TOKEN_SET' + ], + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/44_acct_gather_energy.v0.0.44_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = [ + '' + ], + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + reason_set_by_user = '', + resume_after = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + topology = '', + tres = '', + version = '' + ) + else: + return V0044Node( + ) + """ + + def testV0044Node(self): + """Test V0044Node""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_node_gres_layout.py b/test/test_v0044_node_gres_layout.py new file mode 100644 index 0000000..a9b2402 --- /dev/null +++ b/test/test_v0044_node_gres_layout.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_node_gres_layout import V0044NodeGresLayout + +class TestV0044NodeGresLayout(unittest.TestCase): + """V0044NodeGresLayout unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044NodeGresLayout: + """Test V0044NodeGresLayout + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044NodeGresLayout` + """ + model = V0044NodeGresLayout() + if include_optional: + return V0044NodeGresLayout( + name = '', + type = '', + count = 56, + index = '' + ) + else: + return V0044NodeGresLayout( + name = '', + ) + """ + + def testV0044NodeGresLayout(self): + """Test V0044NodeGresLayout""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_node_resource_layout.py b/test/test_v0044_node_resource_layout.py new file mode 100644 index 0000000..d882c13 --- /dev/null +++ b/test/test_v0044_node_resource_layout.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_node_resource_layout import V0044NodeResourceLayout + +class TestV0044NodeResourceLayout(unittest.TestCase): + """V0044NodeResourceLayout unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044NodeResourceLayout: + """Test V0044NodeResourceLayout + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044NodeResourceLayout` + """ + model = V0044NodeResourceLayout() + if include_optional: + return V0044NodeResourceLayout( + node = '', + sockets_per_node = 56, + cores_per_socket = 56, + mem_alloc = 56, + core_bitmap = '', + channel = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + gres = [ + slurmrest_python.models.v0/0/44_node_gres_layout.v0.0.44_node_gres_layout( + name = '', + type = '', + count = 56, + index = '', ) + ] + ) + else: + return V0044NodeResourceLayout( + node = '', + ) + """ + + def testV0044NodeResourceLayout(self): + """Test V0044NodeResourceLayout""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_accounts_add_cond_resp.py b/test/test_v0044_openapi_accounts_add_cond_resp.py new file mode 100644 index 0000000..422d15c --- /dev/null +++ b/test/test_v0044_openapi_accounts_add_cond_resp.py @@ -0,0 +1,186 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp import V0044OpenapiAccountsAddCondResp + +class TestV0044OpenapiAccountsAddCondResp(unittest.TestCase): + """V0044OpenapiAccountsAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiAccountsAddCondResp: + """Test V0044OpenapiAccountsAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiAccountsAddCondResp` + """ + model = V0044OpenapiAccountsAddCondResp() + if include_optional: + return V0044OpenapiAccountsAddCondResp( + association_condition = slurmrest_python.models.v0/0/44_accounts_add_cond.v0.0.44_accounts_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/44_assoc_rec_set.v0.0.44_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], ), + account = slurmrest_python.models.v0/0/44_account_short.v0.0.44_account_short( + description = '', + organization = '', ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiAccountsAddCondResp( + association_condition = slurmrest_python.models.v0/0/44_accounts_add_cond.v0.0.44_accounts_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/44_assoc_rec_set.v0.0.44_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], ), + ) + """ + + def testV0044OpenapiAccountsAddCondResp(self): + """Test V0044OpenapiAccountsAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_accounts_add_cond_resp_str.py b/test/test_v0044_openapi_accounts_add_cond_resp_str.py new file mode 100644 index 0000000..4a85584 --- /dev/null +++ b/test/test_v0044_openapi_accounts_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_accounts_add_cond_resp_str import V0044OpenapiAccountsAddCondRespStr + +class TestV0044OpenapiAccountsAddCondRespStr(unittest.TestCase): + """V0044OpenapiAccountsAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiAccountsAddCondRespStr: + """Test V0044OpenapiAccountsAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiAccountsAddCondRespStr` + """ + model = V0044OpenapiAccountsAddCondRespStr() + if include_optional: + return V0044OpenapiAccountsAddCondRespStr( + added_accounts = '', + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiAccountsAddCondRespStr( + added_accounts = '', + ) + """ + + def testV0044OpenapiAccountsAddCondRespStr(self): + """Test V0044OpenapiAccountsAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_accounts_removed_resp.py b/test/test_v0044_openapi_accounts_removed_resp.py new file mode 100644 index 0000000..5df32e9 --- /dev/null +++ b/test/test_v0044_openapi_accounts_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_accounts_removed_resp import V0044OpenapiAccountsRemovedResp + +class TestV0044OpenapiAccountsRemovedResp(unittest.TestCase): + """V0044OpenapiAccountsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiAccountsRemovedResp: + """Test V0044OpenapiAccountsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiAccountsRemovedResp` + """ + model = V0044OpenapiAccountsRemovedResp() + if include_optional: + return V0044OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiAccountsRemovedResp( + removed_accounts = [ + '' + ], + ) + """ + + def testV0044OpenapiAccountsRemovedResp(self): + """Test V0044OpenapiAccountsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_accounts_resp.py b/test/test_v0044_openapi_accounts_resp.py new file mode 100644 index 0000000..7f001e6 --- /dev/null +++ b/test/test_v0044_openapi_accounts_resp.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_accounts_resp import V0044OpenapiAccountsResp + +class TestV0044OpenapiAccountsResp(unittest.TestCase): + """V0044OpenapiAccountsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiAccountsResp: + """Test V0044OpenapiAccountsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiAccountsResp` + """ + model = V0044OpenapiAccountsResp() + if include_optional: + return V0044OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0/0/44_account.v0.0.44_account( + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiAccountsResp( + accounts = [ + slurmrest_python.models.v0/0/44_account.v0.0.44_account( + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0044OpenapiAccountsResp(self): + """Test V0044OpenapiAccountsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_assocs_removed_resp.py b/test/test_v0044_openapi_assocs_removed_resp.py new file mode 100644 index 0000000..dbf5314 --- /dev/null +++ b/test/test_v0044_openapi_assocs_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_assocs_removed_resp import V0044OpenapiAssocsRemovedResp + +class TestV0044OpenapiAssocsRemovedResp(unittest.TestCase): + """V0044OpenapiAssocsRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiAssocsRemovedResp: + """Test V0044OpenapiAssocsRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiAssocsRemovedResp` + """ + model = V0044OpenapiAssocsRemovedResp() + if include_optional: + return V0044OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiAssocsRemovedResp( + removed_associations = [ + '' + ], + ) + """ + + def testV0044OpenapiAssocsRemovedResp(self): + """Test V0044OpenapiAssocsRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_assocs_resp.py b/test/test_v0044_openapi_assocs_resp.py new file mode 100644 index 0000000..2a4f68f --- /dev/null +++ b/test/test_v0044_openapi_assocs_resp.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_assocs_resp import V0044OpenapiAssocsResp + +class TestV0044OpenapiAssocsResp(unittest.TestCase): + """V0044OpenapiAssocsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiAssocsResp: + """Test V0044OpenapiAssocsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiAssocsResp` + """ + model = V0044OpenapiAssocsResp() + if include_optional: + return V0044OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0/0/44_assoc.v0.0.44_assoc( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_44_assoc_max.v0_0_44_assoc_max( + jobs = slurmrest_python.models.v0_0_44_assoc_max_jobs.v0_0_44_assoc_max_jobs( + per = slurmrest_python.models.v0_0_44_assoc_max_jobs_per.v0_0_44_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_44_assoc_max_tres.v0_0_44_assoc_max_tres( + group = slurmrest_python.models.v0_0_44_assoc_max_tres_group.v0_0_44_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_44_assoc_max_tres_minutes.v0_0_44_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_44_assoc_max_per.v0_0_44_assoc_max_per( + account = slurmrest_python.models.v0_0_44_assoc_max_per_account.v0_0_44_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_44_assoc_min.v0_0_44_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiAssocsResp( + associations = [ + slurmrest_python.models.v0/0/44_assoc.v0.0.44_assoc( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_44_assoc_max.v0_0_44_assoc_max( + jobs = slurmrest_python.models.v0_0_44_assoc_max_jobs.v0_0_44_assoc_max_jobs( + per = slurmrest_python.models.v0_0_44_assoc_max_jobs_per.v0_0_44_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_44_assoc_max_tres.v0_0_44_assoc_max_tres( + group = slurmrest_python.models.v0_0_44_assoc_max_tres_group.v0_0_44_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_44_assoc_max_tres_minutes.v0_0_44_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_44_assoc_max_per.v0_0_44_assoc_max_per( + account = slurmrest_python.models.v0_0_44_assoc_max_per_account.v0_0_44_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_44_assoc_min.v0_0_44_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + ) + """ + + def testV0044OpenapiAssocsResp(self): + """Test V0044OpenapiAssocsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_clusters_removed_resp.py b/test/test_v0044_openapi_clusters_removed_resp.py new file mode 100644 index 0000000..48fde36 --- /dev/null +++ b/test/test_v0044_openapi_clusters_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_clusters_removed_resp import V0044OpenapiClustersRemovedResp + +class TestV0044OpenapiClustersRemovedResp(unittest.TestCase): + """V0044OpenapiClustersRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiClustersRemovedResp: + """Test V0044OpenapiClustersRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiClustersRemovedResp` + """ + model = V0044OpenapiClustersRemovedResp() + if include_optional: + return V0044OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiClustersRemovedResp( + deleted_clusters = [ + '' + ], + ) + """ + + def testV0044OpenapiClustersRemovedResp(self): + """Test V0044OpenapiClustersRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_clusters_resp.py b/test/test_v0044_openapi_clusters_resp.py new file mode 100644 index 0000000..6c6a5f6 --- /dev/null +++ b/test/test_v0044_openapi_clusters_resp.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_clusters_resp import V0044OpenapiClustersResp + +class TestV0044OpenapiClustersResp(unittest.TestCase): + """V0044OpenapiClustersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiClustersResp: + """Test V0044OpenapiClustersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiClustersResp` + """ + model = V0044OpenapiClustersResp() + if include_optional: + return V0044OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0/0/44_cluster_rec.v0.0.44_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_44_cluster_rec_associations.v0_0_44_cluster_rec_associations( + root = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiClustersResp( + clusters = [ + slurmrest_python.models.v0/0/44_cluster_rec.v0.0.44_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_44_cluster_rec_associations.v0_0_44_cluster_rec_associations( + root = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + ) + """ + + def testV0044OpenapiClustersResp(self): + """Test V0044OpenapiClustersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_create_node_req.py b/test/test_v0044_openapi_create_node_req.py new file mode 100644 index 0000000..a74be87 --- /dev/null +++ b/test/test_v0044_openapi_create_node_req.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_create_node_req import V0044OpenapiCreateNodeReq + +class TestV0044OpenapiCreateNodeReq(unittest.TestCase): + """V0044OpenapiCreateNodeReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiCreateNodeReq: + """Test V0044OpenapiCreateNodeReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiCreateNodeReq` + """ + model = V0044OpenapiCreateNodeReq() + if include_optional: + return V0044OpenapiCreateNodeReq( + node_conf = '', + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiCreateNodeReq( + node_conf = '', + ) + """ + + def testV0044OpenapiCreateNodeReq(self): + """Test V0044OpenapiCreateNodeReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_diag_resp.py b/test/test_v0044_openapi_diag_resp.py new file mode 100644 index 0000000..44021f9 --- /dev/null +++ b/test/test_v0044_openapi_diag_resp.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_diag_resp import V0044OpenapiDiagResp + +class TestV0044OpenapiDiagResp(unittest.TestCase): + """V0044OpenapiDiagResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiDiagResp: + """Test V0044OpenapiDiagResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiDiagResp` + """ + model = V0044OpenapiDiagResp() + if include_optional: + return V0044OpenapiDiagResp( + statistics = slurmrest_python.models.v0/0/44_stats_msg.v0.0.44_stats_msg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/44_schedule_exit_fields.v0.0.44_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = , + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/44_bf_exit_fields.v0.0.44_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = , + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_type.v0.0.44_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = , ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_user.v0.0.44_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = , ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_queue.v0.0.44_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_dump.v0.0.44_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiDiagResp( + statistics = slurmrest_python.models.v0/0/44_stats_msg.v0.0.44_stats_msg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/44_schedule_exit_fields.v0.0.44_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = , + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/44_bf_exit_fields.v0.0.44_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = , + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_type.v0.0.44_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = , ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_user.v0.0.44_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = , ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_queue.v0.0.44_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_dump.v0.0.44_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ], ), + ) + """ + + def testV0044OpenapiDiagResp(self): + """Test V0044OpenapiDiagResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_error.py b/test/test_v0044_openapi_error.py new file mode 100644 index 0000000..ee2b584 --- /dev/null +++ b/test/test_v0044_openapi_error.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_error import V0044OpenapiError + +class TestV0044OpenapiError(unittest.TestCase): + """V0044OpenapiError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiError: + """Test V0044OpenapiError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiError` + """ + model = V0044OpenapiError() + if include_optional: + return V0044OpenapiError( + description = '', + error_number = 56, + error = '', + source = '' + ) + else: + return V0044OpenapiError( + ) + """ + + def testV0044OpenapiError(self): + """Test V0044OpenapiError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_hostlist_req_resp.py b/test/test_v0044_openapi_hostlist_req_resp.py new file mode 100644 index 0000000..68c0fc0 --- /dev/null +++ b/test/test_v0044_openapi_hostlist_req_resp.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_hostlist_req_resp import V0044OpenapiHostlistReqResp + +class TestV0044OpenapiHostlistReqResp(unittest.TestCase): + """V0044OpenapiHostlistReqResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiHostlistReqResp: + """Test V0044OpenapiHostlistReqResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiHostlistReqResp` + """ + model = V0044OpenapiHostlistReqResp() + if include_optional: + return V0044OpenapiHostlistReqResp( + hostlist = '', + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiHostlistReqResp( + hostlist = '', + ) + """ + + def testV0044OpenapiHostlistReqResp(self): + """Test V0044OpenapiHostlistReqResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_hostnames_req_resp.py b/test/test_v0044_openapi_hostnames_req_resp.py new file mode 100644 index 0000000..d8943bd --- /dev/null +++ b/test/test_v0044_openapi_hostnames_req_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_hostnames_req_resp import V0044OpenapiHostnamesReqResp + +class TestV0044OpenapiHostnamesReqResp(unittest.TestCase): + """V0044OpenapiHostnamesReqResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiHostnamesReqResp: + """Test V0044OpenapiHostnamesReqResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiHostnamesReqResp` + """ + model = V0044OpenapiHostnamesReqResp() + if include_optional: + return V0044OpenapiHostnamesReqResp( + hostnames = [ + '' + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiHostnamesReqResp( + hostnames = [ + '' + ], + ) + """ + + def testV0044OpenapiHostnamesReqResp(self): + """Test V0044OpenapiHostnamesReqResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_instances_resp.py b/test/test_v0044_openapi_instances_resp.py new file mode 100644 index 0000000..ba05893 --- /dev/null +++ b/test/test_v0044_openapi_instances_resp.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_instances_resp import V0044OpenapiInstancesResp + +class TestV0044OpenapiInstancesResp(unittest.TestCase): + """V0044OpenapiInstancesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiInstancesResp: + """Test V0044OpenapiInstancesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiInstancesResp` + """ + model = V0044OpenapiInstancesResp() + if include_optional: + return V0044OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0/0/44_instance.v0.0.44_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiInstancesResp( + instances = [ + slurmrest_python.models.v0/0/44_instance.v0.0.44_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ), ) + ], + ) + """ + + def testV0044OpenapiInstancesResp(self): + """Test V0044OpenapiInstancesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_job_alloc_resp.py b/test/test_v0044_openapi_job_alloc_resp.py new file mode 100644 index 0000000..6363e9b --- /dev/null +++ b/test/test_v0044_openapi_job_alloc_resp.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_job_alloc_resp import V0044OpenapiJobAllocResp + +class TestV0044OpenapiJobAllocResp(unittest.TestCase): + """V0044OpenapiJobAllocResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiJobAllocResp: + """Test V0044OpenapiJobAllocResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiJobAllocResp` + """ + model = V0044OpenapiJobAllocResp() + if include_optional: + return V0044OpenapiJobAllocResp( + job_id = 56, + job_submit_user_msg = '', + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiJobAllocResp( + ) + """ + + def testV0044OpenapiJobAllocResp(self): + """Test V0044OpenapiJobAllocResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_job_info_resp.py b/test/test_v0044_openapi_job_info_resp.py new file mode 100644 index 0000000..1520acf --- /dev/null +++ b/test/test_v0044_openapi_job_info_resp.py @@ -0,0 +1,533 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_job_info_resp import V0044OpenapiJobInfoResp + +class TestV0044OpenapiJobInfoResp(unittest.TestCase): + """V0044OpenapiJobInfoResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiJobInfoResp: + """Test V0044OpenapiJobInfoResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiJobInfoResp` + """ + model = V0044OpenapiJobInfoResp() + if include_optional: + return V0044OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0/0/44_job_info.v0.0.44_job_info( + account = '', + accrue_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = , + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = , + cpu_frequency_maximum = , + cpu_frequency_governor = , + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = , + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = , + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = , + name = '', ), ), + eligible_time = , + end_time = , + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = , + het_job_id_set = '', + het_job_offset = , + job_id = 56, + job_resources = slurmrest_python.models.v0/0/44_job_res.v0.0.44_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_44_job_res_nodes.v0_0_44_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/44_job_res_node.v0.0.44_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/44_job_res_socket.v0.0.44_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = , ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = , + licenses = '', + licenses_allocated = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = , + max_nodes = , + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = , + tasks_per_tres = , + tasks_per_node = , + tasks_per_socket = , + tasks_per_board = , + cpus = , + node_count = , + tasks = , + partition = '', + prefer = '', + memory_per_cpu = , + memory_per_node = , + minimum_cpus_per_node = , + minimum_tmp_disk_per_node = , + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = , + preemptable_time = , + pre_sus_time = , + hold = True, + priority = , + priority_by_partition = [ + slurmrest_python.models.v0/0/44_part_prio.v0.0.44_part_prio( + partition = '', ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = , + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + segment_size = 56, + selinux_context = '', + shared = [ + 'none' + ], + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = , + step_het_component = , ), + sockets_per_board = 56, + sockets_per_node = , + start_time = , + state_description = '', + state_reason = '', + standard_input = '', + standard_output = '', + standard_error = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + submit_time = , + submit_line = '', + suspend_time = , + system_comment = '', + time_limit = , + time_minimum = , + threads_per_core = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiJobInfoResp( + jobs = [ + slurmrest_python.models.v0/0/44_job_info.v0.0.44_job_info( + account = '', + accrue_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + admin_comment = '', + allocating_node = '', + array_job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_task_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + array_max_tasks = , + array_task_string = '', + association_id = 56, + batch_features = '', + batch_flag = True, + batch_host = '', + flags = [ + 'KILL_INVALID_DEPENDENCY' + ], + burst_buffer = '', + burst_buffer_state = '', + cluster = '', + cluster_features = '', + command = '', + comment = '', + container = '', + container_id = '', + contiguous = True, + core_spec = 56, + thread_spec = 56, + cores_per_socket = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + billable_tres = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + cpus_per_task = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpu_frequency_minimum = , + cpu_frequency_maximum = , + cpu_frequency_governor = , + cpus_per_tres = '', + cron = '', + deadline = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + delay_boot = , + dependency = '', + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = , + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = , + name = '', ), ), + eligible_time = , + end_time = , + excluded_nodes = '', + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose(), + extra = '', + failed_node = '', + features = '', + federation_origin = '', + federation_siblings_active = '', + federation_siblings_viable = '', + gres_detail = [ + '' + ], + group_id = 56, + group_name = '', + het_job_id = , + het_job_id_set = '', + het_job_offset = , + job_id = 56, + job_resources = slurmrest_python.models.v0/0/44_job_res.v0.0.44_job_res( + select_type = [ + 'CPU' + ], + nodes = slurmrest_python.models.v0_0_44_job_res_nodes.v0_0_44_job_res_nodes( + count = 56, + list = '', + whole = True, + allocation = [ + slurmrest_python.models.v0/0/44_job_res_node.v0.0.44_job_res_node( + index = 56, + name = '', + cpus = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_cpus( + count = 56, + used = 56, ), + memory = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory.v0_0_41_openapi_job_info_resp_jobs_inner_job_resources_nodes_allocation_inner_memory( + used = 56, + allocated = 56, ), + sockets = [ + slurmrest_python.models.v0/0/44_job_res_socket.v0.0.44_job_res_socket( + index = 56, + cores = [ + slurmrest_python.models.v0/0/44_job_res_core.v0.0.44_job_res_core( + index = 56, + status = [ + 'INVALID' + ], ) + ], ) + ], ) + ], ), + cpus = 56, + threads_per_core = , ), + job_size_str = [ + '' + ], + job_state = [ + 'PENDING' + ], + last_sched_evaluation = , + licenses = '', + licenses_allocated = '', + mail_type = [ + 'BEGIN' + ], + mail_user = '', + max_cpus = , + max_nodes = , + mcs_label = '', + memory_per_tres = '', + name = '', + network = '', + nodes = '', + nice = 56, + tasks_per_core = , + tasks_per_tres = , + tasks_per_node = , + tasks_per_socket = , + tasks_per_board = , + cpus = , + node_count = , + tasks = , + partition = '', + prefer = '', + memory_per_cpu = , + memory_per_node = , + minimum_cpus_per_node = , + minimum_tmp_disk_per_node = , + power = slurmrest_python.models.v0_0_41_openapi_job_info_resp_jobs_inner_power.v0_0_41_openapi_job_info_resp_jobs_inner_power(), + preempt_time = , + preemptable_time = , + pre_sus_time = , + hold = True, + priority = , + priority_by_partition = [ + slurmrest_python.models.v0/0/44_part_prio.v0.0.44_part_prio( + partition = '', ) + ], + profile = [ + 'NOT_SET' + ], + qos = '', + reboot = True, + required_nodes = '', + required_switches = 56, + requeue = True, + resize_time = , + restart_cnt = 56, + resv_name = '', + scheduled_nodes = '', + segment_size = 56, + selinux_context = '', + shared = [ + 'none' + ], + step_id = slurmrest_python.models.v0/0/44_slurm_step_id.v0.0.44_slurm_step_id( + sluid = '', + job_id = , + step_het_component = , ), + sockets_per_board = 56, + sockets_per_node = , + start_time = , + state_description = '', + state_reason = '', + standard_input = '', + standard_output = '', + standard_error = '', + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + submit_time = , + submit_line = '', + suspend_time = , + system_comment = '', + time_limit = , + time_minimum = , + threads_per_core = , + tres_bind = '', + tres_freq = '', + tres_per_job = '', + tres_per_node = '', + tres_per_socket = '', + tres_per_task = '', + tres_req_str = '', + tres_alloc_str = '', + user_id = 56, + user_name = '', + maximum_switch_wait_time = 56, + wckey = '', + current_working_directory = '', ) + ], + last_backfill = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044OpenapiJobInfoResp(self): + """Test V0044OpenapiJobInfoResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_job_modify_req.py b/test/test_v0044_openapi_job_modify_req.py new file mode 100644 index 0000000..f17bef7 --- /dev/null +++ b/test/test_v0044_openapi_job_modify_req.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_job_modify_req import V0044OpenapiJobModifyReq + +class TestV0044OpenapiJobModifyReq(unittest.TestCase): + """V0044OpenapiJobModifyReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiJobModifyReq: + """Test V0044OpenapiJobModifyReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiJobModifyReq` + """ + model = V0044OpenapiJobModifyReq() + if include_optional: + return V0044OpenapiJobModifyReq( + job_id_list = [ + '' + ], + job_rec = slurmrest_python.models.v0/0/44_job_modify.v0.0.44_job_modify( + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + extra = '', + tres = slurmrest_python.models.v0_0_44_job_modify_tres.v0_0_44_job_modify_tres( + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + count = 56, ) + ], ), + wckey = '', ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiJobModifyReq( + ) + """ + + def testV0044OpenapiJobModifyReq(self): + """Test V0044OpenapiJobModifyReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_job_modify_resp.py b/test/test_v0044_openapi_job_modify_resp.py new file mode 100644 index 0000000..5703f79 --- /dev/null +++ b/test/test_v0044_openapi_job_modify_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_job_modify_resp import V0044OpenapiJobModifyResp + +class TestV0044OpenapiJobModifyResp(unittest.TestCase): + """V0044OpenapiJobModifyResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiJobModifyResp: + """Test V0044OpenapiJobModifyResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiJobModifyResp` + """ + model = V0044OpenapiJobModifyResp() + if include_optional: + return V0044OpenapiJobModifyResp( + results = [ + '' + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiJobModifyResp( + results = [ + '' + ], + ) + """ + + def testV0044OpenapiJobModifyResp(self): + """Test V0044OpenapiJobModifyResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_job_post_response.py b/test/test_v0044_openapi_job_post_response.py new file mode 100644 index 0000000..90c5b0d --- /dev/null +++ b/test/test_v0044_openapi_job_post_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_job_post_response import V0044OpenapiJobPostResponse + +class TestV0044OpenapiJobPostResponse(unittest.TestCase): + """V0044OpenapiJobPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiJobPostResponse: + """Test V0044OpenapiJobPostResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiJobPostResponse` + """ + model = V0044OpenapiJobPostResponse() + if include_optional: + return V0044OpenapiJobPostResponse( + results = [ + slurmrest_python.models.v0/0/44_job_array_response_msg_entry.v0.0.44_job_array_response_msg_entry( + job_id = 56, + step_id = '', + error = '', + error_code = 56, + why = '', ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiJobPostResponse( + ) + """ + + def testV0044OpenapiJobPostResponse(self): + """Test V0044OpenapiJobPostResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_job_submit_response.py b/test/test_v0044_openapi_job_submit_response.py new file mode 100644 index 0000000..f346a67 --- /dev/null +++ b/test/test_v0044_openapi_job_submit_response.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_job_submit_response import V0044OpenapiJobSubmitResponse + +class TestV0044OpenapiJobSubmitResponse(unittest.TestCase): + """V0044OpenapiJobSubmitResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiJobSubmitResponse: + """Test V0044OpenapiJobSubmitResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiJobSubmitResponse` + """ + model = V0044OpenapiJobSubmitResponse() + if include_optional: + return V0044OpenapiJobSubmitResponse( + job_id = 56, + step_id = '', + job_submit_user_msg = '', + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiJobSubmitResponse( + ) + """ + + def testV0044OpenapiJobSubmitResponse(self): + """Test V0044OpenapiJobSubmitResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_kill_job_resp.py b/test/test_v0044_openapi_kill_job_resp.py new file mode 100644 index 0000000..6d746c8 --- /dev/null +++ b/test/test_v0044_openapi_kill_job_resp.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_kill_job_resp import V0044OpenapiKillJobResp + +class TestV0044OpenapiKillJobResp(unittest.TestCase): + """V0044OpenapiKillJobResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiKillJobResp: + """Test V0044OpenapiKillJobResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiKillJobResp` + """ + model = V0044OpenapiKillJobResp() + if include_optional: + return V0044OpenapiKillJobResp( + status = [ + slurmrest_python.models.v0/0/44_kill_jobs_resp_job.v0.0.44_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiKillJobResp( + status = [ + slurmrest_python.models.v0/0/44_kill_jobs_resp_job.v0.0.44_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + ) + """ + + def testV0044OpenapiKillJobResp(self): + """Test V0044OpenapiKillJobResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_kill_jobs_resp.py b/test/test_v0044_openapi_kill_jobs_resp.py new file mode 100644 index 0000000..dd69deb --- /dev/null +++ b/test/test_v0044_openapi_kill_jobs_resp.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_kill_jobs_resp import V0044OpenapiKillJobsResp + +class TestV0044OpenapiKillJobsResp(unittest.TestCase): + """V0044OpenapiKillJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiKillJobsResp: + """Test V0044OpenapiKillJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiKillJobsResp` + """ + model = V0044OpenapiKillJobsResp() + if include_optional: + return V0044OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0/0/44_kill_jobs_resp_job.v0.0.44_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiKillJobsResp( + status = [ + slurmrest_python.models.v0/0/44_kill_jobs_resp_job.v0.0.44_kill_jobs_resp_job( + error = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_error.v0_0_41_openapi_kill_jobs_resp_status_inner_error( + string = '', + code = 56, + message = '', ), + step_id = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + federation = slurmrest_python.models.v0_0_41_openapi_kill_jobs_resp_status_inner_federation.v0_0_41_openapi_kill_jobs_resp_status_inner_federation( + sibling = '', ), ) + ], + ) + """ + + def testV0044OpenapiKillJobsResp(self): + """Test V0044OpenapiKillJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_licenses_resp.py b/test/test_v0044_openapi_licenses_resp.py new file mode 100644 index 0000000..1f1e0a2 --- /dev/null +++ b/test/test_v0044_openapi_licenses_resp.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_licenses_resp import V0044OpenapiLicensesResp + +class TestV0044OpenapiLicensesResp(unittest.TestCase): + """V0044OpenapiLicensesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiLicensesResp: + """Test V0044OpenapiLicensesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiLicensesResp` + """ + model = V0044OpenapiLicensesResp() + if include_optional: + return V0044OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0/0/44_license.v0.0.44_license( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, + nodes = '', ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiLicensesResp( + licenses = [ + slurmrest_python.models.v0/0/44_license.v0.0.44_license( + license_name = '', + total = 56, + used = 56, + free = 56, + remote = True, + reserved = 56, + last_consumed = 56, + last_deficit = 56, + last_update = 56, + nodes = '', ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044OpenapiLicensesResp(self): + """Test V0044OpenapiLicensesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_meta.py b/test/test_v0044_openapi_meta.py new file mode 100644 index 0000000..1c8d868 --- /dev/null +++ b/test/test_v0044_openapi_meta.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_meta import V0044OpenapiMeta + +class TestV0044OpenapiMeta(unittest.TestCase): + """V0044OpenapiMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiMeta: + """Test V0044OpenapiMeta + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiMeta` + """ + model = V0044OpenapiMeta() + if include_optional: + return V0044OpenapiMeta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ) + ) + else: + return V0044OpenapiMeta( + ) + """ + + def testV0044OpenapiMeta(self): + """Test V0044OpenapiMeta""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_nodes_resp.py b/test/test_v0044_openapi_nodes_resp.py new file mode 100644 index 0000000..ae5822d --- /dev/null +++ b/test/test_v0044_openapi_nodes_resp.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_nodes_resp import V0044OpenapiNodesResp + +class TestV0044OpenapiNodesResp(unittest.TestCase): + """V0044OpenapiNodesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiNodesResp: + """Test V0044OpenapiNodesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiNodesResp` + """ + model = V0044OpenapiNodesResp() + if include_optional: + return V0044OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0/0/44_node.v0.0.44_node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tls_cert_last_renewal = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cert_flags = [ + 'TOKEN_SET' + ], + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = , + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/44_acct_gather_energy.v0.0.44_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = , + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = , + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = , + reason_set_by_user = '', + resume_after = , + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = , + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + topology = '', + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiNodesResp( + nodes = [ + slurmrest_python.models.v0/0/44_node.v0.0.44_node( + architecture = '', + burstbuffer_network_address = '', + boards = 56, + boot_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tls_cert_last_renewal = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cert_flags = [ + 'TOKEN_SET' + ], + cluster_name = '', + cores = 56, + specialized_cores = 56, + cpu_binding = 56, + cpu_load = 56, + free_mem = , + cpus = 56, + effective_cpus = 56, + specialized_cpus = '', + energy = slurmrest_python.models.v0/0/44_acct_gather_energy.v0.0.44_acct_gather_energy( + average_watts = 56, + base_consumed_energy = 56, + consumed_energy = 56, + current_watts = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + previous_consumed_energy = 56, + last_collected = 56, ), + external_sensors = slurmrest_python.models.external_sensors.external_sensors(), + extra = '', + power = slurmrest_python.models.power.power(), + features = [ + '' + ], + active_features = [ + '' + ], + gpu_spec = '', + gres = '', + gres_drained = '', + gres_used = '', + instance_id = '', + instance_type = '', + last_busy = , + mcs_label = '', + specialized_memory = 56, + name = '', + next_state_after_reboot = [ + 'INVALID' + ], + address = '', + hostname = '', + state = [ + 'INVALID' + ], + operating_system = '', + owner = '', + partitions = , + port = 56, + real_memory = 56, + res_cores_per_gpu = 56, + comment = '', + reason = '', + reason_changed_at = , + reason_set_by_user = '', + resume_after = , + reservation = '', + alloc_memory = 56, + alloc_cpus = 56, + alloc_idle_cpus = 56, + tres_used = '', + tres_weighted = 1.337, + slurmd_start_time = , + sockets = 56, + threads = 56, + temporary_disk = 56, + weight = 56, + topology = '', + tres = '', + version = '', ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044OpenapiNodesResp(self): + """Test V0044OpenapiNodesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_partition_resp.py b/test/test_v0044_openapi_partition_resp.py new file mode 100644 index 0000000..cae1f3c --- /dev/null +++ b/test/test_v0044_openapi_partition_resp.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_partition_resp import V0044OpenapiPartitionResp + +class TestV0044OpenapiPartitionResp(unittest.TestCase): + """V0044OpenapiPartitionResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiPartitionResp: + """Test V0044OpenapiPartitionResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiPartitionResp` + """ + model = V0044OpenapiPartitionResp() + if include_optional: + return V0044OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0/0/44_partition_info.v0.0.44_partition_info( + nodes = slurmrest_python.models.v0_0_44_partition_info_nodes.v0_0_44_partition_info_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_44_partition_info_accounts.v0_0_44_partition_info_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_44_partition_info_groups.v0_0_44_partition_info_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_44_partition_info_qos.v0_0_44_partition_info_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_44_partition_info_tres.v0_0_44_partition_info_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_44_partition_info_cpus.v0_0_44_partition_info_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_44_partition_info_defaults.v0_0_44_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_44_partition_info_maximums.v0_0_44_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = , + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_44_partition_info_minimums.v0_0_44_partition_info_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_44_partition_info_priority.v0_0_44_partition_info_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_44_partition_info_timeouts.v0_0_44_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = , ), + topology = '', + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = , ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiPartitionResp( + partitions = [ + slurmrest_python.models.v0/0/44_partition_info.v0.0.44_partition_info( + nodes = slurmrest_python.models.v0_0_44_partition_info_nodes.v0_0_44_partition_info_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_44_partition_info_accounts.v0_0_44_partition_info_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_44_partition_info_groups.v0_0_44_partition_info_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_44_partition_info_qos.v0_0_44_partition_info_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_44_partition_info_tres.v0_0_44_partition_info_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_44_partition_info_cpus.v0_0_44_partition_info_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_44_partition_info_defaults.v0_0_44_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_44_partition_info_maximums.v0_0_44_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = , + memory_per_cpu = 56, + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + over_time_limit = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_44_partition_info_minimums.v0_0_44_partition_info_minimums(), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_44_partition_info_priority.v0_0_44_partition_info_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_44_partition_info_timeouts.v0_0_44_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = , ), + topology = '', + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = , ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044OpenapiPartitionResp(self): + """Test V0044OpenapiPartitionResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_ping_array_resp.py b/test/test_v0044_openapi_ping_array_resp.py new file mode 100644 index 0000000..1a88685 --- /dev/null +++ b/test/test_v0044_openapi_ping_array_resp.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_ping_array_resp import V0044OpenapiPingArrayResp + +class TestV0044OpenapiPingArrayResp(unittest.TestCase): + """V0044OpenapiPingArrayResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiPingArrayResp: + """Test V0044OpenapiPingArrayResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiPingArrayResp` + """ + model = V0044OpenapiPingArrayResp() + if include_optional: + return V0044OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0/0/44_controller_ping.v0.0.44_controller_ping( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True, ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiPingArrayResp( + pings = [ + slurmrest_python.models.v0/0/44_controller_ping.v0.0.44_controller_ping( + hostname = '', + pinged = '', + responding = True, + latency = 56, + mode = '', + primary = True, ) + ], + ) + """ + + def testV0044OpenapiPingArrayResp(self): + """Test V0044OpenapiPingArrayResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_reservation_mod_resp.py b/test/test_v0044_openapi_reservation_mod_resp.py new file mode 100644 index 0000000..ef9f44b --- /dev/null +++ b/test/test_v0044_openapi_reservation_mod_resp.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_reservation_mod_resp import V0044OpenapiReservationModResp + +class TestV0044OpenapiReservationModResp(unittest.TestCase): + """V0044OpenapiReservationModResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiReservationModResp: + """Test V0044OpenapiReservationModResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiReservationModResp` + """ + model = V0044OpenapiReservationModResp() + if include_optional: + return V0044OpenapiReservationModResp( + reservations = [ + slurmrest_python.models.v0/0/44_reservation_desc_msg.v0.0.44_reservation_desc_msg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = , + max_start_delay = , + name = '', + node_count = , + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_44_reservation_info_purge_completed.v0_0_44_reservation_info_purge_completed( + time = , ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = , ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiReservationModResp( + reservations = [ + slurmrest_python.models.v0/0/44_reservation_desc_msg.v0.0.44_reservation_desc_msg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = , + max_start_delay = , + name = '', + node_count = , + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_44_reservation_info_purge_completed.v0_0_44_reservation_info_purge_completed( + time = , ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = , ) + ], + ) + """ + + def testV0044OpenapiReservationModResp(self): + """Test V0044OpenapiReservationModResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_reservation_resp.py b/test/test_v0044_openapi_reservation_resp.py new file mode 100644 index 0000000..d334cbe --- /dev/null +++ b/test/test_v0044_openapi_reservation_resp.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_reservation_resp import V0044OpenapiReservationResp + +class TestV0044OpenapiReservationResp(unittest.TestCase): + """V0044OpenapiReservationResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiReservationResp: + """Test V0044OpenapiReservationResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiReservationResp` + """ + model = V0044OpenapiReservationResp() + if include_optional: + return V0044OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0/0/44_reservation_info.v0.0.44_reservation_info( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/44_reservation_core_spec.v0.0.44_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_44_reservation_info_purge_completed.v0_0_44_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiReservationResp( + reservations = [ + slurmrest_python.models.v0/0/44_reservation_info.v0.0.44_reservation_info( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/44_reservation_core_spec.v0.0.44_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_44_reservation_info_purge_completed.v0_0_44_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '', ) + ], + last_update = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044OpenapiReservationResp(self): + """Test V0044OpenapiReservationResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_resource_layout_resp.py b/test/test_v0044_openapi_resource_layout_resp.py new file mode 100644 index 0000000..0a97054 --- /dev/null +++ b/test/test_v0044_openapi_resource_layout_resp.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_resource_layout_resp import V0044OpenapiResourceLayoutResp + +class TestV0044OpenapiResourceLayoutResp(unittest.TestCase): + """V0044OpenapiResourceLayoutResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiResourceLayoutResp: + """Test V0044OpenapiResourceLayoutResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiResourceLayoutResp` + """ + model = V0044OpenapiResourceLayoutResp() + if include_optional: + return V0044OpenapiResourceLayoutResp( + nodes = [ + slurmrest_python.models.v0/0/44_node_resource_layout.v0.0.44_node_resource_layout( + node = '', + sockets_per_node = 56, + cores_per_socket = 56, + mem_alloc = 56, + core_bitmap = '', + channel = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + gres = [ + slurmrest_python.models.v0/0/44_node_gres_layout.v0.0.44_node_gres_layout( + name = '', + type = '', + count = 56, + index = '', ) + ], ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiResourceLayoutResp( + nodes = [ + slurmrest_python.models.v0/0/44_node_resource_layout.v0.0.44_node_resource_layout( + node = '', + sockets_per_node = 56, + cores_per_socket = 56, + mem_alloc = 56, + core_bitmap = '', + channel = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + gres = [ + slurmrest_python.models.v0/0/44_node_gres_layout.v0.0.44_node_gres_layout( + name = '', + type = '', + count = 56, + index = '', ) + ], ) + ], + ) + """ + + def testV0044OpenapiResourceLayoutResp(self): + """Test V0044OpenapiResourceLayoutResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_resp.py b/test/test_v0044_openapi_resp.py new file mode 100644 index 0000000..701844c --- /dev/null +++ b/test/test_v0044_openapi_resp.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_resp import V0044OpenapiResp + +class TestV0044OpenapiResp(unittest.TestCase): + """V0044OpenapiResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiResp: + """Test V0044OpenapiResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiResp` + """ + model = V0044OpenapiResp() + if include_optional: + return V0044OpenapiResp( + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiResp( + ) + """ + + def testV0044OpenapiResp(self): + """Test V0044OpenapiResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_shares_resp.py b/test/test_v0044_openapi_shares_resp.py new file mode 100644 index 0000000..893297a --- /dev/null +++ b/test/test_v0044_openapi_shares_resp.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_shares_resp import V0044OpenapiSharesResp + +class TestV0044OpenapiSharesResp(unittest.TestCase): + """V0044OpenapiSharesResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiSharesResp: + """Test V0044OpenapiSharesResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiSharesResp` + """ + model = V0044OpenapiSharesResp() + if include_optional: + return V0044OpenapiSharesResp( + shares = slurmrest_python.models.v0/0/44_shares_resp_msg.v0.0.44_shares_resp_msg( + shares = [ + slurmrest_python.models.v0/0/44_assoc_shares_obj_wrap.v0.0.44_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_tres.v0_0_44_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/44_shares_float128_tres.v0.0.44_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_fairshare.v0_0_44_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiSharesResp( + shares = slurmrest_python.models.v0/0/44_shares_resp_msg.v0.0.44_shares_resp_msg( + shares = [ + slurmrest_python.models.v0/0/44_assoc_shares_obj_wrap.v0.0.44_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + tres = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_tres.v0_0_44_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/44_shares_float128_tres.v0.0.44_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_fairshare.v0_0_44_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56, ), + ) + """ + + def testV0044OpenapiSharesResp(self): + """Test V0044OpenapiSharesResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_slurmdbd_config_resp.py b/test/test_v0044_openapi_slurmdbd_config_resp.py new file mode 100644 index 0000000..6ec7500 --- /dev/null +++ b/test/test_v0044_openapi_slurmdbd_config_resp.py @@ -0,0 +1,340 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_slurmdbd_config_resp import V0044OpenapiSlurmdbdConfigResp + +class TestV0044OpenapiSlurmdbdConfigResp(unittest.TestCase): + """V0044OpenapiSlurmdbdConfigResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiSlurmdbdConfigResp: + """Test V0044OpenapiSlurmdbdConfigResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiSlurmdbdConfigResp` + """ + model = V0044OpenapiSlurmdbdConfigResp() + if include_optional: + return V0044OpenapiSlurmdbdConfigResp( + clusters = [ + slurmrest_python.models.v0/0/44_cluster_rec.v0.0.44_cluster_rec( + controller = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller.v0_0_41_openapi_slurmdbd_config_resp_clusters_inner_controller( + host = '', + port = 56, ), + flags = [ + 'DELETED' + ], + name = '', + nodes = '', + select_plugin = '', + associations = slurmrest_python.models.v0_0_44_cluster_rec_associations.v0_0_44_cluster_rec_associations( + root = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), ), + rpc_version = 56, + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ], + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + accounts = [ + slurmrest_python.models.v0/0/44_account.v0.0.44_account( + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + description = '', + name = '', + organization = '', + flags = [ + 'DELETED' + ], ) + ], + users = [ + slurmrest_python.models.v0/0/44_user.v0.0.44_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_44_user_default.v0_0_44_user_default( + qos = 56, + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/44_wckey.v0.0.44_wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + qos = [ + slurmrest_python.models.v0/0/44_qos.v0.0.44_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_44_qos_limits.v0_0_44_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_44_qos_limits_max.v0_0_44_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_active_jobs.v0_0_44_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs.v0_0_44_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_44_qos_limits_max_tres.v0_0_44_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes.v0_0_44_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock.v0_0_44_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_44_qos_limits_min.v0_0_44_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_44_qos_preempt.v0_0_44_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + wckeys = [ + slurmrest_python.models.v0/0/44_wckey.v0.0.44_wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + associations = [ + slurmrest_python.models.v0/0/44_assoc.v0.0.44_assoc( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + account = '', + cluster = '', + comment = '', + default = slurmrest_python.models.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default.v0_0_41_openapi_slurmdbd_config_resp_associations_inner_default( + qos = '', ), + flags = [ + 'DELETED' + ], + max = slurmrest_python.models.v0_0_44_assoc_max.v0_0_44_assoc_max( + jobs = slurmrest_python.models.v0_0_44_assoc_max_jobs.v0_0_44_assoc_max_jobs( + per = slurmrest_python.models.v0_0_44_assoc_max_jobs_per.v0_0_44_assoc_max_jobs_per( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + submitted = , + wall_clock = , ), + active = , + accruing = , + total = , ), + tres = slurmrest_python.models.v0_0_44_assoc_max_tres.v0_0_44_assoc_max_tres( + group = slurmrest_python.models.v0_0_44_assoc_max_tres_group.v0_0_44_assoc_max_tres_group( + minutes = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], ), + minutes = slurmrest_python.models.v0_0_44_assoc_max_tres_minutes.v0_0_44_assoc_max_tres_minutes(), ), + per = slurmrest_python.models.v0_0_44_assoc_max_per.v0_0_44_assoc_max_per( + account = slurmrest_python.models.v0_0_44_assoc_max_per_account.v0_0_44_assoc_max_per_account(), ), ), + id = 56, + is_default = True, + lineage = '', + min = slurmrest_python.models.v0_0_44_assoc_min.v0_0_44_assoc_min( + priority_threshold = , ), + parent_account = '', + partition = '', + priority = , + qos = [ + '' + ], + shares_raw = 56, + user = '', ) + ], + instances = [ + slurmrest_python.models.v0/0/44_instance.v0.0.44_instance( + cluster = '', + extra = '', + instance_id = '', + instance_type = '', + node_name = '', + time = slurmrest_python.models.v0_0_44_instance_time.v0_0_44_instance_time( + time_end = 56, + time_start = 56, ), ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiSlurmdbdConfigResp( + ) + """ + + def testV0044OpenapiSlurmdbdConfigResp(self): + """Test V0044OpenapiSlurmdbdConfigResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_slurmdbd_jobs_resp.py b/test/test_v0044_openapi_slurmdbd_jobs_resp.py new file mode 100644 index 0000000..35e5e66 --- /dev/null +++ b/test/test_v0044_openapi_slurmdbd_jobs_resp.py @@ -0,0 +1,413 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_slurmdbd_jobs_resp import V0044OpenapiSlurmdbdJobsResp + +class TestV0044OpenapiSlurmdbdJobsResp(unittest.TestCase): + """V0044OpenapiSlurmdbdJobsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiSlurmdbdJobsResp: + """Test V0044OpenapiSlurmdbdJobsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiSlurmdbdJobsResp` + """ + model = V0044OpenapiSlurmdbdJobsResp() + if include_optional: + return V0044OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0/0/44_job.v0.0.44_job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_44_job_array.v0_0_44_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_44_job_time.v0_0_44_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = , + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose(), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_44_job_het.v0_0_44_job_het( + job_id = 56, + job_offset = , ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = , + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_44_job_required.v0_0_44_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = , ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_44_job_reservation.v0_0_44_job_reservation( + name = '', + requested = '', ), + script = '', + segment_size = 56, + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_44_job_state.v0_0_44_job_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/44_step.v0.0.44_step( + nodes = slurmrest_python.models.v0_0_44_step_nodes.v0_0_44_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_44_step_cpu.v0_0_44_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_44_step_cpu_requested_frequency.v0_0_44_step_CPU_requested_frequency( + min = , ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_44_step_statistics.v0_0_44_step_statistics( + energy = slurmrest_python.models.v0_0_44_step_statistics_energy.v0_0_44_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_44_step_tres.v0_0_44_step_tres( + requested = slurmrest_python.models.v0_0_44_step_tres_requested.v0_0_44_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_44_job_tres.v0_0_44_job_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/44_wckey_tag_struct.v0.0.44_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiSlurmdbdJobsResp( + jobs = [ + slurmrest_python.models.v0/0/44_job.v0.0.44_job( + account = '', + comment = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_comment( + administrator = '', + job = '', + system = '', ), + allocation_nodes = 56, + array = slurmrest_python.models.v0_0_44_job_array.v0_0_44_job_array( + job_id = 56, + limits = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits( + max = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max( + running = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_array_limits_max_running( + tasks = 56, ), ), ), + task_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + task = '', ), + association = slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ), + block = '', + cluster = '', + constraints = '', + container = '', + derived_exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + time = slurmrest_python.models.v0_0_44_job_time.v0_0_44_job_time( + elapsed = 56, + eligible = 56, + end = 56, + planned = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = 56, + submission = 56, + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = , + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose(), + extra = '', + failed_node = '', + flags = [ + 'NONE' + ], + group = '', + het = slurmrest_python.models.v0_0_44_job_het.v0_0_44_job_het( + job_id = 56, + job_offset = , ), + job_id = 56, + name = '', + licenses = '', + mcs = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_mcs( + label = '', ), + nodes = '', + partition = '', + hold = True, + priority = , + qos = '', + qosreq = '', + required = slurmrest_python.models.v0_0_44_job_required.v0_0_44_job_required( + cpus = 56, + memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_node = , ), + kill_request_user = '', + restart_cnt = 56, + reservation = slurmrest_python.models.v0_0_44_job_reservation.v0_0_44_job_reservation( + name = '', + requested = '', ), + script = '', + segment_size = 56, + stdin_expanded = '', + stdout_expanded = '', + stderr_expanded = '', + stdout = '', + stderr = '', + stdin = '', + state = slurmrest_python.models.v0_0_44_job_state.v0_0_44_job_state( + current = [ + 'PENDING' + ], + reason = '', ), + steps = [ + slurmrest_python.models.v0/0/44_step.v0.0.44_step( + nodes = slurmrest_python.models.v0_0_44_step_nodes.v0_0_44_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_44_step_cpu.v0_0_44_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_44_step_cpu_requested_frequency.v0_0_44_step_CPU_requested_frequency( + min = , ), + governor = '', ), + kill_request_user = '', + statistics = slurmrest_python.models.v0_0_44_step_statistics.v0_0_44_step_statistics( + energy = slurmrest_python.models.v0_0_44_step_statistics_energy.v0_0_44_step_statistics_energy( + consumed = , ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_44_step_tres.v0_0_44_step_tres( + requested = slurmrest_python.models.v0_0_44_step_tres_requested.v0_0_44_step_tres_requested( + average = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + count = 56, ) + ], ), + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + count = 56, ) + ], ), ) + ], + submit_line = '', + tres = slurmrest_python.models.v0_0_44_job_tres.v0_0_44_job_tres(), + used_gres = '', + user = '', + wckey = slurmrest_python.models.v0/0/44_wckey_tag_struct.v0.0.44_wckey_tag_struct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], ), + working_directory = '', ) + ], + ) + """ + + def testV0044OpenapiSlurmdbdJobsResp(self): + """Test V0044OpenapiSlurmdbdJobsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_slurmdbd_ping_resp.py b/test/test_v0044_openapi_slurmdbd_ping_resp.py new file mode 100644 index 0000000..49302b6 --- /dev/null +++ b/test/test_v0044_openapi_slurmdbd_ping_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_slurmdbd_ping_resp import V0044OpenapiSlurmdbdPingResp + +class TestV0044OpenapiSlurmdbdPingResp(unittest.TestCase): + """V0044OpenapiSlurmdbdPingResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiSlurmdbdPingResp: + """Test V0044OpenapiSlurmdbdPingResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiSlurmdbdPingResp` + """ + model = V0044OpenapiSlurmdbdPingResp() + if include_optional: + return V0044OpenapiSlurmdbdPingResp( + pings = [ + slurmrest_python.models.v0/0/44_slurmdbd_ping.v0.0.44_slurmdbd_ping( + hostname = '', + responding = True, + latency = 56, + primary = True, ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiSlurmdbdPingResp( + pings = [ + slurmrest_python.models.v0/0/44_slurmdbd_ping.v0.0.44_slurmdbd_ping( + hostname = '', + responding = True, + latency = 56, + primary = True, ) + ], + ) + """ + + def testV0044OpenapiSlurmdbdPingResp(self): + """Test V0044OpenapiSlurmdbdPingResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_slurmdbd_qos_removed_resp.py b/test/test_v0044_openapi_slurmdbd_qos_removed_resp.py new file mode 100644 index 0000000..ab81b41 --- /dev/null +++ b/test/test_v0044_openapi_slurmdbd_qos_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_removed_resp import V0044OpenapiSlurmdbdQosRemovedResp + +class TestV0044OpenapiSlurmdbdQosRemovedResp(unittest.TestCase): + """V0044OpenapiSlurmdbdQosRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiSlurmdbdQosRemovedResp: + """Test V0044OpenapiSlurmdbdQosRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiSlurmdbdQosRemovedResp` + """ + model = V0044OpenapiSlurmdbdQosRemovedResp() + if include_optional: + return V0044OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiSlurmdbdQosRemovedResp( + removed_qos = [ + '' + ], + ) + """ + + def testV0044OpenapiSlurmdbdQosRemovedResp(self): + """Test V0044OpenapiSlurmdbdQosRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_slurmdbd_qos_resp.py b/test/test_v0044_openapi_slurmdbd_qos_resp.py new file mode 100644 index 0000000..0b135be --- /dev/null +++ b/test/test_v0044_openapi_slurmdbd_qos_resp.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_slurmdbd_qos_resp import V0044OpenapiSlurmdbdQosResp + +class TestV0044OpenapiSlurmdbdQosResp(unittest.TestCase): + """V0044OpenapiSlurmdbdQosResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiSlurmdbdQosResp: + """Test V0044OpenapiSlurmdbdQosResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiSlurmdbdQosResp` + """ + model = V0044OpenapiSlurmdbdQosResp() + if include_optional: + return V0044OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0/0/44_qos.v0.0.44_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_44_qos_limits.v0_0_44_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_44_qos_limits_max.v0_0_44_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_active_jobs.v0_0_44_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs.v0_0_44_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_44_qos_limits_max_tres.v0_0_44_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes.v0_0_44_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock.v0_0_44_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_44_qos_limits_min.v0_0_44_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_44_qos_preempt.v0_0_44_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiSlurmdbdQosResp( + qos = [ + slurmrest_python.models.v0/0/44_qos.v0.0.44_qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_44_qos_limits.v0_0_44_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_44_qos_limits_max.v0_0_44_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_active_jobs.v0_0_44_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs.v0_0_44_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_44_qos_limits_max_tres.v0_0_44_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes.v0_0_44_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock.v0_0_44_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_44_qos_limits_min.v0_0_44_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_44_qos_preempt.v0_0_44_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = , ), + priority = , + usage_factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = , ) + ], + ) + """ + + def testV0044OpenapiSlurmdbdQosResp(self): + """Test V0044OpenapiSlurmdbdQosResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_slurmdbd_stats_resp.py b/test/test_v0044_openapi_slurmdbd_stats_resp.py new file mode 100644 index 0000000..e87e85c --- /dev/null +++ b/test/test_v0044_openapi_slurmdbd_stats_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_slurmdbd_stats_resp import V0044OpenapiSlurmdbdStatsResp + +class TestV0044OpenapiSlurmdbdStatsResp(unittest.TestCase): + """V0044OpenapiSlurmdbdStatsResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiSlurmdbdStatsResp: + """Test V0044OpenapiSlurmdbdStatsResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiSlurmdbdStatsResp` + """ + model = V0044OpenapiSlurmdbdStatsResp() + if include_optional: + return V0044OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0/0/44_stats_rec.v0.0.44_stats_rec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/44_rollup_stats.v0.0.44_rollup_stats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/44_stats_rpc.v0.0.44_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/44_stats_user.v0.0.44_stats_user( + user = '', + count = 56, ) + ], ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiSlurmdbdStatsResp( + statistics = slurmrest_python.models.v0/0/44_stats_rec.v0.0.44_stats_rec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/44_rollup_stats.v0.0.44_rollup_stats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/44_stats_rpc.v0.0.44_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/44_stats_user.v0.0.44_stats_user( + user = '', + count = 56, ) + ], ), + ) + """ + + def testV0044OpenapiSlurmdbdStatsResp(self): + """Test V0044OpenapiSlurmdbdStatsResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_tres_resp.py b/test/test_v0044_openapi_tres_resp.py new file mode 100644 index 0000000..6414ad0 --- /dev/null +++ b/test/test_v0044_openapi_tres_resp.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_tres_resp import V0044OpenapiTresResp + +class TestV0044OpenapiTresResp(unittest.TestCase): + """V0044OpenapiTresResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiTresResp: + """Test V0044OpenapiTresResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiTresResp` + """ + model = V0044OpenapiTresResp() + if include_optional: + return V0044OpenapiTresResp( + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiTresResp( + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + ) + """ + + def testV0044OpenapiTresResp(self): + """Test V0044OpenapiTresResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_users_add_cond_resp.py b/test/test_v0044_openapi_users_add_cond_resp.py new file mode 100644 index 0000000..90ab29c --- /dev/null +++ b/test/test_v0044_openapi_users_add_cond_resp.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_users_add_cond_resp import V0044OpenapiUsersAddCondResp + +class TestV0044OpenapiUsersAddCondResp(unittest.TestCase): + """V0044OpenapiUsersAddCondResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiUsersAddCondResp: + """Test V0044OpenapiUsersAddCondResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiUsersAddCondResp` + """ + model = V0044OpenapiUsersAddCondResp() + if include_optional: + return V0044OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0/0/44_users_add_cond.v0.0.44_users_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/44_assoc_rec_set.v0.0.44_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = , + users = , + wckeys = , ), + user = slurmrest_python.models.v0/0/44_user_short.v0.0.44_user_short( + adminlevel = [ + 'Not Set' + ], + defaultqos = 56, + defaultaccount = '', + defaultwckey = '', ), + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiUsersAddCondResp( + association_condition = slurmrest_python.models.v0/0/44_users_add_cond.v0.0.44_users_add_cond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/44_assoc_rec_set.v0.0.44_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = , + users = , + wckeys = , ), + user = slurmrest_python.models.v0/0/44_user_short.v0.0.44_user_short( + adminlevel = [ + 'Not Set' + ], + defaultqos = 56, + defaultaccount = '', + defaultwckey = '', ), + ) + """ + + def testV0044OpenapiUsersAddCondResp(self): + """Test V0044OpenapiUsersAddCondResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_users_add_cond_resp_str.py b/test/test_v0044_openapi_users_add_cond_resp_str.py new file mode 100644 index 0000000..6df3adb --- /dev/null +++ b/test/test_v0044_openapi_users_add_cond_resp_str.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_users_add_cond_resp_str import V0044OpenapiUsersAddCondRespStr + +class TestV0044OpenapiUsersAddCondRespStr(unittest.TestCase): + """V0044OpenapiUsersAddCondRespStr unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiUsersAddCondRespStr: + """Test V0044OpenapiUsersAddCondRespStr + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiUsersAddCondRespStr` + """ + model = V0044OpenapiUsersAddCondRespStr() + if include_optional: + return V0044OpenapiUsersAddCondRespStr( + added_users = '', + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiUsersAddCondRespStr( + added_users = '', + ) + """ + + def testV0044OpenapiUsersAddCondRespStr(self): + """Test V0044OpenapiUsersAddCondRespStr""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_users_resp.py b/test/test_v0044_openapi_users_resp.py new file mode 100644 index 0000000..2d02742 --- /dev/null +++ b/test/test_v0044_openapi_users_resp.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_users_resp import V0044OpenapiUsersResp + +class TestV0044OpenapiUsersResp(unittest.TestCase): + """V0044OpenapiUsersResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiUsersResp: + """Test V0044OpenapiUsersResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiUsersResp` + """ + model = V0044OpenapiUsersResp() + if include_optional: + return V0044OpenapiUsersResp( + users = [ + slurmrest_python.models.v0/0/44_user.v0.0.44_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_44_user_default.v0_0_44_user_default( + qos = 56, + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/44_wckey.v0.0.44_wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiUsersResp( + users = [ + slurmrest_python.models.v0/0/44_user.v0.0.44_user( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_44_user_default.v0_0_44_user_default( + qos = 56, + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/44_wckey.v0.0.44_wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', ) + ], ) + ], + ) + """ + + def testV0044OpenapiUsersResp(self): + """Test V0044OpenapiUsersResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_warning.py b/test/test_v0044_openapi_warning.py new file mode 100644 index 0000000..d916e89 --- /dev/null +++ b/test/test_v0044_openapi_warning.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_warning import V0044OpenapiWarning + +class TestV0044OpenapiWarning(unittest.TestCase): + """V0044OpenapiWarning unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiWarning: + """Test V0044OpenapiWarning + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiWarning` + """ + model = V0044OpenapiWarning() + if include_optional: + return V0044OpenapiWarning( + description = '', + source = '' + ) + else: + return V0044OpenapiWarning( + ) + """ + + def testV0044OpenapiWarning(self): + """Test V0044OpenapiWarning""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_wckey_removed_resp.py b/test/test_v0044_openapi_wckey_removed_resp.py new file mode 100644 index 0000000..0b0fe1c --- /dev/null +++ b/test/test_v0044_openapi_wckey_removed_resp.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_wckey_removed_resp import V0044OpenapiWckeyRemovedResp + +class TestV0044OpenapiWckeyRemovedResp(unittest.TestCase): + """V0044OpenapiWckeyRemovedResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiWckeyRemovedResp: + """Test V0044OpenapiWckeyRemovedResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiWckeyRemovedResp` + """ + model = V0044OpenapiWckeyRemovedResp() + if include_optional: + return V0044OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiWckeyRemovedResp( + deleted_wckeys = [ + '' + ], + ) + """ + + def testV0044OpenapiWckeyRemovedResp(self): + """Test V0044OpenapiWckeyRemovedResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_openapi_wckey_resp.py b/test/test_v0044_openapi_wckey_resp.py new file mode 100644 index 0000000..dd2c9f5 --- /dev/null +++ b/test/test_v0044_openapi_wckey_resp.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_openapi_wckey_resp import V0044OpenapiWckeyResp + +class TestV0044OpenapiWckeyResp(unittest.TestCase): + """V0044OpenapiWckeyResp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044OpenapiWckeyResp: + """Test V0044OpenapiWckeyResp + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044OpenapiWckeyResp` + """ + model = V0044OpenapiWckeyResp() + if include_optional: + return V0044OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0/0/44_wckey.v0.0.44_wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + meta = slurmrest_python.models.v0/0/44_openapi_meta.v0.0.44_openapi_meta( + plugin = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_plugin.v0_0_41_openapi_shares_resp_meta_plugin( + type = '', + name = '', + data_parser = '', + accounting_storage = '', ), + client = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_client.v0_0_41_openapi_shares_resp_meta_client( + source = '', + user = '', + group = '', ), + command = [ + '' + ], + slurm = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm.v0_0_41_openapi_shares_resp_meta_slurm( + version = slurmrest_python.models.v0_0_41_openapi_shares_resp_meta_slurm_version.v0_0_41_openapi_shares_resp_meta_slurm_version( + major = '', + micro = '', + minor = '', ), + release = '', + cluster = '', ), ), + errors = [ + slurmrest_python.models.v0/0/44_openapi_error.v0.0.44_openapi_error( + description = '', + error_number = 56, + error = '', + source = '', ) + ], + warnings = [ + slurmrest_python.models.v0/0/44_openapi_warning.v0.0.44_openapi_warning( + description = '', + source = '', ) + ] + ) + else: + return V0044OpenapiWckeyResp( + wckeys = [ + slurmrest_python.models.v0/0/44_wckey.v0.0.44_wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ], + ) + """ + + def testV0044OpenapiWckeyResp(self): + """Test V0044OpenapiWckeyResp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_part_prio.py b/test/test_v0044_part_prio.py new file mode 100644 index 0000000..06376ee --- /dev/null +++ b/test/test_v0044_part_prio.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_part_prio import V0044PartPrio + +class TestV0044PartPrio(unittest.TestCase): + """V0044PartPrio unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartPrio: + """Test V0044PartPrio + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartPrio` + """ + model = V0044PartPrio() + if include_optional: + return V0044PartPrio( + partition = '', + priority = 56 + ) + else: + return V0044PartPrio( + ) + """ + + def testV0044PartPrio(self): + """Test V0044PartPrio""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info.py b/test/test_v0044_partition_info.py new file mode 100644 index 0000000..5df9839 --- /dev/null +++ b/test/test_v0044_partition_info.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info import V0044PartitionInfo + +class TestV0044PartitionInfo(unittest.TestCase): + """V0044PartitionInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfo: + """Test V0044PartitionInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfo` + """ + model = V0044PartitionInfo() + if include_optional: + return V0044PartitionInfo( + nodes = slurmrest_python.models.v0_0_44_partition_info_nodes.v0_0_44_partition_info_nodes( + allowed_allocation = '', + configured = '', + total = 56, ), + accounts = slurmrest_python.models.v0_0_44_partition_info_accounts.v0_0_44_partition_info_accounts( + allowed = '', + deny = '', ), + groups = slurmrest_python.models.v0_0_44_partition_info_groups.v0_0_44_partition_info_groups( + allowed = '', ), + qos = slurmrest_python.models.v0_0_44_partition_info_qos.v0_0_44_partition_info_qos( + allowed = '', + deny = '', + assigned = '', ), + alternate = '', + tres = slurmrest_python.models.v0_0_44_partition_info_tres.v0_0_44_partition_info_tres( + billing_weights = '', + configured = '', ), + cluster = '', + select_type = [ + 'CPU' + ], + cpus = slurmrest_python.models.v0_0_44_partition_info_cpus.v0_0_44_partition_info_cpus( + task_binding = 56, + total = 56, ), + defaults = slurmrest_python.models.v0_0_44_partition_info_defaults.v0_0_44_partition_info_defaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '', ), + grace_time = 56, + maximums = slurmrest_python.models.v0_0_44_partition_info_maximums.v0_0_44_partition_info_maximums( + cpus_per_node = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nodes = , + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = , + over_time_limit = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + minimums = slurmrest_python.models.v0_0_44_partition_info_minimums.v0_0_44_partition_info_minimums( + nodes = 56, ), + name = '', + node_sets = '', + priority = slurmrest_python.models.v0_0_44_partition_info_priority.v0_0_44_partition_info_priority( + job_factor = 56, + tier = 56, ), + timeouts = slurmrest_python.models.v0_0_44_partition_info_timeouts.v0_0_44_partition_info_timeouts( + resume = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + topology = '', + partition = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_partition.v0_0_41_openapi_partition_resp_partitions_inner_partition( + state = [ + 'INACTIVE' + ], ), + suspend_time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044PartitionInfo( + ) + """ + + def testV0044PartitionInfo(self): + """Test V0044PartitionInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_accounts.py b/test/test_v0044_partition_info_accounts.py new file mode 100644 index 0000000..9a617ce --- /dev/null +++ b/test/test_v0044_partition_info_accounts.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_accounts import V0044PartitionInfoAccounts + +class TestV0044PartitionInfoAccounts(unittest.TestCase): + """V0044PartitionInfoAccounts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoAccounts: + """Test V0044PartitionInfoAccounts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoAccounts` + """ + model = V0044PartitionInfoAccounts() + if include_optional: + return V0044PartitionInfoAccounts( + allowed = '', + deny = '' + ) + else: + return V0044PartitionInfoAccounts( + ) + """ + + def testV0044PartitionInfoAccounts(self): + """Test V0044PartitionInfoAccounts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_cpus.py b/test/test_v0044_partition_info_cpus.py new file mode 100644 index 0000000..f3c8914 --- /dev/null +++ b/test/test_v0044_partition_info_cpus.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_cpus import V0044PartitionInfoCpus + +class TestV0044PartitionInfoCpus(unittest.TestCase): + """V0044PartitionInfoCpus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoCpus: + """Test V0044PartitionInfoCpus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoCpus` + """ + model = V0044PartitionInfoCpus() + if include_optional: + return V0044PartitionInfoCpus( + task_binding = 56, + total = 56 + ) + else: + return V0044PartitionInfoCpus( + ) + """ + + def testV0044PartitionInfoCpus(self): + """Test V0044PartitionInfoCpus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_defaults.py b/test/test_v0044_partition_info_defaults.py new file mode 100644 index 0000000..314d8a3 --- /dev/null +++ b/test/test_v0044_partition_info_defaults.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_defaults import V0044PartitionInfoDefaults + +class TestV0044PartitionInfoDefaults(unittest.TestCase): + """V0044PartitionInfoDefaults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoDefaults: + """Test V0044PartitionInfoDefaults + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoDefaults` + """ + model = V0044PartitionInfoDefaults() + if include_optional: + return V0044PartitionInfoDefaults( + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = '' + ) + else: + return V0044PartitionInfoDefaults( + ) + """ + + def testV0044PartitionInfoDefaults(self): + """Test V0044PartitionInfoDefaults""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_groups.py b/test/test_v0044_partition_info_groups.py new file mode 100644 index 0000000..b2a502a --- /dev/null +++ b/test/test_v0044_partition_info_groups.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_groups import V0044PartitionInfoGroups + +class TestV0044PartitionInfoGroups(unittest.TestCase): + """V0044PartitionInfoGroups unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoGroups: + """Test V0044PartitionInfoGroups + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoGroups` + """ + model = V0044PartitionInfoGroups() + if include_optional: + return V0044PartitionInfoGroups( + allowed = '' + ) + else: + return V0044PartitionInfoGroups( + ) + """ + + def testV0044PartitionInfoGroups(self): + """Test V0044PartitionInfoGroups""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_maximums.py b/test/test_v0044_partition_info_maximums.py new file mode 100644 index 0000000..40d53c3 --- /dev/null +++ b/test/test_v0044_partition_info_maximums.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_maximums import V0044PartitionInfoMaximums + +class TestV0044PartitionInfoMaximums(unittest.TestCase): + """V0044PartitionInfoMaximums unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoMaximums: + """Test V0044PartitionInfoMaximums + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoMaximums` + """ + model = V0044PartitionInfoMaximums() + if include_optional: + return V0044PartitionInfoMaximums( + cpus_per_node = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + cpus_per_socket = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + memory_per_cpu = 56, + partition_memory_per_cpu = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + partition_memory_per_node = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + nodes = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + shares = 56, + oversubscribe = slurmrest_python.models.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe.v0_0_41_openapi_partition_resp_partitions_inner_maximums_oversubscribe( + jobs = 56, + flags = [ + 'force' + ], ), + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + over_time_limit = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044PartitionInfoMaximums( + ) + """ + + def testV0044PartitionInfoMaximums(self): + """Test V0044PartitionInfoMaximums""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_minimums.py b/test/test_v0044_partition_info_minimums.py new file mode 100644 index 0000000..e354a26 --- /dev/null +++ b/test/test_v0044_partition_info_minimums.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_minimums import V0044PartitionInfoMinimums + +class TestV0044PartitionInfoMinimums(unittest.TestCase): + """V0044PartitionInfoMinimums unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoMinimums: + """Test V0044PartitionInfoMinimums + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoMinimums` + """ + model = V0044PartitionInfoMinimums() + if include_optional: + return V0044PartitionInfoMinimums( + nodes = 56 + ) + else: + return V0044PartitionInfoMinimums( + ) + """ + + def testV0044PartitionInfoMinimums(self): + """Test V0044PartitionInfoMinimums""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_nodes.py b/test/test_v0044_partition_info_nodes.py new file mode 100644 index 0000000..a3a8f07 --- /dev/null +++ b/test/test_v0044_partition_info_nodes.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_nodes import V0044PartitionInfoNodes + +class TestV0044PartitionInfoNodes(unittest.TestCase): + """V0044PartitionInfoNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoNodes: + """Test V0044PartitionInfoNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoNodes` + """ + model = V0044PartitionInfoNodes() + if include_optional: + return V0044PartitionInfoNodes( + allowed_allocation = '', + configured = '', + total = 56 + ) + else: + return V0044PartitionInfoNodes( + ) + """ + + def testV0044PartitionInfoNodes(self): + """Test V0044PartitionInfoNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_priority.py b/test/test_v0044_partition_info_priority.py new file mode 100644 index 0000000..c87ee9e --- /dev/null +++ b/test/test_v0044_partition_info_priority.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_priority import V0044PartitionInfoPriority + +class TestV0044PartitionInfoPriority(unittest.TestCase): + """V0044PartitionInfoPriority unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoPriority: + """Test V0044PartitionInfoPriority + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoPriority` + """ + model = V0044PartitionInfoPriority() + if include_optional: + return V0044PartitionInfoPriority( + job_factor = 56, + tier = 56 + ) + else: + return V0044PartitionInfoPriority( + ) + """ + + def testV0044PartitionInfoPriority(self): + """Test V0044PartitionInfoPriority""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_qos.py b/test/test_v0044_partition_info_qos.py new file mode 100644 index 0000000..4c701dd --- /dev/null +++ b/test/test_v0044_partition_info_qos.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_qos import V0044PartitionInfoQos + +class TestV0044PartitionInfoQos(unittest.TestCase): + """V0044PartitionInfoQos unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoQos: + """Test V0044PartitionInfoQos + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoQos` + """ + model = V0044PartitionInfoQos() + if include_optional: + return V0044PartitionInfoQos( + allowed = '', + deny = '', + assigned = '' + ) + else: + return V0044PartitionInfoQos( + ) + """ + + def testV0044PartitionInfoQos(self): + """Test V0044PartitionInfoQos""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_timeouts.py b/test/test_v0044_partition_info_timeouts.py new file mode 100644 index 0000000..82e9fe1 --- /dev/null +++ b/test/test_v0044_partition_info_timeouts.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_timeouts import V0044PartitionInfoTimeouts + +class TestV0044PartitionInfoTimeouts(unittest.TestCase): + """V0044PartitionInfoTimeouts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoTimeouts: + """Test V0044PartitionInfoTimeouts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoTimeouts` + """ + model = V0044PartitionInfoTimeouts() + if include_optional: + return V0044PartitionInfoTimeouts( + resume = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspend = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044PartitionInfoTimeouts( + ) + """ + + def testV0044PartitionInfoTimeouts(self): + """Test V0044PartitionInfoTimeouts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_partition_info_tres.py b/test/test_v0044_partition_info_tres.py new file mode 100644 index 0000000..a644b35 --- /dev/null +++ b/test/test_v0044_partition_info_tres.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_partition_info_tres import V0044PartitionInfoTres + +class TestV0044PartitionInfoTres(unittest.TestCase): + """V0044PartitionInfoTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044PartitionInfoTres: + """Test V0044PartitionInfoTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044PartitionInfoTres` + """ + model = V0044PartitionInfoTres() + if include_optional: + return V0044PartitionInfoTres( + billing_weights = '', + configured = '' + ) + else: + return V0044PartitionInfoTres( + ) + """ + + def testV0044PartitionInfoTres(self): + """Test V0044PartitionInfoTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_process_exit_code_verbose.py b/test/test_v0044_process_exit_code_verbose.py new file mode 100644 index 0000000..dc3c55a --- /dev/null +++ b/test/test_v0044_process_exit_code_verbose.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_process_exit_code_verbose import V0044ProcessExitCodeVerbose + +class TestV0044ProcessExitCodeVerbose(unittest.TestCase): + """V0044ProcessExitCodeVerbose unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ProcessExitCodeVerbose: + """Test V0044ProcessExitCodeVerbose + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ProcessExitCodeVerbose` + """ + model = V0044ProcessExitCodeVerbose() + if include_optional: + return V0044ProcessExitCodeVerbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ) + ) + else: + return V0044ProcessExitCodeVerbose( + ) + """ + + def testV0044ProcessExitCodeVerbose(self): + """Test V0044ProcessExitCodeVerbose""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_process_exit_code_verbose_signal.py b/test/test_v0044_process_exit_code_verbose_signal.py new file mode 100644 index 0000000..8e672c8 --- /dev/null +++ b/test/test_v0044_process_exit_code_verbose_signal.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_process_exit_code_verbose_signal import V0044ProcessExitCodeVerboseSignal + +class TestV0044ProcessExitCodeVerboseSignal(unittest.TestCase): + """V0044ProcessExitCodeVerboseSignal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ProcessExitCodeVerboseSignal: + """Test V0044ProcessExitCodeVerboseSignal + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ProcessExitCodeVerboseSignal` + """ + model = V0044ProcessExitCodeVerboseSignal() + if include_optional: + return V0044ProcessExitCodeVerboseSignal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '' + ) + else: + return V0044ProcessExitCodeVerboseSignal( + ) + """ + + def testV0044ProcessExitCodeVerboseSignal(self): + """Test V0044ProcessExitCodeVerboseSignal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos.py b/test/test_v0044_qos.py new file mode 100644 index 0000000..4ab0341 --- /dev/null +++ b/test/test_v0044_qos.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos import V0044Qos + +class TestV0044Qos(unittest.TestCase): + """V0044Qos unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Qos: + """Test V0044Qos + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Qos` + """ + model = V0044Qos() + if include_optional: + return V0044Qos( + description = '', + flags = [ + 'NOT_SET' + ], + id = 56, + limits = slurmrest_python.models.v0_0_44_qos_limits.v0_0_44_qos_limits( + grace_time = 56, + max = slurmrest_python.models.v0_0_44_qos_limits_max.v0_0_44_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_active_jobs.v0_0_44_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs.v0_0_44_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_44_qos_limits_max_tres.v0_0_44_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes.v0_0_44_qos_limits_max_tres_minutes(), ), + wall_clock = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock.v0_0_44_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_44_qos_limits_min.v0_0_44_qos_limits_min( + priority_threshold = , ), ), + name = '', + preempt = slurmrest_python.models.v0_0_44_qos_preempt.v0_0_44_qos_preempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + priority = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + usage_factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_threshold = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ) + ) + else: + return V0044Qos( + ) + """ + + def testV0044Qos(self): + """Test V0044Qos""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits.py b/test/test_v0044_qos_limits.py new file mode 100644 index 0000000..18f7ee4 --- /dev/null +++ b/test/test_v0044_qos_limits.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits import V0044QosLimits + +class TestV0044QosLimits(unittest.TestCase): + """V0044QosLimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimits: + """Test V0044QosLimits + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimits` + """ + model = V0044QosLimits() + if include_optional: + return V0044QosLimits( + grace_time = 56, + max = slurmrest_python.models.v0_0_44_qos_limits_max.v0_0_44_qos_limits_max( + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_active_jobs.v0_0_44_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs.v0_0_44_qos_limits_max_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = , + user = , ), ), + tres = slurmrest_python.models.v0_0_44_qos_limits_max_tres.v0_0_44_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], + minutes = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes.v0_0_44_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, ) + ], ), ), + wall_clock = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock.v0_0_44_qos_limits_max_wall_clock(), + accruing = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs(), ), + factor = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + min = slurmrest_python.models.v0_0_44_qos_limits_min.v0_0_44_qos_limits_min( + priority_threshold = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_44_qos_limits_min_tres.v0_0_44_qos_limits_min_tres( + per = slurmrest_python.models.v0_0_44_qos_limits_min_tres_per.v0_0_44_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ), ) + ) + else: + return V0044QosLimits( + ) + """ + + def testV0044QosLimits(self): + """Test V0044QosLimits""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max.py b/test/test_v0044_qos_limits_max.py new file mode 100644 index 0000000..cf3c3ae --- /dev/null +++ b/test/test_v0044_qos_limits_max.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max import V0044QosLimitsMax + +class TestV0044QosLimitsMax(unittest.TestCase): + """V0044QosLimitsMax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMax: + """Test V0044QosLimitsMax + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMax` + """ + model = V0044QosLimitsMax() + if include_optional: + return V0044QosLimitsMax( + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_active_jobs.v0_0_44_qos_limits_max_active_jobs( + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs.v0_0_44_qos_limits_max_jobs( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = , ), ), + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per(), ), + tres = slurmrest_python.models.v0_0_44_qos_limits_max_tres.v0_0_44_qos_limits_max_tres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes.v0_0_44_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes_per.v0_0_44_qos_limits_max_tres_minutes_per( + qos = , + job = , + account = , + user = , ), ), + per = slurmrest_python.models.v0_0_44_qos_limits_max_tres_per.v0_0_44_qos_limits_max_tres_per( + account = , + job = , + node = , + user = , ), ), + wall_clock = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock.v0_0_44_qos_limits_max_wall_clock( + per = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock_per.v0_0_44_qos_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + accruing = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ) + ) + else: + return V0044QosLimitsMax( + ) + """ + + def testV0044QosLimitsMax(self): + """Test V0044QosLimitsMax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_active_jobs.py b/test/test_v0044_qos_limits_max_active_jobs.py new file mode 100644 index 0000000..4c0391d --- /dev/null +++ b/test/test_v0044_qos_limits_max_active_jobs.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_active_jobs import V0044QosLimitsMaxActiveJobs + +class TestV0044QosLimitsMaxActiveJobs(unittest.TestCase): + """V0044QosLimitsMaxActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxActiveJobs: + """Test V0044QosLimitsMaxActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxActiveJobs` + """ + model = V0044QosLimitsMaxActiveJobs() + if include_optional: + return V0044QosLimitsMaxActiveJobs( + accruing = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044QosLimitsMaxActiveJobs( + ) + """ + + def testV0044QosLimitsMaxActiveJobs(self): + """Test V0044QosLimitsMaxActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_jobs.py b/test/test_v0044_qos_limits_max_jobs.py new file mode 100644 index 0000000..05b7550 --- /dev/null +++ b/test/test_v0044_qos_limits_max_jobs.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_jobs import V0044QosLimitsMaxJobs + +class TestV0044QosLimitsMaxJobs(unittest.TestCase): + """V0044QosLimitsMaxJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxJobs: + """Test V0044QosLimitsMaxJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxJobs` + """ + model = V0044QosLimitsMaxJobs() + if include_optional: + return V0044QosLimitsMaxJobs( + count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + active_jobs = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs.v0_0_44_qos_limits_max_jobs_active_jobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0044QosLimitsMaxJobs( + ) + """ + + def testV0044QosLimitsMaxJobs(self): + """Test V0044QosLimitsMaxJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_jobs_active_jobs.py b/test/test_v0044_qos_limits_max_jobs_active_jobs.py new file mode 100644 index 0000000..92ccbcb --- /dev/null +++ b/test/test_v0044_qos_limits_max_jobs_active_jobs.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs import V0044QosLimitsMaxJobsActiveJobs + +class TestV0044QosLimitsMaxJobsActiveJobs(unittest.TestCase): + """V0044QosLimitsMaxJobsActiveJobs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxJobsActiveJobs: + """Test V0044QosLimitsMaxJobsActiveJobs + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxJobsActiveJobs` + """ + model = V0044QosLimitsMaxJobsActiveJobs() + if include_optional: + return V0044QosLimitsMaxJobsActiveJobs( + per = slurmrest_python.models.v0_0_44_qos_limits_max_jobs_active_jobs_per.v0_0_44_qos_limits_max_jobs_active_jobs_per( + account = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0044QosLimitsMaxJobsActiveJobs( + ) + """ + + def testV0044QosLimitsMaxJobsActiveJobs(self): + """Test V0044QosLimitsMaxJobsActiveJobs""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_jobs_active_jobs_per.py b/test/test_v0044_qos_limits_max_jobs_active_jobs_per.py new file mode 100644 index 0000000..6970dbd --- /dev/null +++ b/test/test_v0044_qos_limits_max_jobs_active_jobs_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_jobs_active_jobs_per import V0044QosLimitsMaxJobsActiveJobsPer + +class TestV0044QosLimitsMaxJobsActiveJobsPer(unittest.TestCase): + """V0044QosLimitsMaxJobsActiveJobsPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxJobsActiveJobsPer: + """Test V0044QosLimitsMaxJobsActiveJobsPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxJobsActiveJobsPer` + """ + model = V0044QosLimitsMaxJobsActiveJobsPer() + if include_optional: + return V0044QosLimitsMaxJobsActiveJobsPer( + account = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + user = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044QosLimitsMaxJobsActiveJobsPer( + ) + """ + + def testV0044QosLimitsMaxJobsActiveJobsPer(self): + """Test V0044QosLimitsMaxJobsActiveJobsPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_tres.py b/test/test_v0044_qos_limits_max_tres.py new file mode 100644 index 0000000..b87da70 --- /dev/null +++ b/test/test_v0044_qos_limits_max_tres.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_tres import V0044QosLimitsMaxTres + +class TestV0044QosLimitsMaxTres(unittest.TestCase): + """V0044QosLimitsMaxTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxTres: + """Test V0044QosLimitsMaxTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxTres` + """ + model = V0044QosLimitsMaxTres() + if include_optional: + return V0044QosLimitsMaxTres( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + minutes = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes.v0_0_44_qos_limits_max_tres_minutes( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes_per.v0_0_44_qos_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = , + account = , + user = , ), ), + per = slurmrest_python.models.v0_0_44_qos_limits_max_tres_per.v0_0_44_qos_limits_max_tres_per( + account = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = , + user = , ) + ) + else: + return V0044QosLimitsMaxTres( + ) + """ + + def testV0044QosLimitsMaxTres(self): + """Test V0044QosLimitsMaxTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_tres_minutes.py b/test/test_v0044_qos_limits_max_tres_minutes.py new file mode 100644 index 0000000..5823257 --- /dev/null +++ b/test/test_v0044_qos_limits_max_tres_minutes.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes import V0044QosLimitsMaxTresMinutes + +class TestV0044QosLimitsMaxTresMinutes(unittest.TestCase): + """V0044QosLimitsMaxTresMinutes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxTresMinutes: + """Test V0044QosLimitsMaxTresMinutes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxTresMinutes` + """ + model = V0044QosLimitsMaxTresMinutes() + if include_optional: + return V0044QosLimitsMaxTresMinutes( + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + per = slurmrest_python.models.v0_0_44_qos_limits_max_tres_minutes_per.v0_0_44_qos_limits_max_tres_minutes_per( + qos = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = , + user = , ) + ) + else: + return V0044QosLimitsMaxTresMinutes( + ) + """ + + def testV0044QosLimitsMaxTresMinutes(self): + """Test V0044QosLimitsMaxTresMinutes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_tres_minutes_per.py b/test/test_v0044_qos_limits_max_tres_minutes_per.py new file mode 100644 index 0000000..0f02488 --- /dev/null +++ b/test/test_v0044_qos_limits_max_tres_minutes_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_tres_minutes_per import V0044QosLimitsMaxTresMinutesPer + +class TestV0044QosLimitsMaxTresMinutesPer(unittest.TestCase): + """V0044QosLimitsMaxTresMinutesPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxTresMinutesPer: + """Test V0044QosLimitsMaxTresMinutesPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxTresMinutesPer` + """ + model = V0044QosLimitsMaxTresMinutesPer() + if include_optional: + return V0044QosLimitsMaxTresMinutesPer( + qos = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + account = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044QosLimitsMaxTresMinutesPer( + ) + """ + + def testV0044QosLimitsMaxTresMinutesPer(self): + """Test V0044QosLimitsMaxTresMinutesPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_tres_per.py b/test/test_v0044_qos_limits_max_tres_per.py new file mode 100644 index 0000000..e69f02d --- /dev/null +++ b/test/test_v0044_qos_limits_max_tres_per.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_tres_per import V0044QosLimitsMaxTresPer + +class TestV0044QosLimitsMaxTresPer(unittest.TestCase): + """V0044QosLimitsMaxTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxTresPer: + """Test V0044QosLimitsMaxTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxTresPer` + """ + model = V0044QosLimitsMaxTresPer() + if include_optional: + return V0044QosLimitsMaxTresPer( + account = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + node = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + user = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044QosLimitsMaxTresPer( + ) + """ + + def testV0044QosLimitsMaxTresPer(self): + """Test V0044QosLimitsMaxTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_wall_clock.py b/test/test_v0044_qos_limits_max_wall_clock.py new file mode 100644 index 0000000..db194fe --- /dev/null +++ b/test/test_v0044_qos_limits_max_wall_clock.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_wall_clock import V0044QosLimitsMaxWallClock + +class TestV0044QosLimitsMaxWallClock(unittest.TestCase): + """V0044QosLimitsMaxWallClock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxWallClock: + """Test V0044QosLimitsMaxWallClock + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxWallClock` + """ + model = V0044QosLimitsMaxWallClock() + if include_optional: + return V0044QosLimitsMaxWallClock( + per = slurmrest_python.models.v0_0_44_qos_limits_max_wall_clock_per.v0_0_44_qos_limits_max_wall_clock_per( + qos = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0044QosLimitsMaxWallClock( + ) + """ + + def testV0044QosLimitsMaxWallClock(self): + """Test V0044QosLimitsMaxWallClock""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_max_wall_clock_per.py b/test/test_v0044_qos_limits_max_wall_clock_per.py new file mode 100644 index 0000000..6165edf --- /dev/null +++ b/test/test_v0044_qos_limits_max_wall_clock_per.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_max_wall_clock_per import V0044QosLimitsMaxWallClockPer + +class TestV0044QosLimitsMaxWallClockPer(unittest.TestCase): + """V0044QosLimitsMaxWallClockPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMaxWallClockPer: + """Test V0044QosLimitsMaxWallClockPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMaxWallClockPer` + """ + model = V0044QosLimitsMaxWallClockPer() + if include_optional: + return V0044QosLimitsMaxWallClockPer( + qos = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + job = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044QosLimitsMaxWallClockPer( + ) + """ + + def testV0044QosLimitsMaxWallClockPer(self): + """Test V0044QosLimitsMaxWallClockPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_min.py b/test/test_v0044_qos_limits_min.py new file mode 100644 index 0000000..084c604 --- /dev/null +++ b/test/test_v0044_qos_limits_min.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_min import V0044QosLimitsMin + +class TestV0044QosLimitsMin(unittest.TestCase): + """V0044QosLimitsMin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMin: + """Test V0044QosLimitsMin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMin` + """ + model = V0044QosLimitsMin() + if include_optional: + return V0044QosLimitsMin( + priority_threshold = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_44_qos_limits_min_tres.v0_0_44_qos_limits_min_tres( + per = slurmrest_python.models.v0_0_44_qos_limits_min_tres_per.v0_0_44_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ), ) + ) + else: + return V0044QosLimitsMin( + ) + """ + + def testV0044QosLimitsMin(self): + """Test V0044QosLimitsMin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_min_tres.py b/test/test_v0044_qos_limits_min_tres.py new file mode 100644 index 0000000..6af47f8 --- /dev/null +++ b/test/test_v0044_qos_limits_min_tres.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_min_tres import V0044QosLimitsMinTres + +class TestV0044QosLimitsMinTres(unittest.TestCase): + """V0044QosLimitsMinTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMinTres: + """Test V0044QosLimitsMinTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMinTres` + """ + model = V0044QosLimitsMinTres() + if include_optional: + return V0044QosLimitsMinTres( + per = slurmrest_python.models.v0_0_44_qos_limits_min_tres_per.v0_0_44_qos_limits_min_tres_per( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], ) + ) + else: + return V0044QosLimitsMinTres( + ) + """ + + def testV0044QosLimitsMinTres(self): + """Test V0044QosLimitsMinTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_limits_min_tres_per.py b/test/test_v0044_qos_limits_min_tres_per.py new file mode 100644 index 0000000..38a1c12 --- /dev/null +++ b/test/test_v0044_qos_limits_min_tres_per.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_limits_min_tres_per import V0044QosLimitsMinTresPer + +class TestV0044QosLimitsMinTresPer(unittest.TestCase): + """V0044QosLimitsMinTresPer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosLimitsMinTresPer: + """Test V0044QosLimitsMinTresPer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosLimitsMinTresPer` + """ + model = V0044QosLimitsMinTresPer() + if include_optional: + return V0044QosLimitsMinTresPer( + job = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044QosLimitsMinTresPer( + ) + """ + + def testV0044QosLimitsMinTresPer(self): + """Test V0044QosLimitsMinTresPer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_qos_preempt.py b/test/test_v0044_qos_preempt.py new file mode 100644 index 0000000..7bafbb0 --- /dev/null +++ b/test/test_v0044_qos_preempt.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_qos_preempt import V0044QosPreempt + +class TestV0044QosPreempt(unittest.TestCase): + """V0044QosPreempt unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044QosPreempt: + """Test V0044QosPreempt + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044QosPreempt` + """ + model = V0044QosPreempt() + if include_optional: + return V0044QosPreempt( + list = [ + '' + ], + mode = [ + 'DISABLED' + ], + exempt_time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044QosPreempt( + ) + """ + + def testV0044QosPreempt(self): + """Test V0044QosPreempt""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_reservation_core_spec.py b/test/test_v0044_reservation_core_spec.py new file mode 100644 index 0000000..53d16e7 --- /dev/null +++ b/test/test_v0044_reservation_core_spec.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_reservation_core_spec import V0044ReservationCoreSpec + +class TestV0044ReservationCoreSpec(unittest.TestCase): + """V0044ReservationCoreSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ReservationCoreSpec: + """Test V0044ReservationCoreSpec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ReservationCoreSpec` + """ + model = V0044ReservationCoreSpec() + if include_optional: + return V0044ReservationCoreSpec( + node = '', + core = '' + ) + else: + return V0044ReservationCoreSpec( + ) + """ + + def testV0044ReservationCoreSpec(self): + """Test V0044ReservationCoreSpec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_reservation_desc_msg.py b/test/test_v0044_reservation_desc_msg.py new file mode 100644 index 0000000..df52846 --- /dev/null +++ b/test/test_v0044_reservation_desc_msg.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_reservation_desc_msg import V0044ReservationDescMsg + +class TestV0044ReservationDescMsg(unittest.TestCase): + """V0044ReservationDescMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ReservationDescMsg: + """Test V0044ReservationDescMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ReservationDescMsg` + """ + model = V0044ReservationDescMsg() + if include_optional: + return V0044ReservationDescMsg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = [ + '' + ], + max_start_delay = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', + node_count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_44_reservation_info_purge_completed.v0_0_44_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = [ + '' + ] + ) + else: + return V0044ReservationDescMsg( + ) + """ + + def testV0044ReservationDescMsg(self): + """Test V0044ReservationDescMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_reservation_info.py b/test/test_v0044_reservation_info.py new file mode 100644 index 0000000..cf0c2a0 --- /dev/null +++ b/test/test_v0044_reservation_info.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_reservation_info import V0044ReservationInfo + +class TestV0044ReservationInfo(unittest.TestCase): + """V0044ReservationInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ReservationInfo: + """Test V0044ReservationInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ReservationInfo` + """ + model = V0044ReservationInfo() + if include_optional: + return V0044ReservationInfo( + accounts = '', + burst_buffer = '', + core_count = 56, + core_specializations = [ + slurmrest_python.models.v0/0/44_reservation_core_spec.v0.0.44_reservation_core_spec( + node = '', + core = '', ) + ], + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = '', + licenses = '', + max_start_delay = 56, + name = '', + node_count = 56, + node_list = '', + partition = '', + purge_completed = slurmrest_python.models.v0_0_44_reservation_info_purge_completed.v0_0_44_reservation_info_purge_completed( + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + watts = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = '', + users = '' + ) + else: + return V0044ReservationInfo( + ) + """ + + def testV0044ReservationInfo(self): + """Test V0044ReservationInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_reservation_info_purge_completed.py b/test/test_v0044_reservation_info_purge_completed.py new file mode 100644 index 0000000..2b92ec8 --- /dev/null +++ b/test/test_v0044_reservation_info_purge_completed.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_reservation_info_purge_completed import V0044ReservationInfoPurgeCompleted + +class TestV0044ReservationInfoPurgeCompleted(unittest.TestCase): + """V0044ReservationInfoPurgeCompleted unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ReservationInfoPurgeCompleted: + """Test V0044ReservationInfoPurgeCompleted + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ReservationInfoPurgeCompleted` + """ + model = V0044ReservationInfoPurgeCompleted() + if include_optional: + return V0044ReservationInfoPurgeCompleted( + time = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044ReservationInfoPurgeCompleted( + ) + """ + + def testV0044ReservationInfoPurgeCompleted(self): + """Test V0044ReservationInfoPurgeCompleted""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_reservation_mod_req.py b/test/test_v0044_reservation_mod_req.py new file mode 100644 index 0000000..edaccc6 --- /dev/null +++ b/test/test_v0044_reservation_mod_req.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_reservation_mod_req import V0044ReservationModReq + +class TestV0044ReservationModReq(unittest.TestCase): + """V0044ReservationModReq unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ReservationModReq: + """Test V0044ReservationModReq + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ReservationModReq` + """ + model = V0044ReservationModReq() + if include_optional: + return V0044ReservationModReq( + reservations = [ + slurmrest_python.models.v0/0/44_reservation_desc_msg.v0.0.44_reservation_desc_msg( + accounts = [ + '' + ], + burst_buffer = '', + comment = '', + core_count = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + duration = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + end_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + features = '', + flags = [ + 'MAINT' + ], + groups = [ + '' + ], + licenses = , + max_start_delay = , + name = '', + node_count = , + node_list = [ + '' + ], + partition = '', + purge_completed = slurmrest_python.models.v0_0_44_reservation_info_purge_completed.v0_0_44_reservation_info_purge_completed( + time = , ), + start_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + users = , ) + ] + ) + else: + return V0044ReservationModReq( + ) + """ + + def testV0044ReservationModReq(self): + """Test V0044ReservationModReq""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_rollup_stats.py b/test/test_v0044_rollup_stats.py new file mode 100644 index 0000000..6c74058 --- /dev/null +++ b/test/test_v0044_rollup_stats.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_rollup_stats import V0044RollupStats + +class TestV0044RollupStats(unittest.TestCase): + """V0044RollupStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044RollupStats: + """Test V0044RollupStats + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044RollupStats` + """ + model = V0044RollupStats() + if include_optional: + return V0044RollupStats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration( + last = 56, + max = 56, + time = 56, ), ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration( + last = 56, + max = 56, + time = 56, ), ) + ) + else: + return V0044RollupStats( + ) + """ + + def testV0044RollupStats(self): + """Test V0044RollupStats""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_rollup_stats_daily.py b/test/test_v0044_rollup_stats_daily.py new file mode 100644 index 0000000..bb793b3 --- /dev/null +++ b/test/test_v0044_rollup_stats_daily.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_rollup_stats_daily import V0044RollupStatsDaily + +class TestV0044RollupStatsDaily(unittest.TestCase): + """V0044RollupStatsDaily unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044RollupStatsDaily: + """Test V0044RollupStatsDaily + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044RollupStatsDaily` + """ + model = V0044RollupStatsDaily() + if include_optional: + return V0044RollupStatsDaily( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_daily_duration( + last = 56, + max = 56, + time = 56, ) + ) + else: + return V0044RollupStatsDaily( + ) + """ + + def testV0044RollupStatsDaily(self): + """Test V0044RollupStatsDaily""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_rollup_stats_hourly.py b/test/test_v0044_rollup_stats_hourly.py new file mode 100644 index 0000000..7afef1f --- /dev/null +++ b/test/test_v0044_rollup_stats_hourly.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_rollup_stats_hourly import V0044RollupStatsHourly + +class TestV0044RollupStatsHourly(unittest.TestCase): + """V0044RollupStatsHourly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044RollupStatsHourly: + """Test V0044RollupStatsHourly + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044RollupStatsHourly` + """ + model = V0044RollupStatsHourly() + if include_optional: + return V0044RollupStatsHourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ) + ) + else: + return V0044RollupStatsHourly( + ) + """ + + def testV0044RollupStatsHourly(self): + """Test V0044RollupStatsHourly""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_rollup_stats_monthly.py b/test/test_v0044_rollup_stats_monthly.py new file mode 100644 index 0000000..9b8454a --- /dev/null +++ b/test/test_v0044_rollup_stats_monthly.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_rollup_stats_monthly import V0044RollupStatsMonthly + +class TestV0044RollupStatsMonthly(unittest.TestCase): + """V0044RollupStatsMonthly unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044RollupStatsMonthly: + """Test V0044RollupStatsMonthly + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044RollupStatsMonthly` + """ + model = V0044RollupStatsMonthly() + if include_optional: + return V0044RollupStatsMonthly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_monthly_duration( + last = 56, + max = 56, + time = 56, ) + ) + else: + return V0044RollupStatsMonthly( + ) + """ + + def testV0044RollupStatsMonthly(self): + """Test V0044RollupStatsMonthly""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_schedule_exit_fields.py b/test/test_v0044_schedule_exit_fields.py new file mode 100644 index 0000000..f13d862 --- /dev/null +++ b/test/test_v0044_schedule_exit_fields.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_schedule_exit_fields import V0044ScheduleExitFields + +class TestV0044ScheduleExitFields(unittest.TestCase): + """V0044ScheduleExitFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044ScheduleExitFields: + """Test V0044ScheduleExitFields + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044ScheduleExitFields` + """ + model = V0044ScheduleExitFields() + if include_optional: + return V0044ScheduleExitFields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56 + ) + else: + return V0044ScheduleExitFields( + ) + """ + + def testV0044ScheduleExitFields(self): + """Test V0044ScheduleExitFields""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_shares_float128_tres.py b/test/test_v0044_shares_float128_tres.py new file mode 100644 index 0000000..9e7c166 --- /dev/null +++ b/test/test_v0044_shares_float128_tres.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_shares_float128_tres import V0044SharesFloat128Tres + +class TestV0044SharesFloat128Tres(unittest.TestCase): + """V0044SharesFloat128Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044SharesFloat128Tres: + """Test V0044SharesFloat128Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044SharesFloat128Tres` + """ + model = V0044SharesFloat128Tres() + if include_optional: + return V0044SharesFloat128Tres( + name = '', + value = 1.337 + ) + else: + return V0044SharesFloat128Tres( + ) + """ + + def testV0044SharesFloat128Tres(self): + """Test V0044SharesFloat128Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_shares_resp_msg.py b/test/test_v0044_shares_resp_msg.py new file mode 100644 index 0000000..cc75026 --- /dev/null +++ b/test/test_v0044_shares_resp_msg.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_shares_resp_msg import V0044SharesRespMsg + +class TestV0044SharesRespMsg(unittest.TestCase): + """V0044SharesRespMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044SharesRespMsg: + """Test V0044SharesRespMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044SharesRespMsg` + """ + model = V0044SharesRespMsg() + if include_optional: + return V0044SharesRespMsg( + shares = [ + slurmrest_python.models.v0/0/44_assoc_shares_obj_wrap.v0.0.44_assoc_shares_obj_wrap( + id = 56, + cluster = '', + name = '', + parent = '', + partition = '', + shares_normalized = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + shares = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + tres = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_tres.v0_0_44_assoc_shares_obj_wrap_tres( + run_seconds = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', + value = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + group_minutes = [ + slurmrest_python.models.v0/0/44_shares_uint64_tres.v0.0.44_shares_uint64_tres( + name = '', ) + ], + usage = [ + slurmrest_python.models.v0/0/44_shares_float128_tres.v0.0.44_shares_float128_tres( + name = '', ) + ], ), + effective_usage = slurmrest_python.models.v0/0/44_float64_no_val_struct.v0.0.44_float64_no_val_struct( + set = True, + infinite = True, + number = 1.337, ), + usage_normalized = , + usage = 56, + fairshare = slurmrest_python.models.v0_0_44_assoc_shares_obj_wrap_fairshare.v0_0_44_assoc_shares_obj_wrap_fairshare( + factor = , + level = , ), + type = [ + 'USER' + ], ) + ], + total_shares = 56 + ) + else: + return V0044SharesRespMsg( + ) + """ + + def testV0044SharesRespMsg(self): + """Test V0044SharesRespMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_shares_uint64_tres.py b/test/test_v0044_shares_uint64_tres.py new file mode 100644 index 0000000..a28669e --- /dev/null +++ b/test/test_v0044_shares_uint64_tres.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_shares_uint64_tres import V0044SharesUint64Tres + +class TestV0044SharesUint64Tres(unittest.TestCase): + """V0044SharesUint64Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044SharesUint64Tres: + """Test V0044SharesUint64Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044SharesUint64Tres` + """ + model = V0044SharesUint64Tres() + if include_optional: + return V0044SharesUint64Tres( + name = '', + value = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044SharesUint64Tres( + ) + """ + + def testV0044SharesUint64Tres(self): + """Test V0044SharesUint64Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_slurm_step_id.py b/test/test_v0044_slurm_step_id.py new file mode 100644 index 0000000..d981955 --- /dev/null +++ b/test/test_v0044_slurm_step_id.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_slurm_step_id import V0044SlurmStepId + +class TestV0044SlurmStepId(unittest.TestCase): + """V0044SlurmStepId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044SlurmStepId: + """Test V0044SlurmStepId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044SlurmStepId` + """ + model = V0044SlurmStepId() + if include_optional: + return V0044SlurmStepId( + sluid = '', + job_id = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_het_component = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + step_id = '' + ) + else: + return V0044SlurmStepId( + ) + """ + + def testV0044SlurmStepId(self): + """Test V0044SlurmStepId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_slurmdbd_ping.py b/test/test_v0044_slurmdbd_ping.py new file mode 100644 index 0000000..da45f9c --- /dev/null +++ b/test/test_v0044_slurmdbd_ping.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_slurmdbd_ping import V0044SlurmdbdPing + +class TestV0044SlurmdbdPing(unittest.TestCase): + """V0044SlurmdbdPing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044SlurmdbdPing: + """Test V0044SlurmdbdPing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044SlurmdbdPing` + """ + model = V0044SlurmdbdPing() + if include_optional: + return V0044SlurmdbdPing( + hostname = '', + responding = True, + latency = 56, + primary = True + ) + else: + return V0044SlurmdbdPing( + hostname = '', + responding = True, + latency = 56, + primary = True, + ) + """ + + def testV0044SlurmdbdPing(self): + """Test V0044SlurmdbdPing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_msg.py b/test/test_v0044_stats_msg.py new file mode 100644 index 0000000..fd908fa --- /dev/null +++ b/test/test_v0044_stats_msg.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_msg import V0044StatsMsg + +class TestV0044StatsMsg(unittest.TestCase): + """V0044StatsMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsMsg: + """Test V0044StatsMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsMsg` + """ + model = V0044StatsMsg() + if include_optional: + return V0044StatsMsg( + parts_packed = 56, + req_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + req_time_start = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + server_thread_count = 56, + agent_queue_size = 56, + agent_count = 56, + agent_thread_count = 56, + dbd_agent_queue_size = 56, + gettimeofday_latency = 56, + schedule_cycle_max = 56, + schedule_cycle_last = 56, + schedule_cycle_sum = 56, + schedule_cycle_total = 56, + schedule_cycle_mean = 56, + schedule_cycle_mean_depth = 56, + schedule_cycle_per_minute = 56, + schedule_cycle_depth = 56, + schedule_exit = slurmrest_python.models.v0/0/44_schedule_exit_fields.v0.0.44_schedule_exit_fields( + end_job_queue = 56, + default_queue_depth = 56, + max_job_start = 56, + max_rpc_cnt = 56, + max_sched_time = 56, + licenses = 56, ), + schedule_queue_length = 56, + jobs_submitted = 56, + jobs_started = 56, + jobs_completed = 56, + jobs_canceled = 56, + jobs_failed = 56, + jobs_pending = 56, + jobs_running = 56, + job_states_ts = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + bf_backfilled_jobs = 56, + bf_last_backfilled_jobs = 56, + bf_backfilled_het_jobs = 56, + bf_cycle_counter = 56, + bf_cycle_mean = 56, + bf_depth_mean = 56, + bf_depth_mean_try = 56, + bf_cycle_sum = 56, + bf_cycle_last = 56, + bf_cycle_max = 56, + bf_exit = slurmrest_python.models.v0/0/44_bf_exit_fields.v0.0.44_bf_exit_fields( + end_job_queue = 56, + bf_max_job_start = 56, + bf_max_job_test = 56, + bf_max_time = 56, + bf_node_space_size = 56, + state_changed = 56, ), + bf_last_depth = 56, + bf_last_depth_try = 56, + bf_depth_sum = 56, + bf_depth_try_sum = 56, + bf_queue_len = 56, + bf_queue_len_mean = 56, + bf_queue_len_sum = 56, + bf_table_size = 56, + bf_table_size_sum = 56, + bf_table_size_mean = 56, + bf_when_last_cycle = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + bf_active = True, + rpcs_by_message_type = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_type.v0.0.44_stats_msg_rpc_type( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + rpcs_by_user = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_user.v0.0.44_stats_msg_rpc_user( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ], + pending_rpcs = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_queue.v0.0.44_stats_msg_rpc_queue( + type_id = 56, + message_type = '', + count = 56, ) + ], + pending_rpcs_by_hostlist = [ + slurmrest_python.models.v0/0/44_stats_msg_rpc_dump.v0.0.44_stats_msg_rpc_dump( + type_id = 56, + message_type = '', + count = [ + '' + ], ) + ] + ) + else: + return V0044StatsMsg( + ) + """ + + def testV0044StatsMsg(self): + """Test V0044StatsMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_msg_rpc_dump.py b/test/test_v0044_stats_msg_rpc_dump.py new file mode 100644 index 0000000..9da20ca --- /dev/null +++ b/test/test_v0044_stats_msg_rpc_dump.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_msg_rpc_dump import V0044StatsMsgRpcDump + +class TestV0044StatsMsgRpcDump(unittest.TestCase): + """V0044StatsMsgRpcDump unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsMsgRpcDump: + """Test V0044StatsMsgRpcDump + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsMsgRpcDump` + """ + model = V0044StatsMsgRpcDump() + if include_optional: + return V0044StatsMsgRpcDump( + type_id = 56, + message_type = '', + count = [ + '' + ] + ) + else: + return V0044StatsMsgRpcDump( + type_id = 56, + message_type = '', + count = [ + '' + ], + ) + """ + + def testV0044StatsMsgRpcDump(self): + """Test V0044StatsMsgRpcDump""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_msg_rpc_queue.py b/test/test_v0044_stats_msg_rpc_queue.py new file mode 100644 index 0000000..74eb369 --- /dev/null +++ b/test/test_v0044_stats_msg_rpc_queue.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_msg_rpc_queue import V0044StatsMsgRpcQueue + +class TestV0044StatsMsgRpcQueue(unittest.TestCase): + """V0044StatsMsgRpcQueue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsMsgRpcQueue: + """Test V0044StatsMsgRpcQueue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsMsgRpcQueue` + """ + model = V0044StatsMsgRpcQueue() + if include_optional: + return V0044StatsMsgRpcQueue( + type_id = 56, + message_type = '', + count = 56 + ) + else: + return V0044StatsMsgRpcQueue( + type_id = 56, + message_type = '', + count = 56, + ) + """ + + def testV0044StatsMsgRpcQueue(self): + """Test V0044StatsMsgRpcQueue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_msg_rpc_type.py b/test/test_v0044_stats_msg_rpc_type.py new file mode 100644 index 0000000..7c981dd --- /dev/null +++ b/test/test_v0044_stats_msg_rpc_type.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_msg_rpc_type import V0044StatsMsgRpcType + +class TestV0044StatsMsgRpcType(unittest.TestCase): + """V0044StatsMsgRpcType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsMsgRpcType: + """Test V0044StatsMsgRpcType + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsMsgRpcType` + """ + model = V0044StatsMsgRpcType() + if include_optional: + return V0044StatsMsgRpcType( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044StatsMsgRpcType( + type_id = 56, + message_type = '', + count = 56, + queued = 56, + dropped = 56, + cycle_last = 56, + cycle_max = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044StatsMsgRpcType(self): + """Test V0044StatsMsgRpcType""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_msg_rpc_user.py b/test/test_v0044_stats_msg_rpc_user.py new file mode 100644 index 0000000..f186777 --- /dev/null +++ b/test/test_v0044_stats_msg_rpc_user.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_msg_rpc_user import V0044StatsMsgRpcUser + +class TestV0044StatsMsgRpcUser(unittest.TestCase): + """V0044StatsMsgRpcUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsMsgRpcUser: + """Test V0044StatsMsgRpcUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsMsgRpcUser` + """ + model = V0044StatsMsgRpcUser() + if include_optional: + return V0044StatsMsgRpcUser( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044StatsMsgRpcUser( + user_id = 56, + user = '', + count = 56, + total_time = 56, + average_time = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + ) + """ + + def testV0044StatsMsgRpcUser(self): + """Test V0044StatsMsgRpcUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_rec.py b/test/test_v0044_stats_rec.py new file mode 100644 index 0000000..2d8dd32 --- /dev/null +++ b/test/test_v0044_stats_rec.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_rec import V0044StatsRec + +class TestV0044StatsRec(unittest.TestCase): + """V0044StatsRec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsRec: + """Test V0044StatsRec + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsRec` + """ + model = V0044StatsRec() + if include_optional: + return V0044StatsRec( + time_start = 56, + rollups = slurmrest_python.models.v0/0/44_rollup_stats.v0.0.44_rollup_stats( + hourly = slurmrest_python.models.v0_0_44_rollup_stats_hourly.v0_0_44_rollup_stats_hourly( + count = 56, + last_run = 56, + duration = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rollups_hourly_duration( + last = 56, + max = 56, + time = 56, ), ), + daily = slurmrest_python.models.v0_0_44_rollup_stats_daily.v0_0_44_rollup_stats_daily( + count = 56, + last_run = 56, ), + monthly = slurmrest_python.models.v0_0_44_rollup_stats_monthly.v0_0_44_rollup_stats_monthly( + count = 56, + last_run = 56, ), ), + rpcs = [ + slurmrest_python.models.v0/0/44_stats_rpc.v0.0.44_stats_rpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ], + users = [ + slurmrest_python.models.v0/0/44_stats_user.v0.0.44_stats_user( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ), ) + ] + ) + else: + return V0044StatsRec( + ) + """ + + def testV0044StatsRec(self): + """Test V0044StatsRec""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_rpc.py b/test/test_v0044_stats_rpc.py new file mode 100644 index 0000000..81a9229 --- /dev/null +++ b/test/test_v0044_stats_rpc.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_rpc import V0044StatsRpc + +class TestV0044StatsRpc(unittest.TestCase): + """V0044StatsRpc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsRpc: + """Test V0044StatsRpc + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsRpc` + """ + model = V0044StatsRpc() + if include_optional: + return V0044StatsRpc( + rpc = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0044StatsRpc( + ) + """ + + def testV0044StatsRpc(self): + """Test V0044StatsRpc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_stats_user.py b/test/test_v0044_stats_user.py new file mode 100644 index 0000000..ed48bfc --- /dev/null +++ b/test/test_v0044_stats_user.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_stats_user import V0044StatsUser + +class TestV0044StatsUser(unittest.TestCase): + """V0044StatsUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StatsUser: + """Test V0044StatsUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StatsUser` + """ + model = V0044StatsUser() + if include_optional: + return V0044StatsUser( + user = '', + count = 56, + time = slurmrest_python.models.v0_0_41_openapi_slurmdbd_stats_resp_statistics_rpcs_inner_time.v0_0_41_openapi_slurmdbd_stats_resp_statistics_RPCs_inner_time( + average = 56, + total = 56, ) + ) + else: + return V0044StatsUser( + ) + """ + + def testV0044StatsUser(self): + """Test V0044StatsUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step.py b/test/test_v0044_step.py new file mode 100644 index 0000000..a469cda --- /dev/null +++ b/test/test_v0044_step.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step import V0044Step + +class TestV0044Step(unittest.TestCase): + """V0044Step unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Step: + """Test V0044Step + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Step` + """ + model = V0044Step() + if include_optional: + return V0044Step( + time = slurmrest_python.models.v0_0_44_step_time.v0_0_44_step_time( + elapsed = 56, + end = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ), ), + exit_code = slurmrest_python.models.v0/0/44_process_exit_code_verbose.v0.0.44_process_exit_code_verbose( + status = [ + 'INVALID' + ], + return_code = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + signal = slurmrest_python.models.v0_0_44_process_exit_code_verbose_signal.v0_0_44_process_exit_code_verbose_signal( + id = slurmrest_python.models.v0/0/44_uint16_no_val_struct.v0.0.44_uint16_no_val_struct( + set = True, + infinite = True, + number = 56, ), + name = '', ), ), + nodes = slurmrest_python.models.v0_0_44_step_nodes.v0_0_44_step_nodes( + count = 56, + range = '', + list = [ + '' + ], ), + tasks = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_tasks( + count = 56, ), + pid = '', + cpu = slurmrest_python.models.v0_0_44_step_cpu.v0_0_44_step_CPU( + requested_frequency = slurmrest_python.models.v0_0_44_step_cpu_requested_frequency.v0_0_44_step_CPU_requested_frequency( + min = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + governor = '', ), + kill_request_user = '', + state = [ + 'PENDING' + ], + statistics = slurmrest_python.models.v0_0_44_step_statistics.v0_0_44_step_statistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_44_step_statistics_energy.v0_0_44_step_statistics_energy( + consumed = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), ), + step = slurmrest_python.models.v0_0_44_step_step.v0_0_44_step_step( + id = '', + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '', ), + task = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_task( + distribution = '', ), + tres = slurmrest_python.models.v0_0_44_step_tres.v0_0_44_step_tres( + requested = slurmrest_python.models.v0_0_44_step_tres_requested.v0_0_44_step_tres_requested( + max = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_44_step_tres_consumed.v0_0_44_step_tres_consumed(), + allocated = , ) + ) + else: + return V0044Step( + ) + """ + + def testV0044Step(self): + """Test V0044Step""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_cpu.py b/test/test_v0044_step_cpu.py new file mode 100644 index 0000000..c4466ef --- /dev/null +++ b/test/test_v0044_step_cpu.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_cpu import V0044StepCPU + +class TestV0044StepCPU(unittest.TestCase): + """V0044StepCPU unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepCPU: + """Test V0044StepCPU + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepCPU` + """ + model = V0044StepCPU() + if include_optional: + return V0044StepCPU( + requested_frequency = slurmrest_python.models.v0_0_44_step_cpu_requested_frequency.v0_0_44_step_CPU_requested_frequency( + min = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), ), + governor = '' + ) + else: + return V0044StepCPU( + ) + """ + + def testV0044StepCPU(self): + """Test V0044StepCPU""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_cpu_requested_frequency.py b/test/test_v0044_step_cpu_requested_frequency.py new file mode 100644 index 0000000..fb1ed21 --- /dev/null +++ b/test/test_v0044_step_cpu_requested_frequency.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_cpu_requested_frequency import V0044StepCPURequestedFrequency + +class TestV0044StepCPURequestedFrequency(unittest.TestCase): + """V0044StepCPURequestedFrequency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepCPURequestedFrequency: + """Test V0044StepCPURequestedFrequency + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepCPURequestedFrequency` + """ + model = V0044StepCPURequestedFrequency() + if include_optional: + return V0044StepCPURequestedFrequency( + min = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + max = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044StepCPURequestedFrequency( + ) + """ + + def testV0044StepCPURequestedFrequency(self): + """Test V0044StepCPURequestedFrequency""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_nodes.py b/test/test_v0044_step_nodes.py new file mode 100644 index 0000000..e32633e --- /dev/null +++ b/test/test_v0044_step_nodes.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_nodes import V0044StepNodes + +class TestV0044StepNodes(unittest.TestCase): + """V0044StepNodes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepNodes: + """Test V0044StepNodes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepNodes` + """ + model = V0044StepNodes() + if include_optional: + return V0044StepNodes( + count = 56, + range = '', + list = [ + '' + ] + ) + else: + return V0044StepNodes( + ) + """ + + def testV0044StepNodes(self): + """Test V0044StepNodes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_statistics.py b/test/test_v0044_step_statistics.py new file mode 100644 index 0000000..51e1d18 --- /dev/null +++ b/test/test_v0044_step_statistics.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_statistics import V0044StepStatistics + +class TestV0044StepStatistics(unittest.TestCase): + """V0044StepStatistics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepStatistics: + """Test V0044StepStatistics + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepStatistics` + """ + model = V0044StepStatistics() + if include_optional: + return V0044StepStatistics( + cpu = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_cpu.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_statistics_CPU( + actual_frequency = 56, ), + energy = slurmrest_python.models.v0_0_44_step_statistics_energy.v0_0_44_step_statistics_energy( + consumed = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), ) + ) + else: + return V0044StepStatistics( + ) + """ + + def testV0044StepStatistics(self): + """Test V0044StepStatistics""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_statistics_energy.py b/test/test_v0044_step_statistics_energy.py new file mode 100644 index 0000000..296a2e4 --- /dev/null +++ b/test/test_v0044_step_statistics_energy.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_statistics_energy import V0044StepStatisticsEnergy + +class TestV0044StepStatisticsEnergy(unittest.TestCase): + """V0044StepStatisticsEnergy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepStatisticsEnergy: + """Test V0044StepStatisticsEnergy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepStatisticsEnergy` + """ + model = V0044StepStatisticsEnergy() + if include_optional: + return V0044StepStatisticsEnergy( + consumed = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044StepStatisticsEnergy( + ) + """ + + def testV0044StepStatisticsEnergy(self): + """Test V0044StepStatisticsEnergy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_step.py b/test/test_v0044_step_step.py new file mode 100644 index 0000000..396e996 --- /dev/null +++ b/test/test_v0044_step_step.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_step import V0044StepStep + +class TestV0044StepStep(unittest.TestCase): + """V0044StepStep unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepStep: + """Test V0044StepStep + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepStep` + """ + model = V0044StepStep() + if include_optional: + return V0044StepStep( + id = '', + name = '', + stderr = '', + stdin = '', + stdout = '', + stderr_expanded = '', + stdin_expanded = '', + stdout_expanded = '' + ) + else: + return V0044StepStep( + ) + """ + + def testV0044StepStep(self): + """Test V0044StepStep""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_time.py b/test/test_v0044_step_time.py new file mode 100644 index 0000000..d4c9a28 --- /dev/null +++ b/test/test_v0044_step_time.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_time import V0044StepTime + +class TestV0044StepTime(unittest.TestCase): + """V0044StepTime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepTime: + """Test V0044StepTime + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepTime` + """ + model = V0044StepTime() + if include_optional: + return V0044StepTime( + elapsed = 56, + end = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + start = slurmrest_python.models.v0/0/44_uint64_no_val_struct.v0.0.44_uint64_no_val_struct( + set = True, + infinite = True, + number = 56, ), + suspended = 56, + system = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_system( + seconds = 56, + microseconds = 56, ), + limit = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + total = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_total( + seconds = 56, + microseconds = 56, ), + user = slurmrest_python.models.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user.v0_0_41_openapi_slurmdbd_jobs_resp_jobs_inner_steps_inner_time_user( + seconds = 56, + microseconds = 56, ) + ) + else: + return V0044StepTime( + ) + """ + + def testV0044StepTime(self): + """Test V0044StepTime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_tres.py b/test/test_v0044_step_tres.py new file mode 100644 index 0000000..f6dfef2 --- /dev/null +++ b/test/test_v0044_step_tres.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_tres import V0044StepTres + +class TestV0044StepTres(unittest.TestCase): + """V0044StepTres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepTres: + """Test V0044StepTres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepTres` + """ + model = V0044StepTres() + if include_optional: + return V0044StepTres( + requested = slurmrest_python.models.v0_0_44_step_tres_requested.v0_0_44_step_tres_requested( + max = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + consumed = slurmrest_python.models.v0_0_44_step_tres_consumed.v0_0_44_step_tres_consumed( + max = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + + ], + total = [ + + ], ), + allocated = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044StepTres( + ) + """ + + def testV0044StepTres(self): + """Test V0044StepTres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_tres_consumed.py b/test/test_v0044_step_tres_consumed.py new file mode 100644 index 0000000..b51d71c --- /dev/null +++ b/test/test_v0044_step_tres_consumed.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_tres_consumed import V0044StepTresConsumed + +class TestV0044StepTresConsumed(unittest.TestCase): + """V0044StepTresConsumed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepTresConsumed: + """Test V0044StepTresConsumed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepTresConsumed` + """ + model = V0044StepTresConsumed() + if include_optional: + return V0044StepTresConsumed( + max = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044StepTresConsumed( + ) + """ + + def testV0044StepTresConsumed(self): + """Test V0044StepTresConsumed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_step_tres_requested.py b/test/test_v0044_step_tres_requested.py new file mode 100644 index 0000000..cde7001 --- /dev/null +++ b/test/test_v0044_step_tres_requested.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_step_tres_requested import V0044StepTresRequested + +class TestV0044StepTresRequested(unittest.TestCase): + """V0044StepTresRequested unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044StepTresRequested: + """Test V0044StepTresRequested + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044StepTresRequested` + """ + model = V0044StepTresRequested() + if include_optional: + return V0044StepTresRequested( + max = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + min = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + average = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + total = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ] + ) + else: + return V0044StepTresRequested( + ) + """ + + def testV0044StepTresRequested(self): + """Test V0044StepTresRequested""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_tres.py b/test/test_v0044_tres.py new file mode 100644 index 0000000..ef95c36 --- /dev/null +++ b/test/test_v0044_tres.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_tres import V0044Tres + +class TestV0044Tres(unittest.TestCase): + """V0044Tres unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Tres: + """Test V0044Tres + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Tres` + """ + model = V0044Tres() + if include_optional: + return V0044Tres( + type = '', + name = '', + id = 56, + count = 56 + ) + else: + return V0044Tres( + type = '', + ) + """ + + def testV0044Tres(self): + """Test V0044Tres""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_uint16_no_val_struct.py b/test/test_v0044_uint16_no_val_struct.py new file mode 100644 index 0000000..2b304f6 --- /dev/null +++ b/test/test_v0044_uint16_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_uint16_no_val_struct import V0044Uint16NoValStruct + +class TestV0044Uint16NoValStruct(unittest.TestCase): + """V0044Uint16NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Uint16NoValStruct: + """Test V0044Uint16NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Uint16NoValStruct` + """ + model = V0044Uint16NoValStruct() + if include_optional: + return V0044Uint16NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0044Uint16NoValStruct( + ) + """ + + def testV0044Uint16NoValStruct(self): + """Test V0044Uint16NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_uint32_no_val_struct.py b/test/test_v0044_uint32_no_val_struct.py new file mode 100644 index 0000000..dd6ab92 --- /dev/null +++ b/test/test_v0044_uint32_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_uint32_no_val_struct import V0044Uint32NoValStruct + +class TestV0044Uint32NoValStruct(unittest.TestCase): + """V0044Uint32NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Uint32NoValStruct: + """Test V0044Uint32NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Uint32NoValStruct` + """ + model = V0044Uint32NoValStruct() + if include_optional: + return V0044Uint32NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0044Uint32NoValStruct( + ) + """ + + def testV0044Uint32NoValStruct(self): + """Test V0044Uint32NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_uint64_no_val_struct.py b/test/test_v0044_uint64_no_val_struct.py new file mode 100644 index 0000000..dcf681e --- /dev/null +++ b/test/test_v0044_uint64_no_val_struct.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_uint64_no_val_struct import V0044Uint64NoValStruct + +class TestV0044Uint64NoValStruct(unittest.TestCase): + """V0044Uint64NoValStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Uint64NoValStruct: + """Test V0044Uint64NoValStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Uint64NoValStruct` + """ + model = V0044Uint64NoValStruct() + if include_optional: + return V0044Uint64NoValStruct( + set = True, + infinite = True, + number = 56 + ) + else: + return V0044Uint64NoValStruct( + ) + """ + + def testV0044Uint64NoValStruct(self): + """Test V0044Uint64NoValStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_update_node_msg.py b/test/test_v0044_update_node_msg.py new file mode 100644 index 0000000..6cce7b6 --- /dev/null +++ b/test/test_v0044_update_node_msg.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_update_node_msg import V0044UpdateNodeMsg + +class TestV0044UpdateNodeMsg(unittest.TestCase): + """V0044UpdateNodeMsg unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044UpdateNodeMsg: + """Test V0044UpdateNodeMsg + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044UpdateNodeMsg` + """ + model = V0044UpdateNodeMsg() + if include_optional: + return V0044UpdateNodeMsg( + comment = '', + cpu_bind = 56, + extra = '', + features = [ + '' + ], + features_act = [ + '' + ], + gres = '', + address = [ + '' + ], + hostname = [ + '' + ], + name = [ + '' + ], + state = [ + 'INVALID' + ], + reason = '', + reason_uid = '', + resume_after = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + topology_str = '', + weight = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ) + ) + else: + return V0044UpdateNodeMsg( + ) + """ + + def testV0044UpdateNodeMsg(self): + """Test V0044UpdateNodeMsg""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_user.py b/test/test_v0044_user.py new file mode 100644 index 0000000..49dcc04 --- /dev/null +++ b/test/test_v0044_user.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_user import V0044User + +class TestV0044User(unittest.TestCase): + """V0044User unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044User: + """Test V0044User + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044User` + """ + model = V0044User() + if include_optional: + return V0044User( + administrator_level = [ + 'Not Set' + ], + associations = [ + slurmrest_python.models.v0/0/44_assoc_short.v0.0.44_assoc_short( + account = '', + cluster = '', + partition = '', + user = '', + id = 56, ) + ], + coordinators = [ + slurmrest_python.models.v0/0/44_coord.v0.0.44_coord( + name = '', + direct = True, ) + ], + default = slurmrest_python.models.v0_0_44_user_default.v0_0_44_user_default( + qos = 56, + account = '', + wckey = '', ), + flags = [ + 'NONE' + ], + name = '', + old_name = '', + wckeys = [ + slurmrest_python.models.v0/0/44_wckey.v0.0.44_wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ], ) + ] + ) + else: + return V0044User( + name = '', + ) + """ + + def testV0044User(self): + """Test V0044User""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_user_default.py b/test/test_v0044_user_default.py new file mode 100644 index 0000000..2582611 --- /dev/null +++ b/test/test_v0044_user_default.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_user_default import V0044UserDefault + +class TestV0044UserDefault(unittest.TestCase): + """V0044UserDefault unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044UserDefault: + """Test V0044UserDefault + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044UserDefault` + """ + model = V0044UserDefault() + if include_optional: + return V0044UserDefault( + qos = 56, + account = '', + wckey = '' + ) + else: + return V0044UserDefault( + ) + """ + + def testV0044UserDefault(self): + """Test V0044UserDefault""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_user_short.py b/test/test_v0044_user_short.py new file mode 100644 index 0000000..b2e4421 --- /dev/null +++ b/test/test_v0044_user_short.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_user_short import V0044UserShort + +class TestV0044UserShort(unittest.TestCase): + """V0044UserShort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044UserShort: + """Test V0044UserShort + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044UserShort` + """ + model = V0044UserShort() + if include_optional: + return V0044UserShort( + adminlevel = [ + 'Not Set' + ], + defaultqos = 56, + defaultaccount = '', + defaultwckey = '' + ) + else: + return V0044UserShort( + ) + """ + + def testV0044UserShort(self): + """Test V0044UserShort""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_users_add_cond.py b/test/test_v0044_users_add_cond.py new file mode 100644 index 0000000..b6829ae --- /dev/null +++ b/test/test_v0044_users_add_cond.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_users_add_cond import V0044UsersAddCond + +class TestV0044UsersAddCond(unittest.TestCase): + """V0044UsersAddCond unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044UsersAddCond: + """Test V0044UsersAddCond + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044UsersAddCond` + """ + model = V0044UsersAddCond() + if include_optional: + return V0044UsersAddCond( + accounts = [ + '' + ], + association = slurmrest_python.models.v0/0/44_assoc_rec_set.v0.0.44_assoc_rec_set( + comment = '', + defaultqos = '', + grpjobs = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpjobsaccrue = slurmrest_python.models.v0/0/44_uint32_no_val_struct.v0.0.44_uint32_no_val_struct( + set = True, + infinite = True, + number = 56, ), + grpsubmitjobs = , + grptres = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresmins = [ + slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ) + ], + grptresrunmins = , + grpwall = , + maxjobs = , + maxjobsaccrue = , + maxsubmitjobs = , + maxtresminsperjob = , + maxtresrunmins = , + maxtresperjob = , + maxtrespernode = , + maxwalldurationperjob = , + minpriothresh = , + parent = '', + priority = , + qoslevel = [ + '' + ], + fairshare = 56, ), + clusters = [ + '' + ], + partitions = [ + '' + ], + users = [ + '' + ], + wckeys = [ + '' + ] + ) + else: + return V0044UsersAddCond( + users = [ + '' + ], + ) + """ + + def testV0044UsersAddCond(self): + """Test V0044UsersAddCond""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_wckey.py b/test/test_v0044_wckey.py new file mode 100644 index 0000000..3e7bcbb --- /dev/null +++ b/test/test_v0044_wckey.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_wckey import V0044Wckey + +class TestV0044Wckey(unittest.TestCase): + """V0044Wckey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044Wckey: + """Test V0044Wckey + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044Wckey` + """ + model = V0044Wckey() + if include_optional: + return V0044Wckey( + accounting = [ + slurmrest_python.models.v0/0/44_accounting.v0.0.44_accounting( + allocated = slurmrest_python.models.v0_0_44_accounting_allocated.v0_0_44_accounting_allocated( + seconds = 56, ), + id = 56, + id_alt = 56, + start = 56, + tres = slurmrest_python.models.v0/0/44_tres.v0.0.44_tres( + type = '', + name = '', + id = 56, + count = 56, ), ) + ], + cluster = '', + id = 56, + name = '', + user = '', + flags = [ + 'DELETED' + ] + ) + else: + return V0044Wckey( + cluster = '', + name = '', + user = '', + ) + """ + + def testV0044Wckey(self): + """Test V0044Wckey""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v0044_wckey_tag_struct.py b/test/test_v0044_wckey_tag_struct.py new file mode 100644 index 0000000..291523d --- /dev/null +++ b/test/test_v0044_wckey_tag_struct.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Slurm REST API + + API to access and control Slurm + + The version of the OpenAPI document: Slurm-25.11.2 + Contact: sales@schedmd.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from slurmrest_python.models.v0044_wckey_tag_struct import V0044WckeyTagStruct + +class TestV0044WckeyTagStruct(unittest.TestCase): + """V0044WckeyTagStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V0044WckeyTagStruct: + """Test V0044WckeyTagStruct + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V0044WckeyTagStruct` + """ + model = V0044WckeyTagStruct() + if include_optional: + return V0044WckeyTagStruct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ] + ) + else: + return V0044WckeyTagStruct( + wckey = '', + flags = [ + 'ASSIGNED_DEFAULT' + ], + ) + """ + + def testV0044WckeyTagStruct(self): + """Test V0044WckeyTagStruct""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..4c47849 --- /dev/null +++ b/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + pytest --cov=slurmrest_python